@bentley/imodeljs-native 5.13.22 → 5.13.24

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.
@@ -3,8 +3,8 @@ import type { NativeCloudSqlite } from "./NativeCloudSqlite";
3
3
  * @note This package may only have **dev** dependencies on @itwin packages, so they are *not* available at runtime. Therefore we can only import **types** from them.
4
4
  * @note You cannot use mapped types @href https://www.typescriptlang.org/docs/handbook/2/mapped-types.html from itwin imports here due to how they are resolved downstream
5
5
  */
6
- import type { BentleyStatus, DbOpcode, DbResult, GuidString, Id64Array, Id64String, IDisposable, IModelStatus, LogLevel, OpenMode } from "@itwin/core-bentley";
7
- import type { ChangesetIndexAndId, CodeProps, CodeSpecProperties, CreateEmptyStandaloneIModelProps, DbRequest, DbResponse, ElementAspectProps, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementGraphicsRequestProps, ElementLoadOptions, ElementLoadProps, ElementMeshRequestProps, ElementProps, FilePropertyProps, FontId, FontProps, GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, GeographicCRSInterpretRequestProps, GeographicCRSInterpretResponseProps, GeometryContainmentResponseProps, GeometryStreamProps, ImageBuffer, ImageBufferFormat, ImageSourceFormat, IModelCoordinatesRequestProps, IModelCoordinatesResponseProps, IModelProps, LocalDirName, LocalFileName, MassPropertiesResponseProps, ModelLoadProps, ModelProps, PlacementProps, QueryQuota, RelationshipProps, SnapshotOpenOptions, TextureData, TextureLoadProps, TileVersionInfo, UpgradeOptions } from "@itwin/core-common";
6
+ import type { BentleyStatus, DbOpcode, DbResult, GuidString, Id64Array, Id64String, IModelStatus, LogLevel, OpenMode } from "@itwin/core-bentley";
7
+ import type { BRepGeometryCreate, ChangesetIndexAndId, CodeProps, CodeSpecProperties, FontType as CoreFontType, PerStatementHealthStats as CorePerStatementHealthStats, TxnProps as CoreTxnProps, CreateEmptyStandaloneIModelProps, DbRequest, DbResponse, ElementAspectProps, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementGeometryCacheOperationRequestProps, ElementGeometryCacheRequestProps, ElementGeometryCacheResponseProps, ElementGeometryRequest, ElementGraphicsRequestProps, ElementLoadOptions, ElementLoadProps, ElementMeshRequestProps, ElementProps, FilePropertyProps, FontId, FontProps, GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, GeographicCRSInterpretRequestProps, GeographicCRSInterpretResponseProps, GeometryContainmentResponseProps, GeometryStreamProps, ImageBuffer, ImageBufferFormat, ImageSourceFormat, IModelCoordinatesRequestProps, IModelCoordinatesResponseProps, IModelProps, LocalDirName, LocalFileName, MassPropertiesResponseProps, ModelExtentsProps, ModelLoadProps, ModelProps, PlacementProps, QueryQuota, RelationshipProps, RscFontEncodingProps, SnapRequestProps, SnapResponseProps, SnapshotOpenOptions, TextureData, TextureLoadProps, TileVersionInfo, UpgradeOptions } from "@itwin/core-common";
8
8
  import type { LowAndHighXYZProps, Range2dProps, Range3dProps } from "@itwin/core-geometry";
9
9
  /**
10
10
  * Status codes returned by the native bulk-delete operation.
@@ -283,17 +283,14 @@ export declare namespace IModelJsNative {
283
283
  pushDate: string;
284
284
  userCreated: string;
285
285
  size?: number;
286
+ uncompressedSize?: number;
286
287
  pathname: string;
287
288
  }
288
- interface PerStatementHealthStats {
289
- sqlStatement: string;
290
- dbOperation: string;
291
- rowCount: number;
292
- elapsedMs: number;
293
- fullTableScans: number;
294
- }
289
+ /** @see `PerStatementHealthStats` from `@itwin/core-common` */
290
+ type PerStatementHealthStats = CorePerStatementHealthStats;
295
291
  interface ChangesetHealthStats {
296
292
  changesetId: string;
293
+ changesetIndex: number;
297
294
  uncompressedSizeBytes: number;
298
295
  sha1ValidationTimeMs: number;
299
296
  insertedRows: number;
@@ -301,7 +298,7 @@ export declare namespace IModelJsNative {
301
298
  deletedRows: number;
302
299
  totalElapsedMs: number;
303
300
  totalFullTableScans: number;
304
- perStatementStats: [PerStatementHealthStats];
301
+ perStatementStats: PerStatementHealthStats[];
305
302
  }
306
303
  interface ECSqlRowAdaptorOptions {
307
304
  abbreviateBlobs?: boolean;
@@ -323,12 +320,8 @@ export declare namespace IModelJsNative {
323
320
  date: number;
324
321
  fileExt: string;
325
322
  }
326
- interface FontEncodingProps {
327
- codePage?: number;
328
- degree?: number;
329
- plusMinus?: number;
330
- diameter?: number;
331
- }
323
+ /** @see `RscFontEncodingProps` from `@itwin/core-common` */
324
+ type FontEncodingProps = RscFontEncodingProps;
332
325
  interface ResolveInstanceKeyArgs {
333
326
  partialKey?: {
334
327
  id: Id64String;
@@ -341,11 +334,8 @@ export declare namespace IModelJsNative {
341
334
  id: Id64String;
342
335
  classFullName: string;
343
336
  }
344
- enum FontType {
345
- TrueType = 1,
346
- Rsc = 2,
347
- Shx = 3
348
- }
337
+ /** @see `FontType` from `@itwin/core-common` */
338
+ type FontType = CoreFontType;
349
339
  interface FontFaceProps {
350
340
  faceName: "regular" | "italic" | "bold" | "bolditalic";
351
341
  familyName: string;
@@ -442,23 +432,8 @@ export declare namespace IModelJsNative {
442
432
  readonly parentChangesetId: string;
443
433
  readonly parentChangesetIndex?: string;
444
434
  }
445
- interface TxnProps {
446
- id: TxnIdString;
447
- sessionId: number;
448
- nextId?: TxnIdString;
449
- prevId?: TxnIdString;
450
- props: {
451
- description?: string;
452
- source?: string;
453
- appData: {
454
- [key: string]: any;
455
- };
456
- };
457
- type: "Data" | "ECSchema" | "Ddl";
458
- reversed: boolean;
459
- grouped: boolean;
460
- timestamp: string;
461
- }
435
+ /** @see `TxnProps` from `@itwin/core-common` */
436
+ type TxnProps = CoreTxnProps;
462
437
  type GeometryOutputFormat = "BinaryStream" | "GeometryStreamProps";
463
438
  interface IGeometrySource {
464
439
  geom?: Uint8Array | GeometryStreamProps;
@@ -473,11 +448,8 @@ export declare namespace IModelJsNative {
473
448
  is2d: boolean;
474
449
  bbox?: LowAndHighXYZProps;
475
450
  }
476
- interface ModelExtentsResponseProps {
477
- id: Id64String;
478
- extents: Range3dProps;
479
- status: IModelStatus;
480
- }
451
+ /** @see `ModelExtentsProps` from `@itwin/core-common` */
452
+ type ModelExtentsResponseProps = ModelExtentsProps;
481
453
  interface TextLayoutRangesProps {
482
454
  layout: Range2dProps;
483
455
  justification: Range2dProps;
@@ -495,15 +467,21 @@ export declare namespace IModelJsNative {
495
467
  readonly cloudContainer?: CloudContainer;
496
468
  attachDb(filename: string, alias: string): void;
497
469
  detachDb(alias: string): void;
470
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
498
471
  getNoCaseCollation(): NoCaseCollation;
472
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
499
473
  setNoCaseCollation(collation: NoCaseCollation): void;
474
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
500
475
  schemaSyncSetDefaultUri(syncDbUri: string): void;
476
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
501
477
  schemaSyncGetDefaultUri(): string;
502
478
  schemaSyncInit(syncDbUri: string, containerId: string, overrideContainer: boolean): void;
503
479
  schemaSyncPull(syncDbUri?: string): void;
504
480
  schemaSyncPush(syncDbUri?: string): void;
505
481
  schemaSyncEnabled(): boolean;
482
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
506
483
  schemaSyncGetLocalDbInfo(): SchemaLocalDbInfo | undefined;
484
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
507
485
  schemaSyncGetSyncDbInfo(syncDbUri: string): SchemaSyncDbInfo | undefined;
508
486
  abandonChanges(): DbResult;
509
487
  abandonCreateChangeset(): void;
@@ -532,7 +510,7 @@ export declare namespace IModelJsNative {
532
510
  concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;
533
511
  concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;
534
512
  concurrentQueryShutdown(): void;
535
- createBRepGeometry(createProps: any): IModelStatus;
513
+ createBRepGeometry(createProps: BRepGeometryCreate): IModelStatus;
536
514
  createChangeCache(changeCacheFile: ECDb, changeCachePath: string): DbResult;
537
515
  createClassViewsInDb(): BentleyStatus;
538
516
  createIModel(fileName: string, props: CreateEmptyStandaloneIModelProps): void;
@@ -548,8 +526,9 @@ export declare namespace IModelJsNative {
548
526
  deleteModel(modelIdJson: string): void;
549
527
  detachChangeCache(): number;
550
528
  dropSchemas(schemaNames: ReadonlyArray<string>): void;
529
+ /** @not-used-by-itwinjs-core */
551
530
  dumpChangeset(changeSet: ChangesetFileProps): void;
552
- elementGeometryCacheOperation(requestProps: any): BentleyStatus;
531
+ elementGeometryCacheOperation(requestProps: ElementGeometryCacheOperationRequestProps): BentleyStatus;
553
532
  embedFile(arg: EmbedFileArg): void;
554
533
  embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;
555
534
  enableChangesetSizeStats(enabled: boolean): DbResult;
@@ -563,6 +542,7 @@ export declare namespace IModelJsNative {
563
542
  exportPartGraphicsAsync(exportProps: any): Promise<void>;
564
543
  exportSchema(schemaName: string, exportDirectory: string, outFileName?: string): SchemaWriteStatus;
565
544
  exportSchemas(exportDirectory: string): SchemaWriteStatus;
545
+ /** @not-used-by-itwinjs-core */
566
546
  extractChangedInstanceIdsFromChangeSets(changeSetFileNames: string[]): ErrorStatusOrResult<IModelStatus, ChangedInstanceIdsProps>;
567
547
  extractChangeSummary(changeCacheFile: ECDb, changesetFilePath: string): ErrorStatusOrResult<DbResult, string>;
568
548
  extractEmbeddedFile(arg: EmbeddedFileProps): void;
@@ -617,7 +597,6 @@ export declare namespace IModelJsNative {
617
597
  importSchemasDuringSemanticRebase(schemaFileNames: string[], options?: SchemaImportOptions): void;
618
598
  importSchemas(schemaFileNames: string[], options?: SchemaImportOptions): DbResult;
619
599
  importXmlSchemas(serializedXmlSchemas: string[], options?: SchemaImportOptions): DbResult;
620
- inBulkOperation(): boolean;
621
600
  inlineGeometryPartReferences(): InlineGeometryPartsResult;
622
601
  insertCodeSpec(name: string, jsonProperties: CodeSpecProperties): Id64String;
623
602
  insertElement(elemProps: ElementProps, options?: {
@@ -630,10 +609,13 @@ export declare namespace IModelJsNative {
630
609
  isGeometricModelTrackingSupported(): boolean;
631
610
  isLinkTableRelationship(classFullName: string): boolean | undefined;
632
611
  isOpen(): boolean;
612
+ /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */
633
613
  isProfilerPaused(): boolean;
614
+ /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */
634
615
  isProfilerRunning(): boolean;
635
616
  isReadonly(): boolean;
636
617
  isRedoPossible(): boolean;
618
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
637
619
  isSubClassOf(childClassFullName: string, parentClassFullName: string): boolean;
638
620
  isTxnIdValid(txnId: TxnIdString): boolean;
639
621
  isUndoPossible(): boolean;
@@ -641,9 +623,10 @@ export declare namespace IModelJsNative {
641
623
  openIModel(dbName: string, mode: OpenMode, upgradeOptions?: UpgradeOptions & SchemaImportOptions, props?: SnapshotOpenOptions, container?: CloudContainer, sqliteOptions?: {
642
624
  busyTimeout?: number;
643
625
  }): void;
626
+ /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */
644
627
  pauseProfiler(): DbResult;
645
628
  pollTileContent(treeId: string, tileId: string): ErrorStatusOrResult<IModelStatus, TileContentState | TileContent>;
646
- processGeometryStream(requestProps: any): IModelStatus;
629
+ processGeometryStream(requestProps: ElementGeometryRequest): IModelStatus;
647
630
  purgeTileTrees(modelIds: Id64Array | undefined): void;
648
631
  queryDefinitionElementUsage(definitionElementIds: Id64Array): DefinitionElementUsageInfo | undefined;
649
632
  queryEmbeddedFile(name: string): EmbedFileQuery | undefined;
@@ -674,6 +657,7 @@ export declare namespace IModelJsNative {
674
657
  restartDefaultTxn(): void;
675
658
  restartTxnSession(): void;
676
659
  currentTxnSessionId(): number;
660
+ /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */
677
661
  resumeProfiler(): DbResult;
678
662
  reverseAll(): IModelStatus;
679
663
  reverseTo(txnId: TxnIdString): IModelStatus;
@@ -686,11 +670,14 @@ export declare namespace IModelJsNative {
686
670
  setIModelDb(iModelDb?: any): void;
687
671
  setIModelId(guid: GuidString): DbResult;
688
672
  setITwinId(guid: GuidString): DbResult;
673
+ /** @not-used-by-itwinjs-core */
689
674
  setBusyTimeout(ms: number): void;
690
675
  setCodeValueBehavior(newBehavior: "exact" | "trim-unicode-whitespace"): void;
691
676
  simplifyElementGeometry(simplifyArgs: any): IModelStatus;
692
677
  startCreateChangeset(): ChangesetFileProps;
678
+ /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */
693
679
  startProfiler(scopeName?: string, scenarioName?: string, overrideFile?: boolean, computeExecutionPlan?: boolean): DbResult;
680
+ /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */
694
681
  stopProfiler(): {
695
682
  rc: DbResult;
696
683
  elapsedTime?: number;
@@ -699,6 +686,7 @@ export declare namespace IModelJsNative {
699
686
  };
700
687
  enableChangesetStatsTracking(): void;
701
688
  disableChangesetStatsTracking(): void;
689
+ /** @not-used-by-itwinjs-core Core calls `getAllChangesetHealthData` instead. */
702
690
  getChangesetHealthData(changesetId: string): ChangesetHealthStats;
703
691
  getAllChangesetHealthData(): ChangesetHealthStats[];
704
692
  updateElement(elemProps: Partial<ElementProps>): void;
@@ -711,12 +699,13 @@ export declare namespace IModelJsNative {
711
699
  modelId: Id64String;
712
700
  }): void;
713
701
  updateElementAspect(aspectProps: ElementAspectProps): void;
714
- updateElementGeometryCache(props: object): Promise<any>;
702
+ updateElementGeometryCache(props: ElementGeometryCacheRequestProps): Promise<ElementGeometryCacheResponseProps>;
715
703
  updateIModelProps(props: IModelProps): void;
716
704
  updateLinkTableRelationship(props: RelationshipProps): DbResult;
717
705
  updateModel(modelProps: ModelProps): void;
718
706
  updateModelGeometryGuid(modelId: Id64String): IModelStatus;
719
707
  updateProjectExtents(newExtentsJson: string): void;
708
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
720
709
  writeAffectedElementDependencyGraphToFile(dotFileName: string, changedElems: Id64Array): BentleyStatus;
721
710
  writeFullElementDependencyGraphToFile(dotFileName: string): BentleyStatus;
722
711
  vacuum(arg?: {
@@ -726,6 +715,7 @@ export declare namespace IModelJsNative {
726
715
  analyze(): void;
727
716
  enableWalMode(yesNo?: boolean): void;
728
717
  performCheckpoint(mode?: WalCheckpointMode): void;
718
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
729
719
  setAutoCheckpointThreshold(frames: number): void;
730
720
  pullMergeGetStage(): "None" | "Merging" | "Rebasing";
731
721
  pullMergeRebaseReinstateTxn(): void;
@@ -742,15 +732,19 @@ export declare namespace IModelJsNative {
742
732
  resetBriefcase?: true;
743
733
  }): any;
744
734
  stashRestore(stashFile: string): void;
735
+ /** @not-used-by-itwinjs-core */
745
736
  getPendingTxnsHash(includeReversedTxns: boolean): string;
746
737
  hasPendingSchemaChanges(): boolean;
747
738
  discardLocalChanges(): void;
748
739
  getTxnProps(id: TxnIdString): TxnProps | undefined;
749
740
  setTxnMode(mode: "direct" | "indirect"): void;
750
741
  getTxnMode(): "direct" | "indirect";
742
+ /** @not-used-by-itwinjs-core */
751
743
  static enableSharedCache(enable: boolean): DbResult;
752
744
  static getAssetsDir(): string;
745
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
753
746
  static zlibCompress(data: Uint8Array): Uint8Array;
747
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
754
748
  static zlibDecompress(data: Uint8Array, actualSize: number): Uint8Array;
755
749
  static computeChangesetId(args: Partial<ChangesetFileProps> & Required<Pick<ChangesetFileProps, "parentId" | "pathname">>): string;
756
750
  }
@@ -767,20 +761,6 @@ export declare namespace IModelJsNative {
767
761
  }>;
768
762
  static getAvailableUnitNames(): string[];
769
763
  }
770
- /**
771
- * RevisionUtility help with debugging and testing
772
- * @internal
773
- */
774
- class RevisionUtility {
775
- constructor();
776
- static assembleRevision(targetFile: string, rawChangesetFile: string, prefixFile?: string, lzmaPropsJson?: string): BentleyStatus;
777
- static computeStatistics(sourceFile: string, addPrefix: boolean): string;
778
- static disassembleRevision(sourceFile: string, targetDir: string): BentleyStatus;
779
- static dumpChangesetToDb(sourceFile: string, dbFile: string, includeCols: boolean): BentleyStatus;
780
- static getUncompressSize(sourceFile: string): string;
781
- static normalizeLzmaParams(lzmaPropsJson?: string): string;
782
- static recompressRevision(sourceFile: string, targetFile: string, lzmaPropsJson?: string): BentleyStatus;
783
- }
784
764
  /**
785
765
  * The native object for SchemaUtility
786
766
  * @internal
@@ -791,20 +771,24 @@ export declare namespace IModelJsNative {
791
771
  static convertCustomAttributes(xmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];
792
772
  static convertEC2XmlSchemas(ec2XmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];
793
773
  }
794
- class ECDb implements IDisposable, IConcurrentQueryManager {
774
+ class ECDb implements IConcurrentQueryManager {
795
775
  constructor();
796
776
  abandonChanges(): DbResult;
797
777
  closeDb(): void;
798
778
  createDb(dbName: string): DbResult;
799
779
  dispose(): void;
800
780
  dropSchemas(schemaNames: ReadonlyArray<string>): void;
781
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
801
782
  schemaSyncSetDefaultUri(syncDbUri: string): void;
783
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
802
784
  schemaSyncGetDefaultUri(): string;
803
785
  schemaSyncInit(syncDbUri: string, containerId: string, overrideContainer: boolean): void;
804
786
  schemaSyncPull(syncDbUri: string | undefined): void;
805
787
  schemaSyncPush(syncDbUri: string | undefined): void;
806
788
  schemaSyncEnabled(): boolean;
789
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
807
790
  schemaSyncGetLocalDbInfo(): SchemaLocalDbInfo | undefined;
791
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
808
792
  schemaSyncGetSyncDbInfo(): SchemaSyncDbInfo | undefined;
809
793
  getFilePath(): string;
810
794
  resolveInstanceKey(args: ResolveInstanceKeyArgs): ResolveInstanceKeyResult;
@@ -819,6 +803,7 @@ export declare namespace IModelJsNative {
819
803
  saveChanges(changesetName?: string): DbResult;
820
804
  getLastError(): string;
821
805
  getLastInsertRowId(): number;
806
+ /** @not-used-by-itwinjs-core */
822
807
  static enableSharedCache(enable: boolean): DbResult;
823
808
  concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;
824
809
  concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;
@@ -827,7 +812,7 @@ export declare namespace IModelJsNative {
827
812
  detachDb(alias: string): void;
828
813
  clearECDbCache(): void;
829
814
  }
830
- class ChangedElementsECDb implements IDisposable {
815
+ class ChangedElementsECDb {
831
816
  constructor();
832
817
  dispose(): void;
833
818
  createDb(db: DgnDb, dbName: string): DbResult;
@@ -840,7 +825,7 @@ export declare namespace IModelJsNative {
840
825
  isProcessed(changesetId: string): boolean;
841
826
  cleanCaches(): void;
842
827
  }
843
- class ECSqlStatement implements IDisposable {
828
+ class ECSqlStatement {
844
829
  constructor();
845
830
  clearBindings(): DbResult;
846
831
  dispose(): void;
@@ -855,6 +840,7 @@ export declare namespace IModelJsNative {
855
840
  status: DbResult;
856
841
  id: string;
857
842
  };
843
+ /** @not-used-by-itwinjs-core */
858
844
  stepForInsertAsync(callback: (result: {
859
845
  status: DbResult;
860
846
  id: string;
@@ -887,8 +873,11 @@ export declare namespace IModelJsNative {
887
873
  getAccessString(): string;
888
874
  getPropertyName(): string;
889
875
  getOriginPropertyName(): string | undefined;
876
+ /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */
890
877
  getRootClassAlias(): string;
878
+ /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */
891
879
  getRootClassName(): string;
880
+ /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */
892
881
  getRootClassTableSpace(): string;
893
882
  getType(): number;
894
883
  isEnum(): boolean;
@@ -978,7 +967,7 @@ export declare namespace IModelJsNative {
978
967
  }
979
968
  /** Parameters for creating a new SQLiteDb */
980
969
  type SQLiteDbCreateParams = SQLiteDbOpenOrCreateParams & PageSize;
981
- class SQLiteDb implements SQLiteOps, IDisposable {
970
+ class SQLiteDb implements SQLiteOps {
982
971
  constructor();
983
972
  readonly cloudContainer?: CloudContainer;
984
973
  abandonChanges(): void;
@@ -1030,9 +1019,10 @@ export declare namespace IModelJsNative {
1030
1019
  analyze(): void;
1031
1020
  enableWalMode(yesNo?: boolean): void;
1032
1021
  performCheckpoint(mode?: WalCheckpointMode): void;
1022
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
1033
1023
  setAutoCheckpointThreshold(frames: number): void;
1034
1024
  }
1035
- class SqliteStatement implements IDisposable {
1025
+ class SqliteStatement {
1036
1026
  constructor();
1037
1027
  bindBlob(param: number | string, val: Uint8Array | ArrayBuffer | SharedArrayBuffer): DbResult;
1038
1028
  bindDouble(param: number | string, val: number): DbResult;
@@ -1067,7 +1057,9 @@ export declare namespace IModelJsNative {
1067
1057
  * @note this BlobIO *may* be reused after this call by calling `open` again.
1068
1058
  */
1069
1059
  close(): void;
1070
- /** get the total number of bytes in the blob */
1060
+ /** get the total number of bytes in the blob
1061
+ * @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there.
1062
+ */
1071
1063
  getNumBytes(): number;
1072
1064
  /** @return true if this BlobIO was successfully opened and may be use to read or write the blob */
1073
1065
  isValid(): boolean;
@@ -1097,6 +1089,7 @@ export declare namespace IModelJsNative {
1097
1089
  }): Uint8Array;
1098
1090
  /** Reposition this BlobIO to a new rowId
1099
1091
  * @note this BlobIO must be valid when this methods is called.
1092
+ * @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there.
1100
1093
  */
1101
1094
  changeRow(row: number): void;
1102
1095
  /** Write to a blob */
@@ -1146,9 +1139,11 @@ export declare namespace IModelJsNative {
1146
1139
  }
1147
1140
  /** A CloudSqlite container that may be connected to a CloudCache. */
1148
1141
  class CloudContainer {
1142
+ /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */
1149
1143
  onConnect?: (container: CloudContainer, cache: CloudCache) => void;
1150
1144
  onConnected?: (container: CloudContainer) => void;
1151
1145
  onDisconnect?: (container: CloudContainer, detach: boolean) => void;
1146
+ /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */
1152
1147
  onDisconnected?: (container: CloudContainer, detach: boolean) => void;
1153
1148
  readonly cache?: CloudCache;
1154
1149
  /** Create a new instance of a CloudContainer. It must be connected to a CloudCache for most operations. */
@@ -1289,6 +1284,7 @@ export declare namespace IModelJsNative {
1289
1284
  * Get the SHA1 hash of the content of a database.
1290
1285
  * @param dbName the name of the database of interest
1291
1286
  * @note the hash will be empty if the database does not exist
1287
+ * @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there.
1292
1288
  */
1293
1289
  queryDatabaseHash(dbName: string): string;
1294
1290
  }
@@ -1384,7 +1380,7 @@ export declare namespace IModelJsNative {
1384
1380
  workerConnectionCacheSize?: number;
1385
1381
  useMmap?: boolean | number;
1386
1382
  }
1387
- class ECPresentationManager implements IDisposable {
1383
+ class ECPresentationManager {
1388
1384
  constructor(props: ECPresentationManagerProps);
1389
1385
  forceLoadSchemas(db: DgnDb): Promise<ECPresentationManagerResponse<void>>;
1390
1386
  setupRulesetDirectories(directories: string[]): ECPresentationManagerResponse<void>;
@@ -1428,7 +1424,7 @@ export declare namespace IModelJsNative {
1428
1424
  }
1429
1425
  class SnapRequest {
1430
1426
  constructor();
1431
- doSnap(db: DgnDb, request: any): Promise<any>;
1427
+ doSnap(db: DgnDb, request: SnapRequestProps): Promise<SnapResponseProps>;
1432
1428
  cancelSnap(): void;
1433
1429
  }
1434
1430
  interface FeatureUserDataKeyValuePair {
@@ -1505,11 +1501,11 @@ export declare namespace IModelJsNative {
1505
1501
  enableStrictMode(): void;
1506
1502
  disableStrictMode(): void;
1507
1503
  }
1508
- class DisableNativeAssertions implements IDisposable {
1504
+ class DisableNativeAssertions {
1509
1505
  constructor();
1510
1506
  dispose(): void;
1511
1507
  }
1512
- class ImportContext implements IDisposable {
1508
+ class ImportContext {
1513
1509
  constructor(sourceDb: DgnDb, targetDb: DgnDb);
1514
1510
  dispose(): void;
1515
1511
  dump(outputFileName: string): BentleyStatus;
@@ -1551,6 +1547,7 @@ export declare namespace IModelJsNative {
1551
1547
  */
1552
1548
  class NativeDevTools {
1553
1549
  static signal(signalType: number): boolean;
1550
+ /** @not-used-by-itwinjs-core Covered only by this package's own tests. */
1554
1551
  static emitLogs(count: number, category: string, severity: LogLevel, thread: "main" | "worker", onDone: () => void): void;
1555
1552
  }
1556
1553
  /**
@@ -1562,12 +1559,14 @@ export declare namespace IModelJsNative {
1562
1559
  * @param name Name to be encoded
1563
1560
  * @returns Encoded name
1564
1561
  * @param name
1562
+ * @not-used-by-itwinjs-core
1565
1563
  */
1566
1564
  static encodeToValidName(name: string): string;
1567
1565
  /**
1568
1566
  * Decodes names that were encoded to comply with EC naming rules
1569
1567
  * @param encodedName Encoded name
1570
1568
  * @returns Decoded name
1569
+ * @not-used-by-itwinjs-core
1571
1570
  */
1572
1571
  static decodeFromValidName(encodedName: string): string;
1573
1572
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NativeLibrary.d.ts","sourceRoot":"","sources":["../src/NativeLibrary.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;;GAGG;AAEH,OAAO,KAAK,EACV,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EACpH,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,mBAAmB,EAAE,SAAS,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,SAAS,EAAE,UAAU,EAAE,kBAAkB,EAC/H,4BA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BACtC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,wBAAwB,SAAS,IAAI,EAAE,SAAS,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AA5DD,sCA4DC","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\n\r\nimport * as os from \"node:os\";\r\nimport * as path from \"node:path\";\r\n\r\nimport type { NativeCloudSqlite } from \"./NativeCloudSqlite\";\r\n\r\n/**\r\n * @note This package may only have **dev** dependencies on @itwin packages, so they are *not* available at runtime. Therefore we can only import **types** from them.\r\n * @note You cannot use mapped types @href https://www.typescriptlang.org/docs/handbook/2/mapped-types.html from itwin imports here due to how they are resolved downstream\r\n */\r\n\r\nimport type {\r\n BentleyStatus, DbOpcode, DbResult, GuidString, Id64Array, Id64String, IDisposable, IModelStatus, LogLevel, OpenMode\r\n} from \"@itwin/core-bentley\";\r\nimport type {\r\n ChangesetIndexAndId, CodeProps, CodeSpecProperties, CreateEmptyStandaloneIModelProps, DbRequest, DbResponse, ElementAspectProps,\r\n ElementGeometryBuilderParams,\r\n ElementGeometryBuilderParamsForPart,\r\n ElementGraphicsRequestProps, ElementLoadOptions, ElementLoadProps, ElementMeshRequestProps, ElementProps,\r\n FilePropertyProps, FontId, FontProps, GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, GeographicCRSInterpretRequestProps,\r\n GeographicCRSInterpretResponseProps, GeometryContainmentResponseProps, GeometryStreamProps, ImageBuffer, ImageBufferFormat, ImageSourceFormat, IModelCoordinatesRequestProps,\r\n IModelCoordinatesResponseProps, IModelProps, LocalDirName, LocalFileName, MassPropertiesResponseProps, ModelLoadProps,\r\n ModelProps, PlacementProps, QueryQuota, RelationshipProps, SnapshotOpenOptions, TextureData, TextureLoadProps, TileVersionInfo, UpgradeOptions\r\n} from \"@itwin/core-common\";\r\nimport type { LowAndHighXYZProps, Range2dProps, Range3dProps } from \"@itwin/core-geometry\";\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n/* eslint-disable no-restricted-syntax */\r\n/* eslint-disable @itwin/prefer-get */\r\n\r\n// cspell:ignore blocksize cachesize polltime bentleyjs imodeljs ecsql pollable polyface txns lzma uncompress changesets ruleset ulas oidc keychain libsecret rulesets struct\r\n\r\n/**\r\n * Status codes returned by the native bulk-delete operation.\r\n * @internal\r\n */\r\nexport enum BulkDeleteElementsStatus {\r\n Success = 0,\r\n PartialSuccess = 1,\r\n DeletionFailed = 2,\r\n}\r\n\r\n/**\r\n * Result of the bulk element deletion operation.\r\n * @internal\r\n */\r\nexport interface BulkDeleteElementsResult {\r\n status: BulkDeleteElementsStatus;\r\n sqlDeleteStatus: DbResult;\r\n failedIds: Id64Array;\r\n}\r\n\r\n/** Logger categories used by the native addon\r\n * @internal\r\n */\r\nexport const NativeLoggerCategory = {\r\n BeSQLite: \"BeSQLite\",\r\n BRepCore: \"BRepCore\",\r\n Changeset: \"Changeset\",\r\n CloudSqlite: \"CloudSqlite\",\r\n DgnCore: \"DgnCore\",\r\n ECDb: \"ECDb\",\r\n ECObjectsNative: \"ECObjectsNative\",\r\n SQLite: \"SQLite\",\r\n UnitsNative: \"UnitsNative\",\r\n} as const;\r\n\r\n/** @internal */\r\nexport interface NativeLogger {\r\n readonly minLevel: LogLevel | undefined;\r\n readonly categoryFilter: Readonly<{ [categoryName: string]: LogLevel | undefined }>;\r\n logTrace: (category: string, message: string) => void;\r\n logInfo: (category: string, message: string) => void;\r\n logWarning: (category: string, message: string) => void;\r\n logError: (category: string, message: string) => void;\r\n}\r\n\r\n/** Find and load the native node-addon library */\r\nexport class NativeLibrary {\r\n public static get archName() {\r\n // We make sure we are running in a known platform.\r\n if (typeof process === \"undefined\" || process.platform === undefined || process.arch === undefined)\r\n throw new Error(\"Error - unknown process\");\r\n return `imodeljs-${process.platform}-${process.arch}`;\r\n }\r\n public static get nodeAddonName() { return \"imodeljs.node\"; }\r\n public static get defaultLocalDir(): string {\r\n const homedir = os.homedir();\r\n const platform = os.platform() as NodeJS.Platform | \"ios\"; // we add \"ios\"\r\n switch (platform) {\r\n case \"win32\":\r\n return path.join(homedir, \"AppData\", \"Local\");\r\n case \"darwin\":\r\n case \"ios\":\r\n return path.join(homedir, \"Library\", \"Caches\");\r\n case \"linux\":\r\n case \"android\":\r\n return path.join(homedir, \".cache\");\r\n default:\r\n throw new Error(\"Error - unknown platform\");\r\n }\r\n }\r\n\r\n // This returns true if you used `linkNativePlatform.bat` to install your local addon build.\r\n public static get isDevBuild(): boolean {\r\n try {\r\n require.resolve(\"./devbuild.json\");\r\n return true;\r\n } catch {\r\n return false;\r\n }\r\n }\r\n\r\n public static get defaultCacheDir(): string { return path.join(this.defaultLocalDir, \"iModelJs\"); }\r\n private static _nativeLib?: typeof IModelJsNative;\r\n public static get nativeLib() { return this.load(); }\r\n public static load() {\r\n if (!this._nativeLib) {\r\n try {\r\n const platform = os.platform() as NodeJS.Platform | \"ios\"; // we add \"ios\"\r\n if (platform === \"ios\" || platform === \"android\") {\r\n this._nativeLib = (process as any)._linkedBinding(\"iModelJsNative\") as typeof IModelJsNative;\r\n } else {\r\n this._nativeLib =\r\n require(`./${NativeLibrary.archName}/${NativeLibrary.nodeAddonName}`) as typeof IModelJsNative; // eslint-disable-line @typescript-eslint/no-require-imports\r\n }\r\n } catch (err: any) {\r\n err.message += \"\\nThis error may occur when trying to run an iTwin.js backend without\"\r\n + \" having installed the prerequisites. See the following link for all prerequisites:\"\r\n + \"\\nhttps://www.itwinjs.org/learning/supportedplatforms/#backend-prerequisites\";\r\n throw err;\r\n }\r\n if (this.isDevBuild)\r\n // eslint-disable-next-line no-console\r\n console.log(\"\\x1b[36m\", `using dev build from ${__dirname}\\n`, \"\\x1b[0m\");\r\n }\r\n return this._nativeLib;\r\n }\r\n}\r\n\r\n/** WAL checkpoint mode\r\n * @internal\r\n */\r\nexport const enum WalCheckpointMode {\r\n Passive = 0, /* Do as much as possible w/o blocking */\r\n Full = 1, /* Wait for writers, then checkpoint */\r\n Restart = 2, /* Like FULL but wait for for readers */\r\n Truncate = 3, /* Like RESTART but also truncate WAL */\r\n}\r\n\r\n/** Possible outcomes of generateElementGraphics.\r\n* Must be kept in sync with Dgn::Tile::Graphics::TileGraphicsStatus.\r\n* @internal\r\n*/\r\nexport const enum ElementGraphicsStatus {\r\n Success = 0, // Non-null content as Uint8Array.\r\n Canceled = 1, // e.g., front-end explicitly canceled, iModel was closed while processing request, etc.\r\n NoGeometry = 2, // Not an error per se\r\n InvalidJson = 3,\r\n UnknownMajorFormatVersion = 4,\r\n ElementNotFound = 5,\r\n DuplicateRequestId = 6,\r\n}\r\n\r\n/** Possible outcomes of exportSchema[s] (and generally writing schemas)\r\n* Must be kept in sync with ECN::SchemaWriteStatus\r\n* @internal\r\n*/\r\nexport const enum SchemaWriteStatus {\r\n Success = 0,\r\n FailedToSaveXml = 1,\r\n FailedToCreateXml = 2,\r\n FailedToCreateJson = 3,\r\n FailedToWriteFile = 4,\r\n}\r\n\r\n/** Module that declares the IModelJs native code.\r\n * @internal\r\n */\r\nexport declare namespace IModelJsNative {\r\n interface NameValuePair {\r\n name: string;\r\n value: string;\r\n }\r\n\r\n /** any type of Db that supports EC */\r\n type AnyECDb = DgnDb | ECDb;\r\n /** any type of Db */\r\n type AnyDb = AnyECDb | SQLiteDb;\r\n\r\n /** A string that identifies a Txn. */\r\n type TxnIdString = string;\r\n\r\n interface NativeCrashReportingConfig {\r\n /** The directory to which *.dmp and/or iModelJsNativeCrash*.properties.txt files are written. */\r\n crashDir: string;\r\n /** Write .dmp files to crashDir? The default is false. Even if writeDumpsToCrashDir is false, the iModelJsNativeCrash*.properties.txt file will be written to crashDir. */\r\n enableCrashDumps?: boolean;\r\n /** max # .dmp files that may exist in crashDir */\r\n maxDumpsInDir?: number;\r\n /** If writeDumpsToCrashDir is true, do you want a full-memory dump? Defaults to false. */\r\n wantFullMemory?: boolean;\r\n /** Additional name, value pairs to add as meta data to a crash report. */\r\n params?: NameValuePair[];\r\n }\r\n\r\n let logger: NativeLogger;\r\n function setMaxTileCacheSize(maxBytes: number): void;\r\n function getTileVersionInfo(): TileVersionInfo;\r\n function setCrashReporting(cfg: NativeCrashReportingConfig): void;\r\n function setCrashReportProperty(name: string, value: string | undefined): void;\r\n function getCrashReportProperties(): NameValuePair[];\r\n function clearLogLevelCache(): void;\r\n function addFontWorkspace(fileName: LocalFileName, container?: CloudContainer): boolean;\r\n function addGcsWorkspaceDb(dbNames: string, container?: CloudContainer, priority?: number): boolean;\r\n function enableLocalGcsFiles(yesNo: boolean): void;\r\n /** Enable or disable the monotone-clock SQLite VFS shim. When enabled, every call\r\n * to SQLite's time functions returns a strictly increasing value, preventing test\r\n * failures caused by the millisecond-resolution system clock returning identical\r\n * timestamps for rapid successive operations. Call with `false` to restore the\r\n * original default VFS. Must be called after the native library is initialized.\r\n */\r\n function enableMonotoneClock(enable: boolean): void;\r\n function queryConcurrency(pool: \"io\" | \"cpu\"): number;\r\n\r\n interface TrueTypeFontMetadata {\r\n faces: FontFaceProps[];\r\n embeddable: boolean;\r\n }\r\n\r\n function getTrueTypeFontMetadata(fileName: LocalFileName): TrueTypeFontMetadata;\r\n function isRscFontData(blob: Uint8Array): boolean;\r\n\r\n function imageBufferFromImageSource(\r\n sourceFormat: ImageSourceFormat.Png | ImageSourceFormat.Jpeg,\r\n sourceData: Uint8Array,\r\n targetFormat: ImageBufferFormat.Rgb | ImageBufferFormat.Rgba | 255,\r\n flipVertically: boolean\r\n ): Pick<ImageBuffer, \"data\" | \"format\" | \"width\"> | undefined;\r\n\r\n function imageSourceFromImageBuffer(\r\n imageFormat: ImageBufferFormat.Rgb | ImageBufferFormat.Rgba,\r\n imageData: Uint8Array,\r\n imageWidth: number,\r\n imageHeight: number,\r\n targetFormat: ImageSourceFormat.Png | ImageSourceFormat.Jpeg | 255,\r\n flipVertically: boolean,\r\n jpegQuality: number\r\n ): { format: ImageSourceFormat.Jpeg | ImageSourceFormat.Png, data: Uint8Array } | undefined;\r\n\r\n /** Get the SHA1 hash of a Schema XML file, possibly including its referenced Schemas */\r\n function computeSchemaChecksum(arg: {\r\n /** the full path to the root schema XML file */\r\n schemaXmlPath: string;\r\n /** A list of directories to find referenced schemas */\r\n referencePaths: string[];\r\n /** If true, the returned SHA1 includes the hash of all referenced schemas */\r\n exactMatch?: boolean;\r\n }): string;\r\n\r\n /** When you want to associate an explanatory message with an error status value. */\r\n interface StatusCodeWithMessage<ErrorCodeType> {\r\n status: ErrorCodeType;\r\n message: string;\r\n }\r\n\r\n /** The return type of synchronous functions that may return an error or a successful result. */\r\n type ErrorStatusOrResult<ErrorCodeType, ResultType> = {\r\n /** Error from the operation. This property is defined if and only if the operation failed. */\r\n error: StatusCodeWithMessage<ErrorCodeType>;\r\n result?: never;\r\n } | {\r\n error?: never;\r\n /** Result of the operation. This property is defined if the operation completed successfully */\r\n result: ResultType;\r\n };\r\n\r\n namespace ConcurrentQuery {\r\n /**\r\n * @internal\r\n */\r\n type OnResponse = (response: DbResponse) => void;\r\n /** Configuration for concurrent query manager\r\n * @internal\r\n */\r\n }\r\n interface IConcurrentQueryManager {\r\n concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;\r\n concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;\r\n concurrentQueryShutdown(): void;\r\n }\r\n\r\n /** Concurrent query config which should be set before making first call to concurrent query manager.\r\n * @internal\r\n */\r\n export interface QueryConfig {\r\n globalQuota?: QueryQuota;\r\n ignoreDelay?: boolean;\r\n ignorePriority?: boolean;\r\n requestQueueSize?: number;\r\n workerThreads?: number;\r\n }\r\n\r\n interface TileContent {\r\n content: Uint8Array;\r\n elapsedSeconds: number;\r\n }\r\n /** Represents the current state of a pollable tile content request.\r\n * Note: lack of a \"completed\" state because polling a completed request returns the content as a Uint8Array.\r\n * @internal\r\n */\r\n const enum TileContentState {\r\n New = 0, // Request was just created and enqueued.\r\n Pending = 1, // Request is enqueued but not yet being processed.\r\n Loading = 2, // Request is being actively processed.\r\n }\r\n\r\n /** Result of generateElementGraphics conveying graphics as Uint8Array.\r\n * @internal\r\n */\r\n export interface ElementGraphicsContent {\r\n status: ElementGraphicsStatus.Success;\r\n content: Uint8Array;\r\n }\r\n\r\n /** Result of generateElementGraphics that produced no graphics.\r\n * @internal\r\n */\r\n export interface ElementGraphicsError {\r\n status: Exclude<ElementGraphicsStatus, ElementGraphicsStatus.Success>;\r\n }\r\n\r\n /** The result of generateElementGraphics.\r\n * @note generateElementGraphics produces a Promise<ElementGraphicsResult>. It only ever rejects if some unforeseen error like \"iModel not open\" or \"type error\" occurs.\r\n * @internal\r\n */\r\n export type ElementGraphicsResult = ElementGraphicsContent | ElementGraphicsError;\r\n\r\n /** Instance key for a change\r\n * @internal\r\n */\r\n export interface ChangeInstanceKey {\r\n id: Id64String;\r\n classFullName: string;\r\n changeType: \"inserted\" | \"updated\" | \"deleted\";\r\n }\r\n\r\n /** Information returned by DgnDb.queryDefinitionElementUsage. */\r\n interface DefinitionElementUsageInfo {\r\n /** The subset of input Ids that are SpatialCategory definitions. */\r\n spatialCategoryIds?: Id64String[];\r\n /** The subset of input Ids that are DrawingCategory definitions. */\r\n drawingCategoryIds?: Id64String[];\r\n /** The subset of input Ids that are SubCategory definitions. */\r\n subCategoryIds?: Id64String[];\r\n /** The subset of input Ids that are CategorySelectors. */\r\n categorySelectorIds?: Id64String[];\r\n /** The subset of input Ids that are ModelSelectors. */\r\n modelSelectorIds?: Id64String[];\r\n /** The subset of input Ids that are DisplayStyles. */\r\n displayStyleIds?: Id64String[];\r\n /** The subset of input Ids that are ViewDefinitions. */\r\n viewDefinitionIds?: Id64String[];\r\n /** The subset of input Ids that are GeometryParts. */\r\n geometryPartIds?: Id64String[];\r\n /** The subset of input Ids that are RenderMaterials. */\r\n renderMaterialIds?: Id64String[];\r\n /** The subset of input Ids that are LineStyles. */\r\n lineStyleIds?: Id64String[];\r\n /** The subset of input Ids that are Textures. */\r\n textureIds?: Id64String[];\r\n /** Ids of *other* input DefinitionElements that were not checked for usage. */\r\n otherDefinitionElementIds?: Id64String[];\r\n /** Ids of input DefinitionElements where usage was detected. */\r\n usedIds?: Id64String[];\r\n }\r\n\r\n /**\r\n * Represents all of the valid EC Specification Versions.\r\n */\r\n const enum ECVersion {\r\n V2_0 = (0x02 << 16),\r\n V3_1 = (0x03 << 16 | 0x01),\r\n V3_2 = (0x03 << 16 | 0x02),\r\n Latest = V3_2,\r\n }\r\n\r\n interface ChangesetFileProps {\r\n index: number;\r\n id: string;\r\n parentId: string;\r\n changesType: number;\r\n description: string;\r\n briefcaseId: number;\r\n pushDate: string;\r\n userCreated: string;\r\n size?: number;\r\n pathname: string;\r\n }\r\n\r\n interface PerStatementHealthStats {\r\n sqlStatement: string;\r\n dbOperation: string;\r\n rowCount: number;\r\n elapsedMs: number;\r\n fullTableScans: number;\r\n }\r\n interface ChangesetHealthStats {\r\n changesetId: string;\r\n uncompressedSizeBytes: number;\r\n sha1ValidationTimeMs: number;\r\n insertedRows: number;\r\n updatedRows: number;\r\n deletedRows: number;\r\n totalElapsedMs: number;\r\n totalFullTableScans: number;\r\n perStatementStats: [PerStatementHealthStats];\r\n }\r\n interface ECSqlRowAdaptorOptions {\r\n abbreviateBlobs?: boolean;\r\n classIdsToClassNames?: boolean;\r\n useJsName?: boolean;\r\n doNotConvertClassIdsToClassNamesWhenAliased?: boolean; // backward compatibility\r\n }\r\n\r\n interface EmbeddedFileProps {\r\n name: string;\r\n localFileName: string;\r\n }\r\n\r\n interface EmbedFileArg extends EmbeddedFileProps {\r\n date: number;\r\n fileExt?: string;\r\n compress?: boolean;\r\n }\r\n\r\n interface EmbedFileQuery {\r\n size: number;\r\n date: number;\r\n fileExt: string;\r\n }\r\n\r\n interface FontEncodingProps {\r\n codePage?: number;\r\n degree?: number;\r\n plusMinus?: number;\r\n diameter?: number;\r\n }\r\n\r\n interface ResolveInstanceKeyArgs {\r\n partialKey?: { id: Id64String, baseClassName: string };\r\n federationGuid?: GuidString;\r\n code?: CodeProps;\r\n }\r\n\r\n interface ResolveInstanceKeyResult {\r\n id: Id64String;\r\n classFullName: string;\r\n }\r\n\r\n enum FontType { TrueType = 1, Rsc = 2, Shx = 3 }\r\n\r\n interface FontFaceProps {\r\n faceName: \"regular\" | \"italic\" | \"bold\" | \"bolditalic\";\r\n familyName: string;\r\n type: FontType;\r\n subId?: number;\r\n encoding?: FontEncodingProps;\r\n }\r\n\r\n interface SQLiteOps {\r\n embedFile(arg: EmbedFileArg): void;\r\n embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;\r\n extractEmbeddedFile(arg: EmbeddedFileProps): void;\r\n getFilePath(): string;\r\n getLastInsertRowId(): number;\r\n getLastError(): string;\r\n isOpen(): boolean;\r\n isReadonly(): boolean;\r\n queryEmbeddedFile(name: string): EmbedFileQuery | undefined;\r\n queryFileProperty(props: FilePropertyProps, wantString: boolean): string | Uint8Array | undefined;\r\n queryNextAvailableFileProperty(props: FilePropertyProps): number;\r\n removeEmbeddedFile(name: string): void;\r\n replaceEmbeddedFile(arg: EmbedFileArg): void;\r\n restartDefaultTxn(): void;\r\n saveChanges(): void;\r\n saveFileProperty(props: FilePropertyProps, strValue: string | undefined, blobVal: Uint8Array | undefined): void;\r\n vacuum(arg?: { pageSize?: number, into?: LocalFileName }): void;\r\n analyze(): void;\r\n enableWalMode(yesNo?: boolean): void;\r\n /** perform a checkpoint if this db is in WAL mode. Otherwise this function does nothing.\r\n * @param mode the checkpoint mode. Default is `Truncate`.\r\n */\r\n performCheckpoint(mode?: WalCheckpointMode): void;\r\n setAutoCheckpointThreshold(frames: number): void;\r\n }\r\n\r\n /** The result of DgnDb.inlineGeometryParts.\r\n * If numSingleRefParts, numRefsInlined, and numPartsDeleted are all the same, the operation was fully successful.\r\n * Otherwise, some errors occurred inlining and/or deleting one or more parts.\r\n * A part will not be deleted unless it is first successfully inlined.\r\n */\r\n interface InlineGeometryPartsResult {\r\n /** The number of parts that were determined to have exactly one reference, making them candidates for inlining. */\r\n numCandidateParts: number;\r\n /** The number of part references successfully inlined. */\r\n numRefsInlined: number;\r\n /** The number of candidate parts that were successfully deleted after inlining. */\r\n numPartsDeleted: number;\r\n }\r\n\r\n interface SchemaReferenceProps {\r\n readonly name: string;\r\n readonly version: string;\r\n }\r\n\r\n interface SchemaItemProps {\r\n readonly $schema?: string;\r\n readonly schema?: string; // conditionally required\r\n readonly schemaVersion?: string;\r\n readonly name?: string;\r\n readonly schemaItemType?: string;\r\n readonly label?: string;\r\n readonly description?: string;\r\n readonly customAttributes?: Array<{ [value: string]: any }>;\r\n }\r\n\r\n interface SchemaProps {\r\n readonly $schema: string;\r\n readonly name: string;\r\n readonly version: string;\r\n readonly alias: string;\r\n readonly label?: string;\r\n readonly description?: string;\r\n readonly references?: SchemaReferenceProps[];\r\n readonly items?: { [name: string]: SchemaItemProps };\r\n readonly customAttributes?: Array<{ [value: string]: any }>;\r\n }\r\n\r\n interface SchemaImportOptions {\r\n readonly schemaLockHeld?: boolean;\r\n readonly skipSaveChanges?: boolean;\r\n readonly schemaSyncDbUri?: string;\r\n readonly ecSchemaXmlContext?: ECSchemaXmlContext;\r\n }\r\n\r\n interface SchemaLocalDbInfo {\r\n readonly id: string;\r\n readonly dataVer: string;\r\n readonly lastModUtc: string;\r\n }\r\n\r\n interface SchemaSyncDbInfo extends SchemaLocalDbInfo {\r\n readonly projectId: string;\r\n readonly parentChangesetId: string;\r\n readonly parentChangesetIndex?: string;\r\n }\r\n\r\n export interface TxnProps {\r\n id: TxnIdString;\r\n sessionId: number;\r\n nextId?: TxnIdString;\r\n prevId?: TxnIdString;\r\n props: { description?: string; source?: string, appData: { [key: string]: any } };\r\n type: \"Data\" | \"ECSchema\" | \"Ddl\";\r\n reversed: boolean;\r\n grouped: boolean;\r\n timestamp: string; // ISO 8601 format\r\n }\r\n\r\n type GeometryOutputFormat = \"BinaryStream\" | \"GeometryStreamProps\";\r\n interface IGeometrySource {\r\n geom?: Uint8Array | GeometryStreamProps;\r\n builder?: ElementGeometryBuilderParams;\r\n placement?: PlacementProps;\r\n categoryId?: Id64String;\r\n is2d: boolean;\r\n }\r\n\r\n\r\n interface IGeometryPart {\r\n geom?: Uint8Array | GeometryStreamProps;\r\n builder?: ElementGeometryBuilderParamsForPart;\r\n is2d: boolean;\r\n bbox?: LowAndHighXYZProps;\r\n }\r\n\r\n\r\n\r\n\r\n // ###TODO import from core-common\r\n interface ModelExtentsResponseProps {\r\n id: Id64String;\r\n extents: Range3dProps;\r\n status: IModelStatus;\r\n }\r\n\r\n interface TextLayoutRangesProps {\r\n layout: Range2dProps;\r\n justification: Range2dProps;\r\n }\r\n\r\n enum TextEmphasis { None = 0, Bold = 1, Italic = 2, BoldItalic = Bold | Italic }\r\n\r\n type NoCaseCollation = \"ASCII\" | \"Latin1\";\r\n\r\n /** The native object for a Briefcase. */\r\n class DgnDb implements IConcurrentQueryManager, SQLiteOps {\r\n constructor();\r\n public readonly cloudContainer?: CloudContainer;\r\n public attachDb(filename: string, alias: string): void;\r\n public detachDb(alias: string): void;\r\n public getNoCaseCollation(): NoCaseCollation;\r\n public setNoCaseCollation(collation: NoCaseCollation): void;\r\n public schemaSyncSetDefaultUri(syncDbUri: string): void;\r\n public schemaSyncGetDefaultUri(): string;\r\n public schemaSyncInit(syncDbUri: string, containerId: string, overrideContainer: boolean): void;\r\n public schemaSyncPull(syncDbUri?: string): void;\r\n public schemaSyncPush(syncDbUri?: string): void;\r\n public schemaSyncEnabled(): boolean;\r\n public schemaSyncGetLocalDbInfo(): SchemaLocalDbInfo | undefined;\r\n public schemaSyncGetSyncDbInfo(syncDbUri: string): SchemaSyncDbInfo | undefined;\r\n public abandonChanges(): DbResult;\r\n public abandonCreateChangeset(): void;\r\n public addChildPropagatesChangesToParentRelationship(schemaName: string, relClassName: string): BentleyStatus;\r\n public invalidateFontMap(): void;\r\n public applyChangeset(changeSet: ChangesetFileProps, fastForward: boolean, noUpdateLoop?: boolean): void;\r\n public revertTimelineChanges(changeSet: ChangesetFileProps[], skipSchemaChanges: boolean): void;\r\n public attachChangeCache(changeCachePath: string): DbResult;\r\n public beginMultiTxnOperation(): DbResult;\r\n public beginPurgeOperation(): IModelStatus;\r\n public cancelElementGraphicsRequests(requestIds: string[]): void;\r\n public cancelTileContentRequests(treeId: string, contentIds: string[]): void;\r\n public cancelTo(txnId: TxnIdString): IModelStatus;\r\n public classIdToName(idString: string): string | undefined;\r\n public classNameToId(className: string): Id64String;\r\n public closeFile(): void;\r\n public completeCreateChangeset(arg: { index: number }): void;\r\n public computeProjectExtents(wantFullExtents: boolean, wantOutlierIds: boolean): { extents: Range3dProps, fullExtents?: Range3dProps, outliers?: Id64Array };\r\n public computeRangesForText(chars: string, fontId: FontId, bold: boolean, italic: boolean, widthFactor: number, height: number): TextLayoutRangesProps;\r\n public concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;\r\n public concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;\r\n public concurrentQueryShutdown(): void;\r\n public createBRepGeometry(createProps: any/* BRepGeometryCreate */): IModelStatus;\r\n public createChangeCache(changeCacheFile: ECDb, changeCachePath: string): DbResult;\r\n public createClassViewsInDb(): BentleyStatus;\r\n public createIModel(fileName: string, props: CreateEmptyStandaloneIModelProps): void;\r\n public deleteAllTxns(): void;\r\n public deleteElement(elemIdJson: string): void;\r\n public deleteElements(elementIds: Id64Array, deleteOptions?: { skipFKConstraintValidations?: boolean }): BulkDeleteElementsResult;\r\n public deleteElementAspect(aspectIdJson: string): void;\r\n public deleteLinkTableRelationship(props: RelationshipProps): DbResult;\r\n public deleteLinkTableRelationships(props: ReadonlyArray<RelationshipProps>): DbResult;\r\n public deleteLocalValue(name: string): void;\r\n public deleteModel(modelIdJson: string): void;\r\n public detachChangeCache(): number;\r\n public dropSchemas(schemaNames: ReadonlyArray<string>): void;\r\n public dumpChangeset(changeSet: ChangesetFileProps): void;\r\n public elementGeometryCacheOperation(requestProps: any/* ElementGeometryCacheOperationRequestProps */): BentleyStatus;\r\n public embedFile(arg: EmbedFileArg): void;\r\n public embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;\r\n public enableChangesetSizeStats(enabled: boolean): DbResult;\r\n public enableTxnTesting(): void;\r\n public endMultiTxnOperation(): DbResult;\r\n public endPurgeOperation(): IModelStatus;\r\n public executeTest(testName: string, params: string): string;\r\n public exportGraphics(exportProps: any/* ExportGraphicsProps */): DbResult;\r\n public exportPartGraphics(exportProps: any/* ExportPartGraphicsProps */): DbResult;\r\n public exportGraphicsAsync(exportProps: any/* ExportGraphicsProps */): Promise<void>;\r\n public exportPartGraphicsAsync(exportProps: any/* ExportPartGraphicsProps */): Promise<void>;\r\n public exportSchema(schemaName: string, exportDirectory: string, outFileName?: string): SchemaWriteStatus;\r\n public exportSchemas(exportDirectory: string): SchemaWriteStatus;\r\n public extractChangedInstanceIdsFromChangeSets(changeSetFileNames: string[]): ErrorStatusOrResult<IModelStatus, ChangedInstanceIdsProps>;\r\n public extractChangeSummary(changeCacheFile: ECDb, changesetFilePath: string): ErrorStatusOrResult<DbResult, string>;\r\n public extractEmbeddedFile(arg: EmbeddedFileProps): void;\r\n public findGeometryPartReferences(partIds: Id64String[], is2d: boolean): Id64String[];\r\n public generateElementGraphics(request: ElementGraphicsRequestProps): Promise<ElementGraphicsResult>;\r\n public generateElementMeshes(request: ElementMeshRequestProps): Promise<Uint8Array>;\r\n public getBriefcaseId(): number;\r\n public getChangesetSize(): number;\r\n public getChangeTrackingMemoryUsed(): number;\r\n public getCodeValueBehavior(): \"exact\" | \"trim-unicode-whitespace\";\r\n public getCurrentChangeset(): ChangesetIndexAndId;\r\n public getCurrentTxnId(): TxnIdString;\r\n public getECClassMetaData(schema: string, className: string): ErrorStatusOrResult<IModelStatus, string>;\r\n public getElement(opts: ElementLoadProps): ElementProps;\r\n public executeSql(sql: string): DbResult;\r\n public getFilePath(): string; // full path of the DgnDb file\r\n public getGeoCoordinatesFromIModelCoordinates(points: GeoCoordinatesRequestProps): GeoCoordinatesResponseProps;\r\n public getGeometryContainment(props: object): Promise<GeometryContainmentResponseProps>;\r\n public getIModelCoordinatesFromGeoCoordinates(points: IModelCoordinatesRequestProps): IModelCoordinatesResponseProps;\r\n public getIModelId(): GuidString;\r\n public getIModelProps(when?: \"pullMerge\"): IModelProps;\r\n public resolveInstanceKey(args: ResolveInstanceKeyArgs): ResolveInstanceKeyResult;\r\n public readInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): NodeJS.Dict<any>;\r\n public insertInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): Id64String;\r\n public updateInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public deleteInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public patchJsonProperties(jsonProps: string): string;\r\n public newBeGuid(): GuidString;\r\n\r\n public clearECDbCache(): void;\r\n\r\n public convertOrUpdateGeometrySource(arg: IGeometrySource, outFmt: GeometryOutputFormat, opts: ElementLoadOptions): IGeometrySource;\r\n public convertOrUpdateGeometryPart(arg: IGeometryPart, outFmt: GeometryOutputFormat, opts: ElementLoadOptions): IGeometryPart;\r\n\r\n // when lets getIModelProps know that the extents may have been updated as the result of a pullChanges and should be read directly from the iModel as opposed to the cached extents.\r\n public getITwinId(): GuidString;\r\n public getLastError(): string;\r\n public getLastInsertRowId(): number;\r\n public getLocalChanges(rootClassFilter: string[], includeInMemoryChanges: boolean): ChangeInstanceKey[]\r\n public getMassProperties(props: object): Promise<MassPropertiesResponseProps>;\r\n public getModel(opts: ModelLoadProps): ModelProps;\r\n public getMultiTxnOperationDepth(): number;\r\n public getRedoString(): string;\r\n public getSchemaProps(name: string): SchemaProps;\r\n public getSchemaPropsAsync(name: string): Promise<SchemaProps>;\r\n public getSchemaItem(schemaName: string, itemName: string): ErrorStatusOrResult<IModelStatus, string>;\r\n public getTempFileBaseName(): string;\r\n public getTileContent(treeId: string, tileId: string, callback: (result: ErrorStatusOrResult<IModelStatus, Uint8Array>) => void): void;\r\n public getTileTree(id: string, callback: (result: ErrorStatusOrResult<IModelStatus, any>) => void): void;\r\n public getTxnDescription(txnId: TxnIdString): string;\r\n public getUndoString(): string;\r\n public hasFatalTxnError(): boolean;\r\n public hasPendingTxns(): boolean;\r\n public hasUnsavedChanges(): boolean;\r\n public importFunctionalSchema(): DbResult;\r\n public importSchemasDuringSemanticRebase(schemaFileNames: string[], options?: SchemaImportOptions): void;\r\n public importSchemas(schemaFileNames: string[], options?: SchemaImportOptions): DbResult;\r\n public importXmlSchemas(serializedXmlSchemas: string[], options?: SchemaImportOptions): DbResult;\r\n public inBulkOperation(): boolean;\r\n public inlineGeometryPartReferences(): InlineGeometryPartsResult;\r\n public insertCodeSpec(name: string, jsonProperties: CodeSpecProperties): Id64String;\r\n public insertElement(elemProps: ElementProps, options?: { forceUseId?: boolean }): Id64String;\r\n public insertElementAspect(aspectProps: ElementAspectProps): Id64String;\r\n public insertLinkTableRelationship(props: RelationshipProps): Id64String;\r\n public insertModel(modelProps: ModelProps): Id64String;\r\n public isChangeCacheAttached(): boolean;\r\n public isGeometricModelTrackingSupported(): boolean;\r\n public isLinkTableRelationship(classFullName: string): boolean | undefined;\r\n public isOpen(): boolean;\r\n public isProfilerPaused(): boolean;\r\n public isProfilerRunning(): boolean;\r\n public isReadonly(): boolean;\r\n public isRedoPossible(): boolean;\r\n public isSubClassOf(childClassFullName: string, parentClassFullName: string): boolean;\r\n public isTxnIdValid(txnId: TxnIdString): boolean;\r\n public isUndoPossible(): boolean;\r\n public logTxnError(fatal: boolean): void;\r\n public openIModel(dbName: string, mode: OpenMode, upgradeOptions?: UpgradeOptions & SchemaImportOptions, props?: SnapshotOpenOptions, container?: CloudContainer, sqliteOptions?: { busyTimeout?: number }): void;\r\n public pauseProfiler(): DbResult;\r\n public pollTileContent(treeId: string, tileId: string): ErrorStatusOrResult<IModelStatus, TileContentState | TileContent>;\r\n public processGeometryStream(requestProps: any/* ElementGeometryOptions */): IModelStatus;\r\n public purgeTileTrees(modelIds: Id64Array | undefined): void;\r\n public queryDefinitionElementUsage(definitionElementIds: Id64Array): DefinitionElementUsageInfo | undefined;\r\n public queryEmbeddedFile(name: string): EmbedFileQuery | undefined;\r\n public queryFileProperty(props: FilePropertyProps, wantString: boolean): string | Uint8Array | undefined;\r\n public queryFirstTxnId(): TxnIdString;\r\n public queryLocalValue(name: string): string | undefined;\r\n // ###TODO mark deprecated use queryModelExtentsAsync\r\n public queryModelExtents(options: { id: Id64String }): { modelExtents: Range3dProps };\r\n public queryModelExtentsAsync(modelIds: Id64String[]): Promise<ModelExtentsResponseProps[]>;\r\n public queryNextAvailableFileProperty(props: FilePropertyProps): number;\r\n public queryNextTxnId(txnId: TxnIdString): TxnIdString;\r\n public queryPreviousTxnId(txnId: TxnIdString): TxnIdString;\r\n public queryTextureData(opts: TextureLoadProps): Promise<TextureData | undefined>;\r\n public readFontMap(): { fonts: FontProps[] };\r\n public reinstateTxn(): IModelStatus;\r\n public getNextReinstateTxnRange(): { firstTxnId: TxnIdString, lastTxnId: TxnIdString };\r\n public removeEmbeddedFile(name: string): void;\r\n public replaceEmbeddedFile(arg: EmbedFileArg): void;\r\n public resetBriefcaseId(idValue: number): void;\r\n public restartDefaultTxn(): void;\r\n public restartTxnSession(): void;\r\n public currentTxnSessionId(): number;\r\n public resumeProfiler(): DbResult;\r\n public reverseAll(): IModelStatus;\r\n public reverseTo(txnId: TxnIdString): IModelStatus;\r\n public reverseTxns(numOperations: number): IModelStatus;\r\n public saveChanges(description?: string): DbResult;\r\n public saveFileProperty(props: FilePropertyProps, strValue: string | undefined, blobVal: Uint8Array | undefined): void;\r\n public saveLocalValue(name: string, value: string | undefined): void;\r\n public schemaToXmlString(schemaName: string, version?: ECVersion): string | undefined;\r\n public setGeometricModelTrackingEnabled(enabled: boolean): ErrorStatusOrResult<IModelStatus, boolean>;\r\n public setIModelDb(iModelDb?: any/* IModelDb */): void;\r\n public setIModelId(guid: GuidString): DbResult;\r\n public setITwinId(guid: GuidString): DbResult;\r\n public setBusyTimeout(ms: number): void;\r\n public setCodeValueBehavior(newBehavior: \"exact\" | \"trim-unicode-whitespace\"): void;\r\n public simplifyElementGeometry(simplifyArgs: any): IModelStatus;\r\n public startCreateChangeset(): ChangesetFileProps;\r\n public startProfiler(scopeName?: string, scenarioName?: string, overrideFile?: boolean, computeExecutionPlan?: boolean): DbResult;\r\n public stopProfiler(): { rc: DbResult, elapsedTime?: number, scopeId?: number, fileName?: string };\r\n public enableChangesetStatsTracking(): void;\r\n public disableChangesetStatsTracking(): void;\r\n public getChangesetHealthData(changesetId: string): ChangesetHealthStats;\r\n public getAllChangesetHealthData(): ChangesetHealthStats[];\r\n public updateElement(elemProps: Partial<ElementProps>): void;\r\n public changeElementParent(props: { id: Id64String, parentId: Id64String }): void;\r\n public changeElementModel(props: { id: Id64String, modelId: Id64String }): void;\r\n public updateElementAspect(aspectProps: ElementAspectProps): void;\r\n public updateElementGeometryCache(props: object): Promise<any>;\r\n public updateIModelProps(props: IModelProps): void;\r\n public updateLinkTableRelationship(props: RelationshipProps): DbResult;\r\n public updateModel(modelProps: ModelProps): void;\r\n public updateModelGeometryGuid(modelId: Id64String): IModelStatus;\r\n public updateProjectExtents(newExtentsJson: string): void;\r\n public writeAffectedElementDependencyGraphToFile(dotFileName: string, changedElems: Id64Array): BentleyStatus;\r\n public writeFullElementDependencyGraphToFile(dotFileName: string): BentleyStatus;\r\n public vacuum(arg?: { pageSize?: number, into?: LocalFileName }): void;\r\n public analyze(): void;\r\n public enableWalMode(yesNo?: boolean): void;\r\n public performCheckpoint(mode?: WalCheckpointMode): void;\r\n public setAutoCheckpointThreshold(frames: number): void;\r\n\r\n public pullMergeGetStage(): \"None\" | \"Merging\" | \"Rebasing\";\r\n public pullMergeRebaseReinstateTxn(): void;\r\n public pullMergeRebaseUpdateTxn(): void;\r\n public pullMergeRebaseNext(): TxnIdString | undefined;\r\n public pullMergeRebaseAbortTxn(): void\r\n public pullMergeRebaseBegin(): TxnIdString[];\r\n public pullMergeRebaseEnd(): void;\r\n public pullMergeReverseLocalChanges(captureInstanceChanges?: boolean): TxnIdString[];\r\n public stashChanges(args: { stashRootDir: string, description: string, iModelId: string, resetBriefcase?: true}): any;\r\n public stashRestore(stashFile: string): void;\r\n public getPendingTxnsHash(includeReversedTxns: boolean): string;\r\n public hasPendingSchemaChanges(): boolean;\r\n public discardLocalChanges(): void;\r\n public getTxnProps(id: TxnIdString): TxnProps | undefined;\r\n public setTxnMode(mode: \"direct\" | \"indirect\"): void;\r\n public getTxnMode(): \"direct\" | \"indirect\";\r\n public static enableSharedCache(enable: boolean): DbResult;\r\n public static getAssetsDir(): string;\r\n public static zlibCompress(data: Uint8Array): Uint8Array;\r\n public static zlibDecompress(data: Uint8Array, actualSize: number): Uint8Array;\r\n public static computeChangesetId(args: Partial<ChangesetFileProps> & Required<Pick<ChangesetFileProps, \"parentId\" | \"pathname\">>): string;\r\n }\r\n\r\n /** The native object for GeoServices. */\r\n class GeoServices {\r\n constructor();\r\n public static getGeographicCRSInterpretation(props: GeographicCRSInterpretRequestProps): GeographicCRSInterpretResponseProps;\r\n public static getListOfCRS(extent?: Range2dProps, includeWorld?: boolean, unit?: string): Array<{ name: string, description: string, deprecated: boolean, crsExtent: Range2dProps, unit: string }>;\r\n public static getAvailableUnitNames(): string[];\r\n }\r\n\r\n /**\r\n * RevisionUtility help with debugging and testing\r\n * @internal\r\n */\r\n class RevisionUtility {\r\n constructor();\r\n public static assembleRevision(targetFile: string, rawChangesetFile: string, prefixFile?: string, lzmaPropsJson?: string): BentleyStatus;\r\n public static computeStatistics(sourceFile: string, addPrefix: boolean): string;\r\n public static disassembleRevision(sourceFile: string, targetDir: string): BentleyStatus;\r\n public static dumpChangesetToDb(sourceFile: string, dbFile: string, includeCols: boolean): BentleyStatus;\r\n public static getUncompressSize(sourceFile: string): string;\r\n public static normalizeLzmaParams(lzmaPropsJson?: string): string;\r\n public static recompressRevision(sourceFile: string, targetFile: string, lzmaPropsJson?: string): BentleyStatus;\r\n }\r\n\r\n /**\r\n * The native object for SchemaUtility\r\n * @internal\r\n */\r\n class SchemaUtility {\r\n constructor();\r\n /** Converts given schemas and their reference schemas to EC3.2 schemas */\r\n public static convertCustomAttributes(xmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];\r\n public static convertEC2XmlSchemas(ec2XmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];\r\n }\r\n\r\n class ECDb implements IDisposable, IConcurrentQueryManager {\r\n constructor();\r\n public abandonChanges(): DbResult;\r\n public closeDb(): void;\r\n public createDb(dbName: string): DbResult;\r\n public dispose(): void;\r\n public dropSchemas(schemaNames: ReadonlyArray<string>): void;\r\n public schemaSyncSetDefaultUri(syncDbUri: string): void;\r\n public schemaSyncGetDefaultUri(): string;\r\n public schemaSyncInit(syncDbUri: string, containerId: string, overrideContainer: boolean): void;\r\n public schemaSyncPull(syncDbUri: string | undefined): void;\r\n public schemaSyncPush(syncDbUri: string | undefined): void;\r\n public schemaSyncEnabled(): boolean;\r\n public schemaSyncGetLocalDbInfo(): SchemaLocalDbInfo | undefined;\r\n public schemaSyncGetSyncDbInfo(): SchemaSyncDbInfo | undefined;\r\n public getFilePath(): string;\r\n public resolveInstanceKey(args: ResolveInstanceKeyArgs): ResolveInstanceKeyResult;\r\n public readInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): NodeJS.Dict<any>;\r\n public insertInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): Id64String;\r\n public updateInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public deleteInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public getSchemaProps(name: string): SchemaProps;\r\n public importSchema(schemaPathName: string): DbResult;\r\n public isOpen(): boolean;\r\n public openDb(dbName: string, mode: OpenMode, upgradeProfiles?: boolean): DbResult;\r\n public saveChanges(changesetName?: string): DbResult;\r\n public getLastError(): string;\r\n public getLastInsertRowId(): number;\r\n public static enableSharedCache(enable: boolean): DbResult;\r\n public concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;\r\n public concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;\r\n public concurrentQueryShutdown(): void;\r\n public attachDb(filename: string, alias: string): void;\r\n public detachDb(alias: string): void;\r\n public clearECDbCache(): void;\r\n }\r\n\r\n class ChangedElementsECDb implements IDisposable {\r\n constructor();\r\n public dispose(): void;\r\n public createDb(db: DgnDb, dbName: string): DbResult;\r\n public openDb(dbName: string, mode: OpenMode, upgradeProfiles?: boolean): DbResult;\r\n public isOpen(): boolean;\r\n public closeDb(): void;\r\n public processChangesets(db: DgnDb, changesets: ChangesetFileProps[], rulesetId: string, filterSpatial?: boolean, wantParents?: boolean, wantPropertyChecksums?: boolean, rulesetDir?: string, tempDir?: string, wantChunkTraversal?: boolean): DbResult;\r\n public processChangesetsAndRoll(dbFilename: string, dbGuid: string, changesets: ChangesetFileProps[], rulesetId: string, filterSpatial?: boolean, wantParents?: boolean, wantPropertyChecksums?: boolean, rulesetDir?: string, tempDir?: string, wantRelationshipCaching?: boolean, relationshipCacheSize?: number, wantChunkTraversal?: boolean, wantBoundingBoxes?: boolean): DbResult;\r\n public getChangedElements(startChangesetId: string, endChangesetId: string): ErrorStatusOrResult<IModelStatus, any>;\r\n public isProcessed(changesetId: string): boolean;\r\n public cleanCaches(): void;\r\n }\r\n\r\n class ECSqlStatement implements IDisposable {\r\n constructor();\r\n public clearBindings(): DbResult;\r\n public dispose(): void;\r\n public getBinder(param: number | string): ECSqlBinder;\r\n public getColumnCount(): number;\r\n public getValue(columnIndex: number): ECSqlValue;\r\n public prepare(db: AnyECDb, ecsql: string, logErrors?: boolean): StatusCodeWithMessage<DbResult>;\r\n public reset(): DbResult;\r\n public step(): DbResult;\r\n public stepAsync(callback: (result: DbResult) => void): void;\r\n public stepForInsert(): { status: DbResult, id: string };\r\n public stepForInsertAsync(callback: (result: { status: DbResult, id: string }) => void): void;\r\n public getNativeSql(): string;\r\n public toRow(arg: ECSqlRowAdaptorOptions): any;\r\n public getMetadata(arg?: ECSqlRowAdaptorOptions): any;\r\n public bindParams(args: object): StatusCodeWithMessage<boolean>;\r\n }\r\n\r\n class ECSqlBinder {\r\n constructor();\r\n public addArrayElement(): ECSqlBinder;\r\n public bindBlob(base64String: string | Uint8Array | ArrayBuffer | SharedArrayBuffer): DbResult;\r\n public bindBoolean(val: boolean): DbResult;\r\n public bindDateTime(isoString: string): DbResult;\r\n public bindDouble(val: number): DbResult;\r\n public bindGuid(guidStr: GuidString): DbResult;\r\n public bindId(hexStr: Id64String): DbResult;\r\n public bindIdSet(hexVector: Id64String[]): DbResult;\r\n public bindInteger(val: number | string): DbResult;\r\n public bindMember(memberName: string): ECSqlBinder;\r\n public bindNavigation(navIdHexStr: Id64String, relClassName?: string, relClassTableSpace?: string): DbResult;\r\n public bindNull(): DbResult;\r\n public bindPoint2d(x: number, y: number): DbResult;\r\n public bindPoint3d(x: number, y: number, z: number): DbResult;\r\n public bindString(val: string): DbResult;\r\n }\r\n\r\n class ECSqlColumnInfo {\r\n constructor();\r\n public getAccessString(): string;\r\n public getPropertyName(): string;\r\n public getOriginPropertyName(): string | undefined;\r\n public getRootClassAlias(): string;\r\n public getRootClassName(): string;\r\n public getRootClassTableSpace(): string;\r\n public getType(): number;\r\n public isEnum(): boolean;\r\n public isGeneratedProperty(): boolean;\r\n public isSystemProperty(): boolean;\r\n public isDynamicProp(): boolean;\r\n }\r\n\r\n class ECSqlValue {\r\n constructor();\r\n public getArrayIterator(): ECSqlValueIterator;\r\n public getBlob(): Uint8Array;\r\n public getBoolean(): boolean;\r\n public getClassNameForClassId(): string;\r\n public getColumnInfo(): ECSqlColumnInfo;\r\n public getDateTime(): string;\r\n public getDouble(): number;\r\n public getEnum(): Array<{ schema: string, name: string, key: string, value: number | string }> | undefined;\r\n public getGeometry(): string;\r\n public getGuid(): GuidString;\r\n public getId(): Id64String;\r\n public getInt(): number;\r\n public getInt64(): number;\r\n public getNavigation(): { id: Id64String, relClassName?: string };\r\n public getPoint2d(): { x: number, y: number };\r\n public getPoint3d(): { x: number, y: number, z: number };\r\n public getString(): string;\r\n public getStructIterator(): ECSqlValueIterator;\r\n public isNull(): boolean;\r\n }\r\n\r\n class ECSqlValueIterator {\r\n constructor();\r\n public getCurrent(): ECSqlValue;\r\n public moveNext(): boolean;\r\n }\r\n\r\n /** Default transaction mode for SQLiteDbs.\r\n * @see https://www.sqlite.org/lang_transaction.html\r\n */\r\n const enum DefaultTxnMode {\r\n /** no default transaction is started. You must use BEGIN/COMMIT or SQLite will use implicit transactions */\r\n None = 0,\r\n /** A deferred transaction is started when the file is first opened. This is the default. */\r\n Deferred = 1,\r\n /** An immediate transaction is started when the file is first opened. */\r\n Immediate = 2,\r\n /** An exclusive transaction is started when the file is first opened. */\r\n Exclusive = 3\r\n }\r\n\r\n /** parameters common to opening or creating a new SQLiteDb */\r\n interface SQLiteDbOpenOrCreateParams {\r\n /** If true, do not require that the `be_Prop` table exist */\r\n rawSQLite?: boolean;\r\n /** @see immutable option at https://www.sqlite.org/c3ref/open.html */\r\n immutable?: boolean;\r\n /** Do not attempt to verify that the file is a valid sQLite file before opening. */\r\n skipFileCheck?: boolean;\r\n /** the default transaction mode\r\n * @see [[SQLiteDb.DefaultTxnMode]]\r\n */\r\n defaultTxn?: 0 | 1 | 2 | 3;\r\n /** see query parameters from 'URI Filenames' in https://www.sqlite.org/c3ref/open.html */\r\n queryParam?: string;\r\n }\r\n\r\n /** Parameters for opening an existing SQLiteDb */\r\n interface SQLiteDbOpenParams extends SQLiteDbOpenOrCreateParams {\r\n /** use OpenMode.ReadWrite to open the file with write access */\r\n openMode: OpenMode;\r\n }\r\n\r\n /** Size of a SQLiteDb page in bytes */\r\n interface PageSize {\r\n /** see https://www.sqlite.org/pragma.html#pragma_page_size */\r\n pageSize?: number;\r\n }\r\n\r\n /** Parameters for creating a new SQLiteDb */\r\n type SQLiteDbCreateParams = SQLiteDbOpenOrCreateParams & PageSize;\r\n\r\n class SQLiteDb implements SQLiteOps, IDisposable {\r\n constructor();\r\n public readonly cloudContainer?: CloudContainer;\r\n public abandonChanges(): void;\r\n /**\r\n * Apply a raw sqlite changeset file - the plain, uncompressed byte stream produced by the sqlite\r\n * session extension - to this SQLiteDb. This is *not* the same on-disk format used for iModel\r\n * changesets. Unlike DgnDb.applyChangeset, this does *not* validate any changeset header\r\n * (parentId/changesetId) against the current state of the db, and it does *not* support DDL/schema\r\n * changes (raw sqlite changesets cannot represent them) - it simply applies the row-level changes.\r\n * Any conflict encountered while applying causes the entire apply to fail and throw.\r\n */\r\n public applyChangeset(changesetFile: LocalFileName): void;\r\n public closeDb(): void;\r\n /**\r\n * Write out the changes captured since startChangeTracking() was called, to a changeset file holding\r\n * the raw sqlite changeset (the plain, uncompressed byte stream produced by the sqlite session\r\n * extension) - this is *not* the same on-disk format used for iModel changesets. Raw sqlite changesets\r\n * cannot represent DDL/schema changes, so this throws if any DDL was captured since\r\n * startChangeTracking() was called. Used only for testing.\r\n */\r\n public createChangeset(changesetFile: LocalFileName): void;\r\n public createDb(dbName: string, container?: CloudContainer, params?: SQLiteDbCreateParams): void;\r\n public dispose(): void;\r\n public embedFile(arg: EmbedFileArg): void;\r\n public embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;\r\n /** Execute a DDL statement so it will be captured by change tracking, if active. */\r\n public executeDdl(ddl: string): void;\r\n public extractEmbeddedFile(arg: EmbeddedFileProps): void;\r\n public getFilePath(): string;\r\n public getLastError(): string;\r\n public getLastInsertRowId(): number;\r\n public isOpen(): boolean;\r\n public isReadonly(): boolean;\r\n public openDb(dbName: string, mode: OpenMode | SQLiteDbOpenParams, container?: CloudContainer): void;\r\n public queryEmbeddedFile(name: string): EmbedFileQuery | undefined;\r\n public queryFileProperty(props: FilePropertyProps, wantString: boolean): string | Uint8Array | undefined;\r\n public queryNextAvailableFileProperty(props: FilePropertyProps): number;\r\n public removeEmbeddedFile(name: string): void;\r\n public replaceEmbeddedFile(arg: EmbedFileArg): void;\r\n public restartDefaultTxn(): void;\r\n public saveChanges(): void;\r\n public saveFileProperty(props: FilePropertyProps, strValue: string | undefined, blobVal?: Uint8Array): void;\r\n /** Begin capturing DDL/data changes made to this SQLiteDb. Used only to produce test changeset files. */\r\n public startChangeTracking(): void;\r\n public vacuum(arg?: { pageSize?: number, into?: LocalFileName }): void;\r\n public analyze(): void;\r\n public enableWalMode(yesNo?: boolean): void;\r\n public performCheckpoint(mode?: WalCheckpointMode): void;\r\n public setAutoCheckpointThreshold(frames: number): void;\r\n }\r\n\r\n class SqliteStatement implements IDisposable {\r\n constructor();\r\n public bindBlob(param: number | string, val: Uint8Array | ArrayBuffer | SharedArrayBuffer): DbResult;\r\n public bindDouble(param: number | string, val: number): DbResult;\r\n public bindGuid(param: number | string, guidStr: GuidString): DbResult;\r\n public bindId(param: number | string, hexStr: Id64String): DbResult;\r\n public bindInteger(param: number | string, val: number | string): DbResult;\r\n public bindNull(param: number | string): DbResult;\r\n public bindString(param: number | string, val: string): DbResult;\r\n public clearBindings(): DbResult;\r\n public dispose(): void;\r\n public getColumnBytes(columnIndex: number): number;\r\n public getColumnCount(): number;\r\n public getColumnName(columnIndex: number): string;\r\n public getColumnType(columnIndex: number): number;\r\n public getValueBlob(columnIndex: number): Uint8Array;\r\n public getValueDouble(columnIndex: number): number;\r\n public getValueGuid(columnIndex: number): GuidString;\r\n public getValueId(columnIndex: number): Id64String;\r\n public getValueInteger(columnIndex: number): number;\r\n public getValueString(columnIndex: number): string;\r\n public isReadonly(): boolean;\r\n public isValueNull(columnIndex: number): boolean;\r\n public prepare(db: AnyDb, sql: string, logErrors?: boolean): void;\r\n public reset(): DbResult;\r\n public step(): DbResult;\r\n public stepAsync(callback: (result: DbResult) => void): void;\r\n }\r\n\r\n /** Incremental IO for blobs */\r\n class BlobIO {\r\n constructor();\r\n /** Close this BlobIO if it is opened.\r\n * @note this BlobIO *may* be reused after this call by calling `open` again.\r\n */\r\n public close(): void;\r\n /** get the total number of bytes in the blob */\r\n public getNumBytes(): number;\r\n /** @return true if this BlobIO was successfully opened and may be use to read or write the blob */\r\n public isValid(): boolean;\r\n /** Open this BlobIO against a table/row/column in a Db */\r\n public open(\r\n /** The database for the blob */\r\n db: AnyDb,\r\n args: {\r\n /** the name of the table for the blob*/\r\n tableName: string;\r\n /** the name of the column for the blob */\r\n columnName: string;\r\n /** The rowId of the blob */\r\n row: number;\r\n /** If true, open this BlobIO for write access */\r\n writeable?: boolean;\r\n }): void;\r\n /** Read from a blob\r\n * @returns the contents of the requested byte range\r\n */\r\n public read(args: {\r\n /** The number of bytes to read */\r\n numBytes: number;\r\n /** starting offset within the blob to read */\r\n offset: number;\r\n /** If present and of sufficient size, use this ArrayBuffer for the value. */\r\n blob?: ArrayBuffer;\r\n }): Uint8Array;\r\n /** Reposition this BlobIO to a new rowId\r\n * @note this BlobIO must be valid when this methods is called.\r\n */\r\n public changeRow(row: number): void;\r\n /** Write to a blob */\r\n public write(args: {\r\n /** The number of bytes to write */\r\n numBytes: number;\r\n /** starting offset within the blob to write */\r\n offset: number;\r\n /** the value to write */\r\n blob: ArrayBuffer;\r\n }): void;\r\n }\r\n\r\n /** Filter options passed to CloudContainer.queryHttpLog */\r\n interface BcvHttpLogFilterOptions {\r\n /** only return rows whose ID is >= the provided id */\r\n startFromId?: number;\r\n /** only return rows whose endTime is null OR >= the provided endTime. */\r\n finishedAtOrAfterTime?: string;\r\n /** only return rows with a non-null end_time. */\r\n showOnlyFinished?: boolean;\r\n }\r\n\r\n interface BcvStatsFilterOptions {\r\n /** if true, adds activeClients, totalClients, ongoingPrefetches, and attachedContainers to the result. */\r\n addClientInformation?: boolean;\r\n }\r\n\r\n /**\r\n * A cache for storing data from CloudSqlite databases. This object refers to a directory on a local filesystem\r\n * and is used to **connect** CloudContainers so they may be accessed. The contents of the cache directory are entirely\r\n * controlled by CloudSqlite and should be empty when the cache is first created and never modified directly. It maintains\r\n * the state of the local data across sessions.\r\n * @note All CloudContainers attached to a CloudCache must have the same block size, as determined by the first one connected.\r\n */\r\n class CloudCache {\r\n /** Create an instance of a CloudCache. */\r\n public constructor(props: NativeCloudSqlite.CacheProps);\r\n /** `true` if this CloudCache is connected to a daemon process */\r\n public get isDaemon(): boolean;\r\n /** The name for this CloudCache. */\r\n public get name(): string;\r\n /** The root directory of this CloudCache on a local drive. */\r\n public get rootDir(): LocalDirName;\r\n /** The guid for this CloudCache. Used for acquiring write lock. */\r\n public get guid(): GuidString;\r\n public setLogMask(mask: number): void;\r\n /** destroy this CloudCache. All CloudContainers currently connected are disconnected. */\r\n public destroy(): void;\r\n }\r\n\r\n /** A CloudSqlite container that may be connected to a CloudCache. */\r\n class CloudContainer {\r\n public onConnect?: (container: CloudContainer, cache: CloudCache) => void;\r\n public onConnected?: (container: CloudContainer) => void;\r\n public onDisconnect?: (container: CloudContainer, detach: boolean) => void;\r\n public onDisconnected?: (container: CloudContainer, detach: boolean) => void;\r\n\r\n public readonly cache?: CloudCache;\r\n /** Create a new instance of a CloudContainer. It must be connected to a CloudCache for most operations. */\r\n public constructor(props: NativeCloudSqlite.ContainerAccessProps);\r\n /** the baseUri of this container */\r\n public get baseUri(): string;\r\n /** the storageType of this container */\r\n public get storageType(): string;\r\n /** The ContainerId. */\r\n public get containerId(): string;\r\n /** The *alias* to identify this CloudContainer in a CloudCache. Usually just the ContainerId. */\r\n public get alias(): string;\r\n /** The logId. */\r\n public get logId(): string;\r\n /** The time that the write lock expires. Of the form 'YYYY-MM-DDTHH:MM:SS.000Z' in UTC.\r\n * Returns empty string if write lock is not held.\r\n */\r\n public get writeLockExpires(): string;\r\n /** true if this CloudContainer is currently connected to a CloudCache via the `connect` method. */\r\n public get isConnected(): boolean;\r\n /** true if this CloudContainer was created with the `writeable` flag (and its `accessToken` supplies write access). */\r\n public get isWriteable(): boolean;\r\n /** true if this container is public (doesn't require authorization ). */\r\n public get isPublic(): boolean;\r\n /** true if this CloudContainer currently holds the write lock for its container in the cloud. */\r\n public get hasWriteLock(): boolean;\r\n /** true if this CloudContainer has local changes that have not be uploaded to its container in the cloud. */\r\n public get hasLocalChanges(): boolean;\r\n /** The current accessToken providing access to the cloud container */\r\n public get accessToken(): string;\r\n public set accessToken(val: string);\r\n /** Get the number of garbage blocks in this container that can be purged. */\r\n public get garbageBlocks(): number;\r\n /** The block size for this CloudContainer. */\r\n public get blockSize(): number;\r\n\r\n /**\r\n * initialize a cloud blob-store container to be used as a new Sqlite CloudContainer. This creates the manifest, and should be\r\n * performed on an empty container. If an existing manifest is present, it is destroyed and a new one is created (essentially emptying the container.)\r\n */\r\n public initializeContainer(opts: { checksumBlockNames?: boolean, blockSize: number }): void;\r\n\r\n /**\r\n * Attempt to acquire the write lock for this CloudContainer. For this to succeed:\r\n * 1. it must be connected to a `CloudCache`\r\n * 2. this CloudContainer must have been constructed with `writeable: true`\r\n * 3. the `accessToken` must authorize write access\r\n * 4. no other process may be holding an unexpired write lock\r\n * @throws exception if any of the above conditions fail\r\n * @note Write locks *expire* after the duration specified in the `durationSeconds` property of the constructor argument, in case a process\r\n * crashes or otherwise fails to release the lock. Calling `acquireWriteLock` with the lock already held resets the lock duration from the current time,\r\n * so long running processes should call this method periodically to ensure their lock doesn't expire (they should also make sure their accessToken is refreshed\r\n * before it expires.)\r\n * @note on success, the manifest is polled before the promise resolves.\r\n * @param user An identifier of the process/user locking the CloudContainer. In the event of a write lock\r\n * collision, this string will be included in the exception string of the *other* process attempting to obtain a write lock.\r\n */\r\n public acquireWriteLock(user: string): void;\r\n\r\n /**\r\n * Release the write lock if it is currently held.\r\n * @note if there are local changes that have not been uploaded, they are automatically uploaded before the write lock is released.\r\n * @note if the write lock is not held, this method does nothing.\r\n */\r\n public releaseWriteLock(): void;\r\n\r\n /**\r\n * Destroy any currently valid write lock from this or any other process. This is obviously very dangerous and defeats the purpose of write locking.\r\n * This method exists only for administrator tools to clear a failed process without waiting for the expiration period. It can also be useful for tests.\r\n * For this to succeed, all of the conditions of `acquireWriteLock` must be true other than #4.\r\n */\r\n public clearWriteLock(): void;\r\n\r\n /**\r\n * Abandon any local changes in this container. If the write lock is currently held, it is released.\r\n * This function fails with BE_SQLITE_BUSY if one or more clients have open read or write transactions\r\n * on any database in the container.\r\n */\r\n public abandonChanges(): void;\r\n\r\n /**\r\n * Connect this CloudContainer to a CloudCache for reading or writing its manifest, write lock, and databases.\r\n * @note A CloudCache is a local directory holding copies of information from the cloud. Its content is persistent across sessions,\r\n * but this method must be called each session to (re)establish the connection to the cache. If the CloudCache was previously populated,\r\n * this method may be called and will succeed *even when offline* or without a valid `accessToken`.\r\n * @note all operations that access the contents of databases or the manifest require this method be called (`isConnected === true`).\r\n */\r\n public connect(cache: CloudCache): void;\r\n\r\n /**\r\n * Disconnect this CloudContainer from its CloudCache. There must be no open databases from this container.\r\n */\r\n public disconnect(args?: {\r\n /** if true removes the container from the CloudCache, otherwise Leaves the container in the CloudCache so it is available for future sessions. */\r\n detach?: boolean;\r\n }): void;\r\n\r\n /**\r\n * Poll cloud storage for changes from other processes. *No changes* made by other processes are visible to\r\n * this CloudContainer unless/until this method is called.\r\n * @note this is automatically called whenever the write lock is obtained to ensure all changes are against the latest version.\r\n */\r\n public checkForChanges(): void;\r\n\r\n /**\r\n * Upload any changed blocks from all databases in this CloudContainer.\r\n * @note this is called automatically from `releaseWriteLock` before the write lock is released. It is only necessary to call this directly if you\r\n * wish to upload changes while the write lock is still held.\r\n * @see hasLocalChanges\r\n */\r\n public uploadChanges(): Promise<void>;\r\n\r\n /**\r\n * Create a copy of an existing database within this CloudContainer with a new name.\r\n * @note CloudSqlite uses copy-on-write semantics for this operation. That is, this method merely makes a\r\n * new entry in the manifest with the new name that *shares* all of its blocks with the original database.\r\n * If either database subsequently changes, the only modified blocks are not shared.\r\n */\r\n public copyDatabase(dbName: string, toAlias: string): Promise<void>;\r\n\r\n /** Remove a database from this CloudContainer, moving all of its no longer used blocks to the delete list in the manifest.\r\n * @see [[CloudSqlite.CleanDeletedBlocksJob]] to actually delete the blocks from the delete list.\r\n */\r\n public deleteDatabase(dbName: string): Promise<void>;\r\n\r\n /** Get the list of database names in this CloudContainer.\r\n * @param globArg if present, filter the results with SQLite [GLOB](https://www.sqlite.org/lang_expr.html#glob) operator.\r\n */\r\n public queryDatabases(globArg?: string): string[];\r\n\r\n /**\r\n * Get the status of a specific database in this CloudContainer.\r\n * @param dbName the name of the database of interest\r\n */\r\n public queryDatabase(dbName: string): NativeCloudSqlite.CachedDbProps | undefined;\r\n\r\n /**\r\n * query the bcv_http_log table\r\n * @note the bcv_http_log table contains one row for each HTTP request made by the VFS or connected daemon.\r\n * @note Entries are automatically removed from the table on a FIFO basis. By default entries which are 1 hr old will be removed.\r\n */\r\n public queryHttpLog(filterOptions?: BcvHttpLogFilterOptions): NativeCloudSqlite.BcvHttpLog[];\r\n\r\n /**\r\n * query the bcv_stat table.\r\n * @internal\r\n */\r\n public queryBcvStats(filterOptions?: BcvStatsFilterOptions): NativeCloudSqlite.BcvStats;\r\n\r\n /**\r\n * Get the SHA1 hash of the content of a database.\r\n * @param dbName the name of the database of interest\r\n * @note the hash will be empty if the database does not exist\r\n */\r\n public queryDatabaseHash(dbName: string): string;\r\n }\r\n\r\n /**\r\n * Object to perform an \"upload\" or \"download\" of a database to/from a CloudContainer.\r\n * @note The transfer begins when the object is constructed, and the object remains alive during the upload/download operation.\r\n * It provides the Promise that is resolved when the operation completes or fails, and has methods to provide feedback for progress and to cancel the operation prematurely.\r\n */\r\n class CancellableCloudSqliteJob {\r\n /** create an instance of a transfer. The operation begins immediately when the object is created.\r\n * @param direction either \"upload\" or \"download\"\r\n * @param container the container holding the database. Does *not* require that the container be connected to a CloudCache.\r\n * @param args The properties for the source and target of the transfer.\r\n */\r\n constructor(direction: NativeCloudSqlite.TransferDirection | \"cleanup\", container: CloudContainer, args: NativeCloudSqlite.TransferDbProps | NativeCloudSqlite.CleanDeletedBlocksOptions);\r\n\r\n /** Cancel a currently pending transfer and cause the promise to be rejected with a Cancelled status.\r\n * @throws exception if the operation has already completed.\r\n */\r\n public cancelTransfer(): void;\r\n /** Get the current progress of the transfer.\r\n * @throws exception if the operation has already completed.\r\n */\r\n public getProgress(): { loaded: number, total: number };\r\n\r\n /**\r\n * Only applicable to cleanup jobs. Calling this in a download or upload job will also stop the job but without saving progress.\r\n * During a cleanup job, if any blocks have been deleted, the job will stop and upload the manifest reflecting which blocks have been deleted.\r\n */\r\n public stopAndSaveProgress(): void;\r\n\r\n /** Promise that is resolved when the transfer completes, or is rejected if the transfer fails (or is cancelled.) */\r\n public promise: Promise<void>;\r\n }\r\n\r\n class CloudPrefetch {\r\n public readonly cloudContainer: CloudContainer;\r\n public readonly dbName: string;\r\n\r\n /** create an instance of a prefetch operation. The operation begins immediately when the object is created.\r\n * The prefetch will continue in the background until it either finishes, is canceled, or the CloudContainer is disconnected from its CloudCache.\r\n * @param container the container holding the database.\r\n * @param dbName the name of the database to prefetch\r\n */\r\n constructor(container: CloudContainer, dbName: string, args?: NativeCloudSqlite.PrefetchProps);\r\n\r\n /** Cancel a currently pending prefetch. The promise will be resolved immediately after this call. */\r\n public cancel(): void;\r\n\r\n /**\r\n * Promise that is resolved when the prefetch completes or is cancelled. Await this promise to ensure that the\r\n * database has been fully downloaded before going offline, for example.\r\n * @returns a Promise that resolves to `true` if the prefetch completed and the entire database is local, or `false` if it was aborted or failed.\r\n * @note the promise is *not* rejected on `cancel`. Some progress may (or may not) have been made by the request.\r\n * @note To monitor the progress being made during prefetch, call `CloudContainer.queryDatabase` periodically.\r\n */\r\n public promise: Promise<boolean>;\r\n }\r\n\r\n const enum ECPresentationStatus {\r\n Success = 0,\r\n Canceled = 1,\r\n Pending = 2,\r\n Error = 0x10000,\r\n InvalidArgument = Error + 1,\r\n ResultSetTooLarge = Error + 2,\r\n }\r\n\r\n interface ECPresentationMemoryHierarchyCacheConfig {\r\n mode: \"memory\";\r\n }\r\n\r\n interface ECPresentationDiskHierarchyCacheConfig {\r\n mode: \"disk\";\r\n directory: string;\r\n memoryCacheSize?: number;\r\n }\r\n\r\n interface ECPresentationHybridHierarchyCacheConfig {\r\n mode: \"hybrid\";\r\n disk?: ECPresentationDiskHierarchyCacheConfig;\r\n }\r\n\r\n type ECPresentationHierarchyCacheConfig = ECPresentationMemoryHierarchyCacheConfig | ECPresentationDiskHierarchyCacheConfig | ECPresentationHybridHierarchyCacheConfig;\r\n\r\n type ECPresentationManagerResponse<TResult> = ErrorStatusOrResult<ECPresentationStatus, TResult> & {\r\n diagnostics?: any;\r\n };\r\n\r\n interface ECPresentationManagerProps {\r\n id: string;\r\n taskAllocationsMap: { [priority: number]: number };\r\n defaultFormats: {\r\n [phenomenon: string]: Array<{\r\n unitSystems: string[];\r\n serializedFormat: string;\r\n }>;\r\n };\r\n updateCallback: (updateInfo: any) => void;\r\n cacheConfig: ECPresentationHierarchyCacheConfig;\r\n contentCacheSize?: number;\r\n workerConnectionCacheSize?: number;\r\n useMmap?: boolean | number;\r\n }\r\n\r\n class ECPresentationManager implements IDisposable {\r\n constructor(props: ECPresentationManagerProps);\r\n public forceLoadSchemas(db: DgnDb): Promise<ECPresentationManagerResponse<void>>;\r\n public setupRulesetDirectories(directories: string[]): ECPresentationManagerResponse<void>;\r\n public setupSupplementalRulesetDirectories(directories: string[]): ECPresentationManagerResponse<void>;\r\n public setRulesetVariableValue(rulesetId: string, variableId: string, type: string, value: any): ECPresentationManagerResponse<void>;\r\n public unsetRulesetVariableValue(rulesetId: string, variableId: string): ECPresentationManagerResponse<void>;\r\n public getRulesetVariableValue(rulesetId: string, variableId: string, type: string): ECPresentationManagerResponse<any>;\r\n public registerSupplementalRuleset(serializedRuleset: string): ECPresentationManagerResponse<string>;\r\n public getRulesets(rulesetId: string): ECPresentationManagerResponse<string>;\r\n public addRuleset(serializedRuleset: string): ECPresentationManagerResponse<string>;\r\n public removeRuleset(rulesetId: string, hash: string): ECPresentationManagerResponse<boolean>;\r\n public clearRulesets(): ECPresentationManagerResponse<void>;\r\n public handleRequest(db: DgnDb, options: string): { result: Promise<ECPresentationManagerResponse<Buffer>>, cancel: () => void };\r\n public dispose(): void;\r\n }\r\n\r\n namespace ECSchemaXmlContext {\r\n interface SchemaKey {\r\n name: string;\r\n readVersion: number;\r\n writeVersion: number;\r\n minorVersion: number;\r\n }\r\n\r\n const enum SchemaMatchType {\r\n Identical = 0, // Find exact VersionRead, VersionWrite, VersionMinor match as well as Data\r\n Exact = 1, // Find exact VersionRead, VersionWrite, VersionMinor match.\r\n LatestWriteCompatible = 2, // Find latest version with matching VersionRead and VersionWrite\r\n Latest = 3, // Find latest version.\r\n LatestReadCompatible = 4, // Find latest version with matching VersionRead\r\n }\r\n\r\n type SchemaLocaterCallback = (key: SchemaKey, matchType: SchemaMatchType) => string | undefined | void;\r\n }\r\n\r\n class ECSchemaXmlContext {\r\n constructor();\r\n public addSchemaPath(schemaPath: string): void;\r\n public setSchemaLocater(locater: ECSchemaXmlContext.SchemaLocaterCallback): void;\r\n public setFirstSchemaLocater(locater: ECSchemaXmlContext.SchemaLocaterCallback): void;\r\n public readSchemaFromXmlFile(filePath: string): ErrorStatusOrResult<BentleyStatus, string>;\r\n }\r\n\r\n class SnapRequest {\r\n constructor();\r\n public doSnap(db: DgnDb, request: any): Promise<any>;\r\n public cancelSnap(): void;\r\n }\r\n\r\n interface FeatureUserDataKeyValuePair {\r\n key: string;\r\n value: string;\r\n }\r\n\r\n interface NativeUlasClientFeatureEvent {\r\n featureId: string;\r\n versionStr: string;\r\n projectId?: string;\r\n startDateZ?: string;\r\n endDateZ?: string;\r\n featureUserData?: FeatureUserDataKeyValuePair[];\r\n }\r\n\r\n class SqliteChangesetReader {\r\n public close(): void;\r\n public getColumnCount(): number;\r\n public getColumnValue(col: number, stage: number): Uint8Array | number | string | null | undefined;\r\n public getColumnValueBinary(col: number, stage: number): Uint8Array | undefined;\r\n public getColumnValueDouble(col: number, stage: number): number | undefined;\r\n public getColumnValueId(col: number, stage: number): string | undefined;\r\n public getColumnValueInteger(col: number, stage: number): number | undefined;\r\n public getColumnValueText(col: number, stage: number): string | undefined;\r\n public getColumnValueType(col: number, stage: number): number | undefined;\r\n public getDdlChanges(): string | undefined;\r\n public getOpCode(): DbOpcode;\r\n public getPrimaryKeys(): (Uint8Array | number | string | null | undefined)[];\r\n public getRow(stage: number): (Uint8Array | number | string | null | undefined)[];\r\n public getTableName(): string;\r\n public hasRow(): boolean;\r\n public isColumnValueNull(col: number, stage: number): boolean | undefined;\r\n public isIndirectChange(): boolean;\r\n public getPrimaryKeyColumnIndexes(): number[];\r\n public openFile(fileName: string, invert: boolean): void;\r\n public openGroup(fileName: string[], db: AnyECDb, invert: boolean): void;\r\n public openLocalChanges(db: DgnDb, includeInMemoryChanges: boolean, invert: boolean): void;\r\n public openInMemoryChanges(db: DgnDb, invert: boolean): void;\r\n public openTxn(db: DgnDb, txnId: Id64String, invert: boolean): void;\r\n public reset(): void;\r\n public step(): boolean;\r\n public writeToFile(fileName: string, containsSchemaChanges: boolean, overrideFile: boolean): void;\r\n }\r\n\r\n interface ChangesetRowValue {\r\n data: any;\r\n key: string;\r\n changeFetchedPropNames: string[]\r\n }\r\n\r\n interface ChangesetRowMetadata {\r\n tableName: string;\r\n opCode: DbOpcode;\r\n isIndirectChange: boolean;\r\n isECTable: boolean;\r\n }\r\n interface ChangesetRowData {\r\n metadata: ChangesetRowMetadata;\r\n oldValues: ChangesetRowValue | undefined;\r\n newValues: ChangesetRowValue | undefined;\r\n }\r\n\r\n class ChangesetReader {\r\n constructor();\r\n public openFile(db: AnyECDb, fileName: string, invert: boolean, propFilter: number): void;\r\n public openGroup(db: AnyECDb, fileNames: string[], invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public openLocalChanges(db: DgnDb, includeInMemoryChanges: boolean, invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public openInMemoryChanges(db: DgnDb, invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public openTxn(db: DgnDb, txnId: Id64String, invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public close(): void;\r\n public step(numOfRows: number, rowOptions: ECSqlRowAdaptorOptions): ChangesetRowData[];\r\n public setTableNameFilters(tableNames: string[]): void;\r\n public setOpCodeFilters(ops: string[]): void;\r\n public setClassNameFilters(classNames: string[]): void;\r\n public clearTableNameFilters(): void;\r\n public clearOpCodeFilters(): void;\r\n public clearClassNameFilters(): void;\r\n public enableStrictMode(): void;\r\n public disableStrictMode(): void;\r\n }\r\n\r\n class DisableNativeAssertions implements IDisposable {\r\n constructor();\r\n public dispose(): void;\r\n }\r\n\r\n class ImportContext implements IDisposable {\r\n constructor(sourceDb: DgnDb, targetDb: DgnDb);\r\n public dispose(): void;\r\n public dump(outputFileName: string): BentleyStatus;\r\n public addClass(sourceClassFullName: string, targetClassFullName: string): BentleyStatus;\r\n public addCodeSpecId(sourceId: Id64String, targetId: Id64String): BentleyStatus;\r\n public addElementId(sourceId: Id64String, targetId: Id64String): BentleyStatus;\r\n public removeElementId(sourceId: Id64String): BentleyStatus;\r\n public findCodeSpecId(sourceId: Id64String): Id64String;\r\n public findElementId(sourceId: Id64String): Id64String;\r\n public cloneElement(sourceId: Id64String, cloneOptions?: CloneElementOptions): ElementProps;\r\n public importCodeSpec(sourceId: Id64String): Id64String;\r\n public importFont(sourceId: number): number;\r\n public hasSubCategoryFilter(): boolean;\r\n public isSubCategoryFiltered(sourceId: Id64String): boolean;\r\n public filterSubCategoryId(sourceId: Id64String): BentleyStatus;\r\n public saveStateToDb(db: SQLiteDb): void;\r\n public loadStateFromDb(db: SQLiteDb): void;\r\n }\r\n\r\n interface CloneElementOptions {\r\n binaryGeometry?: boolean;\r\n }\r\n\r\n interface ChangedInstanceOpsProps {\r\n insert?: Id64String[];\r\n update?: Id64String[];\r\n delete?: Id64String[];\r\n }\r\n\r\n /** The *wire format* of the result returned by DgnDb.extractChangedInstanceIdsFromChangeSets */\r\n interface ChangedInstanceIdsProps {\r\n codeSpec?: ChangedInstanceOpsProps;\r\n model?: ChangedInstanceOpsProps;\r\n element?: ChangedInstanceOpsProps;\r\n aspect?: ChangedInstanceOpsProps;\r\n relationship?: ChangedInstanceOpsProps;\r\n font?: ChangedInstanceOpsProps;\r\n }\r\n\r\n /**\r\n * Temporary implementation to allow crashing the backend for testing purposes\r\n * @internal\r\n */\r\n class NativeDevTools {\r\n public static signal(signalType: number): boolean;\r\n public static emitLogs(count: number, category: string, severity: LogLevel, thread: \"main\" | \"worker\", onDone: () => void): void;\r\n }\r\n\r\n /**\r\n * Utilities to encode/decode names to convert them to/from names that comply with EC naming rules\r\n */\r\n class ECNameValidation {\r\n /**\r\n * Encodes names to comply with EC naming rules\r\n * @param name Name to be encoded\r\n * @returns Encoded name\r\n * @param name\r\n */\r\n public static encodeToValidName(name: string): string;\r\n\r\n /**\r\n * Decodes names that were encoded to comply with EC naming rules\r\n * @param encodedName Encoded name\r\n * @returns Decoded name\r\n */\r\n public static decodeFromValidName(encodedName: string): string;\r\n }\r\n\r\n const enum TestWorkerState {\r\n NotQueued = 0,\r\n Queued = 1,\r\n Skipped = 2,\r\n Running = 3,\r\n Ok = 4,\r\n Error = 5,\r\n Aborted = 6,\r\n }\r\n\r\n class TestWorker {\r\n public constructor(db: DgnDb);\r\n\r\n public queue(): Promise<void>;\r\n public cancel(): void;\r\n public setReady(): void;\r\n public setThrow(): void;\r\n public isCanceled(): boolean;\r\n public wasExecuted(): boolean;\r\n public getState(): TestWorkerState;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"NativeLibrary.js","sourceRoot":"","sources":["../src/NativeLibrary.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,8BAA8B;AAC9B,kCAAkC;AAyBlC,yDAAyD;AACzD,yCAAyC;AACzC,sCAAsC;AAEtC,8KAA8K;AAE9K;;;GAGG;AACH,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,6EAAW,CAAA;IACX,2FAAkB,CA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,wBAAwB,SAAS,IAAI,EAAE,SAAS,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AA5DD,sCA4DC","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\n\r\nimport * as os from \"node:os\";\r\nimport * as path from \"node:path\";\r\n\r\nimport type { NativeCloudSqlite } from \"./NativeCloudSqlite\";\r\n\r\n/**\r\n * @note This package may only have **dev** dependencies on @itwin packages, so they are *not* available at runtime. Therefore we can only import **types** from them.\r\n * @note You cannot use mapped types @href https://www.typescriptlang.org/docs/handbook/2/mapped-types.html from itwin imports here due to how they are resolved downstream\r\n */\r\n\r\nimport type {\r\n BentleyStatus, DbOpcode, DbResult, GuidString, Id64Array, Id64String, IModelStatus, LogLevel, OpenMode\r\n} from \"@itwin/core-bentley\";\r\nimport type {\r\n BRepGeometryCreate, ChangesetIndexAndId, CodeProps, CodeSpecProperties, FontType as CoreFontType, PerStatementHealthStats as CorePerStatementHealthStats, TxnProps as CoreTxnProps, CreateEmptyStandaloneIModelProps, DbRequest, DbResponse, ElementAspectProps,\r\n ElementGeometryBuilderParams,\r\n ElementGeometryBuilderParamsForPart,\r\n ElementGeometryCacheOperationRequestProps, ElementGeometryCacheRequestProps, ElementGeometryCacheResponseProps, ElementGeometryRequest,\r\n ElementGraphicsRequestProps, ElementLoadOptions, ElementLoadProps, ElementMeshRequestProps, ElementProps,\r\n FilePropertyProps, FontId, FontProps, GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, GeographicCRSInterpretRequestProps,\r\n GeographicCRSInterpretResponseProps, GeometryContainmentResponseProps, GeometryStreamProps, ImageBuffer, ImageBufferFormat, ImageSourceFormat, IModelCoordinatesRequestProps,\r\n IModelCoordinatesResponseProps, IModelProps, LocalDirName, LocalFileName, MassPropertiesResponseProps, ModelExtentsProps, ModelLoadProps,\r\n ModelProps, PlacementProps, QueryQuota, RelationshipProps, RscFontEncodingProps, SnapRequestProps, SnapResponseProps, SnapshotOpenOptions, TextureData, TextureLoadProps, TileVersionInfo, UpgradeOptions\r\n} from \"@itwin/core-common\";\r\nimport type { LowAndHighXYZProps, Range2dProps, Range3dProps } from \"@itwin/core-geometry\";\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n/* eslint-disable no-restricted-syntax */\r\n/* eslint-disable @itwin/prefer-get */\r\n\r\n// cspell:ignore blocksize cachesize polltime bentleyjs imodeljs ecsql pollable polyface txns lzma uncompress changesets ruleset ulas oidc keychain libsecret rulesets struct\r\n\r\n/**\r\n * Status codes returned by the native bulk-delete operation.\r\n * @internal\r\n */\r\nexport enum BulkDeleteElementsStatus {\r\n Success = 0,\r\n PartialSuccess = 1,\r\n DeletionFailed = 2,\r\n}\r\n\r\n/**\r\n * Result of the bulk element deletion operation.\r\n * @internal\r\n */\r\nexport interface BulkDeleteElementsResult {\r\n status: BulkDeleteElementsStatus;\r\n sqlDeleteStatus: DbResult;\r\n failedIds: Id64Array;\r\n}\r\n\r\n/** Logger categories used by the native addon\r\n * @internal\r\n */\r\nexport const NativeLoggerCategory = {\r\n BeSQLite: \"BeSQLite\",\r\n BRepCore: \"BRepCore\",\r\n Changeset: \"Changeset\",\r\n CloudSqlite: \"CloudSqlite\",\r\n DgnCore: \"DgnCore\",\r\n ECDb: \"ECDb\",\r\n ECObjectsNative: \"ECObjectsNative\",\r\n SQLite: \"SQLite\",\r\n UnitsNative: \"UnitsNative\",\r\n} as const;\r\n\r\n/** @internal */\r\nexport interface NativeLogger {\r\n readonly minLevel: LogLevel | undefined;\r\n readonly categoryFilter: Readonly<{ [categoryName: string]: LogLevel | undefined }>;\r\n logTrace: (category: string, message: string) => void;\r\n logInfo: (category: string, message: string) => void;\r\n logWarning: (category: string, message: string) => void;\r\n logError: (category: string, message: string) => void;\r\n}\r\n\r\n/** Find and load the native node-addon library */\r\nexport class NativeLibrary {\r\n public static get archName() {\r\n // We make sure we are running in a known platform.\r\n if (typeof process === \"undefined\" || process.platform === undefined || process.arch === undefined)\r\n throw new Error(\"Error - unknown process\");\r\n return `imodeljs-${process.platform}-${process.arch}`;\r\n }\r\n public static get nodeAddonName() { return \"imodeljs.node\"; }\r\n public static get defaultLocalDir(): string {\r\n const homedir = os.homedir();\r\n const platform = os.platform() as NodeJS.Platform | \"ios\"; // we add \"ios\"\r\n switch (platform) {\r\n case \"win32\":\r\n return path.join(homedir, \"AppData\", \"Local\");\r\n case \"darwin\":\r\n case \"ios\":\r\n return path.join(homedir, \"Library\", \"Caches\");\r\n case \"linux\":\r\n case \"android\":\r\n return path.join(homedir, \".cache\");\r\n default:\r\n throw new Error(\"Error - unknown platform\");\r\n }\r\n }\r\n\r\n // This returns true if you used `linkNativePlatform.bat` to install your local addon build.\r\n public static get isDevBuild(): boolean {\r\n try {\r\n require.resolve(\"./devbuild.json\");\r\n return true;\r\n } catch {\r\n return false;\r\n }\r\n }\r\n\r\n public static get defaultCacheDir(): string { return path.join(this.defaultLocalDir, \"iModelJs\"); }\r\n private static _nativeLib?: typeof IModelJsNative;\r\n public static get nativeLib() { return this.load(); }\r\n public static load() {\r\n if (!this._nativeLib) {\r\n try {\r\n const platform = os.platform() as NodeJS.Platform | \"ios\"; // we add \"ios\"\r\n if (platform === \"ios\" || platform === \"android\") {\r\n this._nativeLib = (process as any)._linkedBinding(\"iModelJsNative\") as typeof IModelJsNative;\r\n } else {\r\n this._nativeLib =\r\n require(`./${NativeLibrary.archName}/${NativeLibrary.nodeAddonName}`) as typeof IModelJsNative; // eslint-disable-line @typescript-eslint/no-require-imports\r\n }\r\n } catch (err: any) {\r\n err.message += \"\\nThis error may occur when trying to run an iTwin.js backend without\"\r\n + \" having installed the prerequisites. See the following link for all prerequisites:\"\r\n + \"\\nhttps://www.itwinjs.org/learning/supportedplatforms/#backend-prerequisites\";\r\n throw err;\r\n }\r\n if (this.isDevBuild)\r\n // eslint-disable-next-line no-console\r\n console.log(\"\\x1b[36m\", `using dev build from ${__dirname}\\n`, \"\\x1b[0m\");\r\n }\r\n return this._nativeLib;\r\n }\r\n}\r\n\r\n/** WAL checkpoint mode\r\n * @internal\r\n */\r\nexport const enum WalCheckpointMode {\r\n Passive = 0, /* Do as much as possible w/o blocking */\r\n Full = 1, /* Wait for writers, then checkpoint */\r\n Restart = 2, /* Like FULL but wait for for readers */\r\n Truncate = 3, /* Like RESTART but also truncate WAL */\r\n}\r\n\r\n/** Possible outcomes of generateElementGraphics.\r\n* Must be kept in sync with Dgn::Tile::Graphics::TileGraphicsStatus.\r\n* @internal\r\n*/\r\nexport const enum ElementGraphicsStatus {\r\n Success = 0, // Non-null content as Uint8Array.\r\n Canceled = 1, // e.g., front-end explicitly canceled, iModel was closed while processing request, etc.\r\n NoGeometry = 2, // Not an error per se\r\n InvalidJson = 3,\r\n UnknownMajorFormatVersion = 4,\r\n ElementNotFound = 5,\r\n DuplicateRequestId = 6,\r\n}\r\n\r\n/** Possible outcomes of exportSchema[s] (and generally writing schemas)\r\n* Must be kept in sync with ECN::SchemaWriteStatus\r\n* @internal\r\n*/\r\nexport const enum SchemaWriteStatus {\r\n Success = 0,\r\n FailedToSaveXml = 1,\r\n FailedToCreateXml = 2,\r\n FailedToCreateJson = 3,\r\n FailedToWriteFile = 4,\r\n}\r\n\r\n/** Module that declares the IModelJs native code.\r\n * @internal\r\n */\r\nexport declare namespace IModelJsNative {\r\n interface NameValuePair {\r\n name: string;\r\n value: string;\r\n }\r\n\r\n /** any type of Db that supports EC */\r\n type AnyECDb = DgnDb | ECDb;\r\n /** any type of Db */\r\n type AnyDb = AnyECDb | SQLiteDb;\r\n\r\n /** A string that identifies a Txn. */\r\n type TxnIdString = string;\r\n\r\n interface NativeCrashReportingConfig {\r\n /** The directory to which *.dmp and/or iModelJsNativeCrash*.properties.txt files are written. */\r\n crashDir: string;\r\n /** Write .dmp files to crashDir? The default is false. Even if writeDumpsToCrashDir is false, the iModelJsNativeCrash*.properties.txt file will be written to crashDir. */\r\n enableCrashDumps?: boolean;\r\n /** max # .dmp files that may exist in crashDir */\r\n maxDumpsInDir?: number;\r\n /** If writeDumpsToCrashDir is true, do you want a full-memory dump? Defaults to false. */\r\n wantFullMemory?: boolean;\r\n /** Additional name, value pairs to add as meta data to a crash report. */\r\n params?: NameValuePair[];\r\n }\r\n\r\n let logger: NativeLogger;\r\n function setMaxTileCacheSize(maxBytes: number): void;\r\n function getTileVersionInfo(): TileVersionInfo;\r\n function setCrashReporting(cfg: NativeCrashReportingConfig): void;\r\n function setCrashReportProperty(name: string, value: string | undefined): void;\r\n function getCrashReportProperties(): NameValuePair[];\r\n function clearLogLevelCache(): void;\r\n function addFontWorkspace(fileName: LocalFileName, container?: CloudContainer): boolean;\r\n function addGcsWorkspaceDb(dbNames: string, container?: CloudContainer, priority?: number): boolean;\r\n function enableLocalGcsFiles(yesNo: boolean): void;\r\n /** Enable or disable the monotone-clock SQLite VFS shim. When enabled, every call\r\n * to SQLite's time functions returns a strictly increasing value, preventing test\r\n * failures caused by the millisecond-resolution system clock returning identical\r\n * timestamps for rapid successive operations. Call with `false` to restore the\r\n * original default VFS. Must be called after the native library is initialized.\r\n */\r\n function enableMonotoneClock(enable: boolean): void;\r\n function queryConcurrency(pool: \"io\" | \"cpu\"): number;\r\n\r\n interface TrueTypeFontMetadata {\r\n faces: FontFaceProps[];\r\n embeddable: boolean;\r\n }\r\n\r\n function getTrueTypeFontMetadata(fileName: LocalFileName): TrueTypeFontMetadata;\r\n function isRscFontData(blob: Uint8Array): boolean;\r\n\r\n function imageBufferFromImageSource(\r\n sourceFormat: ImageSourceFormat.Png | ImageSourceFormat.Jpeg,\r\n sourceData: Uint8Array,\r\n targetFormat: ImageBufferFormat.Rgb | ImageBufferFormat.Rgba | 255,\r\n flipVertically: boolean\r\n ): Pick<ImageBuffer, \"data\" | \"format\" | \"width\"> | undefined;\r\n\r\n function imageSourceFromImageBuffer(\r\n imageFormat: ImageBufferFormat.Rgb | ImageBufferFormat.Rgba,\r\n imageData: Uint8Array,\r\n imageWidth: number,\r\n imageHeight: number,\r\n targetFormat: ImageSourceFormat.Png | ImageSourceFormat.Jpeg | 255,\r\n flipVertically: boolean,\r\n jpegQuality: number\r\n ): { format: ImageSourceFormat.Jpeg | ImageSourceFormat.Png, data: Uint8Array } | undefined;\r\n\r\n /** Get the SHA1 hash of a Schema XML file, possibly including its referenced Schemas */\r\n function computeSchemaChecksum(arg: {\r\n /** the full path to the root schema XML file */\r\n schemaXmlPath: string;\r\n /** A list of directories to find referenced schemas */\r\n referencePaths: string[];\r\n /** If true, the returned SHA1 includes the hash of all referenced schemas */\r\n exactMatch?: boolean;\r\n }): string;\r\n\r\n /** When you want to associate an explanatory message with an error status value. */\r\n interface StatusCodeWithMessage<ErrorCodeType> {\r\n status: ErrorCodeType;\r\n message: string;\r\n }\r\n\r\n /** The return type of synchronous functions that may return an error or a successful result. */\r\n type ErrorStatusOrResult<ErrorCodeType, ResultType> = {\r\n /** Error from the operation. This property is defined if and only if the operation failed. */\r\n error: StatusCodeWithMessage<ErrorCodeType>;\r\n result?: never;\r\n } | {\r\n error?: never;\r\n /** Result of the operation. This property is defined if the operation completed successfully */\r\n result: ResultType;\r\n };\r\n\r\n namespace ConcurrentQuery {\r\n /**\r\n * @internal\r\n */\r\n type OnResponse = (response: DbResponse) => void;\r\n /** Configuration for concurrent query manager\r\n * @internal\r\n */\r\n }\r\n interface IConcurrentQueryManager {\r\n concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;\r\n concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;\r\n concurrentQueryShutdown(): void;\r\n }\r\n\r\n /** Concurrent query config which should be set before making first call to concurrent query manager.\r\n * @internal\r\n */\r\n export interface QueryConfig {\r\n globalQuota?: QueryQuota;\r\n ignoreDelay?: boolean;\r\n ignorePriority?: boolean;\r\n requestQueueSize?: number;\r\n workerThreads?: number;\r\n }\r\n\r\n interface TileContent {\r\n content: Uint8Array;\r\n elapsedSeconds: number;\r\n }\r\n /** Represents the current state of a pollable tile content request.\r\n * Note: lack of a \"completed\" state because polling a completed request returns the content as a Uint8Array.\r\n * @internal\r\n */\r\n const enum TileContentState {\r\n New = 0, // Request was just created and enqueued.\r\n Pending = 1, // Request is enqueued but not yet being processed.\r\n Loading = 2, // Request is being actively processed.\r\n }\r\n\r\n /** Result of generateElementGraphics conveying graphics as Uint8Array.\r\n * @internal\r\n */\r\n export interface ElementGraphicsContent {\r\n status: ElementGraphicsStatus.Success;\r\n content: Uint8Array;\r\n }\r\n\r\n /** Result of generateElementGraphics that produced no graphics.\r\n * @internal\r\n */\r\n export interface ElementGraphicsError {\r\n status: Exclude<ElementGraphicsStatus, ElementGraphicsStatus.Success>;\r\n }\r\n\r\n /** The result of generateElementGraphics.\r\n * @note generateElementGraphics produces a Promise<ElementGraphicsResult>. It only ever rejects if some unforeseen error like \"iModel not open\" or \"type error\" occurs.\r\n * @internal\r\n */\r\n export type ElementGraphicsResult = ElementGraphicsContent | ElementGraphicsError;\r\n\r\n /** Instance key for a change\r\n * @internal\r\n */\r\n export interface ChangeInstanceKey {\r\n id: Id64String;\r\n classFullName: string;\r\n changeType: \"inserted\" | \"updated\" | \"deleted\";\r\n }\r\n\r\n /** Information returned by DgnDb.queryDefinitionElementUsage. */\r\n interface DefinitionElementUsageInfo {\r\n /** The subset of input Ids that are SpatialCategory definitions. */\r\n spatialCategoryIds?: Id64String[];\r\n /** The subset of input Ids that are DrawingCategory definitions. */\r\n drawingCategoryIds?: Id64String[];\r\n /** The subset of input Ids that are SubCategory definitions. */\r\n subCategoryIds?: Id64String[];\r\n /** The subset of input Ids that are CategorySelectors. */\r\n categorySelectorIds?: Id64String[];\r\n /** The subset of input Ids that are ModelSelectors. */\r\n modelSelectorIds?: Id64String[];\r\n /** The subset of input Ids that are DisplayStyles. */\r\n displayStyleIds?: Id64String[];\r\n /** The subset of input Ids that are ViewDefinitions. */\r\n viewDefinitionIds?: Id64String[];\r\n /** The subset of input Ids that are GeometryParts. */\r\n geometryPartIds?: Id64String[];\r\n /** The subset of input Ids that are RenderMaterials. */\r\n renderMaterialIds?: Id64String[];\r\n /** The subset of input Ids that are LineStyles. */\r\n lineStyleIds?: Id64String[];\r\n /** The subset of input Ids that are Textures. */\r\n textureIds?: Id64String[];\r\n /** Ids of *other* input DefinitionElements that were not checked for usage. */\r\n otherDefinitionElementIds?: Id64String[];\r\n /** Ids of input DefinitionElements where usage was detected. */\r\n usedIds?: Id64String[];\r\n }\r\n\r\n /**\r\n * Represents all of the valid EC Specification Versions.\r\n */\r\n const enum ECVersion {\r\n V2_0 = (0x02 << 16),\r\n V3_1 = (0x03 << 16 | 0x01),\r\n V3_2 = (0x03 << 16 | 0x02),\r\n Latest = V3_2,\r\n }\r\n\r\n interface ChangesetFileProps {\r\n index: number;\r\n id: string;\r\n parentId: string;\r\n changesType: number;\r\n description: string;\r\n briefcaseId: number;\r\n pushDate: string;\r\n userCreated: string;\r\n size?: number;\r\n uncompressedSize?: number;\r\n pathname: string;\r\n }\r\n\r\n /** @see `PerStatementHealthStats` from `@itwin/core-common` */\r\n type PerStatementHealthStats = CorePerStatementHealthStats;\r\n\r\n interface ChangesetHealthStats {\r\n changesetId: string;\r\n changesetIndex: number;\r\n uncompressedSizeBytes: number;\r\n sha1ValidationTimeMs: number;\r\n insertedRows: number;\r\n updatedRows: number;\r\n deletedRows: number;\r\n totalElapsedMs: number;\r\n totalFullTableScans: number;\r\n perStatementStats: PerStatementHealthStats[];\r\n }\r\n interface ECSqlRowAdaptorOptions {\r\n abbreviateBlobs?: boolean;\r\n classIdsToClassNames?: boolean;\r\n useJsName?: boolean;\r\n doNotConvertClassIdsToClassNamesWhenAliased?: boolean; // backward compatibility\r\n }\r\n\r\n interface EmbeddedFileProps {\r\n name: string;\r\n localFileName: string;\r\n }\r\n\r\n interface EmbedFileArg extends EmbeddedFileProps {\r\n date: number;\r\n fileExt?: string;\r\n compress?: boolean;\r\n }\r\n\r\n interface EmbedFileQuery {\r\n size: number;\r\n date: number;\r\n fileExt: string;\r\n }\r\n\r\n /** @see `RscFontEncodingProps` from `@itwin/core-common` */\r\n type FontEncodingProps = RscFontEncodingProps;\r\n\r\n interface ResolveInstanceKeyArgs {\r\n partialKey?: { id: Id64String, baseClassName: string };\r\n federationGuid?: GuidString;\r\n code?: CodeProps;\r\n }\r\n\r\n interface ResolveInstanceKeyResult {\r\n id: Id64String;\r\n classFullName: string;\r\n }\r\n\r\n /** @see `FontType` from `@itwin/core-common` */\r\n type FontType = CoreFontType;\r\n\r\n interface FontFaceProps {\r\n faceName: \"regular\" | \"italic\" | \"bold\" | \"bolditalic\";\r\n familyName: string;\r\n type: FontType;\r\n subId?: number;\r\n encoding?: FontEncodingProps;\r\n }\r\n\r\n interface SQLiteOps {\r\n embedFile(arg: EmbedFileArg): void;\r\n embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;\r\n extractEmbeddedFile(arg: EmbeddedFileProps): void;\r\n getFilePath(): string;\r\n getLastInsertRowId(): number;\r\n getLastError(): string;\r\n isOpen(): boolean;\r\n isReadonly(): boolean;\r\n queryEmbeddedFile(name: string): EmbedFileQuery | undefined;\r\n queryFileProperty(props: FilePropertyProps, wantString: boolean): string | Uint8Array | undefined;\r\n queryNextAvailableFileProperty(props: FilePropertyProps): number;\r\n removeEmbeddedFile(name: string): void;\r\n replaceEmbeddedFile(arg: EmbedFileArg): void;\r\n restartDefaultTxn(): void;\r\n saveChanges(): void;\r\n saveFileProperty(props: FilePropertyProps, strValue: string | undefined, blobVal: Uint8Array | undefined): void;\r\n vacuum(arg?: { pageSize?: number, into?: LocalFileName }): void;\r\n analyze(): void;\r\n enableWalMode(yesNo?: boolean): void;\r\n /** perform a checkpoint if this db is in WAL mode. Otherwise this function does nothing.\r\n * @param mode the checkpoint mode. Default is `Truncate`.\r\n */\r\n performCheckpoint(mode?: WalCheckpointMode): void;\r\n setAutoCheckpointThreshold(frames: number): void;\r\n }\r\n\r\n /** The result of DgnDb.inlineGeometryParts.\r\n * If numSingleRefParts, numRefsInlined, and numPartsDeleted are all the same, the operation was fully successful.\r\n * Otherwise, some errors occurred inlining and/or deleting one or more parts.\r\n * A part will not be deleted unless it is first successfully inlined.\r\n */\r\n interface InlineGeometryPartsResult {\r\n /** The number of parts that were determined to have exactly one reference, making them candidates for inlining. */\r\n numCandidateParts: number;\r\n /** The number of part references successfully inlined. */\r\n numRefsInlined: number;\r\n /** The number of candidate parts that were successfully deleted after inlining. */\r\n numPartsDeleted: number;\r\n }\r\n\r\n interface SchemaReferenceProps {\r\n readonly name: string;\r\n readonly version: string;\r\n }\r\n\r\n interface SchemaItemProps {\r\n readonly $schema?: string;\r\n readonly schema?: string; // conditionally required\r\n readonly schemaVersion?: string;\r\n readonly name?: string;\r\n readonly schemaItemType?: string;\r\n readonly label?: string;\r\n readonly description?: string;\r\n readonly customAttributes?: Array<{ [value: string]: any }>;\r\n }\r\n\r\n interface SchemaProps {\r\n readonly $schema: string;\r\n readonly name: string;\r\n readonly version: string;\r\n readonly alias: string;\r\n readonly label?: string;\r\n readonly description?: string;\r\n readonly references?: SchemaReferenceProps[];\r\n readonly items?: { [name: string]: SchemaItemProps };\r\n readonly customAttributes?: Array<{ [value: string]: any }>;\r\n }\r\n\r\n interface SchemaImportOptions {\r\n readonly schemaLockHeld?: boolean;\r\n readonly skipSaveChanges?: boolean;\r\n readonly schemaSyncDbUri?: string;\r\n readonly ecSchemaXmlContext?: ECSchemaXmlContext;\r\n }\r\n\r\n interface SchemaLocalDbInfo {\r\n readonly id: string;\r\n readonly dataVer: string;\r\n readonly lastModUtc: string;\r\n }\r\n\r\n interface SchemaSyncDbInfo extends SchemaLocalDbInfo {\r\n readonly projectId: string;\r\n readonly parentChangesetId: string;\r\n readonly parentChangesetIndex?: string;\r\n }\r\n\r\n /** @see `TxnProps` from `@itwin/core-common` */\r\n export type TxnProps = CoreTxnProps;\r\n type GeometryOutputFormat = \"BinaryStream\" | \"GeometryStreamProps\";\r\n interface IGeometrySource {\r\n geom?: Uint8Array | GeometryStreamProps;\r\n builder?: ElementGeometryBuilderParams;\r\n placement?: PlacementProps;\r\n categoryId?: Id64String;\r\n is2d: boolean;\r\n }\r\n\r\n\r\n interface IGeometryPart {\r\n geom?: Uint8Array | GeometryStreamProps;\r\n builder?: ElementGeometryBuilderParamsForPart;\r\n is2d: boolean;\r\n bbox?: LowAndHighXYZProps;\r\n }\r\n\r\n\r\n\r\n\r\n /** @see `ModelExtentsProps` from `@itwin/core-common` */\r\n type ModelExtentsResponseProps = ModelExtentsProps;\r\n\r\n interface TextLayoutRangesProps {\r\n layout: Range2dProps;\r\n justification: Range2dProps;\r\n }\r\n\r\n enum TextEmphasis { None = 0, Bold = 1, Italic = 2, BoldItalic = Bold | Italic }\r\n\r\n type NoCaseCollation = \"ASCII\" | \"Latin1\";\r\n\r\n /** The native object for a Briefcase. */\r\n class DgnDb implements IConcurrentQueryManager, SQLiteOps {\r\n constructor();\r\n public readonly cloudContainer?: CloudContainer;\r\n public attachDb(filename: string, alias: string): void;\r\n public detachDb(alias: string): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public getNoCaseCollation(): NoCaseCollation;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public setNoCaseCollation(collation: NoCaseCollation): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncSetDefaultUri(syncDbUri: string): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncGetDefaultUri(): string;\r\n public schemaSyncInit(syncDbUri: string, containerId: string, overrideContainer: boolean): void;\r\n public schemaSyncPull(syncDbUri?: string): void;\r\n public schemaSyncPush(syncDbUri?: string): void;\r\n public schemaSyncEnabled(): boolean;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncGetLocalDbInfo(): SchemaLocalDbInfo | undefined;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncGetSyncDbInfo(syncDbUri: string): SchemaSyncDbInfo | undefined;\r\n public abandonChanges(): DbResult;\r\n public abandonCreateChangeset(): void;\r\n public addChildPropagatesChangesToParentRelationship(schemaName: string, relClassName: string): BentleyStatus;\r\n public invalidateFontMap(): void;\r\n public applyChangeset(changeSet: ChangesetFileProps, fastForward: boolean, noUpdateLoop?: boolean): void;\r\n public revertTimelineChanges(changeSet: ChangesetFileProps[], skipSchemaChanges: boolean): void;\r\n public attachChangeCache(changeCachePath: string): DbResult;\r\n public beginMultiTxnOperation(): DbResult;\r\n public beginPurgeOperation(): IModelStatus;\r\n public cancelElementGraphicsRequests(requestIds: string[]): void;\r\n public cancelTileContentRequests(treeId: string, contentIds: string[]): void;\r\n public cancelTo(txnId: TxnIdString): IModelStatus;\r\n public classIdToName(idString: string): string | undefined;\r\n public classNameToId(className: string): Id64String;\r\n public closeFile(): void;\r\n public completeCreateChangeset(arg: { index: number }): void;\r\n public computeProjectExtents(wantFullExtents: boolean, wantOutlierIds: boolean): { extents: Range3dProps, fullExtents?: Range3dProps, outliers?: Id64Array };\r\n public computeRangesForText(chars: string, fontId: FontId, bold: boolean, italic: boolean, widthFactor: number, height: number): TextLayoutRangesProps;\r\n public concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;\r\n public concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;\r\n public concurrentQueryShutdown(): void;\r\n public createBRepGeometry(createProps: BRepGeometryCreate): IModelStatus;\r\n public createChangeCache(changeCacheFile: ECDb, changeCachePath: string): DbResult;\r\n public createClassViewsInDb(): BentleyStatus;\r\n public createIModel(fileName: string, props: CreateEmptyStandaloneIModelProps): void;\r\n public deleteAllTxns(): void;\r\n public deleteElement(elemIdJson: string): void;\r\n public deleteElements(elementIds: Id64Array, deleteOptions?: { skipFKConstraintValidations?: boolean }): BulkDeleteElementsResult;\r\n public deleteElementAspect(aspectIdJson: string): void;\r\n public deleteLinkTableRelationship(props: RelationshipProps): DbResult;\r\n public deleteLinkTableRelationships(props: ReadonlyArray<RelationshipProps>): DbResult;\r\n public deleteLocalValue(name: string): void;\r\n public deleteModel(modelIdJson: string): void;\r\n public detachChangeCache(): number;\r\n public dropSchemas(schemaNames: ReadonlyArray<string>): void;\r\n /** @not-used-by-itwinjs-core */\r\n public dumpChangeset(changeSet: ChangesetFileProps): void;\r\n public elementGeometryCacheOperation(requestProps: ElementGeometryCacheOperationRequestProps): BentleyStatus;\r\n public embedFile(arg: EmbedFileArg): void;\r\n public embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;\r\n public enableChangesetSizeStats(enabled: boolean): DbResult;\r\n public enableTxnTesting(): void;\r\n public endMultiTxnOperation(): DbResult;\r\n public endPurgeOperation(): IModelStatus;\r\n public executeTest(testName: string, params: string): string;\r\n public exportGraphics(exportProps: any/* ExportGraphicsOptions from @itwin/core-backend */): DbResult;\r\n public exportPartGraphics(exportProps: any/* ExportPartGraphicsOptions from @itwin/core-backend */): DbResult;\r\n public exportGraphicsAsync(exportProps: any/* ExportGraphicsOptions from @itwin/core-backend */): Promise<void>;\r\n public exportPartGraphicsAsync(exportProps: any/* ExportPartGraphicsOptions from @itwin/core-backend */): Promise<void>;\r\n public exportSchema(schemaName: string, exportDirectory: string, outFileName?: string): SchemaWriteStatus;\r\n public exportSchemas(exportDirectory: string): SchemaWriteStatus;\r\n /** @not-used-by-itwinjs-core */\r\n public extractChangedInstanceIdsFromChangeSets(changeSetFileNames: string[]): ErrorStatusOrResult<IModelStatus, ChangedInstanceIdsProps>;\r\n public extractChangeSummary(changeCacheFile: ECDb, changesetFilePath: string): ErrorStatusOrResult<DbResult, string>;\r\n public extractEmbeddedFile(arg: EmbeddedFileProps): void;\r\n public findGeometryPartReferences(partIds: Id64String[], is2d: boolean): Id64String[];\r\n public generateElementGraphics(request: ElementGraphicsRequestProps): Promise<ElementGraphicsResult>;\r\n public generateElementMeshes(request: ElementMeshRequestProps): Promise<Uint8Array>;\r\n public getBriefcaseId(): number;\r\n public getChangesetSize(): number;\r\n public getChangeTrackingMemoryUsed(): number;\r\n public getCodeValueBehavior(): \"exact\" | \"trim-unicode-whitespace\";\r\n public getCurrentChangeset(): ChangesetIndexAndId;\r\n public getCurrentTxnId(): TxnIdString;\r\n public getECClassMetaData(schema: string, className: string): ErrorStatusOrResult<IModelStatus, string>;\r\n public getElement(opts: ElementLoadProps): ElementProps;\r\n public executeSql(sql: string): DbResult;\r\n public getFilePath(): string; // full path of the DgnDb file\r\n public getGeoCoordinatesFromIModelCoordinates(points: GeoCoordinatesRequestProps): GeoCoordinatesResponseProps;\r\n public getGeometryContainment(props: object): Promise<GeometryContainmentResponseProps>;\r\n public getIModelCoordinatesFromGeoCoordinates(points: IModelCoordinatesRequestProps): IModelCoordinatesResponseProps;\r\n public getIModelId(): GuidString;\r\n public getIModelProps(when?: \"pullMerge\"): IModelProps;\r\n public resolveInstanceKey(args: ResolveInstanceKeyArgs): ResolveInstanceKeyResult;\r\n public readInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): NodeJS.Dict<any>;\r\n public insertInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): Id64String;\r\n public updateInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public deleteInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public patchJsonProperties(jsonProps: string): string;\r\n public newBeGuid(): GuidString;\r\n\r\n public clearECDbCache(): void;\r\n\r\n public convertOrUpdateGeometrySource(arg: IGeometrySource, outFmt: GeometryOutputFormat, opts: ElementLoadOptions): IGeometrySource;\r\n public convertOrUpdateGeometryPart(arg: IGeometryPart, outFmt: GeometryOutputFormat, opts: ElementLoadOptions): IGeometryPart;\r\n\r\n // when lets getIModelProps know that the extents may have been updated as the result of a pullChanges and should be read directly from the iModel as opposed to the cached extents.\r\n public getITwinId(): GuidString;\r\n public getLastError(): string;\r\n public getLastInsertRowId(): number;\r\n public getLocalChanges(rootClassFilter: string[], includeInMemoryChanges: boolean): ChangeInstanceKey[]\r\n public getMassProperties(props: object): Promise<MassPropertiesResponseProps>;\r\n public getModel(opts: ModelLoadProps): ModelProps;\r\n public getMultiTxnOperationDepth(): number;\r\n public getRedoString(): string;\r\n public getSchemaProps(name: string): SchemaProps;\r\n public getSchemaPropsAsync(name: string): Promise<SchemaProps>;\r\n public getSchemaItem(schemaName: string, itemName: string): ErrorStatusOrResult<IModelStatus, string>;\r\n public getTempFileBaseName(): string;\r\n public getTileContent(treeId: string, tileId: string, callback: (result: ErrorStatusOrResult<IModelStatus, Uint8Array>) => void): void;\r\n public getTileTree(id: string, callback: (result: ErrorStatusOrResult<IModelStatus, any>) => void): void;\r\n public getTxnDescription(txnId: TxnIdString): string;\r\n public getUndoString(): string;\r\n public hasFatalTxnError(): boolean;\r\n public hasPendingTxns(): boolean;\r\n public hasUnsavedChanges(): boolean;\r\n public importFunctionalSchema(): DbResult;\r\n public importSchemasDuringSemanticRebase(schemaFileNames: string[], options?: SchemaImportOptions): void;\r\n public importSchemas(schemaFileNames: string[], options?: SchemaImportOptions): DbResult;\r\n public importXmlSchemas(serializedXmlSchemas: string[], options?: SchemaImportOptions): DbResult;\r\n public inlineGeometryPartReferences(): InlineGeometryPartsResult;\r\n public insertCodeSpec(name: string, jsonProperties: CodeSpecProperties): Id64String;\r\n public insertElement(elemProps: ElementProps, options?: { forceUseId?: boolean }): Id64String;\r\n public insertElementAspect(aspectProps: ElementAspectProps): Id64String;\r\n public insertLinkTableRelationship(props: RelationshipProps): Id64String;\r\n public insertModel(modelProps: ModelProps): Id64String;\r\n public isChangeCacheAttached(): boolean;\r\n public isGeometricModelTrackingSupported(): boolean;\r\n public isLinkTableRelationship(classFullName: string): boolean | undefined;\r\n public isOpen(): boolean;\r\n /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */\r\n public isProfilerPaused(): boolean;\r\n /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */\r\n public isProfilerRunning(): boolean;\r\n public isReadonly(): boolean;\r\n public isRedoPossible(): boolean;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public isSubClassOf(childClassFullName: string, parentClassFullName: string): boolean;\r\n public isTxnIdValid(txnId: TxnIdString): boolean;\r\n public isUndoPossible(): boolean;\r\n public logTxnError(fatal: boolean): void;\r\n public openIModel(dbName: string, mode: OpenMode, upgradeOptions?: UpgradeOptions & SchemaImportOptions, props?: SnapshotOpenOptions, container?: CloudContainer, sqliteOptions?: { busyTimeout?: number }): void;\r\n /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */\r\n public pauseProfiler(): DbResult;\r\n public pollTileContent(treeId: string, tileId: string): ErrorStatusOrResult<IModelStatus, TileContentState | TileContent>;\r\n public processGeometryStream(requestProps: ElementGeometryRequest): IModelStatus;\r\n public purgeTileTrees(modelIds: Id64Array | undefined): void;\r\n public queryDefinitionElementUsage(definitionElementIds: Id64Array): DefinitionElementUsageInfo | undefined;\r\n public queryEmbeddedFile(name: string): EmbedFileQuery | undefined;\r\n public queryFileProperty(props: FilePropertyProps, wantString: boolean): string | Uint8Array | undefined;\r\n public queryFirstTxnId(): TxnIdString;\r\n public queryLocalValue(name: string): string | undefined;\r\n // ###TODO mark deprecated use queryModelExtentsAsync\r\n public queryModelExtents(options: { id: Id64String }): { modelExtents: Range3dProps };\r\n public queryModelExtentsAsync(modelIds: Id64String[]): Promise<ModelExtentsResponseProps[]>;\r\n public queryNextAvailableFileProperty(props: FilePropertyProps): number;\r\n public queryNextTxnId(txnId: TxnIdString): TxnIdString;\r\n public queryPreviousTxnId(txnId: TxnIdString): TxnIdString;\r\n public queryTextureData(opts: TextureLoadProps): Promise<TextureData | undefined>;\r\n public readFontMap(): { fonts: FontProps[] };\r\n public reinstateTxn(): IModelStatus;\r\n public getNextReinstateTxnRange(): { firstTxnId: TxnIdString, lastTxnId: TxnIdString };\r\n public removeEmbeddedFile(name: string): void;\r\n public replaceEmbeddedFile(arg: EmbedFileArg): void;\r\n public resetBriefcaseId(idValue: number): void;\r\n public restartDefaultTxn(): void;\r\n public restartTxnSession(): void;\r\n public currentTxnSessionId(): number;\r\n /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */\r\n public resumeProfiler(): DbResult;\r\n public reverseAll(): IModelStatus;\r\n public reverseTo(txnId: TxnIdString): IModelStatus;\r\n public reverseTxns(numOperations: number): IModelStatus;\r\n public saveChanges(description?: string): DbResult;\r\n public saveFileProperty(props: FilePropertyProps, strValue: string | undefined, blobVal: Uint8Array | undefined): void;\r\n public saveLocalValue(name: string, value: string | undefined): void;\r\n public schemaToXmlString(schemaName: string, version?: ECVersion): string | undefined;\r\n public setGeometricModelTrackingEnabled(enabled: boolean): ErrorStatusOrResult<IModelStatus, boolean>;\r\n public setIModelDb(iModelDb?: any/* IModelDb from @itwin/core-backend */): void;\r\n public setIModelId(guid: GuidString): DbResult;\r\n public setITwinId(guid: GuidString): DbResult;\r\n /** @not-used-by-itwinjs-core */\r\n public setBusyTimeout(ms: number): void;\r\n public setCodeValueBehavior(newBehavior: \"exact\" | \"trim-unicode-whitespace\"): void;\r\n public simplifyElementGeometry(simplifyArgs: any/* SimplifyElementGeometryArgs from @itwin/core-backend */): IModelStatus;\r\n public startCreateChangeset(): ChangesetFileProps;\r\n /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */\r\n public startProfiler(scopeName?: string, scenarioName?: string, overrideFile?: boolean, computeExecutionPlan?: boolean): DbResult;\r\n /** @not-used-by-itwinjs-core Part of the SQLite profiler API, which iTwin.js does not surface. */\r\n public stopProfiler(): { rc: DbResult, elapsedTime?: number, scopeId?: number, fileName?: string };\r\n public enableChangesetStatsTracking(): void;\r\n public disableChangesetStatsTracking(): void;\r\n /** @not-used-by-itwinjs-core Core calls `getAllChangesetHealthData` instead. */\r\n public getChangesetHealthData(changesetId: string): ChangesetHealthStats;\r\n public getAllChangesetHealthData(): ChangesetHealthStats[];\r\n public updateElement(elemProps: Partial<ElementProps>): void;\r\n public changeElementParent(props: { id: Id64String, parentId: Id64String }): void;\r\n public changeElementModel(props: { id: Id64String, modelId: Id64String }): void;\r\n public updateElementAspect(aspectProps: ElementAspectProps): void;\r\n public updateElementGeometryCache(props: ElementGeometryCacheRequestProps): Promise<ElementGeometryCacheResponseProps>;\r\n public updateIModelProps(props: IModelProps): void;\r\n public updateLinkTableRelationship(props: RelationshipProps): DbResult;\r\n public updateModel(modelProps: ModelProps): void;\r\n public updateModelGeometryGuid(modelId: Id64String): IModelStatus;\r\n public updateProjectExtents(newExtentsJson: string): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public writeAffectedElementDependencyGraphToFile(dotFileName: string, changedElems: Id64Array): BentleyStatus;\r\n public writeFullElementDependencyGraphToFile(dotFileName: string): BentleyStatus;\r\n public vacuum(arg?: { pageSize?: number, into?: LocalFileName }): void;\r\n public analyze(): void;\r\n public enableWalMode(yesNo?: boolean): void;\r\n public performCheckpoint(mode?: WalCheckpointMode): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public setAutoCheckpointThreshold(frames: number): void;\r\n\r\n public pullMergeGetStage(): \"None\" | \"Merging\" | \"Rebasing\";\r\n public pullMergeRebaseReinstateTxn(): void;\r\n public pullMergeRebaseUpdateTxn(): void;\r\n public pullMergeRebaseNext(): TxnIdString | undefined;\r\n public pullMergeRebaseAbortTxn(): void\r\n public pullMergeRebaseBegin(): TxnIdString[];\r\n public pullMergeRebaseEnd(): void;\r\n public pullMergeReverseLocalChanges(captureInstanceChanges?: boolean): TxnIdString[];\r\n public stashChanges(args: { stashRootDir: string, description: string, iModelId: string, resetBriefcase?: true}): any;\r\n public stashRestore(stashFile: string): void;\r\n /** @not-used-by-itwinjs-core */\r\n public getPendingTxnsHash(includeReversedTxns: boolean): string;\r\n public hasPendingSchemaChanges(): boolean;\r\n public discardLocalChanges(): void;\r\n public getTxnProps(id: TxnIdString): TxnProps | undefined;\r\n public setTxnMode(mode: \"direct\" | \"indirect\"): void;\r\n public getTxnMode(): \"direct\" | \"indirect\";\r\n /** @not-used-by-itwinjs-core */\r\n public static enableSharedCache(enable: boolean): DbResult;\r\n public static getAssetsDir(): string;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public static zlibCompress(data: Uint8Array): Uint8Array;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public static zlibDecompress(data: Uint8Array, actualSize: number): Uint8Array;\r\n public static computeChangesetId(args: Partial<ChangesetFileProps> & Required<Pick<ChangesetFileProps, \"parentId\" | \"pathname\">>): string;\r\n }\r\n\r\n /** The native object for GeoServices. */\r\n class GeoServices {\r\n constructor();\r\n public static getGeographicCRSInterpretation(props: GeographicCRSInterpretRequestProps): GeographicCRSInterpretResponseProps;\r\n public static getListOfCRS(extent?: Range2dProps, includeWorld?: boolean, unit?: string): Array<{ name: string, description: string, deprecated: boolean, crsExtent: Range2dProps, unit: string }>;\r\n public static getAvailableUnitNames(): string[];\r\n }\r\n\r\n /**\r\n * The native object for SchemaUtility\r\n * @internal\r\n */\r\n class SchemaUtility {\r\n constructor();\r\n /** Converts given schemas and their reference schemas to EC3.2 schemas */\r\n public static convertCustomAttributes(xmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];\r\n public static convertEC2XmlSchemas(ec2XmlSchemas: string[], schemaContext?: ECSchemaXmlContext): string[];\r\n }\r\n\r\n class ECDb implements IConcurrentQueryManager {\r\n constructor();\r\n public abandonChanges(): DbResult;\r\n public closeDb(): void;\r\n public createDb(dbName: string): DbResult;\r\n public dispose(): void;\r\n public dropSchemas(schemaNames: ReadonlyArray<string>): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncSetDefaultUri(syncDbUri: string): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncGetDefaultUri(): string;\r\n public schemaSyncInit(syncDbUri: string, containerId: string, overrideContainer: boolean): void;\r\n public schemaSyncPull(syncDbUri: string | undefined): void;\r\n public schemaSyncPush(syncDbUri: string | undefined): void;\r\n public schemaSyncEnabled(): boolean;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncGetLocalDbInfo(): SchemaLocalDbInfo | undefined;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public schemaSyncGetSyncDbInfo(): SchemaSyncDbInfo | undefined;\r\n public getFilePath(): string;\r\n public resolveInstanceKey(args: ResolveInstanceKeyArgs): ResolveInstanceKeyResult;\r\n public readInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): NodeJS.Dict<any>;\r\n public insertInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): Id64String;\r\n public updateInstance(inst: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public deleteInstance(key: NodeJS.Dict<any>, args: NodeJS.Dict<any>): boolean;\r\n public getSchemaProps(name: string): SchemaProps;\r\n public importSchema(schemaPathName: string): DbResult;\r\n public isOpen(): boolean;\r\n public openDb(dbName: string, mode: OpenMode, upgradeProfiles?: boolean): DbResult;\r\n public saveChanges(changesetName?: string): DbResult;\r\n public getLastError(): string;\r\n public getLastInsertRowId(): number;\r\n /** @not-used-by-itwinjs-core */\r\n public static enableSharedCache(enable: boolean): DbResult;\r\n public concurrentQueryExecute(request: DbRequest, onResponse: ConcurrentQuery.OnResponse): void;\r\n public concurrentQueryResetConfig(config?: QueryConfig): QueryConfig;\r\n public concurrentQueryShutdown(): void;\r\n public attachDb(filename: string, alias: string): void;\r\n public detachDb(alias: string): void;\r\n public clearECDbCache(): void;\r\n }\r\n\r\n class ChangedElementsECDb {\r\n constructor();\r\n public dispose(): void;\r\n public createDb(db: DgnDb, dbName: string): DbResult;\r\n public openDb(dbName: string, mode: OpenMode, upgradeProfiles?: boolean): DbResult;\r\n public isOpen(): boolean;\r\n public closeDb(): void;\r\n public processChangesets(db: DgnDb, changesets: ChangesetFileProps[], rulesetId: string, filterSpatial?: boolean, wantParents?: boolean, wantPropertyChecksums?: boolean, rulesetDir?: string, tempDir?: string, wantChunkTraversal?: boolean): DbResult;\r\n public processChangesetsAndRoll(dbFilename: string, dbGuid: string, changesets: ChangesetFileProps[], rulesetId: string, filterSpatial?: boolean, wantParents?: boolean, wantPropertyChecksums?: boolean, rulesetDir?: string, tempDir?: string, wantRelationshipCaching?: boolean, relationshipCacheSize?: number, wantChunkTraversal?: boolean, wantBoundingBoxes?: boolean): DbResult;\r\n public getChangedElements(startChangesetId: string, endChangesetId: string): ErrorStatusOrResult<IModelStatus, any>;\r\n public isProcessed(changesetId: string): boolean;\r\n public cleanCaches(): void;\r\n }\r\n\r\n class ECSqlStatement {\r\n constructor();\r\n public clearBindings(): DbResult;\r\n public dispose(): void;\r\n public getBinder(param: number | string): ECSqlBinder;\r\n public getColumnCount(): number;\r\n public getValue(columnIndex: number): ECSqlValue;\r\n public prepare(db: AnyECDb, ecsql: string, logErrors?: boolean): StatusCodeWithMessage<DbResult>;\r\n public reset(): DbResult;\r\n public step(): DbResult;\r\n public stepAsync(callback: (result: DbResult) => void): void;\r\n public stepForInsert(): { status: DbResult, id: string };\r\n /** @not-used-by-itwinjs-core */\r\n public stepForInsertAsync(callback: (result: { status: DbResult, id: string }) => void): void;\r\n public getNativeSql(): string;\r\n public toRow(arg: ECSqlRowAdaptorOptions): any;\r\n public getMetadata(arg?: ECSqlRowAdaptorOptions): any;\r\n public bindParams(args: object): StatusCodeWithMessage<boolean>;\r\n }\r\n\r\n class ECSqlBinder {\r\n constructor();\r\n public addArrayElement(): ECSqlBinder;\r\n public bindBlob(base64String: string | Uint8Array | ArrayBuffer | SharedArrayBuffer): DbResult;\r\n public bindBoolean(val: boolean): DbResult;\r\n public bindDateTime(isoString: string): DbResult;\r\n public bindDouble(val: number): DbResult;\r\n public bindGuid(guidStr: GuidString): DbResult;\r\n public bindId(hexStr: Id64String): DbResult;\r\n public bindIdSet(hexVector: Id64String[]): DbResult;\r\n public bindInteger(val: number | string): DbResult;\r\n public bindMember(memberName: string): ECSqlBinder;\r\n public bindNavigation(navIdHexStr: Id64String, relClassName?: string, relClassTableSpace?: string): DbResult;\r\n public bindNull(): DbResult;\r\n public bindPoint2d(x: number, y: number): DbResult;\r\n public bindPoint3d(x: number, y: number, z: number): DbResult;\r\n public bindString(val: string): DbResult;\r\n }\r\n\r\n class ECSqlColumnInfo {\r\n constructor();\r\n public getAccessString(): string;\r\n public getPropertyName(): string;\r\n public getOriginPropertyName(): string | undefined;\r\n /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */\r\n public getRootClassAlias(): string;\r\n /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */\r\n public getRootClassName(): string;\r\n /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */\r\n public getRootClassTableSpace(): string;\r\n public getType(): number;\r\n public isEnum(): boolean;\r\n public isGeneratedProperty(): boolean;\r\n public isSystemProperty(): boolean;\r\n public isDynamicProp(): boolean;\r\n }\r\n\r\n class ECSqlValue {\r\n constructor();\r\n public getArrayIterator(): ECSqlValueIterator;\r\n public getBlob(): Uint8Array;\r\n public getBoolean(): boolean;\r\n public getClassNameForClassId(): string;\r\n public getColumnInfo(): ECSqlColumnInfo;\r\n public getDateTime(): string;\r\n public getDouble(): number;\r\n public getEnum(): Array<{ schema: string, name: string, key: string, value: number | string }> | undefined;\r\n public getGeometry(): string;\r\n public getGuid(): GuidString;\r\n public getId(): Id64String;\r\n public getInt(): number;\r\n public getInt64(): number;\r\n public getNavigation(): { id: Id64String, relClassName?: string };\r\n public getPoint2d(): { x: number, y: number };\r\n public getPoint3d(): { x: number, y: number, z: number };\r\n public getString(): string;\r\n public getStructIterator(): ECSqlValueIterator;\r\n public isNull(): boolean;\r\n }\r\n\r\n class ECSqlValueIterator {\r\n constructor();\r\n public getCurrent(): ECSqlValue;\r\n public moveNext(): boolean;\r\n }\r\n\r\n /** Default transaction mode for SQLiteDbs.\r\n * @see https://www.sqlite.org/lang_transaction.html\r\n */\r\n const enum DefaultTxnMode {\r\n /** no default transaction is started. You must use BEGIN/COMMIT or SQLite will use implicit transactions */\r\n None = 0,\r\n /** A deferred transaction is started when the file is first opened. This is the default. */\r\n Deferred = 1,\r\n /** An immediate transaction is started when the file is first opened. */\r\n Immediate = 2,\r\n /** An exclusive transaction is started when the file is first opened. */\r\n Exclusive = 3\r\n }\r\n\r\n /** parameters common to opening or creating a new SQLiteDb */\r\n interface SQLiteDbOpenOrCreateParams {\r\n /** If true, do not require that the `be_Prop` table exist */\r\n rawSQLite?: boolean;\r\n /** @see immutable option at https://www.sqlite.org/c3ref/open.html */\r\n immutable?: boolean;\r\n /** Do not attempt to verify that the file is a valid sQLite file before opening. */\r\n skipFileCheck?: boolean;\r\n /** the default transaction mode\r\n * @see [[SQLiteDb.DefaultTxnMode]]\r\n */\r\n defaultTxn?: 0 | 1 | 2 | 3;\r\n /** see query parameters from 'URI Filenames' in https://www.sqlite.org/c3ref/open.html */\r\n queryParam?: string;\r\n }\r\n\r\n /** Parameters for opening an existing SQLiteDb */\r\n interface SQLiteDbOpenParams extends SQLiteDbOpenOrCreateParams {\r\n /** use OpenMode.ReadWrite to open the file with write access */\r\n openMode: OpenMode;\r\n }\r\n\r\n /** Size of a SQLiteDb page in bytes */\r\n interface PageSize {\r\n /** see https://www.sqlite.org/pragma.html#pragma_page_size */\r\n pageSize?: number;\r\n }\r\n\r\n /** Parameters for creating a new SQLiteDb */\r\n type SQLiteDbCreateParams = SQLiteDbOpenOrCreateParams & PageSize;\r\n\r\n class SQLiteDb implements SQLiteOps {\r\n constructor();\r\n public readonly cloudContainer?: CloudContainer;\r\n public abandonChanges(): void;\r\n /**\r\n * Apply a raw sqlite changeset file - the plain, uncompressed byte stream produced by the sqlite\r\n * session extension - to this SQLiteDb. This is *not* the same on-disk format used for iModel\r\n * changesets. Unlike DgnDb.applyChangeset, this does *not* validate any changeset header\r\n * (parentId/changesetId) against the current state of the db, and it does *not* support DDL/schema\r\n * changes (raw sqlite changesets cannot represent them) - it simply applies the row-level changes.\r\n * Any conflict encountered while applying causes the entire apply to fail and throw.\r\n */\r\n public applyChangeset(changesetFile: LocalFileName): void;\r\n public closeDb(): void;\r\n /**\r\n * Write out the changes captured since startChangeTracking() was called, to a changeset file holding\r\n * the raw sqlite changeset (the plain, uncompressed byte stream produced by the sqlite session\r\n * extension) - this is *not* the same on-disk format used for iModel changesets. Raw sqlite changesets\r\n * cannot represent DDL/schema changes, so this throws if any DDL was captured since\r\n * startChangeTracking() was called. Used only for testing.\r\n */\r\n public createChangeset(changesetFile: LocalFileName): void;\r\n public createDb(dbName: string, container?: CloudContainer, params?: SQLiteDbCreateParams): void;\r\n public dispose(): void;\r\n public embedFile(arg: EmbedFileArg): void;\r\n public embedFontFile(id: number, faces: FontFaceProps[], data: Uint8Array, compress: boolean): void;\r\n /** Execute a DDL statement so it will be captured by change tracking, if active. */\r\n public executeDdl(ddl: string): void;\r\n public extractEmbeddedFile(arg: EmbeddedFileProps): void;\r\n public getFilePath(): string;\r\n public getLastError(): string;\r\n public getLastInsertRowId(): number;\r\n public isOpen(): boolean;\r\n public isReadonly(): boolean;\r\n public openDb(dbName: string, mode: OpenMode | SQLiteDbOpenParams, container?: CloudContainer): void;\r\n public queryEmbeddedFile(name: string): EmbedFileQuery | undefined;\r\n public queryFileProperty(props: FilePropertyProps, wantString: boolean): string | Uint8Array | undefined;\r\n public queryNextAvailableFileProperty(props: FilePropertyProps): number;\r\n public removeEmbeddedFile(name: string): void;\r\n public replaceEmbeddedFile(arg: EmbedFileArg): void;\r\n public restartDefaultTxn(): void;\r\n public saveChanges(): void;\r\n public saveFileProperty(props: FilePropertyProps, strValue: string | undefined, blobVal?: Uint8Array): void;\r\n /** Begin capturing DDL/data changes made to this SQLiteDb. Used only to produce test changeset files. */\r\n public startChangeTracking(): void;\r\n public vacuum(arg?: { pageSize?: number, into?: LocalFileName }): void;\r\n public analyze(): void;\r\n public enableWalMode(yesNo?: boolean): void;\r\n public performCheckpoint(mode?: WalCheckpointMode): void;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public setAutoCheckpointThreshold(frames: number): void;\r\n }\r\n\r\n class SqliteStatement {\r\n constructor();\r\n public bindBlob(param: number | string, val: Uint8Array | ArrayBuffer | SharedArrayBuffer): DbResult;\r\n public bindDouble(param: number | string, val: number): DbResult;\r\n public bindGuid(param: number | string, guidStr: GuidString): DbResult;\r\n public bindId(param: number | string, hexStr: Id64String): DbResult;\r\n public bindInteger(param: number | string, val: number | string): DbResult;\r\n public bindNull(param: number | string): DbResult;\r\n public bindString(param: number | string, val: string): DbResult;\r\n public clearBindings(): DbResult;\r\n public dispose(): void;\r\n public getColumnBytes(columnIndex: number): number;\r\n public getColumnCount(): number;\r\n public getColumnName(columnIndex: number): string;\r\n public getColumnType(columnIndex: number): number;\r\n public getValueBlob(columnIndex: number): Uint8Array;\r\n public getValueDouble(columnIndex: number): number;\r\n public getValueGuid(columnIndex: number): GuidString;\r\n public getValueId(columnIndex: number): Id64String;\r\n public getValueInteger(columnIndex: number): number;\r\n public getValueString(columnIndex: number): string;\r\n public isReadonly(): boolean;\r\n public isValueNull(columnIndex: number): boolean;\r\n public prepare(db: AnyDb, sql: string, logErrors?: boolean): void;\r\n public reset(): DbResult;\r\n public step(): DbResult;\r\n public stepAsync(callback: (result: DbResult) => void): void;\r\n }\r\n\r\n /** Incremental IO for blobs */\r\n class BlobIO {\r\n constructor();\r\n /** Close this BlobIO if it is opened.\r\n * @note this BlobIO *may* be reused after this call by calling `open` again.\r\n */\r\n public close(): void;\r\n /** get the total number of bytes in the blob\r\n * @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there.\r\n */\r\n public getNumBytes(): number;\r\n /** @return true if this BlobIO was successfully opened and may be use to read or write the blob */\r\n public isValid(): boolean;\r\n /** Open this BlobIO against a table/row/column in a Db */\r\n public open(\r\n /** The database for the blob */\r\n db: AnyDb,\r\n args: {\r\n /** the name of the table for the blob*/\r\n tableName: string;\r\n /** the name of the column for the blob */\r\n columnName: string;\r\n /** The rowId of the blob */\r\n row: number;\r\n /** If true, open this BlobIO for write access */\r\n writeable?: boolean;\r\n }): void;\r\n /** Read from a blob\r\n * @returns the contents of the requested byte range\r\n */\r\n public read(args: {\r\n /** The number of bytes to read */\r\n numBytes: number;\r\n /** starting offset within the blob to read */\r\n offset: number;\r\n /** If present and of sufficient size, use this ArrayBuffer for the value. */\r\n blob?: ArrayBuffer;\r\n }): Uint8Array;\r\n /** Reposition this BlobIO to a new rowId\r\n * @note this BlobIO must be valid when this methods is called.\r\n * @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there.\r\n */\r\n public changeRow(row: number): void;\r\n /** Write to a blob */\r\n public write(args: {\r\n /** The number of bytes to write */\r\n numBytes: number;\r\n /** starting offset within the blob to write */\r\n offset: number;\r\n /** the value to write */\r\n blob: ArrayBuffer;\r\n }): void;\r\n }\r\n\r\n /** Filter options passed to CloudContainer.queryHttpLog */\r\n interface BcvHttpLogFilterOptions {\r\n /** only return rows whose ID is >= the provided id */\r\n startFromId?: number;\r\n /** only return rows whose endTime is null OR >= the provided endTime. */\r\n finishedAtOrAfterTime?: string;\r\n /** only return rows with a non-null end_time. */\r\n showOnlyFinished?: boolean;\r\n }\r\n\r\n interface BcvStatsFilterOptions {\r\n /** if true, adds activeClients, totalClients, ongoingPrefetches, and attachedContainers to the result. */\r\n addClientInformation?: boolean;\r\n }\r\n\r\n /**\r\n * A cache for storing data from CloudSqlite databases. This object refers to a directory on a local filesystem\r\n * and is used to **connect** CloudContainers so they may be accessed. The contents of the cache directory are entirely\r\n * controlled by CloudSqlite and should be empty when the cache is first created and never modified directly. It maintains\r\n * the state of the local data across sessions.\r\n * @note All CloudContainers attached to a CloudCache must have the same block size, as determined by the first one connected.\r\n */\r\n class CloudCache {\r\n /** Create an instance of a CloudCache. */\r\n public constructor(props: NativeCloudSqlite.CacheProps);\r\n /** `true` if this CloudCache is connected to a daemon process */\r\n public get isDaemon(): boolean;\r\n /** The name for this CloudCache. */\r\n public get name(): string;\r\n /** The root directory of this CloudCache on a local drive. */\r\n public get rootDir(): LocalDirName;\r\n /** The guid for this CloudCache. Used for acquiring write lock. */\r\n public get guid(): GuidString;\r\n public setLogMask(mask: number): void;\r\n /** destroy this CloudCache. All CloudContainers currently connected are disconnected. */\r\n public destroy(): void;\r\n }\r\n\r\n /** A CloudSqlite container that may be connected to a CloudCache. */\r\n class CloudContainer {\r\n /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */\r\n public onConnect?: (container: CloudContainer, cache: CloudCache) => void;\r\n public onConnected?: (container: CloudContainer) => void;\r\n public onDisconnect?: (container: CloudContainer, detach: boolean) => void;\r\n /** @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there. */\r\n public onDisconnected?: (container: CloudContainer, detach: boolean) => void;\r\n\r\n public readonly cache?: CloudCache;\r\n /** Create a new instance of a CloudContainer. It must be connected to a CloudCache for most operations. */\r\n public constructor(props: NativeCloudSqlite.ContainerAccessProps);\r\n /** the baseUri of this container */\r\n public get baseUri(): string;\r\n /** the storageType of this container */\r\n public get storageType(): string;\r\n /** The ContainerId. */\r\n public get containerId(): string;\r\n /** The *alias* to identify this CloudContainer in a CloudCache. Usually just the ContainerId. */\r\n public get alias(): string;\r\n /** The logId. */\r\n public get logId(): string;\r\n /** The time that the write lock expires. Of the form 'YYYY-MM-DDTHH:MM:SS.000Z' in UTC.\r\n * Returns empty string if write lock is not held.\r\n */\r\n public get writeLockExpires(): string;\r\n /** true if this CloudContainer is currently connected to a CloudCache via the `connect` method. */\r\n public get isConnected(): boolean;\r\n /** true if this CloudContainer was created with the `writeable` flag (and its `accessToken` supplies write access). */\r\n public get isWriteable(): boolean;\r\n /** true if this container is public (doesn't require authorization ). */\r\n public get isPublic(): boolean;\r\n /** true if this CloudContainer currently holds the write lock for its container in the cloud. */\r\n public get hasWriteLock(): boolean;\r\n /** true if this CloudContainer has local changes that have not be uploaded to its container in the cloud. */\r\n public get hasLocalChanges(): boolean;\r\n /** The current accessToken providing access to the cloud container */\r\n public get accessToken(): string;\r\n public set accessToken(val: string);\r\n /** Get the number of garbage blocks in this container that can be purged. */\r\n public get garbageBlocks(): number;\r\n /** The block size for this CloudContainer. */\r\n public get blockSize(): number;\r\n\r\n /**\r\n * initialize a cloud blob-store container to be used as a new Sqlite CloudContainer. This creates the manifest, and should be\r\n * performed on an empty container. If an existing manifest is present, it is destroyed and a new one is created (essentially emptying the container.)\r\n */\r\n public initializeContainer(opts: { checksumBlockNames?: boolean, blockSize: number }): void;\r\n\r\n /**\r\n * Attempt to acquire the write lock for this CloudContainer. For this to succeed:\r\n * 1. it must be connected to a `CloudCache`\r\n * 2. this CloudContainer must have been constructed with `writeable: true`\r\n * 3. the `accessToken` must authorize write access\r\n * 4. no other process may be holding an unexpired write lock\r\n * @throws exception if any of the above conditions fail\r\n * @note Write locks *expire* after the duration specified in the `durationSeconds` property of the constructor argument, in case a process\r\n * crashes or otherwise fails to release the lock. Calling `acquireWriteLock` with the lock already held resets the lock duration from the current time,\r\n * so long running processes should call this method periodically to ensure their lock doesn't expire (they should also make sure their accessToken is refreshed\r\n * before it expires.)\r\n * @note on success, the manifest is polled before the promise resolves.\r\n * @param user An identifier of the process/user locking the CloudContainer. In the event of a write lock\r\n * collision, this string will be included in the exception string of the *other* process attempting to obtain a write lock.\r\n */\r\n public acquireWriteLock(user: string): void;\r\n\r\n /**\r\n * Release the write lock if it is currently held.\r\n * @note if there are local changes that have not been uploaded, they are automatically uploaded before the write lock is released.\r\n * @note if the write lock is not held, this method does nothing.\r\n */\r\n public releaseWriteLock(): void;\r\n\r\n /**\r\n * Destroy any currently valid write lock from this or any other process. This is obviously very dangerous and defeats the purpose of write locking.\r\n * This method exists only for administrator tools to clear a failed process without waiting for the expiration period. It can also be useful for tests.\r\n * For this to succeed, all of the conditions of `acquireWriteLock` must be true other than #4.\r\n */\r\n public clearWriteLock(): void;\r\n\r\n /**\r\n * Abandon any local changes in this container. If the write lock is currently held, it is released.\r\n * This function fails with BE_SQLITE_BUSY if one or more clients have open read or write transactions\r\n * on any database in the container.\r\n */\r\n public abandonChanges(): void;\r\n\r\n /**\r\n * Connect this CloudContainer to a CloudCache for reading or writing its manifest, write lock, and databases.\r\n * @note A CloudCache is a local directory holding copies of information from the cloud. Its content is persistent across sessions,\r\n * but this method must be called each session to (re)establish the connection to the cache. If the CloudCache was previously populated,\r\n * this method may be called and will succeed *even when offline* or without a valid `accessToken`.\r\n * @note all operations that access the contents of databases or the manifest require this method be called (`isConnected === true`).\r\n */\r\n public connect(cache: CloudCache): void;\r\n\r\n /**\r\n * Disconnect this CloudContainer from its CloudCache. There must be no open databases from this container.\r\n */\r\n public disconnect(args?: {\r\n /** if true removes the container from the CloudCache, otherwise Leaves the container in the CloudCache so it is available for future sessions. */\r\n detach?: boolean;\r\n }): void;\r\n\r\n /**\r\n * Poll cloud storage for changes from other processes. *No changes* made by other processes are visible to\r\n * this CloudContainer unless/until this method is called.\r\n * @note this is automatically called whenever the write lock is obtained to ensure all changes are against the latest version.\r\n */\r\n public checkForChanges(): void;\r\n\r\n /**\r\n * Upload any changed blocks from all databases in this CloudContainer.\r\n * @note this is called automatically from `releaseWriteLock` before the write lock is released. It is only necessary to call this directly if you\r\n * wish to upload changes while the write lock is still held.\r\n * @see hasLocalChanges\r\n */\r\n public uploadChanges(): Promise<void>;\r\n\r\n /**\r\n * Create a copy of an existing database within this CloudContainer with a new name.\r\n * @note CloudSqlite uses copy-on-write semantics for this operation. That is, this method merely makes a\r\n * new entry in the manifest with the new name that *shares* all of its blocks with the original database.\r\n * If either database subsequently changes, the only modified blocks are not shared.\r\n */\r\n public copyDatabase(dbName: string, toAlias: string): Promise<void>;\r\n\r\n /** Remove a database from this CloudContainer, moving all of its no longer used blocks to the delete list in the manifest.\r\n * @see [[CloudSqlite.CleanDeletedBlocksJob]] to actually delete the blocks from the delete list.\r\n */\r\n public deleteDatabase(dbName: string): Promise<void>;\r\n\r\n /** Get the list of database names in this CloudContainer.\r\n * @param globArg if present, filter the results with SQLite [GLOB](https://www.sqlite.org/lang_expr.html#glob) operator.\r\n */\r\n public queryDatabases(globArg?: string): string[];\r\n\r\n /**\r\n * Get the status of a specific database in this CloudContainer.\r\n * @param dbName the name of the database of interest\r\n */\r\n public queryDatabase(dbName: string): NativeCloudSqlite.CachedDbProps | undefined;\r\n\r\n /**\r\n * query the bcv_http_log table\r\n * @note the bcv_http_log table contains one row for each HTTP request made by the VFS or connected daemon.\r\n * @note Entries are automatically removed from the table on a FIFO basis. By default entries which are 1 hr old will be removed.\r\n */\r\n public queryHttpLog(filterOptions?: BcvHttpLogFilterOptions): NativeCloudSqlite.BcvHttpLog[];\r\n\r\n /**\r\n * query the bcv_stat table.\r\n * @internal\r\n */\r\n public queryBcvStats(filterOptions?: BcvStatsFilterOptions): NativeCloudSqlite.BcvStats;\r\n\r\n /**\r\n * Get the SHA1 hash of the content of a database.\r\n * @param dbName the name of the database of interest\r\n * @note the hash will be empty if the database does not exist\r\n * @not-used-by-itwinjs-core Re-declared in @itwin/core-backend's public API, but never called there.\r\n */\r\n public queryDatabaseHash(dbName: string): string;\r\n }\r\n\r\n /**\r\n * Object to perform an \"upload\" or \"download\" of a database to/from a CloudContainer.\r\n * @note The transfer begins when the object is constructed, and the object remains alive during the upload/download operation.\r\n * It provides the Promise that is resolved when the operation completes or fails, and has methods to provide feedback for progress and to cancel the operation prematurely.\r\n */\r\n class CancellableCloudSqliteJob {\r\n /** create an instance of a transfer. The operation begins immediately when the object is created.\r\n * @param direction either \"upload\" or \"download\"\r\n * @param container the container holding the database. Does *not* require that the container be connected to a CloudCache.\r\n * @param args The properties for the source and target of the transfer.\r\n */\r\n constructor(direction: NativeCloudSqlite.TransferDirection | \"cleanup\", container: CloudContainer, args: NativeCloudSqlite.TransferDbProps | NativeCloudSqlite.CleanDeletedBlocksOptions);\r\n\r\n /** Cancel a currently pending transfer and cause the promise to be rejected with a Cancelled status.\r\n * @throws exception if the operation has already completed.\r\n */\r\n public cancelTransfer(): void;\r\n /** Get the current progress of the transfer.\r\n * @throws exception if the operation has already completed.\r\n */\r\n public getProgress(): { loaded: number, total: number };\r\n\r\n /**\r\n * Only applicable to cleanup jobs. Calling this in a download or upload job will also stop the job but without saving progress.\r\n * During a cleanup job, if any blocks have been deleted, the job will stop and upload the manifest reflecting which blocks have been deleted.\r\n */\r\n public stopAndSaveProgress(): void;\r\n\r\n /** Promise that is resolved when the transfer completes, or is rejected if the transfer fails (or is cancelled.) */\r\n public promise: Promise<void>;\r\n }\r\n\r\n class CloudPrefetch {\r\n public readonly cloudContainer: CloudContainer;\r\n public readonly dbName: string;\r\n\r\n /** create an instance of a prefetch operation. The operation begins immediately when the object is created.\r\n * The prefetch will continue in the background until it either finishes, is canceled, or the CloudContainer is disconnected from its CloudCache.\r\n * @param container the container holding the database.\r\n * @param dbName the name of the database to prefetch\r\n */\r\n constructor(container: CloudContainer, dbName: string, args?: NativeCloudSqlite.PrefetchProps);\r\n\r\n /** Cancel a currently pending prefetch. The promise will be resolved immediately after this call. */\r\n public cancel(): void;\r\n\r\n /**\r\n * Promise that is resolved when the prefetch completes or is cancelled. Await this promise to ensure that the\r\n * database has been fully downloaded before going offline, for example.\r\n * @returns a Promise that resolves to `true` if the prefetch completed and the entire database is local, or `false` if it was aborted or failed.\r\n * @note the promise is *not* rejected on `cancel`. Some progress may (or may not) have been made by the request.\r\n * @note To monitor the progress being made during prefetch, call `CloudContainer.queryDatabase` periodically.\r\n */\r\n public promise: Promise<boolean>;\r\n }\r\n\r\n const enum ECPresentationStatus {\r\n Success = 0,\r\n Canceled = 1,\r\n Pending = 2,\r\n Error = 0x10000,\r\n InvalidArgument = Error + 1,\r\n ResultSetTooLarge = Error + 2,\r\n }\r\n\r\n interface ECPresentationMemoryHierarchyCacheConfig {\r\n mode: \"memory\";\r\n }\r\n\r\n interface ECPresentationDiskHierarchyCacheConfig {\r\n mode: \"disk\";\r\n directory: string;\r\n memoryCacheSize?: number;\r\n }\r\n\r\n interface ECPresentationHybridHierarchyCacheConfig {\r\n mode: \"hybrid\";\r\n disk?: ECPresentationDiskHierarchyCacheConfig;\r\n }\r\n\r\n type ECPresentationHierarchyCacheConfig = ECPresentationMemoryHierarchyCacheConfig | ECPresentationDiskHierarchyCacheConfig | ECPresentationHybridHierarchyCacheConfig;\r\n\r\n type ECPresentationManagerResponse<TResult> = ErrorStatusOrResult<ECPresentationStatus, TResult> & {\r\n diagnostics?: any;\r\n };\r\n\r\n interface ECPresentationManagerProps {\r\n id: string;\r\n taskAllocationsMap: { [priority: number]: number };\r\n defaultFormats: {\r\n [phenomenon: string]: Array<{\r\n unitSystems: string[];\r\n serializedFormat: string;\r\n }>;\r\n };\r\n updateCallback: (updateInfo: any) => void;\r\n cacheConfig: ECPresentationHierarchyCacheConfig;\r\n contentCacheSize?: number;\r\n workerConnectionCacheSize?: number;\r\n useMmap?: boolean | number;\r\n }\r\n\r\n class ECPresentationManager {\r\n constructor(props: ECPresentationManagerProps);\r\n public forceLoadSchemas(db: DgnDb): Promise<ECPresentationManagerResponse<void>>;\r\n public setupRulesetDirectories(directories: string[]): ECPresentationManagerResponse<void>;\r\n public setupSupplementalRulesetDirectories(directories: string[]): ECPresentationManagerResponse<void>;\r\n public setRulesetVariableValue(rulesetId: string, variableId: string, type: string, value: any): ECPresentationManagerResponse<void>;\r\n public unsetRulesetVariableValue(rulesetId: string, variableId: string): ECPresentationManagerResponse<void>;\r\n public getRulesetVariableValue(rulesetId: string, variableId: string, type: string): ECPresentationManagerResponse<any>;\r\n public registerSupplementalRuleset(serializedRuleset: string): ECPresentationManagerResponse<string>;\r\n public getRulesets(rulesetId: string): ECPresentationManagerResponse<string>;\r\n public addRuleset(serializedRuleset: string): ECPresentationManagerResponse<string>;\r\n public removeRuleset(rulesetId: string, hash: string): ECPresentationManagerResponse<boolean>;\r\n public clearRulesets(): ECPresentationManagerResponse<void>;\r\n public handleRequest(db: DgnDb, options: string): { result: Promise<ECPresentationManagerResponse<Buffer>>, cancel: () => void };\r\n public dispose(): void;\r\n }\r\n\r\n namespace ECSchemaXmlContext {\r\n interface SchemaKey {\r\n name: string;\r\n readVersion: number;\r\n writeVersion: number;\r\n minorVersion: number;\r\n }\r\n\r\n const enum SchemaMatchType {\r\n Identical = 0, // Find exact VersionRead, VersionWrite, VersionMinor match as well as Data\r\n Exact = 1, // Find exact VersionRead, VersionWrite, VersionMinor match.\r\n LatestWriteCompatible = 2, // Find latest version with matching VersionRead and VersionWrite\r\n Latest = 3, // Find latest version.\r\n LatestReadCompatible = 4, // Find latest version with matching VersionRead\r\n }\r\n\r\n type SchemaLocaterCallback = (key: SchemaKey, matchType: SchemaMatchType) => string | undefined | void;\r\n }\r\n\r\n class ECSchemaXmlContext {\r\n constructor();\r\n public addSchemaPath(schemaPath: string): void;\r\n public setSchemaLocater(locater: ECSchemaXmlContext.SchemaLocaterCallback): void;\r\n public setFirstSchemaLocater(locater: ECSchemaXmlContext.SchemaLocaterCallback): void;\r\n public readSchemaFromXmlFile(filePath: string): ErrorStatusOrResult<BentleyStatus, string>;\r\n }\r\n\r\n class SnapRequest {\r\n constructor();\r\n public doSnap(db: DgnDb, request: SnapRequestProps): Promise<SnapResponseProps>;\r\n public cancelSnap(): void;\r\n }\r\n\r\n interface FeatureUserDataKeyValuePair {\r\n key: string;\r\n value: string;\r\n }\r\n\r\n interface NativeUlasClientFeatureEvent {\r\n featureId: string;\r\n versionStr: string;\r\n projectId?: string;\r\n startDateZ?: string;\r\n endDateZ?: string;\r\n featureUserData?: FeatureUserDataKeyValuePair[];\r\n }\r\n\r\n class SqliteChangesetReader {\r\n public close(): void;\r\n public getColumnCount(): number;\r\n public getColumnValue(col: number, stage: number): Uint8Array | number | string | null | undefined;\r\n public getColumnValueBinary(col: number, stage: number): Uint8Array | undefined;\r\n public getColumnValueDouble(col: number, stage: number): number | undefined;\r\n public getColumnValueId(col: number, stage: number): string | undefined;\r\n public getColumnValueInteger(col: number, stage: number): number | undefined;\r\n public getColumnValueText(col: number, stage: number): string | undefined;\r\n public getColumnValueType(col: number, stage: number): number | undefined;\r\n public getDdlChanges(): string | undefined;\r\n public getOpCode(): DbOpcode;\r\n public getPrimaryKeys(): (Uint8Array | number | string | null | undefined)[];\r\n public getRow(stage: number): (Uint8Array | number | string | null | undefined)[];\r\n public getTableName(): string;\r\n public hasRow(): boolean;\r\n public isColumnValueNull(col: number, stage: number): boolean | undefined;\r\n public isIndirectChange(): boolean;\r\n public getPrimaryKeyColumnIndexes(): number[];\r\n public openFile(fileName: string, invert: boolean): void;\r\n public openGroup(fileName: string[], db: AnyECDb, invert: boolean): void;\r\n public openLocalChanges(db: DgnDb, includeInMemoryChanges: boolean, invert: boolean): void;\r\n public openInMemoryChanges(db: DgnDb, invert: boolean): void;\r\n public openTxn(db: DgnDb, txnId: Id64String, invert: boolean): void;\r\n public reset(): void;\r\n public step(): boolean;\r\n public writeToFile(fileName: string, containsSchemaChanges: boolean, overrideFile: boolean): void;\r\n }\r\n\r\n interface ChangesetRowValue {\r\n data: any;\r\n key: string;\r\n changeFetchedPropNames: string[]\r\n }\r\n\r\n interface ChangesetRowMetadata {\r\n tableName: string;\r\n opCode: DbOpcode;\r\n isIndirectChange: boolean;\r\n isECTable: boolean;\r\n }\r\n interface ChangesetRowData {\r\n metadata: ChangesetRowMetadata;\r\n oldValues: ChangesetRowValue | undefined;\r\n newValues: ChangesetRowValue | undefined;\r\n }\r\n\r\n class ChangesetReader {\r\n constructor();\r\n public openFile(db: AnyECDb, fileName: string, invert: boolean, propFilter: number): void;\r\n public openGroup(db: AnyECDb, fileNames: string[], invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public openLocalChanges(db: DgnDb, includeInMemoryChanges: boolean, invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public openInMemoryChanges(db: DgnDb, invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public openTxn(db: DgnDb, txnId: Id64String, invert: boolean, propFilter: number, spillThresholdBytes: number): void;\r\n public close(): void;\r\n public step(numOfRows: number, rowOptions: ECSqlRowAdaptorOptions): ChangesetRowData[];\r\n public setTableNameFilters(tableNames: string[]): void;\r\n public setOpCodeFilters(ops: string[]): void;\r\n public setClassNameFilters(classNames: string[]): void;\r\n public clearTableNameFilters(): void;\r\n public clearOpCodeFilters(): void;\r\n public clearClassNameFilters(): void;\r\n public enableStrictMode(): void;\r\n public disableStrictMode(): void;\r\n }\r\n\r\n class DisableNativeAssertions {\r\n constructor();\r\n public dispose(): void;\r\n }\r\n\r\n class ImportContext {\r\n constructor(sourceDb: DgnDb, targetDb: DgnDb);\r\n public dispose(): void;\r\n public dump(outputFileName: string): BentleyStatus;\r\n public addClass(sourceClassFullName: string, targetClassFullName: string): BentleyStatus;\r\n public addCodeSpecId(sourceId: Id64String, targetId: Id64String): BentleyStatus;\r\n public addElementId(sourceId: Id64String, targetId: Id64String): BentleyStatus;\r\n public removeElementId(sourceId: Id64String): BentleyStatus;\r\n public findCodeSpecId(sourceId: Id64String): Id64String;\r\n public findElementId(sourceId: Id64String): Id64String;\r\n public cloneElement(sourceId: Id64String, cloneOptions?: CloneElementOptions): ElementProps;\r\n public importCodeSpec(sourceId: Id64String): Id64String;\r\n public importFont(sourceId: number): number;\r\n public hasSubCategoryFilter(): boolean;\r\n public isSubCategoryFiltered(sourceId: Id64String): boolean;\r\n public filterSubCategoryId(sourceId: Id64String): BentleyStatus;\r\n public saveStateToDb(db: SQLiteDb): void;\r\n public loadStateFromDb(db: SQLiteDb): void;\r\n }\r\n\r\n interface CloneElementOptions {\r\n binaryGeometry?: boolean;\r\n }\r\n\r\n interface ChangedInstanceOpsProps {\r\n insert?: Id64String[];\r\n update?: Id64String[];\r\n delete?: Id64String[];\r\n }\r\n\r\n /** The *wire format* of the result returned by DgnDb.extractChangedInstanceIdsFromChangeSets */\r\n interface ChangedInstanceIdsProps {\r\n codeSpec?: ChangedInstanceOpsProps;\r\n model?: ChangedInstanceOpsProps;\r\n element?: ChangedInstanceOpsProps;\r\n aspect?: ChangedInstanceOpsProps;\r\n relationship?: ChangedInstanceOpsProps;\r\n font?: ChangedInstanceOpsProps;\r\n }\r\n\r\n /**\r\n * Temporary implementation to allow crashing the backend for testing purposes\r\n * @internal\r\n */\r\n class NativeDevTools {\r\n public static signal(signalType: number): boolean;\r\n /** @not-used-by-itwinjs-core Covered only by this package's own tests. */\r\n public static emitLogs(count: number, category: string, severity: LogLevel, thread: \"main\" | \"worker\", onDone: () => void): void;\r\n }\r\n\r\n /**\r\n * Utilities to encode/decode names to convert them to/from names that comply with EC naming rules\r\n */\r\n class ECNameValidation {\r\n /**\r\n * Encodes names to comply with EC naming rules\r\n * @param name Name to be encoded\r\n * @returns Encoded name\r\n * @param name\r\n * @not-used-by-itwinjs-core\r\n */\r\n public static encodeToValidName(name: string): string;\r\n\r\n /**\r\n * Decodes names that were encoded to comply with EC naming rules\r\n * @param encodedName Encoded name\r\n * @returns Decoded name\r\n * @not-used-by-itwinjs-core\r\n */\r\n public static decodeFromValidName(encodedName: string): string;\r\n }\r\n\r\n const enum TestWorkerState {\r\n NotQueued = 0,\r\n Queued = 1,\r\n Skipped = 2,\r\n Running = 3,\r\n Ok = 4,\r\n Error = 5,\r\n Aborted = 6,\r\n }\r\n\r\n class TestWorker {\r\n public constructor(db: DgnDb);\r\n\r\n public queue(): Promise<void>;\r\n public cancel(): void;\r\n public setReady(): void;\r\n public setThrow(): void;\r\n public isCanceled(): boolean;\r\n public wasExecuted(): boolean;\r\n public getState(): TestWorkerState;\r\n }\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bentley/imodeljs-native",
3
3
  "license": "SEE LICENSE IN LICENSE.md",
4
- "version": "5.13.22",
4
+ "version": "5.13.24",
5
5
  "main": "imodeljs-native.js",
6
6
  "typings": "imodeljs-native",
7
7
  "keywords": [