@itwin/ecschema-rpcinterface-tests 5.12.0-dev.1 → 5.12.0-dev.5

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.
@@ -19596,7 +19596,7 @@ var GeoServiceStatus;
19596
19596
  GeoServiceStatus[GeoServiceStatus["VerticalDatumConvertError"] = 147460] = "VerticalDatumConvertError";
19597
19597
  GeoServiceStatus[GeoServiceStatus["CSMapError"] = 147461] = "CSMapError";
19598
19598
  /**
19599
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. This status is never returned.
19599
+ * @deprecated in 5.0 - might be removed in next major version. This status is never returned.
19600
19600
  */
19601
19601
  GeoServiceStatus[GeoServiceStatus["Pending"] = 147462] = "Pending";
19602
19602
  })(GeoServiceStatus || (GeoServiceStatus = {}));
@@ -21096,7 +21096,7 @@ Symbol.dispose ??= Symbol("Symbol.dispose");
21096
21096
  Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
21097
21097
  /**
21098
21098
  * A type guard that checks whether the given argument implements `IDisposable` interface
21099
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use isDisposable instead.
21099
+ * @deprecated in 5.0 - might be removed in next major version. Use isDisposable instead.
21100
21100
  * @public
21101
21101
  */
21102
21102
  function isIDisposable(obj) {
@@ -21135,7 +21135,7 @@ function disposeArray(list) {
21135
21135
  * of this function is equal to return value of func. If func throws, this function also throws (after
21136
21136
  * disposing the resource).
21137
21137
  * @public
21138
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `using` declarations instead.
21138
+ * @deprecated in 5.0 - might be removed in next major version. Use `using` declarations instead.
21139
21139
  */
21140
21140
  function using(resources, func) {
21141
21141
  if (!Array.isArray(resources))
@@ -22978,7 +22978,7 @@ class PerfLogger {
22978
22978
  [Symbol.dispose]() {
22979
22979
  this.logMessage();
22980
22980
  }
22981
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
22981
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
22982
22982
  dispose() {
22983
22983
  this[Symbol.dispose]();
22984
22984
  }
@@ -24749,7 +24749,7 @@ __webpack_require__.r(__webpack_exports__);
24749
24749
  /**
24750
24750
  * Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
24751
24751
  * @public
24752
- * @deprecated in 4.4 - will not be removed until after 2026-06-13. OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
24752
+ * @deprecated in 4.4 - might be removed in next major version. OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
24753
24753
  */
24754
24754
  var SpanKind;
24755
24755
  (function (SpanKind) {
@@ -24809,7 +24809,7 @@ function flattenObject(obj) {
24809
24809
  /**
24810
24810
  * Enables OpenTelemetry tracing in addition to traditional logging.
24811
24811
  * @public
24812
- * @deprecated in 4.4 - will not be removed until after 2026-06-13. OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
24812
+ * @deprecated in 4.4 - might be removed in next major version. OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
24813
24813
  */
24814
24814
  class Tracing {
24815
24815
  static _tracer;
@@ -28486,7 +28486,7 @@ var QueryRowFormat;
28486
28486
  QueryRowFormat[QueryRowFormat["UseECSqlPropertyIndexes"] = 1] = "UseECSqlPropertyIndexes";
28487
28487
  /** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
28488
28488
  * This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
28489
- * @deprecated in 4.11 - will not be removed until after 2026-06-13. Switch to UseECSqlPropertyIndexes for best performance, and UseECSqlPropertyNames if you want a JSON object as the result.
28489
+ * @deprecated in 4.11 - might be removed in next major version. Switch to UseECSqlPropertyIndexes for best performance, and UseECSqlPropertyNames if you want a JSON object as the result.
28490
28490
  */
28491
28491
  QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 2] = "UseJsPropertyNames";
28492
28492
  })(QueryRowFormat || (QueryRowFormat = {}));
@@ -28557,7 +28557,7 @@ class QueryOptionsBuilder {
28557
28557
  * If set ECClassId, SourceECClassId and TargetECClassId system properties will return qualified name of class instead of a @typedef Id64String.
28558
28558
  * @param val A boolean value.
28559
28559
  * @returns @type QueryOptionsBuilder for fluent interface.
28560
- * @deprecated in 4.11 - will not be removed until after 2026-06-13. Use ecsql function ec_classname to get class name instead.
28560
+ * @deprecated in 4.11 - might be removed in next major version. Use ecsql function ec_classname to get class name instead.
28561
28561
  */
28562
28562
  setConvertClassIdsToNames(val) {
28563
28563
  // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -31958,7 +31958,7 @@ var PrimitiveTypeCode;
31958
31958
  })(PrimitiveTypeCode || (PrimitiveTypeCode = {}));
31959
31959
  /** Metadata for a property.
31960
31960
  * @beta
31961
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use the `Property` class from @itwin/ecschema-metadata` instead.
31961
+ * @deprecated in 5.0 - might be removed in next major version. Use the `Property` class from @itwin/ecschema-metadata` instead.
31962
31962
  */
31963
31963
  // eslint-disable-next-line @typescript-eslint/no-deprecated
31964
31964
  class PropertyMetaData {
@@ -32044,7 +32044,7 @@ class PropertyMetaData {
32044
32044
  }
32045
32045
  /** Metadata for an Entity.
32046
32046
  * @beta
32047
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `EntityClass` class from `@itwin/ecschema-metadata` instead.
32047
+ * @deprecated in 5.0 - might be removed in next major version. Use `EntityClass` class from `@itwin/ecschema-metadata` instead.
32048
32048
  */
32049
32049
  // eslint-disable-next-line @typescript-eslint/no-deprecated
32050
32050
  class EntityMetaData {
@@ -33360,7 +33360,7 @@ var FontType;
33360
33360
  * This class maps FontIds to FontProps.
33361
33361
  * @note This API has never worked properly. Don't use it. Use [IModelDb.fonts]($backend) instead.
33362
33362
  * @public
33363
- * @deprecated in 5.0.0 - will not be removed until after 2026-06-13. Use [IModelDb.fonts]($backend) instead.
33363
+ * @deprecated in 5.0.0 - might be removed in next major version. Use [IModelDb.fonts]($backend) instead.
33364
33364
  */
33365
33365
  class FontMap {
33366
33366
  fonts = new Map();
@@ -33824,7 +33824,7 @@ var GeoCoordStatus;
33824
33824
  /** This temporary status is used to mark coordinates for which the conversion has not yet been processed by the backend
33825
33825
  * as opposed to other coordinate conversions that may have been resolved otherwise (typically a cache).
33826
33826
  * At the completion of the conversion promise no coordinates should have this status.
33827
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Pending is no longer returned as a status for coordinate conversions.
33827
+ * @deprecated in 5.0 - might be removed in next major version. Pending is no longer returned as a status for coordinate conversions.
33828
33828
  */
33829
33829
  GeoCoordStatus[GeoCoordStatus["Pending"] = -41556] = "Pending";
33830
33830
  })(GeoCoordStatus || (GeoCoordStatus = {}));
@@ -56939,7 +56939,7 @@ const unknownIModelId = (req) => ({ iModelId: "undefined", key: req.parameters[0
56939
56939
  /** The RPC interface for working with *snapshot* iModels.
56940
56940
  * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.
56941
56941
  * @internal
56942
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
56942
+ * @deprecated in 5.0 - might be removed in next major version. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
56943
56943
  */
56944
56944
  class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
56945
56945
  /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */
@@ -56955,15 +56955,15 @@ class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_
56955
56955
  NOTE: Please consult the README in this folder for the semantic versioning rules.
56956
56956
  ===========================================================================================*/
56957
56957
  /**
56958
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
56958
+ * @deprecated in 5.0 - might be removed in next major version. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
56959
56959
  */
56960
56960
  async openFile(_filePath, _opts) { return this.forward(arguments); }
56961
56961
  /**
56962
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. Use [[CheckpointConnection.openRemote]].
56962
+ * @deprecated in 4.10 - might be removed in next major version. Use [[CheckpointConnection.openRemote]].
56963
56963
  */
56964
56964
  async openRemote(_key, _opts) { return this.forward(arguments); }
56965
56965
  /**
56966
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
56966
+ * @deprecated in 5.0 - might be removed in next major version. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
56967
56967
  */
56968
56968
  async close(_iModelRpcProps) { return this.forward(arguments); }
56969
56969
  }
@@ -62026,7 +62026,7 @@ function computeChildTileProps(parent, idProvider, root) {
62026
62026
  /** Deserializes tile content metadata.
62027
62027
  * @throws [[TileReadError]]
62028
62028
  * @internal
62029
- * @deprecated in 4.0 - will not be removed until after 2026-06-13. Use decodeTileContentDescription. I think tile agents (or their tests) are using this function.
62029
+ * @deprecated in 4.0 - might be removed in next major version. Use decodeTileContentDescription. I think tile agents (or their tests) are using this function.
62030
62030
  */
62031
62031
  function readTileContentDescription(stream, sizeMultiplier, is2d, options, isVolumeClassifier) {
62032
62032
  return decodeTileContentDescription({ stream, sizeMultiplier, is2d, options, isVolumeClassifier });
@@ -62456,7 +62456,7 @@ class SchemaContext {
62456
62456
  /**
62457
62457
  * Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and
62458
62458
  * @param schemaItem The SchemaItem to add
62459
- * @deprecated in 4.0 - will not be removed until after 2026-06-13. Use ecschema-editing package
62459
+ * @deprecated in 4.0 - might be removed in next major version. Use ecschema-editing package
62460
62460
  */
62461
62461
  async addSchemaItem(schemaItem) {
62462
62462
  const schema = await this.getSchema(schemaItem.key.schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Exact);
@@ -66044,7 +66044,7 @@ var SchemaMatchType;
66044
66044
  (function (SchemaMatchType) {
66045
66045
  /*
66046
66046
  * Find exact VersionRead, VersionWrite, VersionMinor match as well as Data. NOTE data is not yet matched
66047
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. Use Exact instead.
66047
+ * @deprecated in 4.10 - might be removed in next major version. Use Exact instead.
66048
66048
  */
66049
66049
  SchemaMatchType[SchemaMatchType["Identical"] = 0] = "Identical";
66050
66050
  /* Find exact VersionRead, VersionWrite, VersionMinor match. */
@@ -66144,7 +66144,7 @@ function parseSchemaItemType(type) {
66144
66144
  * @param value The SchemaItemType to stringify.
66145
66145
  * @return A string representing the provided SchemaItemType. If the type is not valid, an empty string is returned.
66146
66146
  * @beta
66147
- * @deprecated in 4.6.0 - will not be removed until after 2026-06-13. SchemaItemType is a string enum so just use it directly
66147
+ * @deprecated in 4.6.0 - might be removed in next major version. SchemaItemType is a string enum so just use it directly
66148
66148
  */
66149
66149
  function schemaItemTypeToString(value) {
66150
66150
  return value; // TODO: Remove
@@ -67451,213 +67451,213 @@ __webpack_require__.r(__webpack_exports__);
67451
67451
  * WITH clauses are broken down into individual variables.
67452
67452
  */
67453
67453
  const propertyType = (alias) => {
67454
- return `
67455
- CASE
67456
- WHEN [${alias}].[Kind] = 0 THEN 'PrimitiveProperty'
67457
- WHEN [${alias}].[Kind] = 1 THEN 'StructProperty'
67458
- WHEN [${alias}].[Kind] = 2 THEN 'PrimitiveArrayProperty'
67459
- WHEN [${alias}].[Kind] = 3 THEN 'StructArrayProperty'
67460
- WHEN [${alias}].[Kind] = 4 THEN 'NavigationProperty'
67461
- ELSE NULL
67462
- END
67454
+ return `
67455
+ CASE
67456
+ WHEN [${alias}].[Kind] = 0 THEN 'PrimitiveProperty'
67457
+ WHEN [${alias}].[Kind] = 1 THEN 'StructProperty'
67458
+ WHEN [${alias}].[Kind] = 2 THEN 'PrimitiveArrayProperty'
67459
+ WHEN [${alias}].[Kind] = 3 THEN 'StructArrayProperty'
67460
+ WHEN [${alias}].[Kind] = 4 THEN 'NavigationProperty'
67461
+ ELSE NULL
67462
+ END
67463
67463
  `;
67464
67464
  };
67465
67465
  const navigationDirection = (alias) => {
67466
- return `
67467
- CASE
67468
- WHEN [${alias}].[NavigationDirection] = 1 THEN 'Forward'
67469
- WHEN [${alias}].[NavigationDirection] = 2 THEN 'Backward'
67470
- ELSE NULL
67471
- END
67466
+ return `
67467
+ CASE
67468
+ WHEN [${alias}].[NavigationDirection] = 1 THEN 'Forward'
67469
+ WHEN [${alias}].[NavigationDirection] = 2 THEN 'Backward'
67470
+ ELSE NULL
67471
+ END
67472
67472
  `;
67473
67473
  };
67474
67474
  const schemaCustomAttribute = (alias) => {
67475
- return `
67476
- SELECT
67477
- json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67478
- FROM [meta].[CustomAttribute] [ca]
67479
- WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 1
67480
- ORDER BY [ca].[Ordinal]
67475
+ return `
67476
+ SELECT
67477
+ json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67478
+ FROM [meta].[CustomAttribute] [ca]
67479
+ WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 1
67480
+ ORDER BY [ca].[Ordinal]
67481
67481
  `;
67482
67482
  };
67483
67483
  /**
67484
67484
  * Selects customAttribute data for each class type.
67485
67485
  */
67486
67486
  const classCustomAttribute = (alias) => {
67487
- return `
67488
- SELECT
67489
- json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67490
- FROM [meta].[CustomAttribute] [ca]
67491
- WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 30
67492
- ORDER BY [ca].[Ordinal]
67487
+ return `
67488
+ SELECT
67489
+ json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67490
+ FROM [meta].[CustomAttribute] [ca]
67491
+ WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 30
67492
+ ORDER BY [ca].[Ordinal]
67493
67493
  `;
67494
67494
  };
67495
67495
  const propertyCustomAttribute = (alias) => {
67496
- return `
67497
- SELECT
67498
- json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67499
- FROM [meta].[CustomAttribute] [ca]
67500
- WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 992
67501
- ORDER BY [ca].[Ordinal]
67496
+ return `
67497
+ SELECT
67498
+ json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67499
+ FROM [meta].[CustomAttribute] [ca]
67500
+ WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 992
67501
+ ORDER BY [ca].[Ordinal]
67502
67502
  `;
67503
67503
  };
67504
67504
  /**
67505
67505
  * Selects base class data for each class type.
67506
67506
  */
67507
- const selectBaseClasses = `
67508
- SELECT
67509
- ec_classname([baseClass].[ECInstanceId], 's.c')
67510
- FROM
67511
- [meta].[ECClassDef] [baseClass]
67512
- INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
67513
- ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
67514
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
67515
- ORDER BY [baseClassMap].[Ordinal] ASC
67516
- LIMIT 1
67507
+ const selectBaseClasses = `
67508
+ SELECT
67509
+ ec_classname([baseClass].[ECInstanceId], 's.c')
67510
+ FROM
67511
+ [meta].[ECClassDef] [baseClass]
67512
+ INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
67513
+ ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
67514
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
67515
+ ORDER BY [baseClassMap].[Ordinal] ASC
67516
+ LIMIT 1
67517
67517
  `;
67518
67518
  /**
67519
67519
  * Selects class property data for each class type. ClassProperties
67520
67520
  * is a common table expression (CTE or WITH clause) defined below.
67521
67521
  */
67522
- const selectProperties = `
67523
- SELECT
67524
- json_group_array(json([classProperties].[property]))
67525
- FROM
67526
- [ClassProperties] [classProperties]
67527
- WHERE
67528
- [classProperties].[ClassId] = [class].[ECInstanceId]
67522
+ const selectProperties = `
67523
+ SELECT
67524
+ json_group_array(json([classProperties].[property]))
67525
+ FROM
67526
+ [ClassProperties] [classProperties]
67527
+ WHERE
67528
+ [classProperties].[ClassId] = [class].[ECInstanceId]
67529
67529
  `;
67530
67530
  /**
67531
67531
  * A CTE used to select AppliesTo from IsMixin CustomAttributes for a given Mixin.
67532
67532
  */
67533
- const withAppliesTo = `
67534
- AppliesToCTE AS (
67535
- SELECT
67536
- [mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
67537
- [appliesToSchema].[name] as [AppliesToSchema],
67538
- json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
67539
- FROM [meta].[CustomAttribute] [ca]
67540
- JOIN [meta].[ECClassDef] [mixinAppliesTo]
67541
- ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
67542
- JOIN [meta].[ECSchemaDef] [appliesToSchema]
67543
- ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
67544
- WHERE [ca].[ContainerType] = 30
67545
- AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
67546
- )
67533
+ const withAppliesTo = `
67534
+ AppliesToCTE AS (
67535
+ SELECT
67536
+ [mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
67537
+ [appliesToSchema].[name] as [AppliesToSchema],
67538
+ json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
67539
+ FROM [meta].[CustomAttribute] [ca]
67540
+ JOIN [meta].[ECClassDef] [mixinAppliesTo]
67541
+ ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
67542
+ JOIN [meta].[ECSchemaDef] [appliesToSchema]
67543
+ ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
67544
+ WHERE [ca].[ContainerType] = 30
67545
+ AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
67546
+ )
67547
67547
  `;
67548
67548
  /**
67549
67549
  * A CTE used to select Schema reference data for a given Schema.
67550
67550
  */
67551
- const withSchemaReferences = `
67552
- SchemaReferences as (
67553
- SELECT
67554
- [ref].[SourceECInstanceId] as [SchemaId],
67555
- json_object(
67556
- 'name', [Name],
67557
- 'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor]))
67558
- ) as [reference]
67559
- FROM
67560
- [meta].[ECSchemaDef] as [refSchema]
67561
- INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
67562
- ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
67563
- )
67551
+ const withSchemaReferences = `
67552
+ SchemaReferences as (
67553
+ SELECT
67554
+ [ref].[SourceECInstanceId] as [SchemaId],
67555
+ json_object(
67556
+ 'name', [Name],
67557
+ 'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor]))
67558
+ ) as [reference]
67559
+ FROM
67560
+ [meta].[ECSchemaDef] as [refSchema]
67561
+ INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
67562
+ ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
67563
+ )
67564
67564
  `;
67565
67565
  /**
67566
67566
  * A CTE used to select Relationship constraints for a given RelationshipClass.
67567
67567
  */
67568
- const withRelationshipConstraints = `
67569
- ClassRelationshipConstraints as (
67570
- SELECT
67571
- [rhc].[SourceECInstanceId] as [ClassId],
67572
- [constraintDef].[ECInstanceId] as [ConstraintId],
67573
- [RelationshipEnd],
67574
- CONCAT('(', [MultiplicityLowerLimit], '..', IIF([MultiplicityUpperLimit] IS NULL, '*', [MultiplicityUpperLimit]), ')') as [Multiplicity],
67575
- [IsPolyMorphic],
67576
- [RoleLabel],
67577
- IIF([constraintDef].[AbstractConstraintClass] IS NOT NULL, ec_classname([constraintDef].[AbstractConstraintClass].[Id], 's.c'), null) as [AbstractConstraint],
67578
- IIF ([rchc].[TargetECInstanceId] IS NOT NULL, JSON_GROUP_ARRAY(ec_classname([rchc].[TargetECInstanceId], 's.c')), null) as [ConstraintClasses]
67579
- FROM
67580
- [meta].[ECRelationshipConstraintDef] [constraintDef]
67581
- JOIN [meta].[RelationshipHasConstraints] [rhc]
67582
- ON [rhc].[TargetECInstanceId] = [constraintDef].[ECInstanceId]
67583
- JOIN [meta].[RelationshipConstraintHasClasses] [rchc]
67584
- ON [rchc].[SourceECInstanceId] = [constraintDef].[ECInstanceId]
67585
- GROUP BY [constraintDef].[ECInstanceId]
67586
- )
67568
+ const withRelationshipConstraints = `
67569
+ ClassRelationshipConstraints as (
67570
+ SELECT
67571
+ [rhc].[SourceECInstanceId] as [ClassId],
67572
+ [constraintDef].[ECInstanceId] as [ConstraintId],
67573
+ [RelationshipEnd],
67574
+ CONCAT('(', [MultiplicityLowerLimit], '..', IIF([MultiplicityUpperLimit] IS NULL, '*', [MultiplicityUpperLimit]), ')') as [Multiplicity],
67575
+ [IsPolyMorphic],
67576
+ [RoleLabel],
67577
+ IIF([constraintDef].[AbstractConstraintClass] IS NOT NULL, ec_classname([constraintDef].[AbstractConstraintClass].[Id], 's.c'), null) as [AbstractConstraint],
67578
+ IIF ([rchc].[TargetECInstanceId] IS NOT NULL, JSON_GROUP_ARRAY(ec_classname([rchc].[TargetECInstanceId], 's.c')), null) as [ConstraintClasses]
67579
+ FROM
67580
+ [meta].[ECRelationshipConstraintDef] [constraintDef]
67581
+ JOIN [meta].[RelationshipHasConstraints] [rhc]
67582
+ ON [rhc].[TargetECInstanceId] = [constraintDef].[ECInstanceId]
67583
+ JOIN [meta].[RelationshipConstraintHasClasses] [rchc]
67584
+ ON [rchc].[SourceECInstanceId] = [constraintDef].[ECInstanceId]
67585
+ GROUP BY [constraintDef].[ECInstanceId]
67586
+ )
67587
67587
  `;
67588
67588
  /**
67589
67589
  * A CTE used to select Class property data for a given Class.
67590
67590
  */
67591
- const withClassProperties = `
67592
- ClassProperties as (
67593
- SELECT
67594
- [cop].[SourceECInstanceId] as [ClassId],
67595
- json_object(
67596
- 'name', [pd].[Name],
67597
- 'label', [pd].[DisplayLabel],
67598
- 'description', [pd].[Description],
67599
- 'isReadOnly', IIF([pd].[IsReadOnly] = 1, json('true'), NULL),
67600
- 'priority', [pd].[Priority],
67601
- 'category', IIF([categoryDef].[Name] IS NULL, NULL, CONCAT([categorySchemaDef].[Name], '.', [categoryDef].[Name])),
67602
- 'kindOfQuantity', IIF([koqDef].[Name] IS NULL, NULL, CONCAT([koqSchemaDef].[Name], '.', [koqDef].[Name])),
67603
- 'typeName',
67604
- CASE
67605
- WHEN [pd].[Kind] = 0 OR [pd].[Kind] = 2 Then
67606
- CASE
67607
- WHEN [enumDef].[Name] IS NOT NULL Then CONCAT([enumSchemaDef].[Name], '.', [enumDef].[Name])
67608
- WHEN [pd].[PrimitiveType] = 257 Then 'binary'
67609
- WHEN [pd].[PrimitiveType] = 513 Then 'boolean'
67610
- WHEN [pd].[PrimitiveType] = 769 Then 'dateTime'
67611
- WHEN [pd].[PrimitiveType] = 1025 Then 'double'
67612
- WHEN [pd].[PrimitiveType] = 1281 Then 'int'
67613
- WHEN [pd].[PrimitiveType] = 1537 Then 'long'
67614
- WHEN [pd].[PrimitiveType] = 1793 Then 'point2d'
67615
- WHEN [pd].[PrimitiveType] = 2049 Then 'point3d'
67616
- WHEN [pd].[PrimitiveType] = 2305 Then 'string'
67617
- WHEN [pd].[PrimitiveType] = 2561 Then 'Bentley.Geometry.Common.IGeometry'
67618
- ELSE null
67619
- END
67620
- WHEN [pd].[Kind] = 1 OR [pd].[Kind] = 3 Then
67621
- CONCAT([structSchemaDef].[Name], '.', [structDef].[Name])
67622
- ELSE null
67623
- END,
67624
- 'type', ${propertyType("pd")},
67625
- 'minLength', [pd].[PrimitiveTypeMinLength],
67626
- 'maxLength', [pd].[PrimitiveTypeMaxLength],
67627
- 'minValue', [pd].[PrimitiveTypeMinValue],
67628
- 'maxValue', [pd].[PrimitiveTypeMaxValue],
67629
- 'extendedTypeName', [pd].[ExtendedTypeName],
67630
- 'minOccurs', [pd].[ArrayMinOccurs],
67631
- 'maxOccurs', [pd].[ArrayMaxOccurs],
67632
- 'direction', ${navigationDirection("pd")},
67633
- 'relationshipName', IIF([navRelDef].[Name] IS NULL, NULL, CONCAT([navSchemaDef].[Name], '.', [navRelDef].[Name])),
67634
- 'customAttributes', (${propertyCustomAttribute("pd")})
67635
- ) as [property]
67636
- FROM
67637
- [meta].[ECPropertyDef] as [pd]
67638
- JOIN [meta].[ClassOwnsLocalProperties] [cop]
67639
- ON cop.[TargetECInstanceId] = [pd].[ECInstanceId]
67640
- LEFT JOIN [meta].[ECEnumerationDef] [enumDef]
67641
- ON [enumDef].[ECInstanceId] = [pd].[Enumeration].[Id]
67642
- LEFT JOIN [meta].[ECSchemaDef] enumSchemaDef
67643
- ON [enumSchemaDef].[ECInstanceId] = [enumDef].[Schema].[Id]
67644
- LEFT JOIN [meta].[PropertyCategoryDef] [categoryDef]
67645
- ON [categoryDef].[ECInstanceId] = [pd].[Category].[Id]
67646
- LEFT JOIN [meta].[ECSchemaDef] [categorySchemaDef]
67647
- ON [categorySchemaDef].[ECInstanceId] = [categoryDef].[Schema].[Id]
67648
- LEFT JOIN [meta].[KindOfQuantityDef] [koqDef]
67649
- ON [koqDef].[ECInstanceId] = [pd].[KindOfQuantity].[Id]
67650
- LEFT JOIN [meta].[ECSchemaDef] [koqSchemaDef]
67651
- ON [koqSchemaDef].[ECInstanceId] = [koqDef].[Schema].[Id]
67652
- LEFT JOIN [meta].[ECClassDef] [structDef]
67653
- ON structDef.[ECInstanceId] = [pd].[StructClass].[Id]
67654
- LEFT JOIN [meta].[ECSchemaDef] [structSchemaDef]
67655
- ON [structSchemaDef].[ECInstanceId] = [structDef].[Schema].[Id]
67656
- LEFT JOIN [meta].[ECClassDef] [navRelDef]
67657
- ON [navRelDef].[ECInstanceId] = [pd].[NavigationRelationshipClass].[Id]
67658
- LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
67659
- ON [navSchemaDef].[ECInstanceId] = [navRelDef].[Schema].[Id]
67660
- )
67591
+ const withClassProperties = `
67592
+ ClassProperties as (
67593
+ SELECT
67594
+ [cop].[SourceECInstanceId] as [ClassId],
67595
+ json_object(
67596
+ 'name', [pd].[Name],
67597
+ 'label', [pd].[DisplayLabel],
67598
+ 'description', [pd].[Description],
67599
+ 'isReadOnly', IIF([pd].[IsReadOnly] = 1, json('true'), NULL),
67600
+ 'priority', [pd].[Priority],
67601
+ 'category', IIF([categoryDef].[Name] IS NULL, NULL, CONCAT([categorySchemaDef].[Name], '.', [categoryDef].[Name])),
67602
+ 'kindOfQuantity', IIF([koqDef].[Name] IS NULL, NULL, CONCAT([koqSchemaDef].[Name], '.', [koqDef].[Name])),
67603
+ 'typeName',
67604
+ CASE
67605
+ WHEN [pd].[Kind] = 0 OR [pd].[Kind] = 2 Then
67606
+ CASE
67607
+ WHEN [enumDef].[Name] IS NOT NULL Then CONCAT([enumSchemaDef].[Name], '.', [enumDef].[Name])
67608
+ WHEN [pd].[PrimitiveType] = 257 Then 'binary'
67609
+ WHEN [pd].[PrimitiveType] = 513 Then 'boolean'
67610
+ WHEN [pd].[PrimitiveType] = 769 Then 'dateTime'
67611
+ WHEN [pd].[PrimitiveType] = 1025 Then 'double'
67612
+ WHEN [pd].[PrimitiveType] = 1281 Then 'int'
67613
+ WHEN [pd].[PrimitiveType] = 1537 Then 'long'
67614
+ WHEN [pd].[PrimitiveType] = 1793 Then 'point2d'
67615
+ WHEN [pd].[PrimitiveType] = 2049 Then 'point3d'
67616
+ WHEN [pd].[PrimitiveType] = 2305 Then 'string'
67617
+ WHEN [pd].[PrimitiveType] = 2561 Then 'Bentley.Geometry.Common.IGeometry'
67618
+ ELSE null
67619
+ END
67620
+ WHEN [pd].[Kind] = 1 OR [pd].[Kind] = 3 Then
67621
+ CONCAT([structSchemaDef].[Name], '.', [structDef].[Name])
67622
+ ELSE null
67623
+ END,
67624
+ 'type', ${propertyType("pd")},
67625
+ 'minLength', [pd].[PrimitiveTypeMinLength],
67626
+ 'maxLength', [pd].[PrimitiveTypeMaxLength],
67627
+ 'minValue', [pd].[PrimitiveTypeMinValue],
67628
+ 'maxValue', [pd].[PrimitiveTypeMaxValue],
67629
+ 'extendedTypeName', [pd].[ExtendedTypeName],
67630
+ 'minOccurs', [pd].[ArrayMinOccurs],
67631
+ 'maxOccurs', [pd].[ArrayMaxOccurs],
67632
+ 'direction', ${navigationDirection("pd")},
67633
+ 'relationshipName', IIF([navRelDef].[Name] IS NULL, NULL, CONCAT([navSchemaDef].[Name], '.', [navRelDef].[Name])),
67634
+ 'customAttributes', (${propertyCustomAttribute("pd")})
67635
+ ) as [property]
67636
+ FROM
67637
+ [meta].[ECPropertyDef] as [pd]
67638
+ JOIN [meta].[ClassOwnsLocalProperties] [cop]
67639
+ ON cop.[TargetECInstanceId] = [pd].[ECInstanceId]
67640
+ LEFT JOIN [meta].[ECEnumerationDef] [enumDef]
67641
+ ON [enumDef].[ECInstanceId] = [pd].[Enumeration].[Id]
67642
+ LEFT JOIN [meta].[ECSchemaDef] enumSchemaDef
67643
+ ON [enumSchemaDef].[ECInstanceId] = [enumDef].[Schema].[Id]
67644
+ LEFT JOIN [meta].[PropertyCategoryDef] [categoryDef]
67645
+ ON [categoryDef].[ECInstanceId] = [pd].[Category].[Id]
67646
+ LEFT JOIN [meta].[ECSchemaDef] [categorySchemaDef]
67647
+ ON [categorySchemaDef].[ECInstanceId] = [categoryDef].[Schema].[Id]
67648
+ LEFT JOIN [meta].[KindOfQuantityDef] [koqDef]
67649
+ ON [koqDef].[ECInstanceId] = [pd].[KindOfQuantity].[Id]
67650
+ LEFT JOIN [meta].[ECSchemaDef] [koqSchemaDef]
67651
+ ON [koqSchemaDef].[ECInstanceId] = [koqDef].[Schema].[Id]
67652
+ LEFT JOIN [meta].[ECClassDef] [structDef]
67653
+ ON structDef.[ECInstanceId] = [pd].[StructClass].[Id]
67654
+ LEFT JOIN [meta].[ECSchemaDef] [structSchemaDef]
67655
+ ON [structSchemaDef].[ECInstanceId] = [structDef].[Schema].[Id]
67656
+ LEFT JOIN [meta].[ECClassDef] [navRelDef]
67657
+ ON [navRelDef].[ECInstanceId] = [pd].[NavigationRelationshipClass].[Id]
67658
+ LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
67659
+ ON [navSchemaDef].[ECInstanceId] = [navRelDef].[Schema].[Id]
67660
+ )
67661
67661
  `;
67662
67662
  /**
67663
67663
  * Query that provides EntityClass data and is shared by two cases:
@@ -67665,52 +67665,52 @@ LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
67665
67665
  * 2. When querying a full schema with multiple schema item queries or
67666
67666
  * when just querying for Entity classes.
67667
67667
  */
67668
- const baseEntityQuery = `
67669
- SELECT
67670
- [sd].[Name] as [schema],
67671
- json_object (
67672
- 'schemaItemType', 'EntityClass',
67673
- 'name', [class].[Name],
67674
- 'label', [class].[DisplayLabel],
67675
- 'description', [class].[Description],
67676
- 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67677
- 'baseClass', (
67678
- ${selectBaseClasses}
67679
- ),
67680
- 'mixins', (
67681
- SELECT
67682
- json_group_array(
67683
- ec_classname([baseClass].[ECInstanceId], 's.c')
67684
- )
67685
- FROM
67686
- [meta].[ECClassDef] [baseClass]
67687
- INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
67688
- ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
67689
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
67690
- AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
67691
- AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
67692
- ),
67693
- 'customAttributes', (${classCustomAttribute("class")}),
67694
- 'properties', (
67695
- ${selectProperties}
67696
- )
67697
- ) AS [item]
67698
- FROM [meta].[ECClassDef] [class]
67699
- JOIN
67700
- [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67701
- WHERE [class].[Type] = 0 AND
67702
- [sd].[Name] = :schemaName
67703
- AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
67704
- AND [ca].[CustomAttributeClass].Id Is ([CoreCA].[IsMixin]))
67668
+ const baseEntityQuery = `
67669
+ SELECT
67670
+ [sd].[Name] as [schema],
67671
+ json_object (
67672
+ 'schemaItemType', 'EntityClass',
67673
+ 'name', [class].[Name],
67674
+ 'label', [class].[DisplayLabel],
67675
+ 'description', [class].[Description],
67676
+ 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67677
+ 'baseClass', (
67678
+ ${selectBaseClasses}
67679
+ ),
67680
+ 'mixins', (
67681
+ SELECT
67682
+ json_group_array(
67683
+ ec_classname([baseClass].[ECInstanceId], 's.c')
67684
+ )
67685
+ FROM
67686
+ [meta].[ECClassDef] [baseClass]
67687
+ INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
67688
+ ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
67689
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
67690
+ AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
67691
+ AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
67692
+ ),
67693
+ 'customAttributes', (${classCustomAttribute("class")}),
67694
+ 'properties', (
67695
+ ${selectProperties}
67696
+ )
67697
+ ) AS [item]
67698
+ FROM [meta].[ECClassDef] [class]
67699
+ JOIN
67700
+ [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67701
+ WHERE [class].[Type] = 0 AND
67702
+ [sd].[Name] = :schemaName
67703
+ AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
67704
+ AND [ca].[CustomAttributeClass].Id Is ([CoreCA].[IsMixin]))
67705
67705
  `;
67706
67706
  /**
67707
67707
  * EntityClass query used to when querying for EntityClass data only. Not used
67708
67708
  * for full Schema load via single query.
67709
67709
  */
67710
- const entityQuery = `
67711
- WITH
67712
- ${withClassProperties}
67713
- ${baseEntityQuery}
67710
+ const entityQuery = `
67711
+ WITH
67712
+ ${withClassProperties}
67713
+ ${baseEntityQuery}
67714
67714
  `;
67715
67715
  /**
67716
67716
  * Query that provides Mixin data and is shared by two cases:
@@ -67718,56 +67718,56 @@ const entityQuery = `
67718
67718
  * 2. When querying a full schema with multiple schema item queries or
67719
67719
  * when just querying for Mixin classes.
67720
67720
  */
67721
- const baseMixinQuery = `
67722
- SELECT
67723
- [sd].[Name] as [schema],
67724
- json_object (
67725
- 'schemaItemType', 'Mixin',
67726
- 'name', [class].[Name],
67727
- 'label', [class].[DisplayLabel],
67728
- 'description', [class].[Description],
67729
- 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67730
- 'baseClass', (
67731
- ${selectBaseClasses}
67732
- ),
67733
- 'appliesTo', (
67734
- SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
67735
- FROM [AppliesToCTE] [atCTE]
67736
- WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
67737
- ),
67738
- 'customAttributes', (
67739
- SELECT
67740
- json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67741
- FROM [meta].[CustomAttribute] [ca]
67742
- WHERE [ca].[ContainerId] = [class].[ECInstanceId] AND [ca].[ContainerType] = 30
67743
- AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') <> 'IsMixin'
67744
- ),
67745
- 'properties', (
67746
- SELECT
67747
- json_group_array(json([classProperties].[property]))
67748
- FROM
67749
- [ClassProperties] [classProperties]
67750
- WHERE
67751
- [classProperties].[ClassId] = [class].[ECInstanceId]
67752
- )
67753
- ) AS [item]
67754
- FROM [meta].[ECClassDef] [class]
67755
- JOIN
67756
- [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67757
- WHERE [class].[Type] = 0 AND
67758
- [sd].[Name] = :schemaName
67759
- AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
67760
- AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
67721
+ const baseMixinQuery = `
67722
+ SELECT
67723
+ [sd].[Name] as [schema],
67724
+ json_object (
67725
+ 'schemaItemType', 'Mixin',
67726
+ 'name', [class].[Name],
67727
+ 'label', [class].[DisplayLabel],
67728
+ 'description', [class].[Description],
67729
+ 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67730
+ 'baseClass', (
67731
+ ${selectBaseClasses}
67732
+ ),
67733
+ 'appliesTo', (
67734
+ SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
67735
+ FROM [AppliesToCTE] [atCTE]
67736
+ WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
67737
+ ),
67738
+ 'customAttributes', (
67739
+ SELECT
67740
+ json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67741
+ FROM [meta].[CustomAttribute] [ca]
67742
+ WHERE [ca].[ContainerId] = [class].[ECInstanceId] AND [ca].[ContainerType] = 30
67743
+ AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') <> 'IsMixin'
67744
+ ),
67745
+ 'properties', (
67746
+ SELECT
67747
+ json_group_array(json([classProperties].[property]))
67748
+ FROM
67749
+ [ClassProperties] [classProperties]
67750
+ WHERE
67751
+ [classProperties].[ClassId] = [class].[ECInstanceId]
67752
+ )
67753
+ ) AS [item]
67754
+ FROM [meta].[ECClassDef] [class]
67755
+ JOIN
67756
+ [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67757
+ WHERE [class].[Type] = 0 AND
67758
+ [sd].[Name] = :schemaName
67759
+ AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
67760
+ AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
67761
67761
  `;
67762
67762
  /**
67763
67763
  * Mixin query used to when querying for Mixin data only. Not used
67764
67764
  * for full Schema load via single query.
67765
67765
  */
67766
- const mixinQuery = `
67767
- WITH
67768
- ${withAppliesTo},
67769
- ${withClassProperties}
67770
- ${baseMixinQuery}
67766
+ const mixinQuery = `
67767
+ WITH
67768
+ ${withAppliesTo},
67769
+ ${withClassProperties}
67770
+ ${baseMixinQuery}
67771
67771
  `;
67772
67772
  /**
67773
67773
  * Query that provides RelationshipClass data and is shared by two cases:
@@ -67775,82 +67775,82 @@ ${baseMixinQuery}
67775
67775
  * 2. When querying a full schema with multiple schema item queries or
67776
67776
  * when just querying for Relationship classes.
67777
67777
  */
67778
- const baseRelationshipClassQuery = `
67779
- SELECT
67780
- [sd].Name as schema,
67781
- json_object (
67782
- 'schemaItemType', 'RelationshipClass',
67783
- 'name', [class].[Name],
67784
- 'label', [class].[DisplayLabel],
67785
- 'description', [class].[Description],
67786
- 'strength', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strength)("class")},
67787
- 'strengthDirection', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strengthDirection)("class")},
67788
- 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67789
- 'baseClass', (
67790
- ${selectBaseClasses}
67791
- ),
67792
- 'customAttributes', (${classCustomAttribute("class")}),
67793
- 'properties', (
67794
- ${selectProperties}
67795
- ),
67796
- 'source', (
67797
- SELECT
67798
- json_object (
67799
- 'multiplicity', [sourceConst].[Multiplicity],
67800
- 'roleLabel', [sourceConst].[RoleLabel],
67801
- 'polymorphic', IIF([sourceConst].[IsPolyMorphic] = 1, json('true'), json('false')),
67802
- 'abstractConstraint', [sourceConst].[AbstractConstraint],
67803
- 'constraintClasses', json([sourceConst].[ConstraintClasses]),
67804
- 'customAttributes', (
67805
- SELECT
67806
- json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67807
- FROM [meta].[CustomAttribute] [ca]
67808
- WHERE [ca].[ContainerId] = [sourceConst].[ConstraintId] AND [ca].[ContainerType] = 1024
67809
- ORDER BY [ca].[Ordinal]
67810
- )
67811
- )
67812
- FROM
67813
- [ClassRelationshipConstraints] [sourceConst]
67814
- WHERE [sourceConst].[relationshipEnd] = 0
67815
- AND [sourceConst].[ClassId] = [class].[ECInstanceId]
67816
- ),
67817
- 'target', (
67818
- SELECT
67819
- json_object (
67820
- 'multiplicity', [targetConst].[Multiplicity],
67821
- 'roleLabel', [targetConst].[RoleLabel],
67822
- 'polymorphic', IIF([targetConst].[IsPolyMorphic] = 1, json('true'), json('false')),
67823
- 'abstractConstraint', [targetConst].[AbstractConstraint],
67824
- 'constraintClasses', json([targetConst].[ConstraintClasses]),
67825
- 'customAttributes', (
67826
- SELECT
67827
- json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67828
- FROM [meta].[CustomAttribute] [ca]
67829
- WHERE [ca].[ContainerId] = [targetConst].[ConstraintId] AND [ca].[ContainerType] = 2048
67830
- ORDER BY [ca].[Ordinal]
67831
- )
67832
- )
67833
- FROM
67834
- [ClassRelationshipConstraints] [targetConst]
67835
- WHERE [targetConst].[relationshipEnd] = 1
67836
- AND [targetConst].[ClassId] = [class].[ECInstanceId]
67837
- )
67838
- ) AS [item]
67839
- FROM [meta].[ECClassDef] [class]
67840
- JOIN
67841
- [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67842
- WHERE [class].[Type] = 1 AND
67843
- [sd].[Name] = :schemaName
67778
+ const baseRelationshipClassQuery = `
67779
+ SELECT
67780
+ [sd].Name as schema,
67781
+ json_object (
67782
+ 'schemaItemType', 'RelationshipClass',
67783
+ 'name', [class].[Name],
67784
+ 'label', [class].[DisplayLabel],
67785
+ 'description', [class].[Description],
67786
+ 'strength', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strength)("class")},
67787
+ 'strengthDirection', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strengthDirection)("class")},
67788
+ 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67789
+ 'baseClass', (
67790
+ ${selectBaseClasses}
67791
+ ),
67792
+ 'customAttributes', (${classCustomAttribute("class")}),
67793
+ 'properties', (
67794
+ ${selectProperties}
67795
+ ),
67796
+ 'source', (
67797
+ SELECT
67798
+ json_object (
67799
+ 'multiplicity', [sourceConst].[Multiplicity],
67800
+ 'roleLabel', [sourceConst].[RoleLabel],
67801
+ 'polymorphic', IIF([sourceConst].[IsPolyMorphic] = 1, json('true'), json('false')),
67802
+ 'abstractConstraint', [sourceConst].[AbstractConstraint],
67803
+ 'constraintClasses', json([sourceConst].[ConstraintClasses]),
67804
+ 'customAttributes', (
67805
+ SELECT
67806
+ json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67807
+ FROM [meta].[CustomAttribute] [ca]
67808
+ WHERE [ca].[ContainerId] = [sourceConst].[ConstraintId] AND [ca].[ContainerType] = 1024
67809
+ ORDER BY [ca].[Ordinal]
67810
+ )
67811
+ )
67812
+ FROM
67813
+ [ClassRelationshipConstraints] [sourceConst]
67814
+ WHERE [sourceConst].[relationshipEnd] = 0
67815
+ AND [sourceConst].[ClassId] = [class].[ECInstanceId]
67816
+ ),
67817
+ 'target', (
67818
+ SELECT
67819
+ json_object (
67820
+ 'multiplicity', [targetConst].[Multiplicity],
67821
+ 'roleLabel', [targetConst].[RoleLabel],
67822
+ 'polymorphic', IIF([targetConst].[IsPolyMorphic] = 1, json('true'), json('false')),
67823
+ 'abstractConstraint', [targetConst].[AbstractConstraint],
67824
+ 'constraintClasses', json([targetConst].[ConstraintClasses]),
67825
+ 'customAttributes', (
67826
+ SELECT
67827
+ json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
67828
+ FROM [meta].[CustomAttribute] [ca]
67829
+ WHERE [ca].[ContainerId] = [targetConst].[ConstraintId] AND [ca].[ContainerType] = 2048
67830
+ ORDER BY [ca].[Ordinal]
67831
+ )
67832
+ )
67833
+ FROM
67834
+ [ClassRelationshipConstraints] [targetConst]
67835
+ WHERE [targetConst].[relationshipEnd] = 1
67836
+ AND [targetConst].[ClassId] = [class].[ECInstanceId]
67837
+ )
67838
+ ) AS [item]
67839
+ FROM [meta].[ECClassDef] [class]
67840
+ JOIN
67841
+ [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67842
+ WHERE [class].[Type] = 1 AND
67843
+ [sd].[Name] = :schemaName
67844
67844
  `;
67845
67845
  /**
67846
67846
  * RelationshipClass query used to when querying for RelationshipClass data only. Not used
67847
67847
  * for full Schema load via single query.
67848
67848
  */
67849
- const relationshipClassQuery = `
67850
- WITH
67851
- ${withClassProperties},
67852
- ${withRelationshipConstraints}
67853
- ${baseRelationshipClassQuery}
67849
+ const relationshipClassQuery = `
67850
+ WITH
67851
+ ${withClassProperties},
67852
+ ${withRelationshipConstraints}
67853
+ ${baseRelationshipClassQuery}
67854
67854
  `;
67855
67855
  /**
67856
67856
  * Query that provides StructClass data and is shared by two cases:
@@ -67858,37 +67858,37 @@ ${baseRelationshipClassQuery}
67858
67858
  * 2. When querying a full schema with multiple schema item queries or
67859
67859
  * when just querying for Struct classes.
67860
67860
  */
67861
- const baseStructQuery = `
67862
- SELECT
67863
- [sd].Name as schema,
67864
- json_object (
67865
- 'schemaItemType', 'StructClass',
67866
- 'name', [class].[Name],
67867
- 'label', [class].[DisplayLabel],
67868
- 'description', [class].[Description],
67869
- 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67870
- 'baseClass', (
67871
- ${selectBaseClasses}
67872
- ),
67873
- 'customAttributes', (${classCustomAttribute("class")}),
67874
- 'properties', (
67875
- ${selectProperties}
67876
- )
67877
- ) AS item
67878
- FROM [meta].[ECClassDef] [class]
67879
- JOIN
67880
- [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67881
- WHERE [class].[Type] = 2 AND
67882
- [sd].[Name] = :schemaName
67861
+ const baseStructQuery = `
67862
+ SELECT
67863
+ [sd].Name as schema,
67864
+ json_object (
67865
+ 'schemaItemType', 'StructClass',
67866
+ 'name', [class].[Name],
67867
+ 'label', [class].[DisplayLabel],
67868
+ 'description', [class].[Description],
67869
+ 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67870
+ 'baseClass', (
67871
+ ${selectBaseClasses}
67872
+ ),
67873
+ 'customAttributes', (${classCustomAttribute("class")}),
67874
+ 'properties', (
67875
+ ${selectProperties}
67876
+ )
67877
+ ) AS item
67878
+ FROM [meta].[ECClassDef] [class]
67879
+ JOIN
67880
+ [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67881
+ WHERE [class].[Type] = 2 AND
67882
+ [sd].[Name] = :schemaName
67883
67883
  `;
67884
67884
  /**
67885
67885
  * StructClass query used to when querying for StructClass data only. Not used
67886
67886
  * for full Schema load via single query.
67887
67887
  */
67888
- const structQuery = `
67889
- WITH
67890
- ${withClassProperties}
67891
- ${baseStructQuery}
67888
+ const structQuery = `
67889
+ WITH
67890
+ ${withClassProperties}
67891
+ ${baseStructQuery}
67892
67892
  `;
67893
67893
  /**
67894
67894
  * Query that provides CustomAttributeClass data and is shared by two cases:
@@ -67896,141 +67896,141 @@ ${baseStructQuery}
67896
67896
  * 2. When querying a full schema with multiple schema item queries or
67897
67897
  * when just querying for CustomAttribute classes.
67898
67898
  */
67899
- const baseCustomAttributeQuery = `
67900
- SELECT
67901
- [sd].Name as schema,
67902
- json_object (
67903
- 'schemaItemType', 'CustomAttributeClass',
67904
- 'name', [class].[Name],
67905
- 'label', [class].[DisplayLabel],
67906
- 'description', [class].[Description],
67907
- 'appliesTo', [class].[CustomAttributeContainerType],
67908
- 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67909
- 'baseClass', (
67910
- ${selectBaseClasses}
67911
- ),
67912
- 'customAttributes', (${classCustomAttribute("class")}),
67913
- 'properties', (
67914
- ${selectProperties}
67915
- )
67916
- ) AS [item]
67917
- FROM [meta].[ECClassDef] [class]
67918
- JOIN
67919
- [meta].[ECSchemaDef] sd ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67920
- WHERE [class].[Type] = 3 AND
67921
- [sd].[Name] = :schemaName
67899
+ const baseCustomAttributeQuery = `
67900
+ SELECT
67901
+ [sd].Name as schema,
67902
+ json_object (
67903
+ 'schemaItemType', 'CustomAttributeClass',
67904
+ 'name', [class].[Name],
67905
+ 'label', [class].[DisplayLabel],
67906
+ 'description', [class].[Description],
67907
+ 'appliesTo', [class].[CustomAttributeContainerType],
67908
+ 'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
67909
+ 'baseClass', (
67910
+ ${selectBaseClasses}
67911
+ ),
67912
+ 'customAttributes', (${classCustomAttribute("class")}),
67913
+ 'properties', (
67914
+ ${selectProperties}
67915
+ )
67916
+ ) AS [item]
67917
+ FROM [meta].[ECClassDef] [class]
67918
+ JOIN
67919
+ [meta].[ECSchemaDef] sd ON [sd].[ECInstanceId] = [class].[Schema].[Id]
67920
+ WHERE [class].[Type] = 3 AND
67921
+ [sd].[Name] = :schemaName
67922
67922
  `;
67923
67923
  /**
67924
67924
  * CustomAttributeClass query used to when querying for CustomAttributeClass data only. Not used
67925
67925
  * for full Schema load via single query.
67926
67926
  */
67927
- const customAttributeQuery = `
67928
- WITH
67929
- ${withClassProperties}
67930
- ${baseCustomAttributeQuery}
67927
+ const customAttributeQuery = `
67928
+ WITH
67929
+ ${withClassProperties}
67930
+ ${baseCustomAttributeQuery}
67931
67931
  `;
67932
67932
  /**
67933
67933
  * Used by full schema load query via single query. Allows
67934
67934
  * all SchemaItemTypes to be queried at once.
67935
67935
  */
67936
- const withSchemaItems = `
67937
- SchemaItems AS (
67938
- ${baseEntityQuery}
67939
- UNION ALL
67940
- ${baseRelationshipClassQuery}
67941
- UNION ALL
67942
- ${baseStructQuery}
67943
- UNION ALL
67944
- ${baseMixinQuery}
67945
- UNION ALL
67946
- ${baseCustomAttributeQuery}
67947
- UNION ALL
67948
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity(true)}
67949
- UNION ALL
67950
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration(true)}
67951
- UNION ALL
67952
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory(true)}
67953
- UNION ALL
67954
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit(true)}
67955
- UNION ALL
67956
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit(true)}
67957
- UNION ALL
67958
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem(true)}
67959
- UNION ALL
67960
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant(true)}
67961
- UNION ALL
67962
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon(true)}
67963
- UNION ALL
67964
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format(true)}
67965
- )
67936
+ const withSchemaItems = `
67937
+ SchemaItems AS (
67938
+ ${baseEntityQuery}
67939
+ UNION ALL
67940
+ ${baseRelationshipClassQuery}
67941
+ UNION ALL
67942
+ ${baseStructQuery}
67943
+ UNION ALL
67944
+ ${baseMixinQuery}
67945
+ UNION ALL
67946
+ ${baseCustomAttributeQuery}
67947
+ UNION ALL
67948
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity(true)}
67949
+ UNION ALL
67950
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration(true)}
67951
+ UNION ALL
67952
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory(true)}
67953
+ UNION ALL
67954
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit(true)}
67955
+ UNION ALL
67956
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit(true)}
67957
+ UNION ALL
67958
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem(true)}
67959
+ UNION ALL
67960
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant(true)}
67961
+ UNION ALL
67962
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon(true)}
67963
+ UNION ALL
67964
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format(true)}
67965
+ )
67966
67966
  `;
67967
67967
  /**
67968
67968
  * Query for Schema data without SchemaItems
67969
67969
  */
67970
- const schemaNoItemsQuery = `
67971
- WITH
67972
- ${withSchemaReferences}
67973
- SELECT
67974
- json_object (
67975
- 'name', [schemaDef].[Name],
67976
- 'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
67977
- 'alias', [schemaDef].[Alias],
67978
- 'label', [schemaDef].[DisplayLabel],
67979
- 'description', [schemaDef].[Description],
67980
- 'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
67981
- 'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
67982
- 'customAttributes', (${schemaCustomAttribute("schemaDef")}),
67983
- 'references', (
67984
- SELECT
67985
- json_group_array(json([schemaReferences].[reference]))
67986
- FROM
67987
- [SchemaReferences] [schemaReferences]
67988
- WHERE
67989
- [schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
67990
- )
67991
- ) as [schema]
67992
- FROM
67993
- [meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
67970
+ const schemaNoItemsQuery = `
67971
+ WITH
67972
+ ${withSchemaReferences}
67973
+ SELECT
67974
+ json_object (
67975
+ 'name', [schemaDef].[Name],
67976
+ 'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
67977
+ 'alias', [schemaDef].[Alias],
67978
+ 'label', [schemaDef].[DisplayLabel],
67979
+ 'description', [schemaDef].[Description],
67980
+ 'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
67981
+ 'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
67982
+ 'customAttributes', (${schemaCustomAttribute("schemaDef")}),
67983
+ 'references', (
67984
+ SELECT
67985
+ json_group_array(json([schemaReferences].[reference]))
67986
+ FROM
67987
+ [SchemaReferences] [schemaReferences]
67988
+ WHERE
67989
+ [schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
67990
+ )
67991
+ ) as [schema]
67992
+ FROM
67993
+ [meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
67994
67994
  `;
67995
67995
  /**
67996
67996
  * Query to load a full Schema via a single query.
67997
67997
  */
67998
- const schemaQuery = `
67999
- WITH
68000
- ${withAppliesTo},
68001
- ${withSchemaReferences},
68002
- ${withClassProperties},
68003
- ${withRelationshipConstraints},
68004
- ${withSchemaItems}
68005
- SELECT
68006
- json_object (
68007
- 'name', [schemaDef].[Name],
68008
- 'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
68009
- 'alias', [schemaDef].[Alias],
68010
- 'label', [schemaDef].[DisplayLabel],
68011
- 'description', [schemaDef].[Description],
68012
- 'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
68013
- 'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
68014
- 'customAttributes', (${schemaCustomAttribute("schemaDef")}),
68015
- 'references', (
68016
- SELECT
68017
- json_group_array(json([schemaReferences].[reference]))
68018
- FROM
68019
- [SchemaReferences] [schemaReferences]
68020
- WHERE
68021
- [schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
68022
- ),
68023
- 'items', (
68024
- SELECT
68025
- json_group_array(json(json_object(
68026
- 'item', json([items].[item])
68027
- )))
68028
- FROM
68029
- [SchemaItems] [items]
68030
- )
68031
- ) as [schema]
68032
- FROM
68033
- [meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
67998
+ const schemaQuery = `
67999
+ WITH
68000
+ ${withAppliesTo},
68001
+ ${withSchemaReferences},
68002
+ ${withClassProperties},
68003
+ ${withRelationshipConstraints},
68004
+ ${withSchemaItems}
68005
+ SELECT
68006
+ json_object (
68007
+ 'name', [schemaDef].[Name],
68008
+ 'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
68009
+ 'alias', [schemaDef].[Alias],
68010
+ 'label', [schemaDef].[DisplayLabel],
68011
+ 'description', [schemaDef].[Description],
68012
+ 'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
68013
+ 'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
68014
+ 'customAttributes', (${schemaCustomAttribute("schemaDef")}),
68015
+ 'references', (
68016
+ SELECT
68017
+ json_group_array(json([schemaReferences].[reference]))
68018
+ FROM
68019
+ [SchemaReferences] [schemaReferences]
68020
+ WHERE
68021
+ [schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
68022
+ ),
68023
+ 'items', (
68024
+ SELECT
68025
+ json_group_array(json(json_object(
68026
+ 'item', json([items].[item])
68027
+ )))
68028
+ FROM
68029
+ [SchemaItems] [items]
68030
+ )
68031
+ ) as [schema]
68032
+ FROM
68033
+ [meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
68034
68034
  `;
68035
68035
  /**
68036
68036
  * Queries for loading full Schema JSON.
@@ -68536,281 +68536,281 @@ __webpack_require__.r(__webpack_exports__);
68536
68536
  * Query for SchemaItemType KindOfQuantity data.
68537
68537
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68538
68538
  */
68539
- const kindOfQuantity = (singleSchema) => `
68540
- SELECT
68541
- [koq].[Schema].[Id] AS [SchemaId],
68542
- json_object (
68543
- 'schemaItemType', 'KindOfQuantity',
68544
- 'name', [koq].[Name],
68545
- 'label', [koq].[DisplayLabel],
68546
- 'description', [koq].[Description],
68547
- 'relativeError', [koq].[RelativeError],
68548
- 'persistenceUnit', [koq].[PersistenceUnit]
68549
- ${singleSchema ? `
68550
- ,'presentationUnits', (
68551
- SELECT json_group_array(js."value")
68552
- FROM [meta].[KindOfQuantityDef] [koq1], json1.json_each([PresentationUnits]) js
68553
- WHERE [koq1].[ECInstanceId] = [koq].[ECInstanceId]
68554
- ) ` : ""}
68555
- ) as [item]
68556
- FROM
68557
- [meta].[KindOfQuantityDef] [koq]
68558
- ${singleSchema ? `
68559
- JOIN
68560
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [koq].[Schema].[Id]
68561
- WHERE [schema].[Name] = :schemaName
68562
- ` : ""}
68539
+ const kindOfQuantity = (singleSchema) => `
68540
+ SELECT
68541
+ [koq].[Schema].[Id] AS [SchemaId],
68542
+ json_object (
68543
+ 'schemaItemType', 'KindOfQuantity',
68544
+ 'name', [koq].[Name],
68545
+ 'label', [koq].[DisplayLabel],
68546
+ 'description', [koq].[Description],
68547
+ 'relativeError', [koq].[RelativeError],
68548
+ 'persistenceUnit', [koq].[PersistenceUnit]
68549
+ ${singleSchema ? `
68550
+ ,'presentationUnits', (
68551
+ SELECT json_group_array(js."value")
68552
+ FROM [meta].[KindOfQuantityDef] [koq1], json1.json_each([PresentationUnits]) js
68553
+ WHERE [koq1].[ECInstanceId] = [koq].[ECInstanceId]
68554
+ ) ` : ""}
68555
+ ) as [item]
68556
+ FROM
68557
+ [meta].[KindOfQuantityDef] [koq]
68558
+ ${singleSchema ? `
68559
+ JOIN
68560
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [koq].[Schema].[Id]
68561
+ WHERE [schema].[Name] = :schemaName
68562
+ ` : ""}
68563
68563
  `;
68564
68564
  /**
68565
68565
  * Query for SchemaItemType PropertyCategory data.
68566
68566
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68567
68567
  */
68568
- const propertyCategory = (singleSchema) => `
68569
- SELECT
68570
- [pc].[Schema].[Id] AS [SchemaId],
68571
- json_object (
68572
- 'schemaItemType', 'PropertyCategory',
68573
- 'name', [pc].[Name],
68574
- 'label', [pc].[DisplayLabel],
68575
- 'description', [pc].[Description],
68576
- 'priority', [pc].[Priority]
68577
- ) as [item]
68578
- FROM
68579
- [meta].[PropertyCategoryDef] [pc]
68580
- ${singleSchema ? `
68581
- JOIN
68582
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pc].[Schema].[Id]
68583
- WHERE [schema].[Name] = :schemaName
68584
- ` : ""}
68568
+ const propertyCategory = (singleSchema) => `
68569
+ SELECT
68570
+ [pc].[Schema].[Id] AS [SchemaId],
68571
+ json_object (
68572
+ 'schemaItemType', 'PropertyCategory',
68573
+ 'name', [pc].[Name],
68574
+ 'label', [pc].[DisplayLabel],
68575
+ 'description', [pc].[Description],
68576
+ 'priority', [pc].[Priority]
68577
+ ) as [item]
68578
+ FROM
68579
+ [meta].[PropertyCategoryDef] [pc]
68580
+ ${singleSchema ? `
68581
+ JOIN
68582
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pc].[Schema].[Id]
68583
+ WHERE [schema].[Name] = :schemaName
68584
+ ` : ""}
68585
68585
  `;
68586
68586
  /**
68587
68587
  * Query for SchemaItemType Enumeration data.
68588
68588
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68589
68589
  */
68590
- const enumeration = (singleSchema) => `
68591
- SELECT
68592
- [ed].[Schema].[Id] AS [SchemaId],
68593
- json_object (
68594
- 'schemaItemType', 'Enumeration',
68595
- 'name', [ed].[Name],
68596
- 'label', [ed].[DisplayLabel],
68597
- 'description', [ed].[Description],
68598
- 'type', IIF([ed].[Type] = 1281, 'int', IIF([ed].[Type] = 2305, 'string', null)),
68599
- 'isStrict', IIF([ed].[IsStrict] = 1, json('true'), json('false')),
68600
- 'enumerators', (
68601
- SELECT json_group_array(json(json_object(
68602
- 'name', json_extract(js."value", '$.Name'),
68603
- 'value', IFNULL(json_extract(js."value", '$.StringValue'), (json_extract(js."value", '$.IntValue'))),
68604
- 'label', json_extract(js."value", '$.DisplayLabel'),
68605
- 'description', json_extract(js."value", '$.Description')
68606
- )))
68607
- FROM [meta].[ECEnumerationDef] [enumerationDef], json1.json_each([EnumValues]) js
68608
- WHERE [enumerationDef].[ECInstanceId] = [ed].[ECInstanceId]
68609
- )
68610
- ) as [item]
68611
- FROM
68612
- [meta].[ECEnumerationDef] [ed]
68613
- ${singleSchema ? `
68614
- JOIN
68615
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ed].[Schema].[Id]
68616
- WHERE [schema].[Name] = :schemaName` : ""}
68590
+ const enumeration = (singleSchema) => `
68591
+ SELECT
68592
+ [ed].[Schema].[Id] AS [SchemaId],
68593
+ json_object (
68594
+ 'schemaItemType', 'Enumeration',
68595
+ 'name', [ed].[Name],
68596
+ 'label', [ed].[DisplayLabel],
68597
+ 'description', [ed].[Description],
68598
+ 'type', IIF([ed].[Type] = 1281, 'int', IIF([ed].[Type] = 2305, 'string', null)),
68599
+ 'isStrict', IIF([ed].[IsStrict] = 1, json('true'), json('false')),
68600
+ 'enumerators', (
68601
+ SELECT json_group_array(json(json_object(
68602
+ 'name', json_extract(js."value", '$.Name'),
68603
+ 'value', IFNULL(json_extract(js."value", '$.StringValue'), (json_extract(js."value", '$.IntValue'))),
68604
+ 'label', json_extract(js."value", '$.DisplayLabel'),
68605
+ 'description', json_extract(js."value", '$.Description')
68606
+ )))
68607
+ FROM [meta].[ECEnumerationDef] [enumerationDef], json1.json_each([EnumValues]) js
68608
+ WHERE [enumerationDef].[ECInstanceId] = [ed].[ECInstanceId]
68609
+ )
68610
+ ) as [item]
68611
+ FROM
68612
+ [meta].[ECEnumerationDef] [ed]
68613
+ ${singleSchema ? `
68614
+ JOIN
68615
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ed].[Schema].[Id]
68616
+ WHERE [schema].[Name] = :schemaName` : ""}
68617
68617
  `;
68618
68618
  /**
68619
68619
  * Query for SchemaItemType Unit data.
68620
68620
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68621
68621
  */
68622
- const unit = (singleSchema) => `
68623
- SELECT
68624
- [ud].[Schema].[Id] AS [SchemaId],
68625
- json_object (
68626
- 'schemaItemType', 'Unit',
68627
- 'name', [ud].[Name],
68628
- 'label', [ud].[DisplayLabel],
68629
- 'description', [ud].[Description],
68630
- 'definition', [ud].[Definition],
68631
- 'numerator', IIF([ud].[Numerator] IS NULL, NULL, json(format('%.16g', [ud].[Numerator]))),
68632
- 'denominator', IIF([ud].[Denominator] IS NULL, NULL, json(format('%.16g', [ud].[Denominator]))),
68633
- 'offset', IIF([ud].[Offset] IS NULL, NULL, json(format('%!.15f', [ud].[Offset]))),
68634
- 'unitSystem', CONCAT([uss].[Name],'.', [usd].[Name]),
68635
- 'phenomenon', CONCAT([ps].[Name],'.', [pd].[Name])
68636
- ) as item
68637
- FROM
68638
- [meta].[UnitDef] [ud]
68639
- ${singleSchema ? `
68640
- JOIN
68641
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
68642
- JOIN [meta].[UnitSystemDef] [usd]
68643
- ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
68644
- JOIN [meta].[ECSchemaDef] [uss]
68645
- ON [uss].[ECInstanceId] = [usd].[Schema].[Id]
68646
- JOIN [meta].[PhenomenonDef] [pd]
68647
- ON [pd].[ECInstanceId] = [ud].[Phenomenon].[Id]
68648
- JOIN [meta].[ECSchemaDef] [ps]
68649
- ON [ps].[ECInstanceId] = [pd].[Schema].[Id]
68650
- WHERE
68651
- ${singleSchema ? `
68652
- [schema].[Name] = :schemaName AND` : ""}
68653
- [ud].[IsConstant] = 0 AND
68654
- [ud].[InvertingUnit] IS NULL
68622
+ const unit = (singleSchema) => `
68623
+ SELECT
68624
+ [ud].[Schema].[Id] AS [SchemaId],
68625
+ json_object (
68626
+ 'schemaItemType', 'Unit',
68627
+ 'name', [ud].[Name],
68628
+ 'label', [ud].[DisplayLabel],
68629
+ 'description', [ud].[Description],
68630
+ 'definition', [ud].[Definition],
68631
+ 'numerator', IIF([ud].[Numerator] IS NULL, NULL, json(format('%.16g', [ud].[Numerator]))),
68632
+ 'denominator', IIF([ud].[Denominator] IS NULL, NULL, json(format('%.16g', [ud].[Denominator]))),
68633
+ 'offset', IIF([ud].[Offset] IS NULL, NULL, json(format('%!.15f', [ud].[Offset]))),
68634
+ 'unitSystem', CONCAT([uss].[Name],'.', [usd].[Name]),
68635
+ 'phenomenon', CONCAT([ps].[Name],'.', [pd].[Name])
68636
+ ) as item
68637
+ FROM
68638
+ [meta].[UnitDef] [ud]
68639
+ ${singleSchema ? `
68640
+ JOIN
68641
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
68642
+ JOIN [meta].[UnitSystemDef] [usd]
68643
+ ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
68644
+ JOIN [meta].[ECSchemaDef] [uss]
68645
+ ON [uss].[ECInstanceId] = [usd].[Schema].[Id]
68646
+ JOIN [meta].[PhenomenonDef] [pd]
68647
+ ON [pd].[ECInstanceId] = [ud].[Phenomenon].[Id]
68648
+ JOIN [meta].[ECSchemaDef] [ps]
68649
+ ON [ps].[ECInstanceId] = [pd].[Schema].[Id]
68650
+ WHERE
68651
+ ${singleSchema ? `
68652
+ [schema].[Name] = :schemaName AND` : ""}
68653
+ [ud].[IsConstant] = 0 AND
68654
+ [ud].[InvertingUnit] IS NULL
68655
68655
  `;
68656
68656
  /**
68657
68657
  * Query for SchemaItemType InvertedUnit data.
68658
68658
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68659
68659
  */
68660
- const invertedUnit = (singleSchema) => `
68661
- SELECT
68662
- [ud].[Schema].[Id] AS [SchemaId],
68663
- json_object (
68664
- 'schemaItemType', 'InvertedUnit',
68665
- 'name', [ud].[Name],
68666
- 'label', [ud].[DisplayLabel],
68667
- 'description', [ud].[Description],
68668
- 'unitSystem', CONCAT([systemSchema].[Name],'.', [usd].[Name]),
68669
- 'invertsUnit', IIF([iud].[Name] IS NULL, null, CONCAT([ius].[Name],'.', [iud].[Name]))
68670
- ) as [item]
68671
- FROM
68672
- [meta].[UnitDef] [ud]
68673
- ${singleSchema ? `
68674
- JOIN
68675
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
68676
- JOIN [meta].[UnitSystemDef] [usd]
68677
- ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
68678
- JOIN [meta].[ECSchemaDef] [systemSchema]
68679
- ON [systemSchema].[ECInstanceId] = [usd].[Schema].[Id]
68680
- LEFT JOIN [meta].[UnitDef] [iud]
68681
- ON [iud].[ECInstanceId] = [ud].[InvertingUnit].[Id]
68682
- LEFT JOIN [meta].[ECSchemaDef] [ius]
68683
- ON [ius].[ECInstanceId] = [iud].[Schema].[Id]
68684
- WHERE
68685
- ${singleSchema ? `
68686
- [schema].[Name] = :schemaName AND` : ""}
68687
- [ud].[IsConstant] = 0 AND
68688
- [ud].[InvertingUnit] IS NOT NULL
68660
+ const invertedUnit = (singleSchema) => `
68661
+ SELECT
68662
+ [ud].[Schema].[Id] AS [SchemaId],
68663
+ json_object (
68664
+ 'schemaItemType', 'InvertedUnit',
68665
+ 'name', [ud].[Name],
68666
+ 'label', [ud].[DisplayLabel],
68667
+ 'description', [ud].[Description],
68668
+ 'unitSystem', CONCAT([systemSchema].[Name],'.', [usd].[Name]),
68669
+ 'invertsUnit', IIF([iud].[Name] IS NULL, null, CONCAT([ius].[Name],'.', [iud].[Name]))
68670
+ ) as [item]
68671
+ FROM
68672
+ [meta].[UnitDef] [ud]
68673
+ ${singleSchema ? `
68674
+ JOIN
68675
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
68676
+ JOIN [meta].[UnitSystemDef] [usd]
68677
+ ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
68678
+ JOIN [meta].[ECSchemaDef] [systemSchema]
68679
+ ON [systemSchema].[ECInstanceId] = [usd].[Schema].[Id]
68680
+ LEFT JOIN [meta].[UnitDef] [iud]
68681
+ ON [iud].[ECInstanceId] = [ud].[InvertingUnit].[Id]
68682
+ LEFT JOIN [meta].[ECSchemaDef] [ius]
68683
+ ON [ius].[ECInstanceId] = [iud].[Schema].[Id]
68684
+ WHERE
68685
+ ${singleSchema ? `
68686
+ [schema].[Name] = :schemaName AND` : ""}
68687
+ [ud].[IsConstant] = 0 AND
68688
+ [ud].[InvertingUnit] IS NOT NULL
68689
68689
  `;
68690
68690
  /**
68691
68691
  * Query for SchemaItemType Constant data.
68692
68692
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68693
68693
  */
68694
- const constant = (singleSchema) => `
68695
- SELECT
68696
- [cd].[Schema].[Id] AS [SchemaId],
68697
- json_object(
68698
- 'schemaItemType', 'Constant',
68699
- 'name', [cd].[Name],
68700
- 'label', [cd].[DisplayLabel],
68701
- 'description', [cd].[Description],
68702
- 'definition', [cd].[Definition],
68703
- 'numerator', IIF([cd].[Numerator] IS NULL, NULL, json(format('%.16g', [cd].[Numerator]))),
68704
- 'denominator', IIF([cd].[Denominator] IS NULL, NULL, json(format('%.16g', [cd].[Denominator]))),
68705
- 'phenomenon', CONCAT([phenomSchema].[Name],'.', [phenomDef].[Name])
68706
- ) as item
68707
- FROM
68708
- [meta].[UnitDef] [cd]
68709
- ${singleSchema ? `
68710
- JOIN
68711
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [cd].[Schema].[Id]` : ""}
68712
- JOIN [meta].[PhenomenonDef] [phenomDef]
68713
- ON [phenomDef].[ECInstanceId] = [cd].[Phenomenon].[Id]
68714
- JOIN [meta].[ECSchemaDef] [phenomSchema]
68715
- ON [phenomSchema].[ECInstanceId] = [phenomDef].[Schema].[Id]
68716
- WHERE
68717
- ${singleSchema ? `
68718
- [schema].[Name] = :schemaName AND` : ""}
68719
- [cd].[IsConstant] = 1
68694
+ const constant = (singleSchema) => `
68695
+ SELECT
68696
+ [cd].[Schema].[Id] AS [SchemaId],
68697
+ json_object(
68698
+ 'schemaItemType', 'Constant',
68699
+ 'name', [cd].[Name],
68700
+ 'label', [cd].[DisplayLabel],
68701
+ 'description', [cd].[Description],
68702
+ 'definition', [cd].[Definition],
68703
+ 'numerator', IIF([cd].[Numerator] IS NULL, NULL, json(format('%.16g', [cd].[Numerator]))),
68704
+ 'denominator', IIF([cd].[Denominator] IS NULL, NULL, json(format('%.16g', [cd].[Denominator]))),
68705
+ 'phenomenon', CONCAT([phenomSchema].[Name],'.', [phenomDef].[Name])
68706
+ ) as item
68707
+ FROM
68708
+ [meta].[UnitDef] [cd]
68709
+ ${singleSchema ? `
68710
+ JOIN
68711
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [cd].[Schema].[Id]` : ""}
68712
+ JOIN [meta].[PhenomenonDef] [phenomDef]
68713
+ ON [phenomDef].[ECInstanceId] = [cd].[Phenomenon].[Id]
68714
+ JOIN [meta].[ECSchemaDef] [phenomSchema]
68715
+ ON [phenomSchema].[ECInstanceId] = [phenomDef].[Schema].[Id]
68716
+ WHERE
68717
+ ${singleSchema ? `
68718
+ [schema].[Name] = :schemaName AND` : ""}
68719
+ [cd].[IsConstant] = 1
68720
68720
  `;
68721
68721
  /**
68722
68722
  * Query for SchemaItemType UnitSystem data.
68723
68723
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68724
68724
  */
68725
- const unitSystem = (singleSchema) => `
68726
- SELECT
68727
- [us].[Schema].[Id] AS [SchemaId],
68728
- json_object (
68729
- 'schemaItemType', 'UnitSystem',
68730
- 'name', [us].[Name],
68731
- 'label', [us].[DisplayLabel],
68732
- 'description', [us].[Description]
68733
- ) as [item]
68734
- FROM
68735
- [meta].[UnitSystemDef] [us]
68736
- ${singleSchema ? `
68737
- JOIN
68738
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [us].[Schema].[Id]
68739
- WHERE [schema].[Name] = :schemaName` : ""}
68725
+ const unitSystem = (singleSchema) => `
68726
+ SELECT
68727
+ [us].[Schema].[Id] AS [SchemaId],
68728
+ json_object (
68729
+ 'schemaItemType', 'UnitSystem',
68730
+ 'name', [us].[Name],
68731
+ 'label', [us].[DisplayLabel],
68732
+ 'description', [us].[Description]
68733
+ ) as [item]
68734
+ FROM
68735
+ [meta].[UnitSystemDef] [us]
68736
+ ${singleSchema ? `
68737
+ JOIN
68738
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [us].[Schema].[Id]
68739
+ WHERE [schema].[Name] = :schemaName` : ""}
68740
68740
  `;
68741
68741
  /**
68742
68742
  * Query for SchemaItemType Phenomenon data.
68743
68743
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68744
68744
  */
68745
- const phenomenon = (singleSchema) => `
68746
- SELECT
68747
- [pd].[Schema].[Id] AS [SchemaId],
68748
- json_object(
68749
- 'schemaItemType', 'Phenomenon',
68750
- 'name', [pd].[Name],
68751
- 'label', [pd].[DisplayLabel],
68752
- 'description', [pd].[Description],
68753
- 'definition', [pd].[Definition]
68754
- ) as [item]
68755
- FROM
68756
- [meta].[PhenomenonDef] [pd]
68757
- ${singleSchema ? `
68758
- JOIN
68759
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pd].[Schema].[Id]
68760
- WHERE [schema].[Name] = :schemaName` : ""}
68745
+ const phenomenon = (singleSchema) => `
68746
+ SELECT
68747
+ [pd].[Schema].[Id] AS [SchemaId],
68748
+ json_object(
68749
+ 'schemaItemType', 'Phenomenon',
68750
+ 'name', [pd].[Name],
68751
+ 'label', [pd].[DisplayLabel],
68752
+ 'description', [pd].[Description],
68753
+ 'definition', [pd].[Definition]
68754
+ ) as [item]
68755
+ FROM
68756
+ [meta].[PhenomenonDef] [pd]
68757
+ ${singleSchema ? `
68758
+ JOIN
68759
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pd].[Schema].[Id]
68760
+ WHERE [schema].[Name] = :schemaName` : ""}
68761
68761
  `;
68762
68762
  /**
68763
68763
  * Query for SchemaItemType Format data.
68764
68764
  * @param singleSchema Indicates if a filter and join for a single Schema should be applied.
68765
68765
  */
68766
- const format = (singleSchema) => `
68767
- SELECT
68768
- [fd].[Schema].[Id] AS [SchemaId],
68769
- json_object(
68770
- 'schemaItemType', 'Format',
68771
- 'name', [fd].[Name],
68772
- 'label', [fd].[DisplayLabel],
68773
- 'description', [fd].[Description],
68774
- 'type', json_extract([fd].[NumericSpec], '$.type'),
68775
- 'precision', json_extract([fd].[NumericSpec], '$.precision'),
68776
- 'roundFactor', json_extract([fd].[NumericSpec], '$.roundFactor'),
68777
- 'minWidth', json_extract([fd].[NumericSpec], '$.minWidth'),
68778
- 'showSignOption', json_extract([fd].[NumericSpec], '$.showSignOption'),
68779
- 'decimalSeparator', json_extract([fd].[NumericSpec], '$.decimalSeparator'),
68780
- 'thousandSeparator', json_extract([fd].[NumericSpec], '$.thousandSeparator'),
68781
- 'uomSeparator', json_extract([fd].[NumericSpec], '$.uomSeparator'),
68782
- 'scientificType', json_extract([fd].[NumericSpec], '$.scientificType'),
68783
- 'stationOffsetSize', json_extract([fd].[NumericSpec], '$.stationOffsetSize'),
68784
- 'stationSeparator', json_extract([fd].[NumericSpec], '$.stationSeparator'),
68785
- 'formatTraits', json_extract([fd].[NumericSpec], '$.formatTraits')
68786
- ${singleSchema ? `
68787
- ,'composite', (
68788
- SELECT
68789
- json_object(
68790
- 'spacer', json_extract([fd1].[CompositeSpec], '$.spacer'),
68791
- 'includeZero', json(IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 1, 'true', IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 0, 'false', null))),
68792
- 'units', (
68793
- SELECT json_group_array(json(json_object(
68794
- 'name', CONCAT([sd].[Name], '.', [ud].[Name]),
68795
- 'label', [fud].[Label]
68796
- )))
68797
- FROM [meta].[FormatDef] [fd2]
68798
- LEFT JOIN [meta].[FormatCompositeUnitDef] [fud] ON [fud].[Format].[Id] = [fd2].[ECInstanceId]
68799
- LEFT JOIN [meta].[UnitDef] [ud] ON [ud].[ECInstanceId] = [fud].[Unit].[Id]
68800
- INNER JOIN [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [ud].[Schema].[Id]
68801
- WHERE [fd2].[ECInstanceId] = [fd1].[ECInstanceId]
68802
- )
68803
- )
68804
- FROM [meta].[FormatDef] [fd1]
68805
- WHERE [fd1].[ECInstanceId]= [fd].[ECInstanceId] AND [fd1].[CompositeSpec] IS NOT NULL
68806
- )` : ""}
68807
- ) AS item
68808
- FROM
68809
- [meta].[FormatDef] [fd]
68810
- ${singleSchema ? `
68811
- JOIN
68812
- [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [fd].[Schema].[Id]
68813
- WHERE [schema].[Name] = :schemaName` : ""}
68766
+ const format = (singleSchema) => `
68767
+ SELECT
68768
+ [fd].[Schema].[Id] AS [SchemaId],
68769
+ json_object(
68770
+ 'schemaItemType', 'Format',
68771
+ 'name', [fd].[Name],
68772
+ 'label', [fd].[DisplayLabel],
68773
+ 'description', [fd].[Description],
68774
+ 'type', json_extract([fd].[NumericSpec], '$.type'),
68775
+ 'precision', json_extract([fd].[NumericSpec], '$.precision'),
68776
+ 'roundFactor', json_extract([fd].[NumericSpec], '$.roundFactor'),
68777
+ 'minWidth', json_extract([fd].[NumericSpec], '$.minWidth'),
68778
+ 'showSignOption', json_extract([fd].[NumericSpec], '$.showSignOption'),
68779
+ 'decimalSeparator', json_extract([fd].[NumericSpec], '$.decimalSeparator'),
68780
+ 'thousandSeparator', json_extract([fd].[NumericSpec], '$.thousandSeparator'),
68781
+ 'uomSeparator', json_extract([fd].[NumericSpec], '$.uomSeparator'),
68782
+ 'scientificType', json_extract([fd].[NumericSpec], '$.scientificType'),
68783
+ 'stationOffsetSize', json_extract([fd].[NumericSpec], '$.stationOffsetSize'),
68784
+ 'stationSeparator', json_extract([fd].[NumericSpec], '$.stationSeparator'),
68785
+ 'formatTraits', json_extract([fd].[NumericSpec], '$.formatTraits')
68786
+ ${singleSchema ? `
68787
+ ,'composite', (
68788
+ SELECT
68789
+ json_object(
68790
+ 'spacer', json_extract([fd1].[CompositeSpec], '$.spacer'),
68791
+ 'includeZero', json(IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 1, 'true', IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 0, 'false', null))),
68792
+ 'units', (
68793
+ SELECT json_group_array(json(json_object(
68794
+ 'name', CONCAT([sd].[Name], '.', [ud].[Name]),
68795
+ 'label', [fud].[Label]
68796
+ )))
68797
+ FROM [meta].[FormatDef] [fd2]
68798
+ LEFT JOIN [meta].[FormatCompositeUnitDef] [fud] ON [fud].[Format].[Id] = [fd2].[ECInstanceId]
68799
+ LEFT JOIN [meta].[UnitDef] [ud] ON [ud].[ECInstanceId] = [fud].[Unit].[Id]
68800
+ INNER JOIN [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [ud].[Schema].[Id]
68801
+ WHERE [fd2].[ECInstanceId] = [fd1].[ECInstanceId]
68802
+ )
68803
+ )
68804
+ FROM [meta].[FormatDef] [fd1]
68805
+ WHERE [fd1].[ECInstanceId]= [fd].[ECInstanceId] AND [fd1].[CompositeSpec] IS NOT NULL
68806
+ )` : ""}
68807
+ ) AS item
68808
+ FROM
68809
+ [meta].[FormatDef] [fd]
68810
+ ${singleSchema ? `
68811
+ JOIN
68812
+ [meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [fd].[Schema].[Id]
68813
+ WHERE [schema].[Name] = :schemaName` : ""}
68814
68814
  `;
68815
68815
  /**
68816
68816
  * Queries for each SchemaItemType
@@ -68976,332 +68976,332 @@ __webpack_require__.r(__webpack_exports__);
68976
68976
  *--------------------------------------------------------------------------------------------*/
68977
68977
 
68978
68978
  const modifier = (alias) => {
68979
- return `
68980
- CASE
68981
- WHEN [${alias}].[modifier] = 0 THEN 'None'
68982
- WHEN [${alias}].[modifier] = 1 THEN 'Abstract'
68983
- WHEN [${alias}].[modifier] = 2 THEN 'Sealed'
68984
- ELSE NULL
68985
- END
68979
+ return `
68980
+ CASE
68981
+ WHEN [${alias}].[modifier] = 0 THEN 'None'
68982
+ WHEN [${alias}].[modifier] = 1 THEN 'Abstract'
68983
+ WHEN [${alias}].[modifier] = 2 THEN 'Sealed'
68984
+ ELSE NULL
68985
+ END
68986
68986
  `;
68987
68987
  };
68988
68988
  const strength = (alias) => {
68989
- return `
68990
- CASE
68991
- WHEN [${alias}].[RelationshipStrength] = 0 THEN 'Referencing'
68992
- WHEN [${alias}].[RelationshipStrength] = 1 THEN 'Holding'
68993
- WHEN [${alias}].[RelationshipStrength] = 2 THEN 'Embedding'
68994
- ELSE NULL
68995
- END
68989
+ return `
68990
+ CASE
68991
+ WHEN [${alias}].[RelationshipStrength] = 0 THEN 'Referencing'
68992
+ WHEN [${alias}].[RelationshipStrength] = 1 THEN 'Holding'
68993
+ WHEN [${alias}].[RelationshipStrength] = 2 THEN 'Embedding'
68994
+ ELSE NULL
68995
+ END
68996
68996
  `;
68997
68997
  };
68998
68998
  const strengthDirection = (alias) => {
68999
- return `
69000
- CASE
69001
- WHEN [${alias}].[RelationshipStrengthDirection] = 1 THEN 'Forward'
69002
- WHEN [${alias}].[RelationshipStrengthDirection] = 2 THEN 'Backward'
69003
- ELSE NULL
69004
- END
68999
+ return `
69000
+ CASE
69001
+ WHEN [${alias}].[RelationshipStrengthDirection] = 1 THEN 'Forward'
69002
+ WHEN [${alias}].[RelationshipStrengthDirection] = 2 THEN 'Backward'
69003
+ ELSE NULL
69004
+ END
69005
69005
  `;
69006
69006
  };
69007
- const withAppliesTo = `
69008
- AppliesToCTE AS (
69009
- SELECT
69010
- [mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
69011
- [appliesToSchema].[name] as [AppliesToSchema],
69012
- json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
69013
- FROM [meta].[CustomAttribute] [ca]
69014
- JOIN [meta].[ECClassDef] [mixinAppliesTo]
69015
- ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
69016
- JOIN [meta].[ECSchemaDef] [appliesToSchema]
69017
- ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
69018
- WHERE [ca].[ContainerType] = 30
69019
- AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
69020
- )
69007
+ const withAppliesTo = `
69008
+ AppliesToCTE AS (
69009
+ SELECT
69010
+ [mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
69011
+ [appliesToSchema].[name] as [AppliesToSchema],
69012
+ json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
69013
+ FROM [meta].[CustomAttribute] [ca]
69014
+ JOIN [meta].[ECClassDef] [mixinAppliesTo]
69015
+ ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
69016
+ JOIN [meta].[ECSchemaDef] [appliesToSchema]
69017
+ ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
69018
+ WHERE [ca].[ContainerType] = 30
69019
+ AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
69020
+ )
69021
69021
  `;
69022
- const withSchemaReferences = `
69023
- SchemaReferences AS (
69024
- SELECT
69025
- [ref].[SourceECInstanceId] AS [SchemaId],
69026
- CONCAT([Name],'.',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [fullName]
69027
- FROM
69028
- [meta].[ECSchemaDef] AS [refSchema]
69029
- INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
69030
- ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
69031
- )
69022
+ const withSchemaReferences = `
69023
+ SchemaReferences AS (
69024
+ SELECT
69025
+ [ref].[SourceECInstanceId] AS [SchemaId],
69026
+ CONCAT([Name],'.',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [fullName]
69027
+ FROM
69028
+ [meta].[ECSchemaDef] AS [refSchema]
69029
+ INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
69030
+ ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
69031
+ )
69032
69032
  `;
69033
- const customAttributeQuery = `
69034
- SELECT
69035
- [Schema].[Id] AS [SchemaId],
69036
- json_object(
69037
- 'name', [class].[Name],
69038
- 'schemaItemType', 'CustomAttributeClass',
69039
- 'modifier', ${modifier("class")},
69040
- 'label', [class].[DisplayLabel],
69041
- 'description', [class].[Description],
69042
- 'appliesTo', [class].[CustomAttributeContainerType],
69043
- 'baseClasses', (
69044
- SELECT
69045
- json_group_array(json(json_object(
69046
- 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69047
- 'name', [baseClass].[Name],
69048
- 'schemaItemType', 'CustomAttributeClass',
69049
- 'modifier', ${modifier("baseClass")},
69050
- 'label', [baseClass].[DisplayLabel],
69051
- 'description', [baseClass].[Description],
69052
- 'appliesTo', [baseClass].[CustomAttributeContainerType]
69053
- )))
69054
- FROM
69055
- [meta].[ECClassDef] [baseClass]
69056
- INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69057
- ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69058
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69059
- )
69060
- ) AS [item]
69061
- FROM [meta].[ECClassDef] [class]
69062
- WHERE [class].[Type] = 3
69033
+ const customAttributeQuery = `
69034
+ SELECT
69035
+ [Schema].[Id] AS [SchemaId],
69036
+ json_object(
69037
+ 'name', [class].[Name],
69038
+ 'schemaItemType', 'CustomAttributeClass',
69039
+ 'modifier', ${modifier("class")},
69040
+ 'label', [class].[DisplayLabel],
69041
+ 'description', [class].[Description],
69042
+ 'appliesTo', [class].[CustomAttributeContainerType],
69043
+ 'baseClasses', (
69044
+ SELECT
69045
+ json_group_array(json(json_object(
69046
+ 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69047
+ 'name', [baseClass].[Name],
69048
+ 'schemaItemType', 'CustomAttributeClass',
69049
+ 'modifier', ${modifier("baseClass")},
69050
+ 'label', [baseClass].[DisplayLabel],
69051
+ 'description', [baseClass].[Description],
69052
+ 'appliesTo', [baseClass].[CustomAttributeContainerType]
69053
+ )))
69054
+ FROM
69055
+ [meta].[ECClassDef] [baseClass]
69056
+ INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69057
+ ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69058
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69059
+ )
69060
+ ) AS [item]
69061
+ FROM [meta].[ECClassDef] [class]
69062
+ WHERE [class].[Type] = 3
69063
69063
  `;
69064
- const structQuery = `
69065
- SELECT
69066
- [Schema].[Id] AS [SchemaId],
69067
- json_object(
69068
- 'name', [class].[Name],
69069
- 'schemaItemType', 'StructClass',
69070
- 'modifier', ${modifier("class")},
69071
- 'label', [class].[DisplayLabel],
69072
- 'description', [class].[Description],
69073
- 'baseClasses', (
69074
- SELECT
69075
- json_group_array(json(json_object(
69076
- 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69077
- 'name', [baseClass].[Name],
69078
- 'schemaItemType', 'StructClass',
69079
- 'modifier', ${modifier("baseClass")},
69080
- 'label', [baseClass].[DisplayLabel],
69081
- 'description', [baseClass].[Description]
69082
- )))
69083
- FROM
69084
- [meta].[ECClassDef] [baseClass]
69085
- INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69086
- ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69087
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69088
- )
69089
- ) AS [item]
69090
- FROM [meta].[ECClassDef] [class]
69091
- WHERE [class].[Type] = 2
69064
+ const structQuery = `
69065
+ SELECT
69066
+ [Schema].[Id] AS [SchemaId],
69067
+ json_object(
69068
+ 'name', [class].[Name],
69069
+ 'schemaItemType', 'StructClass',
69070
+ 'modifier', ${modifier("class")},
69071
+ 'label', [class].[DisplayLabel],
69072
+ 'description', [class].[Description],
69073
+ 'baseClasses', (
69074
+ SELECT
69075
+ json_group_array(json(json_object(
69076
+ 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69077
+ 'name', [baseClass].[Name],
69078
+ 'schemaItemType', 'StructClass',
69079
+ 'modifier', ${modifier("baseClass")},
69080
+ 'label', [baseClass].[DisplayLabel],
69081
+ 'description', [baseClass].[Description]
69082
+ )))
69083
+ FROM
69084
+ [meta].[ECClassDef] [baseClass]
69085
+ INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69086
+ ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69087
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69088
+ )
69089
+ ) AS [item]
69090
+ FROM [meta].[ECClassDef] [class]
69091
+ WHERE [class].[Type] = 2
69092
69092
  `;
69093
- const relationshipQuery = `
69094
- SELECT
69095
- [Schema].[Id] AS [SchemaId],
69096
- json_object(
69097
- 'name', [class].[Name],
69098
- 'schemaItemType', 'RelationshipClass',
69099
- 'modifier', ${modifier("class")},
69100
- 'label', [class].[DisplayLabel],
69101
- 'description', [class].[Description],
69102
- 'strength', ${strength("class")},
69103
- 'strengthDirection', ${strengthDirection("class")},
69104
- 'baseClasses', (
69105
- SELECT
69106
- json_group_array(json(json_object(
69107
- 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69108
- 'name', [baseClass].[Name],
69109
- 'schemaItemType', 'RelationshipClass',
69110
- 'modifier', ${modifier("baseClass")},
69111
- 'label', [baseClass].[DisplayLabel],
69112
- 'description', [baseClass].[Description],
69113
- 'strength', ${strength("baseClass")},
69114
- 'strengthDirection', ${strengthDirection("baseClass")}
69115
- )))
69116
- FROM
69117
- [meta].[ECClassDef] [baseClass]
69118
- INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69119
- ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69120
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69121
- )
69122
- ) AS [item]
69123
- FROM [meta].[ECClassDef] [class]
69124
- WHERE [class].[Type] = 1
69093
+ const relationshipQuery = `
69094
+ SELECT
69095
+ [Schema].[Id] AS [SchemaId],
69096
+ json_object(
69097
+ 'name', [class].[Name],
69098
+ 'schemaItemType', 'RelationshipClass',
69099
+ 'modifier', ${modifier("class")},
69100
+ 'label', [class].[DisplayLabel],
69101
+ 'description', [class].[Description],
69102
+ 'strength', ${strength("class")},
69103
+ 'strengthDirection', ${strengthDirection("class")},
69104
+ 'baseClasses', (
69105
+ SELECT
69106
+ json_group_array(json(json_object(
69107
+ 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69108
+ 'name', [baseClass].[Name],
69109
+ 'schemaItemType', 'RelationshipClass',
69110
+ 'modifier', ${modifier("baseClass")},
69111
+ 'label', [baseClass].[DisplayLabel],
69112
+ 'description', [baseClass].[Description],
69113
+ 'strength', ${strength("baseClass")},
69114
+ 'strengthDirection', ${strengthDirection("baseClass")}
69115
+ )))
69116
+ FROM
69117
+ [meta].[ECClassDef] [baseClass]
69118
+ INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69119
+ ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69120
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69121
+ )
69122
+ ) AS [item]
69123
+ FROM [meta].[ECClassDef] [class]
69124
+ WHERE [class].[Type] = 1
69125
69125
  `;
69126
- const entityQuery = `
69127
- SELECT
69128
- [Schema].[Id] AS [SchemaId],
69129
- json_object(
69130
- 'name', [class].[Name],
69131
- 'schemaItemType', 'EntityClass',
69132
- 'modifier', ${modifier("class")},
69133
- 'label', [class].[DisplayLabel],
69134
- 'description', [class].[Description],
69135
- 'baseClasses', (
69136
- SELECT
69137
- json_group_array(json(json_object(
69138
- 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69139
- 'name', [baseClass].[Name],
69140
- 'schemaItemType', 'EntityClass',
69141
- 'modifier', ${modifier("baseClass")},
69142
- 'label', [baseClass].[DisplayLabel],
69143
- 'description', [baseClass].[Description]
69144
- )))
69145
- FROM
69146
- [meta].[ECClassDef] [baseClass]
69147
- INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69148
- ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69149
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69150
- AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
69151
- AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69152
- ),
69153
- 'mixins', (
69154
- SELECT
69155
- json_group_array(json(json_object(
69156
- 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69157
- 'name', [baseClass].[Name],
69158
- 'schemaItemType', 'Mixin',
69159
- 'modifier', ${modifier("baseClass")},
69160
- 'label', [baseClass].[DisplayLabel],
69161
- 'description', [baseClass].[Description],
69162
- 'appliesTo', (
69163
- SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69164
- FROM [AppliesToCTE] [atCTE]
69165
- WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
69166
- ),
69167
- 'baseClasses', (
69168
- SELECT
69169
- json_group_array(json(json_object(
69170
- 'schema', ec_classname([mixinBaseClass].[ECInstanceId], 's'),
69171
- 'name', [mixinBaseClass].[Name],
69172
- 'schemaItemType', 'Mixin',
69173
- 'modifier', ${modifier("mixinBaseClass")},
69174
- 'label', [mixinBaseClass].[DisplayLabel],
69175
- 'description', [mixinBaseClass].[Description],
69176
- 'appliesTo', (
69177
- SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69178
- FROM [AppliesToCTE] [atCTE]
69179
- WHERE [atCTE].[AppliesToId] = [mixinBaseClass].[ECInstanceId]
69180
- )
69181
- )))
69182
- FROM
69183
- [meta].[ECClassDef] [mixinBaseClass]
69184
- INNER JOIN [meta].[ClassHasAllBaseClasses] [mixinBaseClassMap]
69185
- ON [mixinBaseClassMap].[TargetECInstanceId] = [mixinBaseClass].[ECInstanceId]
69186
- WHERE [mixinBaseClassMap].[SourceECInstanceId] = [baseClass].[ECInstanceId]
69187
- )
69188
- )))
69189
- FROM
69190
- [meta].[ECClassDef] [baseClass]
69191
- INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
69192
- ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69193
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69194
- AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
69195
- AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69196
- )
69197
- ) AS [item]
69198
- FROM [meta].[ECClassDef] [class]
69199
- WHERE [class].[Type] = 0
69200
- AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
69201
- AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69126
+ const entityQuery = `
69127
+ SELECT
69128
+ [Schema].[Id] AS [SchemaId],
69129
+ json_object(
69130
+ 'name', [class].[Name],
69131
+ 'schemaItemType', 'EntityClass',
69132
+ 'modifier', ${modifier("class")},
69133
+ 'label', [class].[DisplayLabel],
69134
+ 'description', [class].[Description],
69135
+ 'baseClasses', (
69136
+ SELECT
69137
+ json_group_array(json(json_object(
69138
+ 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69139
+ 'name', [baseClass].[Name],
69140
+ 'schemaItemType', 'EntityClass',
69141
+ 'modifier', ${modifier("baseClass")},
69142
+ 'label', [baseClass].[DisplayLabel],
69143
+ 'description', [baseClass].[Description]
69144
+ )))
69145
+ FROM
69146
+ [meta].[ECClassDef] [baseClass]
69147
+ INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69148
+ ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69149
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69150
+ AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
69151
+ AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69152
+ ),
69153
+ 'mixins', (
69154
+ SELECT
69155
+ json_group_array(json(json_object(
69156
+ 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69157
+ 'name', [baseClass].[Name],
69158
+ 'schemaItemType', 'Mixin',
69159
+ 'modifier', ${modifier("baseClass")},
69160
+ 'label', [baseClass].[DisplayLabel],
69161
+ 'description', [baseClass].[Description],
69162
+ 'appliesTo', (
69163
+ SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69164
+ FROM [AppliesToCTE] [atCTE]
69165
+ WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
69166
+ ),
69167
+ 'baseClasses', (
69168
+ SELECT
69169
+ json_group_array(json(json_object(
69170
+ 'schema', ec_classname([mixinBaseClass].[ECInstanceId], 's'),
69171
+ 'name', [mixinBaseClass].[Name],
69172
+ 'schemaItemType', 'Mixin',
69173
+ 'modifier', ${modifier("mixinBaseClass")},
69174
+ 'label', [mixinBaseClass].[DisplayLabel],
69175
+ 'description', [mixinBaseClass].[Description],
69176
+ 'appliesTo', (
69177
+ SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69178
+ FROM [AppliesToCTE] [atCTE]
69179
+ WHERE [atCTE].[AppliesToId] = [mixinBaseClass].[ECInstanceId]
69180
+ )
69181
+ )))
69182
+ FROM
69183
+ [meta].[ECClassDef] [mixinBaseClass]
69184
+ INNER JOIN [meta].[ClassHasAllBaseClasses] [mixinBaseClassMap]
69185
+ ON [mixinBaseClassMap].[TargetECInstanceId] = [mixinBaseClass].[ECInstanceId]
69186
+ WHERE [mixinBaseClassMap].[SourceECInstanceId] = [baseClass].[ECInstanceId]
69187
+ )
69188
+ )))
69189
+ FROM
69190
+ [meta].[ECClassDef] [baseClass]
69191
+ INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
69192
+ ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69193
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69194
+ AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
69195
+ AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69196
+ )
69197
+ ) AS [item]
69198
+ FROM [meta].[ECClassDef] [class]
69199
+ WHERE [class].[Type] = 0
69200
+ AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
69201
+ AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69202
69202
  `;
69203
- const mixinQuery = `
69204
- SELECT
69205
- [Schema].[Id] AS [SchemaId],
69206
- json_object(
69207
- 'name', [class].[Name],
69208
- 'schemaItemType', 'Mixin',
69209
- 'modifier', ${modifier("class")},
69210
- 'label', [class].[DisplayLabel],
69211
- 'description', [class].[Description],
69212
- 'appliesTo', (
69213
- SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69214
- FROM [AppliesToCTE] [atCTE]
69215
- WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
69216
- ),
69217
- 'baseClasses', (
69218
- SELECT
69219
- json_group_array(json(json_object(
69220
- 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69221
- 'name', [baseClass].[Name],
69222
- 'schemaItemType', 'Mixin',
69223
- 'modifier', ${modifier("baseClass")},
69224
- 'label', [baseClass].[DisplayLabel],
69225
- 'description', [baseClass].[Description],
69226
- 'appliesTo', (
69227
- SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69228
- FROM [AppliesToCTE] [atCTE]
69229
- WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
69230
- )
69231
- )))
69232
- FROM
69233
- [meta].[ECClassDef] [baseClass]
69234
- INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69235
- ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69236
- WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69237
- )
69238
- ) AS [item]
69239
- FROM [meta].[ECClassDef] [class]
69240
- WHERE [class].[Type] = 0 AND EXISTS (SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
69241
- AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69203
+ const mixinQuery = `
69204
+ SELECT
69205
+ [Schema].[Id] AS [SchemaId],
69206
+ json_object(
69207
+ 'name', [class].[Name],
69208
+ 'schemaItemType', 'Mixin',
69209
+ 'modifier', ${modifier("class")},
69210
+ 'label', [class].[DisplayLabel],
69211
+ 'description', [class].[Description],
69212
+ 'appliesTo', (
69213
+ SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69214
+ FROM [AppliesToCTE] [atCTE]
69215
+ WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
69216
+ ),
69217
+ 'baseClasses', (
69218
+ SELECT
69219
+ json_group_array(json(json_object(
69220
+ 'schema', ec_classname([baseClass].[ECInstanceId], 's'),
69221
+ 'name', [baseClass].[Name],
69222
+ 'schemaItemType', 'Mixin',
69223
+ 'modifier', ${modifier("baseClass")},
69224
+ 'label', [baseClass].[DisplayLabel],
69225
+ 'description', [baseClass].[Description],
69226
+ 'appliesTo', (
69227
+ SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
69228
+ FROM [AppliesToCTE] [atCTE]
69229
+ WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
69230
+ )
69231
+ )))
69232
+ FROM
69233
+ [meta].[ECClassDef] [baseClass]
69234
+ INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
69235
+ ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
69236
+ WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
69237
+ )
69238
+ ) AS [item]
69239
+ FROM [meta].[ECClassDef] [class]
69240
+ WHERE [class].[Type] = 0 AND EXISTS (SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
69241
+ AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
69242
69242
  `;
69243
- const withSchemaItems = `
69244
- SchemaItems AS (
69245
- ${customAttributeQuery}
69246
- UNION ALL
69247
- ${structQuery}
69248
- UNION ALL
69249
- ${relationshipQuery}
69250
- UNION ALL
69251
- ${entityQuery}
69252
- UNION ALL
69253
- ${mixinQuery}
69254
- UNION ALL
69255
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration()}
69256
- UNION ALL
69257
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity()}
69258
- UNION ALL
69259
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory()}
69260
- UNION ALL
69261
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit()}
69262
- UNION ALL
69263
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit()}
69264
- UNION ALL
69265
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant()}
69266
- UNION ALL
69267
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon()}
69268
- UNION ALL
69269
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem()}
69270
- UNION ALL
69271
- ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format()}
69272
- )
69243
+ const withSchemaItems = `
69244
+ SchemaItems AS (
69245
+ ${customAttributeQuery}
69246
+ UNION ALL
69247
+ ${structQuery}
69248
+ UNION ALL
69249
+ ${relationshipQuery}
69250
+ UNION ALL
69251
+ ${entityQuery}
69252
+ UNION ALL
69253
+ ${mixinQuery}
69254
+ UNION ALL
69255
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration()}
69256
+ UNION ALL
69257
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity()}
69258
+ UNION ALL
69259
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory()}
69260
+ UNION ALL
69261
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit()}
69262
+ UNION ALL
69263
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit()}
69264
+ UNION ALL
69265
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant()}
69266
+ UNION ALL
69267
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon()}
69268
+ UNION ALL
69269
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem()}
69270
+ UNION ALL
69271
+ ${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format()}
69272
+ )
69273
69273
  `;
69274
- const schemaStubQuery = `
69275
- WITH
69276
- ${withAppliesTo},
69277
- ${withSchemaItems}
69278
- SELECT
69279
- [items].[item]
69280
- FROM
69281
- [SchemaItems] [items]
69282
- JOIN [meta].[ECSchemaDef] [schemaDef]
69283
- ON [schemaDef].[ECInstanceId] = [items].[SchemaId]
69284
- WHERE [schemaDef].[Name] = :schemaName
69274
+ const schemaStubQuery = `
69275
+ WITH
69276
+ ${withAppliesTo},
69277
+ ${withSchemaItems}
69278
+ SELECT
69279
+ [items].[item]
69280
+ FROM
69281
+ [SchemaItems] [items]
69282
+ JOIN [meta].[ECSchemaDef] [schemaDef]
69283
+ ON [schemaDef].[ECInstanceId] = [items].[SchemaId]
69284
+ WHERE [schemaDef].[Name] = :schemaName
69285
69285
  `;
69286
- const schemaInfoQuery = `
69287
- WITH
69288
- ${withSchemaReferences}
69289
- SELECT
69290
- [Name] as [name],
69291
- CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
69292
- [Alias] as [alias],
69293
- [DisplayLabel] as [label],
69294
- [Description] as [description],
69295
- (
69296
- SELECT
69297
- json_group_array([schemaReferences].[fullName])
69298
- FROM
69299
- [SchemaReferences] [schemaReferences]
69300
- WHERE
69301
- [schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
69302
- ) AS [references]
69303
- FROM
69304
- [meta].[ECSchemaDef] [schemaDef]
69286
+ const schemaInfoQuery = `
69287
+ WITH
69288
+ ${withSchemaReferences}
69289
+ SELECT
69290
+ [Name] as [name],
69291
+ CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
69292
+ [Alias] as [alias],
69293
+ [DisplayLabel] as [label],
69294
+ [Description] as [description],
69295
+ (
69296
+ SELECT
69297
+ json_group_array([schemaReferences].[fullName])
69298
+ FROM
69299
+ [SchemaReferences] [schemaReferences]
69300
+ WHERE
69301
+ [schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
69302
+ ) AS [references]
69303
+ FROM
69304
+ [meta].[ECSchemaDef] [schemaDef]
69305
69305
  `;
69306
69306
  /**
69307
69307
  * Partial Schema queries.
@@ -70636,7 +70636,7 @@ class CustomAttributeClass extends _Class__WEBPACK_IMPORTED_MODULE_2__.ECClass {
70636
70636
  static get schemaItemType() { return _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaItemType.CustomAttributeClass; }
70637
70637
  _appliesTo;
70638
70638
  /**
70639
- * @deprecated in 4.8 - will not be removed until after 2026-06-13. Use [[appliesTo]]
70639
+ * @deprecated in 4.8 - might be removed in next major version. Use [[appliesTo]]
70640
70640
  * */
70641
70641
  get containerType() {
70642
70642
  return this.appliesTo;
@@ -84667,7 +84667,7 @@ __webpack_require__.r(__webpack_exports__);
84667
84667
  * Use of this service requires an API key to be supplied via [[MapLayerOptions.BingMaps]] in the [[IModelAppOptions.mapLayerOptions]] passed to [[IModelApp.startup]].
84668
84668
  * @public
84669
84669
  * @extensions
84670
- * @deprecated in 5.11.0. Provide a [[LocationProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
84670
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Provide a [[LocationProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
84671
84671
  * @note This class structurally satisfies [[LocationProvider]] but does not use an explicit `implements` clause
84672
84672
  * because api-extractor forbids `@public` classes from referencing `@beta` interfaces (ae-incompatible-release-tags).
84673
84673
  */
@@ -90354,7 +90354,7 @@ class GraphicalEditingScope extends _BriefcaseTxns__WEBPACK_IMPORTED_MODULE_2__.
90354
90354
  this._cleanup = undefined;
90355
90355
  }
90356
90356
  }
90357
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
90357
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
90358
90358
  dispose() {
90359
90359
  this[Symbol.dispose]();
90360
90360
  }
@@ -91824,14 +91824,14 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
91824
91824
  */
91825
91825
  onClose = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
91826
91826
  /** The font map for this IModelConnection. Only valid after calling #loadFontMap and waiting for the returned promise to be fulfilled.
91827
- * @deprecated in 5.0.0 - will not be removed until after 2026-06-13. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
91827
+ * @deprecated in 5.0.0 - might be removed in next major version. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
91828
91828
  */
91829
91829
  fontMap; // eslint-disable-line @typescript-eslint/no-deprecated
91830
91830
  _schemaContext;
91831
91831
  _schemasPromise;
91832
91832
  /** Load the FontMap for this IModelConnection.
91833
91833
  * @returns Returns a Promise<FontMap> that is fulfilled when the FontMap member of this IModelConnection is valid.
91834
- * @deprecated in 5.0.0 - will not be removed until after 2026-06-13. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
91834
+ * @deprecated in 5.0.0 - might be removed in next major version. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
91835
91835
  */
91836
91836
  async loadFontMap() {
91837
91837
  if (undefined === this.fontMap) { // eslint-disable-line @typescript-eslint/no-deprecated
@@ -91955,7 +91955,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
91955
91955
  return this.isOpen ? this._snapRpc.request(props) : { status: 2 };
91956
91956
  }
91957
91957
  /** @internal
91958
- * @deprecated in 4.8 - will not be removed until after 2026-06-13. Use AccuSnap.doSnapRequest.
91958
+ * @deprecated in 4.8 - might be removed in next major version. Use AccuSnap.doSnapRequest.
91959
91959
  */
91960
91960
  async requestSnap(props) {
91961
91961
  return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_12__._requestSnap](props);
@@ -91996,7 +91996,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
91996
91996
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getMassProperties(this.getRpcProps(), requestProps);
91997
91997
  }
91998
91998
  /** Request mass properties for multiple elements from the backend.
91999
- * @deprecated in 4.11 - will not be removed until after 2026-06-13. Use [[IModelConnection.getMassProperties]].
91999
+ * @deprecated in 4.11 - might be removed in next major version. Use [[IModelConnection.getMassProperties]].
92000
92000
  */
92001
92001
  async getMassPropertiesPerCandidate(requestProps) {
92002
92002
  return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getMassPropertiesPerCandidate(this.getRpcProps(), requestProps);
@@ -92436,7 +92436,7 @@ class SnapshotConnection extends IModelConnection {
92436
92436
  }
92437
92437
  /** Open an IModelConnection to a remote read-only snapshot iModel from a key that will be resolved by the backend.
92438
92438
  * @note This method is intended for web applications.
92439
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. Use [[CheckpointConnection.openRemote]].
92439
+ * @deprecated in 4.10 - might be removed in next major version. Use [[CheckpointConnection.openRemote]].
92440
92440
  */
92441
92441
  static async openRemote(fileKey) {
92442
92442
  const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.default;
@@ -93021,7 +93021,7 @@ class SnapshotConnection extends IModelConnection {
93021
93021
  * There is no guarantee that this view will be suitable for the purposes of any other applications.
93022
93022
  * Most applications should ignore the default view and instead create a [[ViewState]] that fits their own requirements using APIs like [[ViewCreator3d]].
93023
93023
  * @returns the Id of the default view as defined in the iModel's property table, or an invalid ID if no default view is defined.
93024
- * @deprecated in 4.2 - will not be removed until after 2026-06-13. Create a ViewState to your own specifications.
93024
+ * @deprecated in 4.2 - might be removed in next major version. Create a ViewState to your own specifications.
93025
93025
  */
93026
93026
  async queryDefaultViewId() {
93027
93027
  const iModel = this._iModel;
@@ -93411,7 +93411,7 @@ class IpcApp {
93411
93411
  throw Object.assign(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BackendError(err.errorNumber, err.iTwinErrorId.key, err.message, err.loggingMetadata), trimErr);
93412
93412
  }
93413
93413
  /** @internal
93414
- * @deprecated in 4.8 - will not be removed until after 2026-06-13. Use [[makeIpcProxy]] for a type-safe interface.
93414
+ * @deprecated in 4.8 - might be removed in next major version. Use [[makeIpcProxy]] for a type-safe interface.
93415
93415
  */
93416
93416
  static async callIpcChannel(channelName, methodName, ...args) {
93417
93417
  return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_2__._callIpcChannel](channelName, methodName, ...args);
@@ -96718,7 +96718,7 @@ class HiliteSet {
96718
96718
  /** Toggle the hilited state of one or more elements.
96719
96719
  * @param arg the ID(s) of the elements whose state is to be toggled.
96720
96720
  * @param onOff True to add the elements to the hilited set, false to remove them.
96721
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[add]], [[remove]], [[replace]] instead.
96721
+ * @deprecated in 5.0 - might be removed in next major version. Use [[add]], [[remove]], [[replace]] instead.
96722
96722
  */
96723
96723
  setHilite(arg, onOff) {
96724
96724
  if (onOff) {
@@ -96786,14 +96786,14 @@ class SelectionSet {
96786
96786
  }
96787
96787
  /** Return true if elemId is in this `SelectionSet`.
96788
96788
  * @see [[isSelected]]
96789
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `SelectionSet.elements.has(elemId)` instead.
96789
+ * @deprecated in 5.0 - might be removed in next major version. Use `SelectionSet.elements.has(elemId)` instead.
96790
96790
  */
96791
96791
  has(elemId) {
96792
96792
  return !!elemId && this.elements.has(elemId);
96793
96793
  }
96794
96794
  /** Query whether an Id is in the selection set.
96795
96795
  * @see [[has]]
96796
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `SelectionSet.elements.has(elemId)` instead.
96796
+ * @deprecated in 5.0 - might be removed in next major version. Use `SelectionSet.elements.has(elemId)` instead.
96797
96797
  */
96798
96798
  isSelected(elemId) {
96799
96799
  return !!elemId && this.elements.has(elemId);
@@ -101073,7 +101073,7 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
101073
101073
  /** Execute a function against each [[TileTreeReference]] associated with this view.
101074
101074
  * This may include tile trees not associated with any [[GeometricModelState]] - e.g., context reality data.
101075
101075
  * @note This method is inefficient (iteration cannot be aborted) and awkward (callback cannot be async nor return a value). Prefer to iterate using [[getTileTreeRefs]].
101076
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[getTileTreeRefs]] instead.
101076
+ * @deprecated in 5.0 - might be removed in next major version. Use [[getTileTreeRefs]] instead.
101077
101077
  */
101078
101078
  forEachTileTreeRef(func) {
101079
101079
  for (const ref of this.getModelTreeRefs()) {
@@ -101471,11 +101471,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
101471
101471
  origin.setFrom(vp.view.isSpatialView() ? vp.view.iModel.globalOrigin : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.create());
101472
101472
  switch (orientation) {
101473
101473
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.View: {
101474
- const centerWorld = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.create(0.5, 0.5, 0.5);
101475
- vp.npcToWorld(centerWorld, centerWorld);
101474
+ const center = vp.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter);
101476
101475
  rMatrix.setFrom(vp.rotation);
101477
- rMatrix.multiplyXYZtoXYZ(origin, origin);
101478
- origin.z = centerWorld.z;
101476
+ rMatrix.multiplyVectorInPlace(origin);
101477
+ origin.z = center.z;
101479
101478
  rMatrix.multiplyTransposeVectorInPlace(origin);
101480
101479
  break;
101481
101480
  }
@@ -104171,7 +104170,7 @@ class Viewport {
104171
104170
  this.onDisposed.raiseEvent(this);
104172
104171
  this.detachFromView();
104173
104172
  }
104174
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
104173
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
104175
104174
  dispose() {
104176
104175
  this[Symbol.dispose]();
104177
104176
  }
@@ -104572,7 +104571,7 @@ class Viewport {
104572
104571
  }
104573
104572
  }
104574
104573
  /** Apply a function to every tile tree reference associated with the map layers displayed by this viewport.
104575
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[mapTileTreeRefs]] instead.
104574
+ * @deprecated in 5.0 - might be removed in next major version. Use [[mapTileTreeRefs]] instead.
104576
104575
  */
104577
104576
  forEachMapTreeRef(func) {
104578
104577
  if (this._mapTiledGraphicsProvider)
@@ -104584,7 +104583,7 @@ class Viewport {
104584
104583
  }
104585
104584
  ;
104586
104585
  /** Apply a function to every [[TileTreeReference]] displayed by this viewport.
104587
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[getTileTreeRefs]] instead.
104586
+ * @deprecated in 5.0 - might be removed in next major version. Use [[getTileTreeRefs]] instead.
104588
104587
  */
104589
104588
  forEachTileTreeRef(func) {
104590
104589
  for (const ref of this.getTileTreeRefs()) {
@@ -105214,11 +105213,11 @@ class Viewport {
105214
105213
  origin.setFrom(this.iModel.globalOrigin);
105215
105214
  switch (this.view.getGridOrientation()) {
105216
105215
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.View: {
105217
- const center = this.view.getCenter();
105218
- this.toViewOrientation(center);
105219
- this.toViewOrientation(origin);
105216
+ const center = this.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter);
105217
+ rMatrix.setFrom(this.rotation);
105218
+ rMatrix.multiplyVectorInPlace(origin);
105220
105219
  origin.z = center.z;
105221
- this.fromViewOrientation(origin);
105220
+ rMatrix.multiplyTransposeVectorInPlace(origin);
105222
105221
  break;
105223
105222
  }
105224
105223
  case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.WorldXY:
@@ -105242,24 +105241,24 @@ class Viewport {
105242
105241
  eyeVec = this._viewingSpace.rotation.getRow(2);
105243
105242
  eyeVec.normalizeInPlace();
105244
105243
  (0,_LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_12__.linePlaneIntersect)(point, point, eyeVec, origin, planeNormal, false);
105245
- // // get origin and point in view coordinate system
105246
- const pointView = point.clone();
105247
- const originView = origin.clone();
105248
- this.toViewOrientation(pointView);
105249
- this.toViewOrientation(originView);
105244
+ // Get origin and point in the grid's local coordinate system.
105245
+ const pointGrid = point.clone();
105246
+ const originGrid = origin.clone();
105247
+ rMatrix.multiplyXYZtoXYZ(pointGrid, pointGrid);
105248
+ rMatrix.multiplyXYZtoXYZ(originGrid, originGrid);
105250
105249
  // subtract off the origin
105251
- pointView.y -= originView.y;
105252
- pointView.x -= originView.x;
105250
+ pointGrid.y -= originGrid.y;
105251
+ pointGrid.x -= originGrid.x;
105253
105252
  // round off the remainder to the grid distances
105254
105253
  const gridSpacing = this.view.getGridSpacing();
105255
- pointView.x = Viewport.roundGrid(pointView.x, gridSpacing.x);
105256
- pointView.y = Viewport.roundGrid(pointView.y, gridSpacing.y);
105254
+ pointGrid.x = Viewport.roundGrid(pointGrid.x, gridSpacing.x);
105255
+ pointGrid.y = Viewport.roundGrid(pointGrid.y, gridSpacing.y);
105257
105256
  // add the origin back in
105258
- pointView.x += originView.x;
105259
- pointView.y += originView.y;
105257
+ pointGrid.x += originGrid.x;
105258
+ pointGrid.y += originGrid.y;
105260
105259
  // go back to root coordinate system
105261
- this.fromViewOrientation(pointView);
105262
- point.setFrom(pointView);
105260
+ rMatrix.multiplyTransposeVectorInPlace(pointGrid);
105261
+ point.setFrom(pointGrid);
105263
105262
  }
105264
105263
  /** @internal */
105265
105264
  pointToGrid(point) {
@@ -119129,7 +119128,7 @@ class AtmosphereUniforms {
119129
119128
  return true;
119130
119129
  }
119131
119130
  [Symbol.dispose]() { }
119132
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
119131
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
119133
119132
  dispose() {
119134
119133
  this[Symbol.dispose]();
119135
119134
  }
@@ -119215,7 +119214,7 @@ class BuffersContainer {
119215
119214
  this._context = context;
119216
119215
  this._vao = new VAOHandle(this._context);
119217
119216
  }
119218
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
119217
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
119219
119218
  dispose() {
119220
119219
  this[Symbol.dispose]();
119221
119220
  }
@@ -119277,7 +119276,7 @@ class VAOHandle {
119277
119276
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(!this.isDisposed);
119278
119277
  }
119279
119278
  get isDisposed() { return this._arrayObject === undefined; }
119280
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
119279
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
119281
119280
  dispose() {
119282
119281
  this[Symbol.dispose]();
119283
119282
  }
@@ -122024,7 +122023,7 @@ class ClippingProgram {
122024
122023
  [Symbol.dispose]() {
122025
122024
  this._program = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._program);
122026
122025
  }
122027
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
122026
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
122028
122027
  dispose() {
122029
122028
  this[Symbol.dispose]();
122030
122029
  }
@@ -134152,7 +134151,7 @@ class ShaderProgram {
134152
134151
  this._status = 2 /* CompileStatus.Uncompiled */;
134153
134152
  }
134154
134153
  }
134155
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
134154
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
134156
134155
  dispose() {
134157
134156
  this[Symbol.dispose]();
134158
134157
  }
@@ -134621,7 +134620,7 @@ class ShaderProgramExecutor {
134621
134620
  ShaderProgramExecutor.freeParams();
134622
134621
  this._isDisposed = true;
134623
134622
  }
134624
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
134623
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
134625
134624
  dispose() {
134626
134625
  this[Symbol.dispose]();
134627
134626
  }
@@ -138262,7 +138261,7 @@ class SingularTechnique {
138262
138261
  [Symbol.dispose]() {
138263
138262
  this.program[Symbol.dispose]();
138264
138263
  }
138265
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
138264
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
138266
138265
  dispose() {
138267
138266
  this[Symbol.dispose]();
138268
138267
  }
@@ -138319,7 +138318,7 @@ class VariedTechnique {
138319
138318
  this._clippingPrograms.length = 0;
138320
138319
  this._isDisposed = true;
138321
138320
  }
138322
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
138321
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
138323
138322
  dispose() {
138324
138323
  this[Symbol.dispose]();
138325
138324
  }
@@ -139026,7 +139025,7 @@ class Techniques {
139026
139025
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(tech);
139027
139026
  this._list.length = 0;
139028
139027
  }
139029
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
139028
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
139030
139029
  dispose() {
139031
139030
  this[Symbol.dispose]();
139032
139031
  }
@@ -155319,7 +155318,7 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
155319
155318
  div.innerHTML = strings.join("<br>");
155320
155319
  return div;
155321
155320
  }
155322
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
155321
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
155323
155322
  addLogoCards(cards) {
155324
155323
  if (this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.CesiumIonAsset && !cards.dataset.openStreetMapLogoCard) {
155325
155324
  cards.dataset.openStreetMapLogoCard = "true";
@@ -157136,7 +157135,7 @@ class ArcGISMapLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MOD
157136
157135
  }
157137
157136
  }
157138
157137
  }
157139
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
157138
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
157140
157139
  addLogoCards(cards) {
157141
157140
  if (!cards.dataset.arcGisLogoCard) {
157142
157141
  cards.dataset.arcGisLogoCard = "true";
@@ -157421,7 +157420,7 @@ class BingAttribution {
157421
157420
  function replaceHttpWithHttps(originalUrl) {
157422
157421
  return originalUrl.startsWith("http:") ? "https:".concat(originalUrl.slice(5)) : originalUrl;
157423
157422
  }
157424
- /** @deprecated in 5.11.0. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
157423
+ /** @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
157425
157424
  class BingMapsImageryLayerProvider extends _tile_internal__WEBPACK_IMPORTED_MODULE_3__.MapLayerImageryProvider {
157426
157425
  _urlTemplate;
157427
157426
  _urlSubdomains;
@@ -157490,7 +157489,7 @@ class BingMapsImageryLayerProvider extends _tile_internal__WEBPACK_IMPORTED_MODU
157490
157489
  }
157491
157490
  return matchingAttributions;
157492
157491
  }
157493
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
157492
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
157494
157493
  addLogoCards(cards, vp) {
157495
157494
  const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getTilesForUser(vp)?.selected;
157496
157495
  const matchingAttributions = this.getMatchingAttributions(tiles);
@@ -157947,7 +157946,7 @@ class MapBoxLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MODULE
157947
157946
  url = url.concat(`?${this._settings.accessKey.key}=${this._settings.accessKey.value}`);
157948
157947
  return url;
157949
157948
  }
157950
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
157949
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
157951
157950
  addLogoCards(cards) {
157952
157951
  if (!cards.dataset.mapboxLogoCard) {
157953
157952
  cards.dataset.mapboxLogoCard = "true";
@@ -159684,7 +159683,7 @@ __webpack_require__.r(__webpack_exports__);
159684
159683
 
159685
159684
  /**
159686
159685
  * Angle Property Description
159687
- * @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159686
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159688
159687
  * @beta
159689
159688
  */
159690
159689
  // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -159701,7 +159700,7 @@ class AngleDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_M
159701
159700
  }
159702
159701
  get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Angle; }
159703
159702
  /**
159704
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use the `kindOfQuantityName` property instead.
159703
+ * @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
159705
159704
  */
159706
159705
  get quantityType() { return "Angle"; }
159707
159706
  get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); }
@@ -159770,7 +159769,7 @@ function createQuantityDescription(props) {
159770
159769
  }
159771
159770
  /**
159772
159771
  * Base Quantity Property Description
159773
- * @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159772
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159774
159773
  * @beta
159775
159774
  */
159776
159775
  class FormattedQuantityDescription extends _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.BaseQuantityDescription {
@@ -159857,7 +159856,7 @@ __webpack_require__.r(__webpack_exports__);
159857
159856
 
159858
159857
  /**
159859
159858
  * Length Property Description
159860
- * @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159859
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159861
159860
  * @beta
159862
159861
  */
159863
159862
  // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -159874,14 +159873,14 @@ class LengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_
159874
159873
  }
159875
159874
  get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Length; }
159876
159875
  /**
159877
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use the `kindOfQuantityName` property instead.
159876
+ * @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
159878
159877
  */
159879
159878
  get quantityType() { return "Length"; }
159880
159879
  get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
159881
159880
  }
159882
159881
  /**
159883
159882
  * Survey Length Property Description
159884
- * @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) in new code. To preserve survey-length behavior, configure a dedicated [FormatsProvider]($quantity) such as [FormatSetFormatsProvider]($ecschema-metadata).
159883
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) in new code. To preserve survey-length behavior, configure a dedicated [FormatsProvider]($quantity) such as [FormatSetFormatsProvider]($ecschema-metadata).
159885
159884
  * @beta
159886
159885
  */
159887
159886
  // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -159898,14 +159897,14 @@ class SurveyLengthDescription extends _FormattedQuantityDescription__WEBPACK_IMP
159898
159897
  }
159899
159898
  get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthSurvey; }
159900
159899
  /**
159901
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use the `kindOfQuantityName` property instead.
159900
+ * @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
159902
159901
  */
159903
159902
  get quantityType() { return "LengthSurvey"; }
159904
159903
  get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
159905
159904
  }
159906
159905
  /**
159907
159906
  * Engineering Length Property Description
159908
- * @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159907
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
159909
159908
  * @beta
159910
159909
  */
159911
159910
  // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -159922,7 +159921,7 @@ class EngineeringLengthDescription extends _FormattedQuantityDescription__WEBPAC
159922
159921
  }
159923
159922
  get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthEngineering; }
159924
159923
  /**
159925
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use the `kindOfQuantityName` property instead.
159924
+ * @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
159926
159925
  */
159927
159926
  get quantityType() { return "LengthEngineering"; }
159928
159927
  get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
@@ -161877,7 +161876,7 @@ class Decorations {
161877
161876
  this.viewOverlay = undefined;
161878
161877
  this.normal = undefined;
161879
161878
  }
161880
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
161879
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
161881
161880
  dispose() {
161882
161881
  this[Symbol.dispose]();
161883
161882
  }
@@ -162178,7 +162177,7 @@ class GraphicBranch {
162178
162177
  [Symbol.dispose]() {
162179
162178
  this.clear();
162180
162179
  }
162181
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
162180
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
162182
162181
  dispose() {
162183
162182
  this[Symbol.dispose]();
162184
162183
  }
@@ -168206,7 +168205,7 @@ class Tile {
168206
168205
  this._state = 5 /* TileState.Abandoned */;
168207
168206
  this.disposeChildren();
168208
168207
  }
168209
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
168208
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
168210
168209
  dispose() {
168211
168210
  this[Symbol.dispose]();
168212
168211
  }
@@ -170885,7 +170884,7 @@ class TileTree {
170885
170884
  this._isDisposed = true;
170886
170885
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this.rootTile);
170887
170886
  }
170888
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [Symbol.dispose] instead. */
170887
+ /** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
170889
170888
  dispose() {
170890
170889
  this[Symbol.dispose]();
170891
170890
  }
@@ -171224,7 +171223,7 @@ class TileTreeReference /* implements RenderMemory.Consumer */ {
171224
171223
  * @beta
171225
171224
  */
171226
171225
  get planarClipMaskPriority() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PlanarClipMaskPriority.DesignModel; }
171227
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
171226
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
171228
171227
  addLogoCards(_cards, _vp) { }
171229
171228
  /** Add attribution logo cards for the tile tree source logo cards to the viewport's logo div.
171230
171229
  * @beta
@@ -171892,7 +171891,7 @@ __webpack_require__.r(__webpack_exports__);
171892
171891
  * passed to [[IModelApp.startup]].
171893
171892
  * @public
171894
171893
  * @extensions
171895
- * @deprecated in 5.11.0. Provide an [[ElevationProvider]] and [[GeoidProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
171894
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Provide an [[ElevationProvider]] and [[GeoidProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
171896
171895
  * @note This class structurally satisfies both [[ElevationProvider]] and [[GeoidProvider]] but does not use an explicit
171897
171896
  * `implements` clause because api-extractor forbids `@public` classes from referencing `@beta` interfaces (ae-incompatible-release-tags).
171898
171897
  */
@@ -171968,14 +171967,14 @@ class BingElevationProvider {
171968
171967
  }
171969
171968
  /** Get the height (altitude) at a given iModel coordinate. The height is geodetic (WGS84 ellipsoid)
171970
171969
  * If geodetic is true (the default) then height is returned in the Ellipsoidal WGS84 datum. If geodetic is false then sea level height is returned using the Earth Gravitational Model 2008 (EGM2008 2.5').
171971
- * @deprecated in 5.11.0. Use [[ElevationProvider.getHeight]] via [[IModelApp.elevationProvider]] instead.
171970
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use [[ElevationProvider.getHeight]] via [[IModelApp.elevationProvider]] instead.
171972
171971
  * @public
171973
171972
  */
171974
171973
  async getHeightValue(point, iModel, geodetic = true) {
171975
171974
  return this.getHeight(iModel.spatialToCartographicFromEcef(point), geodetic);
171976
171975
  }
171977
171976
  /** Get the height (altitude) range for a given iModel project extents. The height values are geodetic (WGS84 ellipsoid).
171978
- * @deprecated in 5.11.0. Use standalone [[getHeightRange]] function instead.
171977
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use standalone [[getHeightRange]] function instead.
171979
171978
  * @public
171980
171979
  */
171981
171980
  async getHeightRange(iModel) {
@@ -171991,7 +171990,7 @@ class BingElevationProvider {
171991
171990
  return heights ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_3__.Range1d.createArray(heights) : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_3__.Range1d.createNull();
171992
171991
  }
171993
171992
  /** Get the average height (altitude) for a given iModel project extents. The height values are geodetic (WGS84 ellipsoid).
171994
- * @deprecated in 5.11.0. Use standalone [[getHeightAverage]] function instead.
171993
+ * @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use standalone [[getHeightAverage]] function instead.
171995
171994
  * @public
171996
171995
  */
171997
171996
  async getHeightAverage(iModel) {
@@ -172233,7 +172232,7 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__.Terra
172233
172232
  this._iTwinId = opts.iTwinId;
172234
172233
  this._tokenTimeOut = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeTimePoint.now().plus(computeCesiumTokenTimeoutInterval(expiresAt));
172235
172234
  }
172236
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
172235
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
172237
172236
  addLogoCards(cards) {
172238
172237
  if (cards.dataset.cesiumIonLogoCard)
172239
172238
  return;
@@ -172866,7 +172865,7 @@ class ImageryMapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityT
172866
172865
  this._rootTile = new ImageryMapTile(params.rootTile, this, rootQuadId, this.getTileRectangle(rootQuadId));
172867
172866
  }
172868
172867
  get tilingScheme() { return this._imageryLoader.imageryProvider.tilingScheme; }
172869
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
172868
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
172870
172869
  addLogoCards(cards, vp) {
172871
172870
  // eslint-disable-next-line @typescript-eslint/no-deprecated
172872
172871
  this._imageryLoader.addLogoCards(cards, vp);
@@ -172920,7 +172919,7 @@ class ImageryTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTi
172920
172919
  get maxDepth() { return this._imageryProvider.maximumZoomLevel; }
172921
172920
  get minDepth() { return this._imageryProvider.minimumZoomLevel; }
172922
172921
  get priority() { return _internal__WEBPACK_IMPORTED_MODULE_4__.TileLoadPriority.Map; }
172923
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
172922
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
172924
172923
  addLogoCards(cards, vp) {
172925
172924
  // eslint-disable-next-line @typescript-eslint/no-deprecated
172926
172925
  this._imageryProvider.addLogoCards(cards, vp);
@@ -173680,7 +173679,7 @@ class ArcGISMapLayerFormat extends ImageryMapLayerFormat {
173680
173679
  return new _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGISMapLayerImageryProvider(settings);
173681
173680
  }
173682
173681
  }
173683
- /** @deprecated in 5.11.0. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
173682
+ /** @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
173684
173683
  class BingMapsMapLayerFormat extends ImageryMapLayerFormat {
173685
173684
  static formatId = "BingMaps";
173686
173685
  static createImageryProvider(settings) {
@@ -173848,7 +173847,7 @@ class MapLayerImageryProvider {
173848
173847
  });
173849
173848
  }
173850
173849
  get tilingScheme() { return this.useGeographicTilingScheme ? this._geographicTilingScheme : this._mercatorTilingScheme; }
173851
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
173850
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
173852
173851
  addLogoCards(_cards, _viewport) { }
173853
173852
  /**
173854
173853
  * Add attribution logo cards for the data supplied by this provider to the [[Viewport]]'s logo div.
@@ -176273,7 +176272,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
176273
176272
  }
176274
176273
  return info;
176275
176274
  }
176276
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
176275
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
176277
176276
  addLogoCards(cards, vp) {
176278
176277
  const tree = this.treeOwner.tileTree;
176279
176278
  if (tree) {
@@ -176913,7 +176912,7 @@ __webpack_require__.r(__webpack_exports__);
176913
176912
  * @public
176914
176913
  */
176915
176914
  class TerrainMeshProvider {
176916
- /** @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [addAttributions] instead. */
176915
+ /** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
176917
176916
  addLogoCards(_cards, _vp) { }
176918
176917
  /** Add attribution logo cards for the terrain data supplied by this provider to the [[Viewport]]'s logo div.
176919
176918
  * For example, a provider that produces meshes from [Bing Maps](https://docs.microsoft.com/en-us/bingmaps/rest-services/elevations/) would be required to
@@ -192508,7 +192507,7 @@ class Geometry {
192508
192507
  static largeCoordinateResult = 1.0e13;
192509
192508
  /**
192510
192509
  * Numeric value that may considered infinite for metric coordinates.
192511
- * @deprecated in 4.9.0 - will not be removed until after 2026-06-13. Use [[largeCoordinateResult]].
192510
+ * @deprecated in 4.9.0 - might be removed in next major version. Use [[largeCoordinateResult]].
192512
192511
  * * This coordinate should be used only as a placeholder indicating "at infinity" -- computing actual
192513
192512
  * points at this coordinate invites numerical problems.
192514
192513
  */
@@ -192519,7 +192518,7 @@ class Geometry {
192519
192518
  }
192520
192519
  /**
192521
192520
  * Test if the absolute value of x is at least [[largeCoordinateResult]].
192522
- * @deprecated in 4.9.0 - will not be removed until after 2026-06-13. Use [[isLargeCoordinateResult]].
192521
+ * @deprecated in 4.9.0 - might be removed in next major version. Use [[isLargeCoordinateResult]].
192523
192522
  */
192524
192523
  static isHugeCoordinate(x) {
192525
192524
  return Geometry.isLargeCoordinateResult(x);
@@ -193587,7 +193586,7 @@ class Geometry {
193587
193586
  /**
193588
193587
  * Clone an array whose members have type `T`, which implements the clone method.
193589
193588
  * * If the clone method returns `undefined`, then `undefined` is forced into the cloned array.
193590
- * @deprecated in 4.4.0 - will not be removed until after 2026-06-13. Use cloneArray.
193589
+ * @deprecated in 4.4.0 - might be removed in next major version. Use cloneArray.
193591
193590
  */
193592
193591
  // eslint-disable-next-line @typescript-eslint/no-deprecated
193593
193592
  static cloneMembers(array) {
@@ -194029,7 +194028,7 @@ class BSpline1dNd {
194029
194028
  * Test if the leading and trailing polygon coordinates are replicated in the manner of a "closed" bspline polygon
194030
194029
  * which has been expanded to act as a normal bspline.
194031
194030
  * @returns true if `degree` leading and trailing polygon blocks match.
194032
- * @deprecated in 4.2.1 - will not be removed until after 2026-06-13. Use `testClosablePolygon` instead.
194031
+ * @deprecated in 4.2.1 - might be removed in next major version. Use `testClosablePolygon` instead.
194033
194032
  */
194034
194033
  testCloseablePolygon(mode) {
194035
194034
  return this.testClosablePolygon(mode);
@@ -196334,7 +196333,7 @@ var UVSelect;
196334
196333
  UVSelect[UVSelect["uDirection"] = 0] = "uDirection";
196335
196334
  /**
196336
196335
  * index of v direction
196337
- * @deprecated in 4.3.0 - will not be removed until after 2026-06-13. Use vDirection instead.
196336
+ * @deprecated in 4.3.0 - might be removed in next major version. Use vDirection instead.
196338
196337
  */
196339
196338
  UVSelect[UVSelect["VDirection"] = 1] = "VDirection";
196340
196339
  /** index of v direction */
@@ -196561,7 +196560,7 @@ class BSpline2dNd extends _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geom
196561
196560
  }
196562
196561
  /**
196563
196562
  * sum poles by the weights in the basisBuffer, using poles for given span
196564
- * @deprecated in 4.3.0 - will not be removed until after 2026-06-13. Use sumPoleBufferDerivativesForSpan instead.
196563
+ * @deprecated in 4.3.0 - might be removed in next major version. Use sumPoleBufferDerivativesForSpan instead.
196565
196564
  */
196566
196565
  sumpoleBufferDerivativesForSpan(spanIndexU, spanIndexV) {
196567
196566
  return this.sumPoleBufferDerivativesForSpan(spanIndexU, spanIndexV);
@@ -206377,7 +206376,7 @@ class Arc3d extends _CurvePrimitive__WEBPACK_IMPORTED_MODULE_1__.CurvePrimitive
206377
206376
  }
206378
206377
  /**
206379
206378
  * Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep).
206380
- * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use correct spelling quadratureGaussCount.
206379
+ * @deprecated in 5.0 - might be removed in next major version. Use correct spelling quadratureGaussCount.
206381
206380
  */
206382
206381
  static quadratureGuassCount = 5;
206383
206382
  /** Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep). */
@@ -211022,7 +211021,7 @@ class CurveLocationDetailPair {
211022
211021
  }
211023
211022
  /**
211024
211023
  * Data bundle for a pair of arrays of CurveLocationDetail structures.
211025
- * @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Use CurveLocationDetailPair[] instead.
211024
+ * @deprecated in 4.2.0 - might be removed in next major version. Use CurveLocationDetailPair[] instead.
211026
211025
  * @public
211027
211026
  */
211028
211027
  class CurveLocationDetailArrayPair {
@@ -219186,7 +219185,7 @@ class StrokeOptions {
219186
219185
  maxEdgeLength;
219187
219186
  /**
219188
219187
  * Caller expects convex facets.
219189
- * @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Never used. See [[shouldTriangulate]] and [[maximizeConvexFacets]].
219188
+ * @deprecated in 4.2.0 - might be removed in next major version. Never used. See [[shouldTriangulate]] and [[maximizeConvexFacets]].
219190
219189
  */
219191
219190
  needConvexFacets;
219192
219191
  /** Minimum strokes on a primitive. */
@@ -236115,7 +236114,7 @@ class GrowableXYArray extends _IndexedXYCollection__WEBPACK_IMPORTED_MODULE_0__.
236115
236114
  }
236116
236115
  /**
236117
236116
  * Restructure MultiLineStringDataVariant as array of GrowableXYZArray
236118
- * @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Moved to GrowableXYZArray class.
236117
+ * @deprecated in 4.2.0 - might be removed in next major version. Moved to GrowableXYZArray class.
236119
236118
  */
236120
236119
  static createArrayOfGrowableXYZArray(data) {
236121
236120
  return _GrowableXYZArray__WEBPACK_IMPORTED_MODULE_1__.GrowableXYZArray.createArrayOfGrowableXYZArray(data);
@@ -255276,7 +255275,7 @@ class Point4d extends _geometry3d_Plane3d__WEBPACK_IMPORTED_MODULE_0__.Plane3d {
255276
255275
  * extract 4 consecutive numbers from a Float64Array into a Point4d.
255277
255276
  * @param data buffer of numbers
255278
255277
  * @param xIndex first index for x,y,z,w sequence. Assumed to be a valid index!
255279
- * @deprecated in 4.3.0 - will not be removed until after 2026-06-13. Use createFromPacked instead.
255278
+ * @deprecated in 4.3.0 - might be removed in next major version. Use createFromPacked instead.
255280
255279
  */
255281
255280
  static createFromPackedXYZW(data, xIndex = 0, result) {
255282
255281
  return Point4d.create(data[xIndex], data[xIndex + 1], data[xIndex + 2], data[xIndex + 3], result);
@@ -264683,7 +264682,7 @@ class IndexedPolyface extends Polyface {
264683
264682
  }
264684
264683
  /**
264685
264684
  * Clean up the open facet.
264686
- * @deprecated in 4.5.0 - will not be removed until after 2026-06-13. To remove nebulous "open facet" concept from the API. Call [[PolyfaceData.trimAllIndexArrays]]
264685
+ * @deprecated in 4.5.0 - might be removed in next major version. To remove nebulous "open facet" concept from the API. Call [[PolyfaceData.trimAllIndexArrays]]
264687
264686
  * instead.
264688
264687
  */
264689
264688
  cleanupOpenFacet() {
@@ -264829,7 +264828,7 @@ class IndexedPolyface extends Polyface {
264829
264828
  }
264830
264829
  /**
264831
264830
  * Given the index of a facet, return the data pertaining to the face it is a part of.
264832
- * @deprecated in 4.5.0 - will not be removed until after 2026-06-13. Use [[IndexedPolyface.tryGetFaceData]], which verifies the index is in range.
264831
+ * @deprecated in 4.5.0 - might be removed in next major version. Use [[IndexedPolyface.tryGetFaceData]], which verifies the index is in range.
264833
264832
  */
264834
264833
  getFaceDataByFacetIndex(facetIndex) {
264835
264834
  return this.data.face[this._facetToFaceData[facetIndex]];
@@ -266115,7 +266114,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
266115
266114
  * Apply stroke counts to curve primitives.
266116
266115
  * * Recursively visit all children of data.
266117
266116
  * * At each primitive, invoke `computeStrokeCountForOptions` method with options from the builder.
266118
- * @deprecated in 4.8.0 - will not be removed until after 2026-06-13. This method does nothing and is unneeded.
266117
+ * @deprecated in 4.8.0 - might be removed in next major version. This method does nothing and is unneeded.
266119
266118
  */
266120
266119
  applyStrokeCountsToCurvePrimitives(data) {
266121
266120
  const options = this._options;
@@ -268209,7 +268208,7 @@ class PolyfaceData {
268209
268208
  }
268210
268209
  /**
268211
268210
  * Resize all data arrays to the specified `length`.
268212
- * @deprecated in 4.5.0 - will not be removed until after 2026-06-13. Because name is misleading. Call [[PolyfaceData.resizeAllArrays]] instead.
268211
+ * @deprecated in 4.5.0 - might be removed in next major version. Because name is misleading. Call [[PolyfaceData.resizeAllArrays]] instead.
268213
268212
  */
268214
268213
  resizeAllDataArrays(length) {
268215
268214
  if (length > this.point.length) {
@@ -269783,7 +269782,7 @@ class PolyfaceQuery {
269783
269782
  });
269784
269783
  return builder.claimPolyface(true);
269785
269784
  }
269786
- /** @deprecated in 4.7.0 - will not be removed until after 2026-06-13. Use [[sweepLineStringToFacetsXYReturnSweptFacets]] instead. */
269785
+ /** @deprecated in 4.7.0 - might be removed in next major version. Use [[sweepLineStringToFacetsXYReturnSweptFacets]] instead. */
269787
269786
  static sweepLinestringToFacetsXYreturnSweptFacets(linestringPoints, polyface) {
269788
269787
  return this.sweepLineStringToFacetsXYReturnSweptFacets(linestringPoints, polyface);
269789
269788
  }
@@ -269886,7 +269885,7 @@ class PolyfaceQuery {
269886
269885
  * * Return collected line segments.
269887
269886
  * * This calls [[sweepLineStringToFacets]] with options created by
269888
269887
  * `const options = SweepLineStringToFacetsOptions.create(Vector3d.unitZ(), Angle.createSmallAngle(), false, true, true, true);`
269889
- * @deprecated in 4.7.0 - will not be removed until after 2026-06-13. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
269888
+ * @deprecated in 4.7.0 - might be removed in next major version. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
269890
269889
  */
269891
269890
  static sweepLinestringToFacetsXYReturnLines(linestringPoints, polyface) {
269892
269891
  const options = SweepLineStringToFacetsOptions.create(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.unitZ(), _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createSmallAngle(), false, true, true, true);
@@ -269896,7 +269895,7 @@ class PolyfaceQuery {
269896
269895
  * Find segments (within the linestring) which project to facets.
269897
269896
  * * Return chains.
269898
269897
  * * This calls [[sweepLineStringToFacets]] with default options.
269899
- * @deprecated in 4.7.0 - will not be removed until after 2026-06-13. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
269898
+ * @deprecated in 4.7.0 - might be removed in next major version. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
269900
269899
  */
269901
269900
  static sweepLinestringToFacetsXYReturnChains(linestringPoints, polyface) {
269902
269901
  return PolyfaceQuery.sweepLineStringToFacets(linestringPoints, polyface);
@@ -312885,7 +312884,7 @@ var ShowSignOption;
312885
312884
  // parse and toString methods
312886
312885
  /**
312887
312886
  * @beta
312888
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. ScientificType is now a string enum and doesn't need a serialization method. You can access the enum directly.
312887
+ * @deprecated in 4.10 - might be removed in next major version. ScientificType is now a string enum and doesn't need a serialization method. You can access the enum directly.
312889
312888
  */
312890
312889
  function scientificTypeToString(scientificType) {
312891
312890
  return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
@@ -312939,7 +312938,7 @@ function parseShowSignOption(showSignOption, formatName) {
312939
312938
  }
312940
312939
  /**
312941
312940
  * @beta
312942
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. ShowSignOption is now a string enum and doesn't need a serialization method. You can access the enum directly.
312941
+ * @deprecated in 4.10 - might be removed in next major version. ShowSignOption is now a string enum and doesn't need a serialization method. You can access the enum directly.
312943
312942
  */
312944
312943
  function showSignOptionToString(showSign) {
312945
312944
  switch (showSign) {
@@ -313032,7 +313031,7 @@ function parseFormatType(jsonObjType, formatName) {
313032
313031
  }
313033
313032
  }
313034
313033
  /** @beta
313035
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. FormatType is now a string enum and doesn't need a serialization method. You can access the enum directly.
313034
+ * @deprecated in 4.10 - might be removed in next major version. FormatType is now a string enum and doesn't need a serialization method. You can access the enum directly.
313036
313035
  */
313037
313036
  function formatTypeToString(type) {
313038
313037
  switch (type) {
@@ -314735,7 +314734,7 @@ class Parser {
314735
314734
  * @param inString A string that contains text represent a quantity.
314736
314735
  * @param format Defines the likely format of inString. Primary unit serves as a default unit if no unit label found in string.
314737
314736
  * @param unitsConversions dictionary of conversions used to convert from unit used in inString to output quantity
314738
- * @deprecated in 4.10 - will not be removed until after 2026-06-13. Check [[Parser.parseQuantityString]] for replacements.
314737
+ * @deprecated in 4.10 - might be removed in next major version. Check [[Parser.parseQuantityString]] for replacements.
314739
314738
  */
314740
314739
  static parseToQuantityValue(inString, format, unitsConversions) {
314741
314740
  // TODO: This method is not able to do bearing and azimuth formatting and is overlapping with parseQuantityString.
@@ -318503,10 +318502,10 @@ class Settings {
318503
318502
  });
318504
318503
  }
318505
318504
  toString() {
318506
- return `Configurations:
318507
- oidc client id: ${this.oidcClientId},
318508
- oidc scopes: ${this.oidcScopes},
318509
- applicationId: ${this.gprid},
318505
+ return `Configurations:
318506
+ oidc client id: ${this.oidcClientId},
318507
+ oidc scopes: ${this.oidcScopes},
318508
+ applicationId: ${this.gprid},
318510
318509
  log level: ${this.logLevel}`;
318511
318510
  }
318512
318511
  }
@@ -318994,7 +318993,7 @@ class UiAdmin {
318994
318993
  /** Get the cursor X and Y position. */
318995
318994
  get cursorPosition() { return { x: 0, y: 0 }; }
318996
318995
  /** Create a PointProps object.
318997
- * @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Please use @core/geometry [[XAndY]] or a custom implementation.
318996
+ * @deprecated in 4.2.0 - might be removed in next major version. Please use @core/geometry [[XAndY]] or a custom implementation.
318998
318997
  */
318999
318998
  createXAndY(x, y) { return { x, y }; }
319000
318999
  /** Determines if focus is set to Home */
@@ -319198,7 +319197,7 @@ __webpack_require__.r(__webpack_exports__);
319198
319197
  * @module Utilities
319199
319198
  */
319200
319199
  /** Enumeration for Function Keys
319201
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. Please use the `ts-key-enum` npm package or string literals.
319200
+ * @public @deprecated in 4.3 - might be removed in next major version. Please use the `ts-key-enum` npm package or string literals.
319202
319201
  */
319203
319202
  var FunctionKey;
319204
319203
  (function (FunctionKey) {
@@ -319216,7 +319215,7 @@ var FunctionKey;
319216
319215
  FunctionKey["F12"] = "F12";
319217
319216
  })(FunctionKey || (FunctionKey = {}));
319218
319217
  /** Enumeration for Special Keys
319219
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. Please use the `ts-key-enum` npm package or string literals.
319218
+ * @public @deprecated in 4.3 - might be removed in next major version. Please use the `ts-key-enum` npm package or string literals.
319220
319219
  */
319221
319220
  var SpecialKey;
319222
319221
  (function (SpecialKey) {
@@ -319245,7 +319244,7 @@ var SpecialKey;
319245
319244
  SpecialKey["Decimal"] = "Decimal";
319246
319245
  })(SpecialKey || (SpecialKey = {}));
319247
319246
  /** Determines if a KeyboardEvent.key is an Arrow key
319248
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. Please use a custom implementation moving forward.
319247
+ * @public @deprecated in 4.3 - might be removed in next major version. Please use a custom implementation moving forward.
319249
319248
  */
319250
319249
  function isArrowKey(key) {
319251
319250
  // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -319297,7 +319296,7 @@ __webpack_require__.r(__webpack_exports__);
319297
319296
  /**
319298
319297
  * Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.
319299
319298
  * @public
319300
- * @deprecated in 4.10.0 - will not be removed until after 2026-06-13. Use `StandardContentLayouts` from `@itwin/appui-react`.
319299
+ * @deprecated in 4.10.0 - might be removed in next major version. Use `StandardContentLayouts` from `@itwin/appui-react`.
319301
319300
  */
319302
319301
  class StandardContentLayouts {
319303
319302
  static singleView = {
@@ -320825,20 +320824,20 @@ __webpack_require__.r(__webpack_exports__);
320825
320824
  */
320826
320825
  /* eslint-disable @typescript-eslint/no-deprecated */
320827
320826
  /** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.
320828
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
320827
+ * @public @deprecated in 4.3 - might be removed in next major version. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
320829
320828
  */
320830
320829
  class IconSpecUtilities {
320831
320830
  /** Prefix for an SVG IconSpec loaded with the Sprite loader */
320832
320831
  static SVG_PREFIX = "svg:";
320833
320832
  static WEB_COMPONENT_PREFIX = "webSvg:";
320834
320833
  /** Create an IconSpec for an SVG loaded into web component with svg-loader
320835
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
320834
+ * @public @deprecated in 4.3 - might be removed in next major version. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
320836
320835
  */
320837
320836
  static createWebComponentIconSpec(srcString) {
320838
320837
  return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;
320839
320838
  }
320840
320839
  /** Get the SVG Source from an svg-loader IconSpec
320841
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
320840
+ * @public @deprecated in 4.3 - might be removed in next major version. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
320842
320841
  */
320843
320842
  static getWebComponentSource(iconSpec) {
320844
320843
  if (iconSpec.startsWith(IconSpecUtilities.WEB_COMPONENT_PREFIX) && iconSpec.length > 7) {
@@ -320892,7 +320891,7 @@ __webpack_require__.r(__webpack_exports__);
320892
320891
  */
320893
320892
 
320894
320893
  /** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.
320895
- * @public @deprecated in 4.3 - will not be removed until after 2026-06-13. Use [[Bentley.BentleyError]] instead.
320894
+ * @public @deprecated in 4.3 - might be removed in next major version. Use [[Bentley.BentleyError]] instead.
320896
320895
  */
320897
320896
  class UiError extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError {
320898
320897
  category;
@@ -320928,7 +320927,7 @@ __webpack_require__.r(__webpack_exports__);
320928
320927
 
320929
320928
  /** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
320930
320929
  * @public
320931
- * @deprecated in 4.2 - will not be removed until after 2026-06-13. This type is a duplicate of [[BeUiEvent]], which should be used instead.
320930
+ * @deprecated in 4.2 - might be removed in next major version. This type is a duplicate of [[BeUiEvent]], which should be used instead.
320932
320931
  */
320933
320932
  class UiEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
320934
320933
  }
@@ -320959,7 +320958,7 @@ __webpack_require__.r(__webpack_exports__);
320959
320958
 
320960
320959
  /** UiSync Event class.
320961
320960
  * @public
320962
- * @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Use [[UiSyncEvent]] from @itwin/appui-react.
320961
+ * @deprecated in 4.2.0 - might be removed in next major version. Use [[UiSyncEvent]] from @itwin/appui-react.
320963
320962
  */
320964
320963
  // eslint-disable-next-line @typescript-eslint/no-deprecated
320965
320964
  class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
@@ -320967,7 +320966,7 @@ class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiE
320967
320966
  /** This class is used to send eventIds to interested UI components so the component can determine if it needs
320968
320967
  * to refresh its display by calling setState on itself.
320969
320968
  * @public
320970
- * @deprecated in 4.2.0 - will not be removed until after 2026-06-13. Use [[SyncUiEventDispatcher]] from @itwin/appui-react.
320969
+ * @deprecated in 4.2.0 - might be removed in next major version. Use [[SyncUiEventDispatcher]] from @itwin/appui-react.
320971
320970
  */
320972
320971
  class UiEventDispatcher {
320973
320972
  _syncEventTimerId;
@@ -321170,7 +321169,7 @@ function join(head, tail) {
321170
321169
  * @param contiguous - If true the filter string must be found "contiguous" in the searched string (E.g. "pul" will match "Git: Pull").
321171
321170
  * Otherwise also matches sub string of the word with beginnings of the words in the target (e.g. "gp" or "g p" will match "Git: Pull").
321172
321171
  * Useful in cases where the target is words (e.g. command labels)
321173
- * @internal @deprecated in 4.3 - will not be removed until after 2026-06-13. Use `matchesWords` from @itwin/core-react instead. Though internal, this requires deprecation due to known public usage in @itwin/core-react.
321172
+ * @internal @deprecated in 4.3 - might be removed in next major version. Use `matchesWords` from @itwin/core-react instead. Though internal, this requires deprecation due to known public usage in @itwin/core-react.
321174
321173
  */
321175
321174
  function matchesWords(word, target, contiguous = false) {
321176
321175
  if (!target || target.length === 0) {
@@ -321242,7 +321241,7 @@ __webpack_require__.r(__webpack_exports__);
321242
321241
  */
321243
321242
  /** Gets the class name for an object.
321244
321243
  * @internal
321245
- * @deprecated in 4.3 - will not be removed until after 2026-06-13. Please use your own implementation in the future. Though internal, this requires deprecation due to known public usage in @itwin/core-react.
321244
+ * @deprecated in 4.3 - might be removed in next major version. Please use your own implementation in the future. Though internal, this requires deprecation due to known public usage in @itwin/core-react.
321246
321245
  */
321247
321246
  const getClassName = (obj) => {
321248
321247
  let className = "";
@@ -332798,7 +332797,7 @@ var loadLanguages = instance.loadLanguages;
332798
332797
  /***/ ((module) => {
332799
332798
 
332800
332799
  "use strict";
332801
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.1","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.10","@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.8","@vitest/coverage-v8":"^4.1.8","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","vitest":"^4.1.8","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"~4.3.4","@loaders.gl/draco":"~4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
332800
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.5","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.10","@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.8","@vitest/coverage-v8":"^4.1.8","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","vitest":"^4.1.8","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"~4.3.4","@loaders.gl/draco":"~4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
332802
332801
 
332803
332802
  /***/ })
332804
332803