Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct core-bentley imports (backport #7531) [release/4.11.x] #7645

Open
wants to merge 3 commits into
base: release/4.11.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/api/core-frontend.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ import { IModelConnectionProps } from '@itwin/core-common';
import { IModelCoordinatesRequestProps } from '@itwin/core-common';
import { IModelCoordinatesResponseProps } from '@itwin/core-common';
import { IModelRpcProps } from '@itwin/core-common';
import { IModelStatus } from '@itwin/core-common';
import { IModelStatus } from '@itwin/core-bentley';
import { IModelTileTreeId } from '@itwin/core-common';
import { IModelTileTreeProps } from '@itwin/core-common';
import { IModelVersion } from '@itwin/core-common';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-backend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-backend"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-frontend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-frontend"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-mobile",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-mobile"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/editor-frontend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/editor-frontend"
}
4 changes: 2 additions & 2 deletions core/backend/src/IModelHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import * as os from "os";
import "reflect-metadata"; // this has to be before @itwin/object-storage-* and @itwin/cloud-agnostic-core imports because those packages contain decorators that use this polyfill.
import { IModelJsNative, NativeLibrary } from "@bentley/imodeljs-native";
import { DependenciesConfig, Types as ExtensionTypes } from "@itwin/cloud-agnostic-core";
import { AccessToken, assert, BeEvent, DbResult, Guid, GuidString, IModelStatus, Logger, Mutable, ProcessDetector } from "@itwin/core-bentley";
import { AuthorizationClient, BentleyStatus, IModelError, LocalDirName, SessionProps } from "@itwin/core-common";
import { AccessToken, assert, BeEvent, BentleyStatus, DbResult, Guid, GuidString, IModelStatus, Logger, Mutable, ProcessDetector } from "@itwin/core-bentley";
import { AuthorizationClient, IModelError, LocalDirName, SessionProps } from "@itwin/core-common";
import { AzureServerStorageBindings } from "@itwin/object-storage-azure";
import { ServerStorage } from "@itwin/object-storage-core";
import { BackendHubAccess } from "./BackendHubAccess";
Expand Down
4 changes: 2 additions & 2 deletions core/backend/src/Relationship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @module Relationships
*/

import { DbResult, Id64, Id64String } from "@itwin/core-bentley";
import { EntityReferenceSet, IModelError, IModelStatus, RelationshipProps, SourceAndTarget } from "@itwin/core-common";
import { DbResult, Id64, Id64String, IModelStatus } from "@itwin/core-bentley";
import { EntityReferenceSet, IModelError, RelationshipProps, SourceAndTarget } from "@itwin/core-common";
import { ECSqlStatement } from "./ECSqlStatement";
import { Entity } from "./Entity";
import { IModelDb } from "./IModelDb";
Expand Down
3 changes: 2 additions & 1 deletion core/backend/src/rpc/multipart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* @module RpcInterface
*/

import { BentleyStatus, FormDataCommon, HttpServerRequest, IModelError, RpcMultipart, RpcSerializedValue } from "@itwin/core-common";
import { BentleyStatus } from "@itwin/core-bentley";
import { FormDataCommon, HttpServerRequest, IModelError, RpcMultipart, RpcSerializedValue } from "@itwin/core-common";
import * as FormData from "form-data";
import * as multiparty from "multiparty";

Expand Down
2 changes: 1 addition & 1 deletion core/backend/src/rpc/web/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @module RpcInterface
*/

import { BentleyStatus } from "@itwin/core-bentley";
import {
BentleyStatus,
HttpServerRequest,
IModelError,
MarshalingBinaryMarker,
Expand Down
3 changes: 2 additions & 1 deletion core/backend/src/test/ecsql/src/ECSqlTestGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*--------------------------------------------------------------------------------------------*/

import { IModelDb, SnapshotDb } from "../../../core-backend";
import { DbResult, ECSqlValueType, QueryOptionsBuilder, QueryPropertyMetaData, QueryRowFormat } from "@itwin/core-common";
import { DbResult } from "@itwin/core-bentley";
import { ECSqlValueType, QueryOptionsBuilder, QueryPropertyMetaData, QueryRowFormat } from "@itwin/core-common";
import * as path from "path";
import * as fs from "fs";
import * as crypto from "crypto";
Expand Down
4 changes: 2 additions & 2 deletions core/backend/src/test/imodel/IModel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { assert, expect } from "chai";
import * as path from "path";
import * as semver from "semver";
import * as sinon from "sinon";
import { DbResult, Guid, GuidString, Id64, Id64String, Logger, OpenMode, ProcessDetector, using } from "@itwin/core-bentley";
import { DbResult, Guid, GuidString, Id64, Id64String, IModelStatus, Logger, OpenMode, ProcessDetector, using } from "@itwin/core-bentley";
import {
AxisAlignedBox3d, BisCodeSpec, BriefcaseIdValue, ChangesetIdWithIndex, Code, CodeScopeSpec, CodeSpec, ColorByName, ColorDef, DefinitionElementProps,
DisplayStyleProps, DisplayStyleSettings, DisplayStyleSettingsProps, EcefLocation, ElementProps, EntityMetaData, EntityProps, FilePropertyProps,
FontMap, FontType, GeoCoordinatesRequestProps, GeoCoordStatus, GeographicCRS, GeographicCRSProps, GeometricElementProps, GeometryParams, GeometryStreamBuilder,
ImageSourceFormat, IModel, IModelCoordinatesRequestProps, IModelError, IModelStatus, LightLocationProps, MapImageryProps, PhysicalElementProps,
ImageSourceFormat, IModel, IModelCoordinatesRequestProps, IModelError, LightLocationProps, MapImageryProps, PhysicalElementProps,
PointWithStatus, PrimitiveTypeCode, RelatedElement, RelationshipProps, RenderMode, SchemaState, SpatialViewDefinitionProps, SubCategoryAppearance, SubjectProps, TextureMapping,
TextureMapProps, TextureMapUnits, ViewDefinitionProps, ViewFlagProps, ViewFlags,
} from "@itwin/core-common";
Expand Down
4 changes: 2 additions & 2 deletions core/backend/src/test/standalone/ExportGraphics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import { assert } from "chai";
import * as fs from "fs";
import { Id64, Id64Array, Id64String } from "@itwin/core-bentley";
import { DbResult, Id64, Id64Array, Id64String } from "@itwin/core-bentley";
import {
Code, ColorDef, DbResult, ElementGeometryInfo, ElementGeometryOpcode, FillDisplay, GeometryClass, GeometryParams, GeometryPartProps, GeometryStreamBuilder, GeometryStreamProps,
Code, ColorDef, ElementGeometryInfo, ElementGeometryOpcode, FillDisplay, GeometryClass, GeometryParams, GeometryPartProps, GeometryStreamBuilder, GeometryStreamProps,
ImageSourceFormat, IModel, LineStyle, PhysicalElementProps, Point2dProps, TextureMapProps, TextureMapUnits,
} from "@itwin/core-common";
import {
Expand Down
4 changes: 2 additions & 2 deletions core/common/src/ElementProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* @module Entities
*/

import { GuidString, Id64, Id64String } from "@itwin/core-bentley";
import { GuidString, Id64, Id64String, IModelStatus } from "@itwin/core-bentley";
import {
AngleProps, ClipVectorProps, LowAndHighXYProps, LowAndHighXYZProps, TransformProps, XYProps, XYZProps, YawPitchRollProps,
} from "@itwin/core-geometry";
import { CodeProps } from "./Code";
import { EntityProps } from "./EntityProps";
import { ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart } from "./geometry/ElementGeometry";
import { GeometryStreamProps } from "./geometry/GeometryStream";
import { IModelError, IModelStatus } from "./IModelError";
import { IModelError } from "./IModelError";
import { SubCategoryAppearance } from "./SubCategoryAppearance";
import { TextAnnotationProps } from "./annotation/TextAnnotation";

Expand Down
4 changes: 2 additions & 2 deletions core/common/src/RpcInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import { RpcRoutingToken } from "./rpc/core/RpcRoutingToken";
import { InterceptedRpcRequest, IpcSession } from "./ipc/IpcSession";
import { RpcSerializedValue } from "./rpc/core/RpcMarshaling";
import { RpcManagedStatus } from "./rpc/core/RpcProtocol";
import { BentleyStatus, IModelError, NoContentError } from "./IModelError";
import { IModelError, NoContentError } from "./IModelError";
import { RpcRequestEvent, RpcRequestStatus } from "./rpc/core/RpcConstants";
import { BeDuration } from "@itwin/core-bentley";
import { BeDuration, BentleyStatus } from "@itwin/core-bentley";
import { RpcNotFoundResponse } from "./rpc/core/RpcControl";

/* eslint-disable @typescript-eslint/no-deprecated */
Expand Down
4 changes: 2 additions & 2 deletions core/common/src/rpc/core/RpcMarshaling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/** @packageDocumentation
* @module RpcInterface
*/

import { BentleyStatus, IModelError } from "../../IModelError";
import { BentleyStatus } from "@itwin/core-bentley";
import { IModelError } from "../../IModelError";
import { BackendReadable } from "../../BackendTypes";
import { RpcProtocol } from "./RpcProtocol";

Expand Down
3 changes: 2 additions & 1 deletion core/common/src/rpc/web/RpcMultipart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* @module RpcInterface
*/

import { BentleyStatus, IModelError } from "../../IModelError";
import { BentleyStatus } from "@itwin/core-bentley";
import { IModelError } from "../../IModelError";
import { BackendBuffer, BackendReadable } from "../../BackendTypes";
import { RpcSerializedValue } from "../core/RpcMarshaling";
import { HttpServerRequest } from "../web/WebAppRpcProtocol";
Expand Down
4 changes: 2 additions & 2 deletions core/frontend/src/BriefcaseTxns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* @module IModelConnection
*/

import { BeEvent } from "@itwin/core-bentley";
import { BeEvent, IModelStatus } from "@itwin/core-bentley";
import {
ChangesetIndexAndId, EcefLocation, EcefLocationProps, GeographicCRS, GeographicCRSProps, IModelStatus, ipcAppChannels,
ChangesetIndexAndId, EcefLocation, EcefLocationProps, GeographicCRS, GeographicCRSProps, ipcAppChannels,
ModelIdAndGeometryGuid, NotifyEntitiesChangedArgs, RemoveFunction, RootSubjectProps, TxnNotifications,
} from "@itwin/core-common";
import { Point3d, Range3d, Range3dProps, XYZProps } from "@itwin/core-geometry";
Expand Down
6 changes: 2 additions & 4 deletions core/frontend/src/IModelApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ export const ITWINJS_CORE_VERSION = packageJson.version as string;
const COPYRIGHT_NOTICE = 'Copyright © 2017-2024 <a href="https://www.bentley.com" target="_blank" rel="noopener noreferrer">Bentley Systems, Inc.</a>';

import { UiAdmin } from "@itwin/appui-abstract";
import { AccessToken, BeDuration, BeEvent, BentleyStatus, DbResult, dispose, Guid, GuidString, Logger, ProcessDetector } from "@itwin/core-bentley";
import {
AuthorizationClient, IModelStatus, Localization, RealityDataAccess, RpcConfiguration, RpcInterfaceDefinition, RpcRequest, SerializedRpcActivity,
} from "@itwin/core-common";
import { AccessToken, BeDuration, BeEvent, BentleyStatus, DbResult, dispose, Guid, GuidString, IModelStatus, Logger, ProcessDetector } from "@itwin/core-bentley";
import { AuthorizationClient, Localization, RealityDataAccess, RpcConfiguration, RpcInterfaceDefinition, RpcRequest, SerializedRpcActivity } from "@itwin/core-common";
import { ITwinLocalization } from "@itwin/core-i18n";
import { TelemetryManager } from "@itwin/core-telemetry";
import { queryRenderCompatibility, WebGLRenderCompatibilityInfo } from "@itwin/webgl-compatibility";
Expand Down
7 changes: 3 additions & 4 deletions core/frontend/src/IModelConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
*/

import {
assert, BeEvent, CompressedId64Set, GeoServiceStatus, GuidString, Id64, Id64Arg, Id64Set, Id64String, Logger, OneAtATimeAction, OpenMode,
assert, BeEvent, CompressedId64Set, DbResult, GeoServiceStatus, GuidString, Id64, Id64Arg, Id64Set, Id64String, IModelStatus, Logger, OneAtATimeAction, OpenMode,
PickAsyncMethods, TransientIdSequence,
} from "@itwin/core-bentley";
import {
AxisAlignedBox3d, Cartographic, CodeProps, CodeSpec, DbQueryRequest, DbResult, EcefLocation, EcefLocationProps, ECSqlReader, ElementLoadOptions,
ElementMeshRequestProps,
AxisAlignedBox3d, Cartographic, CodeProps, CodeSpec, DbQueryRequest, EcefLocation, EcefLocationProps, ECSqlReader, ElementLoadOptions, ElementMeshRequestProps,
ElementProps, EntityQueryParams, FontMap, GeoCoordStatus, GeographicCRSProps, GeometryContainmentRequestProps, GeometryContainmentResponseProps, GeometrySummaryRequestProps, ImageSourceFormat, IModel, IModelConnectionProps, IModelError,
IModelReadRpcInterface, IModelStatus, mapToGeoServiceStatus, MassPropertiesPerCandidateRequestProps, MassPropertiesPerCandidateResponseProps,
IModelReadRpcInterface, mapToGeoServiceStatus, MassPropertiesPerCandidateRequestProps, MassPropertiesPerCandidateResponseProps,
MassPropertiesRequestProps, MassPropertiesResponseProps, ModelExtentsProps, ModelProps, ModelQueryParams, NoContentError, Placement, Placement2d,
Placement3d, QueryBinder, QueryOptions, QueryOptionsBuilder, QueryRowFormat, RpcManager, SnapRequestProps, SnapResponseProps,
SnapshotIModelRpcInterface, SubCategoryAppearance, SubCategoryResultRow, TextureData, TextureLoadProps, ThumbnailProps, ViewDefinitionProps,
Expand Down
4 changes: 2 additions & 2 deletions core/frontend/src/IModelRoutingContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/** @packageDocumentation
* @module IModelConnection
*/

import { BentleyStatus, IModelError, RpcRoutingToken } from "@itwin/core-common";
import { BentleyStatus } from "@itwin/core-bentley";
import { IModelError, RpcRoutingToken } from "@itwin/core-common";

/**
* Controls the RPC routing for an iModel connection.
Expand Down
4 changes: 2 additions & 2 deletions core/frontend/src/IpcApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* @module NativeApp
*/

import { AsyncMethodsOf, PickAsyncMethods, PromiseReturnType } from "@itwin/core-bentley";
import { AsyncMethodsOf, IModelStatus, PickAsyncMethods, PromiseReturnType } from "@itwin/core-bentley";
import {
BackendError, IModelError, IModelStatus, ipcAppChannels, IpcAppFunctions, IpcAppNotifications, IpcInvokeReturn, IpcListener, IpcSocketFrontend, iTwinChannel, RemoveFunction,
BackendError, IModelError, ipcAppChannels, IpcAppFunctions, IpcAppNotifications, IpcInvokeReturn, IpcListener, IpcSocketFrontend, iTwinChannel, RemoveFunction,
} from "@itwin/core-common";
import { IModelApp, IModelAppOptions } from "./IModelApp";
import { _callIpcChannel } from "./common/internal/Symbols";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/** @packageDocumentation
* @module Tiles
*/
import { Cartographic, ImageMapLayerSettings, ImageSource, IModelStatus, ServerError } from "@itwin/core-common";
import { Cartographic, ImageMapLayerSettings, ImageSource, ServerError } from "@itwin/core-common";
import { IModelApp } from "../../../IModelApp";
import {
ArcGisErrorCode, ArcGisGeometryReaderJSON, ArcGISImageryProvider, ArcGISTileMap, ArcGisUtilities,
Expand All @@ -14,7 +14,7 @@ import {
} from "../../internal";
import { PropertyValueFormat, StandardTypeNames } from "@itwin/appui-abstract";
import { Point2d, Range2d, Range2dProps, XYProps } from "@itwin/core-geometry";
import { Logger } from "@itwin/core-bentley";
import { IModelStatus, Logger } from "@itwin/core-bentley";
import { HitDetail } from "../../../HitDetail";

const loggerCategory = "MapLayerImageryProvider.ArcGISMapLayerImageryProvider";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/** @packageDocumentation
* @module Tiles
*/
import { assert } from "@itwin/core-bentley";
import { ImageMapLayerSettings, IModelStatus, ServerError } from "@itwin/core-common";
import { assert, IModelStatus } from "@itwin/core-bentley";
import { ImageMapLayerSettings, ServerError } from "@itwin/core-common";
import {
MapLayerImageryProvider,
MapLayerImageryProviderStatus,
Expand Down
10 changes: 3 additions & 7 deletions core/frontend/src/tools/MeasureTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
* @module Measure
*/

import { Id64, Id64Array, Id64String } from "@itwin/core-bentley";
import {
AxisOrder, IModelJson, Matrix3d, Plane3dByOriginAndUnitNormal, Point2d, Point3d, PointString3d, PolygonOps, Vector3d, XAndY, XYAndZ,
} from "@itwin/core-geometry";
import {
BentleyStatus, ColorDef, GeometryStreamProps, LinePixels, MassPropertiesOperation, MassPropertiesRequestProps, MassPropertiesResponseProps,
} from "@itwin/core-common";
import { BentleyStatus, Id64, Id64Array, Id64String } from "@itwin/core-bentley";
import { AxisOrder, IModelJson, Matrix3d, Plane3dByOriginAndUnitNormal, Point2d, Point3d, PointString3d, PolygonOps, Vector3d, XAndY, XYAndZ } from "@itwin/core-geometry";
import { ColorDef, GeometryStreamProps, LinePixels, MassPropertiesOperation, MassPropertiesRequestProps, MassPropertiesResponseProps } from "@itwin/core-common";
import { DialogItem, DialogItemValue, DialogPropertySyncItem, PropertyDescription } from "@itwin/appui-abstract";
import { AccuDrawHintBuilder, ContextRotationId } from "../AccuDraw";
import { LocateFilterStatus, LocateResponse } from "../ElementLocateManager";
Expand Down
4 changes: 2 additions & 2 deletions core/mobile/src/backend/MobileRpcServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
*--------------------------------------------------------------------------------------------*/

import * as ws from "ws";
import { BentleyStatus, IModelError } from "@itwin/core-common";
import { IModelError } from "@itwin/core-common";
import { MobileRpcGateway, MobileRpcProtocol } from "../common/MobileRpcProtocol";
import { MobileRpcConfiguration } from "../common/MobileRpcManager";
import { MobileHost } from "./MobileHost";
import { ProcessDetector } from "@itwin/core-bentley";
import { BentleyStatus, ProcessDetector } from "@itwin/core-bentley";

interface MobileAddon {
notifyListening: (port: number) => void;
Expand Down
4 changes: 2 additions & 2 deletions editor/frontend/src/TransformElementsTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @module Editing
*/

import { BentleyError, Id64, Id64Arg, Id64String } from "@itwin/core-bentley";
import { GeometricElementProps, IModelStatus, isPlacement2dProps, PersistentGraphicsRequestProps, Placement, Placement2d, Placement3d } from "@itwin/core-common";
import { BentleyError, Id64, Id64Arg, Id64String, IModelStatus } from "@itwin/core-bentley";
import { GeometricElementProps, isPlacement2dProps, PersistentGraphicsRequestProps, Placement, Placement2d, Placement3d } from "@itwin/core-common";
import { AccuDrawHintBuilder, BeButtonEvent, DynamicsContext, ElementSetTool, GraphicBranch, IModelApp, IModelConnection, IpcApp, ModifyElementSource, NotifyMessageDetails, OutputMessagePriority, readElementGraphics, RenderGraphic, RenderGraphicOwner } from "@itwin/core-frontend";
import { Transform } from "@itwin/core-geometry";
import { editorBuiltInCmdIds } from "@itwin/editor-common";
Expand Down
3 changes: 2 additions & 1 deletion example-code/app/src/backend/RobotWorldSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import * as path from "path";
import { ClassRegistry, IModelDb, IModelHost, Schema, Schemas, SpatialCategory } from "@itwin/core-backend";
import { ColorByName, IModelError, IModelStatus, SubCategoryAppearance } from "@itwin/core-common";
import { IModelStatus } from "@itwin/core-bentley";
import { ColorByName, IModelError, SubCategoryAppearance } from "@itwin/core-common";
import * as _schemaNames from "../common/RobotWorldSchema";
import * as obstacles from "./BarrierElement";

Expand Down
4 changes: 2 additions & 2 deletions example-code/snippets/src/backend/ExampleOpenIModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { AccessToken, OpenMode } from "@itwin/core-bentley";
import { AccessToken, IModelStatus, OpenMode } from "@itwin/core-bentley";
import { BriefcaseDb } from "@itwin/core-backend";
import { IModelError, IModelStatus, OpenBriefcaseProps } from "@itwin/core-common";
import { IModelError, OpenBriefcaseProps } from "@itwin/core-common";
import { TestUserCredentials, TestUtility } from "@itwin/oidc-signin-tool";

async function getUserAccessToken(userCredentials: TestUserCredentials): Promise<AccessToken> {
Expand Down
6 changes: 2 additions & 4 deletions full-stack-tests/backend/src/perftest/PerfTestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import { assert } from "chai";
import * as path from "path";
import { _nativeDb, ECSqlStatement, IModelDb, IModelJsFs, SnapshotDb, SpatialCategory } from "@itwin/core-backend";
import { IModelTestUtils } from "@itwin/core-backend/lib/cjs/test/index";
import { Id64String } from "@itwin/core-bentley";
import {
BriefcaseIdValue, Code, ColorDef, DbResult, GeometricElementProps, GeometryStreamProps, IModel, SubCategoryAppearance,
} from "@itwin/core-common";
import { DbResult, Id64String } from "@itwin/core-bentley";
import { BriefcaseIdValue, Code, ColorDef, GeometricElementProps, GeometryStreamProps, IModel, SubCategoryAppearance } from "@itwin/core-common";
import { Arc3d, IModelJson as GeomJson, Point2d, Point3d } from "@itwin/core-geometry";

export class PerfTestDataMgr {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import * as fs from "fs";
import * as os from "os";
import { join } from "path";
import { IModelDb, IModelHost, SnapshotDb } from "@itwin/core-backend";
import { Id64String, StopWatch } from "@itwin/core-bentley";
import { DbResult, QueryRowFormat } from "@itwin/core-common";
import { DbResult, Id64String, StopWatch } from "@itwin/core-bentley";
import { QueryRowFormat } from "@itwin/core-common";
import { Presentation } from "@itwin/presentation-backend";

describe("#performance Element properties loading", () => {
Expand Down
Loading
Loading