@itwin/rpcinterface-full-stack-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.
- package/lib/backend/BackendInit.js.map +1 -1
- package/lib/common/Settings.js +12 -12
- package/lib/common/Settings.js.map +1 -1
- package/lib/common/SideChannels.js.map +1 -1
- package/lib/dist/bundled-tests.js +1207 -1208
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/frontend/DevToolsRpc.test.js.map +1 -1
- package/lib/frontend/Elements.test.js.map +1 -1
- package/lib/frontend/IModel.test.js.map +1 -1
- package/lib/frontend/IModelConnection.test.js.map +1 -1
- package/lib/frontend/Models.test.js.map +1 -1
- package/lib/frontend/PresentationRpc.test.js.map +1 -1
- package/lib/frontend/Views.test.js.map +1 -1
- package/lib/frontend/setup/IModelSession.js.map +1 -1
- package/lib/frontend/setup/TestContext.js.map +1 -1
- package/lib/frontend/workflows/BasicScenarios.test.js.map +1 -1
- package/package.json +15 -15
|
@@ -49624,7 +49624,7 @@ var GeoServiceStatus;
|
|
|
49624
49624
|
GeoServiceStatus[GeoServiceStatus["VerticalDatumConvertError"] = 147460] = "VerticalDatumConvertError";
|
|
49625
49625
|
GeoServiceStatus[GeoServiceStatus["CSMapError"] = 147461] = "CSMapError";
|
|
49626
49626
|
/**
|
|
49627
|
-
* @deprecated in 5.0 -
|
|
49627
|
+
* @deprecated in 5.0 - might be removed in next major version. This status is never returned.
|
|
49628
49628
|
*/
|
|
49629
49629
|
GeoServiceStatus[GeoServiceStatus["Pending"] = 147462] = "Pending";
|
|
49630
49630
|
})(GeoServiceStatus || (GeoServiceStatus = {}));
|
|
@@ -51124,7 +51124,7 @@ Symbol.dispose ??= Symbol("Symbol.dispose");
|
|
|
51124
51124
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
51125
51125
|
/**
|
|
51126
51126
|
* A type guard that checks whether the given argument implements `IDisposable` interface
|
|
51127
|
-
* @deprecated in 5.0 -
|
|
51127
|
+
* @deprecated in 5.0 - might be removed in next major version. Use isDisposable instead.
|
|
51128
51128
|
* @public
|
|
51129
51129
|
*/
|
|
51130
51130
|
function isIDisposable(obj) {
|
|
@@ -51163,7 +51163,7 @@ function disposeArray(list) {
|
|
|
51163
51163
|
* of this function is equal to return value of func. If func throws, this function also throws (after
|
|
51164
51164
|
* disposing the resource).
|
|
51165
51165
|
* @public
|
|
51166
|
-
* @deprecated in 5.0 -
|
|
51166
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `using` declarations instead.
|
|
51167
51167
|
*/
|
|
51168
51168
|
function using(resources, func) {
|
|
51169
51169
|
if (!Array.isArray(resources))
|
|
@@ -53006,7 +53006,7 @@ class PerfLogger {
|
|
|
53006
53006
|
[Symbol.dispose]() {
|
|
53007
53007
|
this.logMessage();
|
|
53008
53008
|
}
|
|
53009
|
-
/** @deprecated in 5.0 -
|
|
53009
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
53010
53010
|
dispose() {
|
|
53011
53011
|
this[Symbol.dispose]();
|
|
53012
53012
|
}
|
|
@@ -54777,7 +54777,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54777
54777
|
/**
|
|
54778
54778
|
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
|
|
54779
54779
|
* @public
|
|
54780
|
-
* @deprecated in 4.4 -
|
|
54780
|
+
* @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.
|
|
54781
54781
|
*/
|
|
54782
54782
|
var SpanKind;
|
|
54783
54783
|
(function (SpanKind) {
|
|
@@ -54837,7 +54837,7 @@ function flattenObject(obj) {
|
|
|
54837
54837
|
/**
|
|
54838
54838
|
* Enables OpenTelemetry tracing in addition to traditional logging.
|
|
54839
54839
|
* @public
|
|
54840
|
-
* @deprecated in 4.4 -
|
|
54840
|
+
* @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.
|
|
54841
54841
|
*/
|
|
54842
54842
|
class Tracing {
|
|
54843
54843
|
static _tracer;
|
|
@@ -58514,7 +58514,7 @@ var QueryRowFormat;
|
|
|
58514
58514
|
QueryRowFormat[QueryRowFormat["UseECSqlPropertyIndexes"] = 1] = "UseECSqlPropertyIndexes";
|
|
58515
58515
|
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
58516
58516
|
* This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
|
|
58517
|
-
* @deprecated in 4.11 -
|
|
58517
|
+
* @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.
|
|
58518
58518
|
*/
|
|
58519
58519
|
QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 2] = "UseJsPropertyNames";
|
|
58520
58520
|
})(QueryRowFormat || (QueryRowFormat = {}));
|
|
@@ -58585,7 +58585,7 @@ class QueryOptionsBuilder {
|
|
|
58585
58585
|
* If set ECClassId, SourceECClassId and TargetECClassId system properties will return qualified name of class instead of a @typedef Id64String.
|
|
58586
58586
|
* @param val A boolean value.
|
|
58587
58587
|
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
58588
|
-
* @deprecated in 4.11 -
|
|
58588
|
+
* @deprecated in 4.11 - might be removed in next major version. Use ecsql function ec_classname to get class name instead.
|
|
58589
58589
|
*/
|
|
58590
58590
|
setConvertClassIdsToNames(val) {
|
|
58591
58591
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -61986,7 +61986,7 @@ var PrimitiveTypeCode;
|
|
|
61986
61986
|
})(PrimitiveTypeCode || (PrimitiveTypeCode = {}));
|
|
61987
61987
|
/** Metadata for a property.
|
|
61988
61988
|
* @beta
|
|
61989
|
-
* @deprecated in 5.0 -
|
|
61989
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `Property` class from @itwin/ecschema-metadata` instead.
|
|
61990
61990
|
*/
|
|
61991
61991
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
61992
61992
|
class PropertyMetaData {
|
|
@@ -62072,7 +62072,7 @@ class PropertyMetaData {
|
|
|
62072
62072
|
}
|
|
62073
62073
|
/** Metadata for an Entity.
|
|
62074
62074
|
* @beta
|
|
62075
|
-
* @deprecated in 5.0 -
|
|
62075
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `EntityClass` class from `@itwin/ecschema-metadata` instead.
|
|
62076
62076
|
*/
|
|
62077
62077
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
62078
62078
|
class EntityMetaData {
|
|
@@ -63388,7 +63388,7 @@ var FontType;
|
|
|
63388
63388
|
* This class maps FontIds to FontProps.
|
|
63389
63389
|
* @note This API has never worked properly. Don't use it. Use [IModelDb.fonts]($backend) instead.
|
|
63390
63390
|
* @public
|
|
63391
|
-
* @deprecated in 5.0.0 -
|
|
63391
|
+
* @deprecated in 5.0.0 - might be removed in next major version. Use [IModelDb.fonts]($backend) instead.
|
|
63392
63392
|
*/
|
|
63393
63393
|
class FontMap {
|
|
63394
63394
|
fonts = new Map();
|
|
@@ -63852,7 +63852,7 @@ var GeoCoordStatus;
|
|
|
63852
63852
|
/** This temporary status is used to mark coordinates for which the conversion has not yet been processed by the backend
|
|
63853
63853
|
* as opposed to other coordinate conversions that may have been resolved otherwise (typically a cache).
|
|
63854
63854
|
* At the completion of the conversion promise no coordinates should have this status.
|
|
63855
|
-
* @deprecated in 5.0 -
|
|
63855
|
+
* @deprecated in 5.0 - might be removed in next major version. Pending is no longer returned as a status for coordinate conversions.
|
|
63856
63856
|
*/
|
|
63857
63857
|
GeoCoordStatus[GeoCoordStatus["Pending"] = -41556] = "Pending";
|
|
63858
63858
|
})(GeoCoordStatus || (GeoCoordStatus = {}));
|
|
@@ -86967,7 +86967,7 @@ const unknownIModelId = (req) => ({ iModelId: "undefined", key: req.parameters[0
|
|
|
86967
86967
|
/** The RPC interface for working with *snapshot* iModels.
|
|
86968
86968
|
* This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.
|
|
86969
86969
|
* @internal
|
|
86970
|
-
* @deprecated in 5.0 -
|
|
86970
|
+
* @deprecated in 5.0 - might be removed in next major version. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
|
|
86971
86971
|
*/
|
|
86972
86972
|
class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
|
|
86973
86973
|
/** Returns the SnapshotIModelRpcInterface client instance for the frontend. */
|
|
@@ -86983,15 +86983,15 @@ class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_
|
|
|
86983
86983
|
NOTE: Please consult the README in this folder for the semantic versioning rules.
|
|
86984
86984
|
===========================================================================================*/
|
|
86985
86985
|
/**
|
|
86986
|
-
* @deprecated in 5.0 -
|
|
86986
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
|
|
86987
86987
|
*/
|
|
86988
86988
|
async openFile(_filePath, _opts) { return this.forward(arguments); }
|
|
86989
86989
|
/**
|
|
86990
|
-
* @deprecated in 4.10 -
|
|
86990
|
+
* @deprecated in 4.10 - might be removed in next major version. Use [[CheckpointConnection.openRemote]].
|
|
86991
86991
|
*/
|
|
86992
86992
|
async openRemote(_key, _opts) { return this.forward(arguments); }
|
|
86993
86993
|
/**
|
|
86994
|
-
* @deprecated in 5.0 -
|
|
86994
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
|
|
86995
86995
|
*/
|
|
86996
86996
|
async close(_iModelRpcProps) { return this.forward(arguments); }
|
|
86997
86997
|
}
|
|
@@ -92054,7 +92054,7 @@ function computeChildTileProps(parent, idProvider, root) {
|
|
|
92054
92054
|
/** Deserializes tile content metadata.
|
|
92055
92055
|
* @throws [[TileReadError]]
|
|
92056
92056
|
* @internal
|
|
92057
|
-
* @deprecated in 4.0 -
|
|
92057
|
+
* @deprecated in 4.0 - might be removed in next major version. Use decodeTileContentDescription. I think tile agents (or their tests) are using this function.
|
|
92058
92058
|
*/
|
|
92059
92059
|
function readTileContentDescription(stream, sizeMultiplier, is2d, options, isVolumeClassifier) {
|
|
92060
92060
|
return decodeTileContentDescription({ stream, sizeMultiplier, is2d, options, isVolumeClassifier });
|
|
@@ -92484,7 +92484,7 @@ class SchemaContext {
|
|
|
92484
92484
|
/**
|
|
92485
92485
|
* Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and
|
|
92486
92486
|
* @param schemaItem The SchemaItem to add
|
|
92487
|
-
* @deprecated in 4.0 -
|
|
92487
|
+
* @deprecated in 4.0 - might be removed in next major version. Use ecschema-editing package
|
|
92488
92488
|
*/
|
|
92489
92489
|
async addSchemaItem(schemaItem) {
|
|
92490
92490
|
const schema = await this.getSchema(schemaItem.key.schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Exact);
|
|
@@ -96072,7 +96072,7 @@ var SchemaMatchType;
|
|
|
96072
96072
|
(function (SchemaMatchType) {
|
|
96073
96073
|
/*
|
|
96074
96074
|
* Find exact VersionRead, VersionWrite, VersionMinor match as well as Data. NOTE data is not yet matched
|
|
96075
|
-
* @deprecated in 4.10 -
|
|
96075
|
+
* @deprecated in 4.10 - might be removed in next major version. Use Exact instead.
|
|
96076
96076
|
*/
|
|
96077
96077
|
SchemaMatchType[SchemaMatchType["Identical"] = 0] = "Identical";
|
|
96078
96078
|
/* Find exact VersionRead, VersionWrite, VersionMinor match. */
|
|
@@ -96172,7 +96172,7 @@ function parseSchemaItemType(type) {
|
|
|
96172
96172
|
* @param value The SchemaItemType to stringify.
|
|
96173
96173
|
* @return A string representing the provided SchemaItemType. If the type is not valid, an empty string is returned.
|
|
96174
96174
|
* @beta
|
|
96175
|
-
* @deprecated in 4.6.0 -
|
|
96175
|
+
* @deprecated in 4.6.0 - might be removed in next major version. SchemaItemType is a string enum so just use it directly
|
|
96176
96176
|
*/
|
|
96177
96177
|
function schemaItemTypeToString(value) {
|
|
96178
96178
|
return value; // TODO: Remove
|
|
@@ -97479,213 +97479,213 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97479
97479
|
* WITH clauses are broken down into individual variables.
|
|
97480
97480
|
*/
|
|
97481
97481
|
const propertyType = (alias) => {
|
|
97482
|
-
return `
|
|
97483
|
-
CASE
|
|
97484
|
-
WHEN [${alias}].[Kind] = 0 THEN 'PrimitiveProperty'
|
|
97485
|
-
WHEN [${alias}].[Kind] = 1 THEN 'StructProperty'
|
|
97486
|
-
WHEN [${alias}].[Kind] = 2 THEN 'PrimitiveArrayProperty'
|
|
97487
|
-
WHEN [${alias}].[Kind] = 3 THEN 'StructArrayProperty'
|
|
97488
|
-
WHEN [${alias}].[Kind] = 4 THEN 'NavigationProperty'
|
|
97489
|
-
ELSE NULL
|
|
97490
|
-
END
|
|
97482
|
+
return `
|
|
97483
|
+
CASE
|
|
97484
|
+
WHEN [${alias}].[Kind] = 0 THEN 'PrimitiveProperty'
|
|
97485
|
+
WHEN [${alias}].[Kind] = 1 THEN 'StructProperty'
|
|
97486
|
+
WHEN [${alias}].[Kind] = 2 THEN 'PrimitiveArrayProperty'
|
|
97487
|
+
WHEN [${alias}].[Kind] = 3 THEN 'StructArrayProperty'
|
|
97488
|
+
WHEN [${alias}].[Kind] = 4 THEN 'NavigationProperty'
|
|
97489
|
+
ELSE NULL
|
|
97490
|
+
END
|
|
97491
97491
|
`;
|
|
97492
97492
|
};
|
|
97493
97493
|
const navigationDirection = (alias) => {
|
|
97494
|
-
return `
|
|
97495
|
-
CASE
|
|
97496
|
-
WHEN [${alias}].[NavigationDirection] = 1 THEN 'Forward'
|
|
97497
|
-
WHEN [${alias}].[NavigationDirection] = 2 THEN 'Backward'
|
|
97498
|
-
ELSE NULL
|
|
97499
|
-
END
|
|
97494
|
+
return `
|
|
97495
|
+
CASE
|
|
97496
|
+
WHEN [${alias}].[NavigationDirection] = 1 THEN 'Forward'
|
|
97497
|
+
WHEN [${alias}].[NavigationDirection] = 2 THEN 'Backward'
|
|
97498
|
+
ELSE NULL
|
|
97499
|
+
END
|
|
97500
97500
|
`;
|
|
97501
97501
|
};
|
|
97502
97502
|
const schemaCustomAttribute = (alias) => {
|
|
97503
|
-
return `
|
|
97504
|
-
SELECT
|
|
97505
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97506
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97507
|
-
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 1
|
|
97508
|
-
ORDER BY [ca].[Ordinal]
|
|
97503
|
+
return `
|
|
97504
|
+
SELECT
|
|
97505
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97506
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97507
|
+
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 1
|
|
97508
|
+
ORDER BY [ca].[Ordinal]
|
|
97509
97509
|
`;
|
|
97510
97510
|
};
|
|
97511
97511
|
/**
|
|
97512
97512
|
* Selects customAttribute data for each class type.
|
|
97513
97513
|
*/
|
|
97514
97514
|
const classCustomAttribute = (alias) => {
|
|
97515
|
-
return `
|
|
97516
|
-
SELECT
|
|
97517
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97518
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97519
|
-
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
97520
|
-
ORDER BY [ca].[Ordinal]
|
|
97515
|
+
return `
|
|
97516
|
+
SELECT
|
|
97517
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97518
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97519
|
+
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
97520
|
+
ORDER BY [ca].[Ordinal]
|
|
97521
97521
|
`;
|
|
97522
97522
|
};
|
|
97523
97523
|
const propertyCustomAttribute = (alias) => {
|
|
97524
|
-
return `
|
|
97525
|
-
SELECT
|
|
97526
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97527
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97528
|
-
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 992
|
|
97529
|
-
ORDER BY [ca].[Ordinal]
|
|
97524
|
+
return `
|
|
97525
|
+
SELECT
|
|
97526
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97527
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97528
|
+
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 992
|
|
97529
|
+
ORDER BY [ca].[Ordinal]
|
|
97530
97530
|
`;
|
|
97531
97531
|
};
|
|
97532
97532
|
/**
|
|
97533
97533
|
* Selects base class data for each class type.
|
|
97534
97534
|
*/
|
|
97535
|
-
const selectBaseClasses = `
|
|
97536
|
-
SELECT
|
|
97537
|
-
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
97538
|
-
FROM
|
|
97539
|
-
[meta].[ECClassDef] [baseClass]
|
|
97540
|
-
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
97541
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
97542
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
97543
|
-
ORDER BY [baseClassMap].[Ordinal] ASC
|
|
97544
|
-
LIMIT 1
|
|
97535
|
+
const selectBaseClasses = `
|
|
97536
|
+
SELECT
|
|
97537
|
+
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
97538
|
+
FROM
|
|
97539
|
+
[meta].[ECClassDef] [baseClass]
|
|
97540
|
+
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
97541
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
97542
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
97543
|
+
ORDER BY [baseClassMap].[Ordinal] ASC
|
|
97544
|
+
LIMIT 1
|
|
97545
97545
|
`;
|
|
97546
97546
|
/**
|
|
97547
97547
|
* Selects class property data for each class type. ClassProperties
|
|
97548
97548
|
* is a common table expression (CTE or WITH clause) defined below.
|
|
97549
97549
|
*/
|
|
97550
|
-
const selectProperties = `
|
|
97551
|
-
SELECT
|
|
97552
|
-
json_group_array(json([classProperties].[property]))
|
|
97553
|
-
FROM
|
|
97554
|
-
[ClassProperties] [classProperties]
|
|
97555
|
-
WHERE
|
|
97556
|
-
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
97550
|
+
const selectProperties = `
|
|
97551
|
+
SELECT
|
|
97552
|
+
json_group_array(json([classProperties].[property]))
|
|
97553
|
+
FROM
|
|
97554
|
+
[ClassProperties] [classProperties]
|
|
97555
|
+
WHERE
|
|
97556
|
+
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
97557
97557
|
`;
|
|
97558
97558
|
/**
|
|
97559
97559
|
* A CTE used to select AppliesTo from IsMixin CustomAttributes for a given Mixin.
|
|
97560
97560
|
*/
|
|
97561
|
-
const withAppliesTo = `
|
|
97562
|
-
AppliesToCTE AS (
|
|
97563
|
-
SELECT
|
|
97564
|
-
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
97565
|
-
[appliesToSchema].[name] as [AppliesToSchema],
|
|
97566
|
-
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
97567
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97568
|
-
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
97569
|
-
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
97570
|
-
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
97571
|
-
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
97572
|
-
WHERE [ca].[ContainerType] = 30
|
|
97573
|
-
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
97574
|
-
)
|
|
97561
|
+
const withAppliesTo = `
|
|
97562
|
+
AppliesToCTE AS (
|
|
97563
|
+
SELECT
|
|
97564
|
+
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
97565
|
+
[appliesToSchema].[name] as [AppliesToSchema],
|
|
97566
|
+
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
97567
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97568
|
+
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
97569
|
+
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
97570
|
+
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
97571
|
+
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
97572
|
+
WHERE [ca].[ContainerType] = 30
|
|
97573
|
+
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
97574
|
+
)
|
|
97575
97575
|
`;
|
|
97576
97576
|
/**
|
|
97577
97577
|
* A CTE used to select Schema reference data for a given Schema.
|
|
97578
97578
|
*/
|
|
97579
|
-
const withSchemaReferences = `
|
|
97580
|
-
SchemaReferences as (
|
|
97581
|
-
SELECT
|
|
97582
|
-
[ref].[SourceECInstanceId] as [SchemaId],
|
|
97583
|
-
json_object(
|
|
97584
|
-
'name', [Name],
|
|
97585
|
-
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor]))
|
|
97586
|
-
) as [reference]
|
|
97587
|
-
FROM
|
|
97588
|
-
[meta].[ECSchemaDef] as [refSchema]
|
|
97589
|
-
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
97590
|
-
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
97591
|
-
)
|
|
97579
|
+
const withSchemaReferences = `
|
|
97580
|
+
SchemaReferences as (
|
|
97581
|
+
SELECT
|
|
97582
|
+
[ref].[SourceECInstanceId] as [SchemaId],
|
|
97583
|
+
json_object(
|
|
97584
|
+
'name', [Name],
|
|
97585
|
+
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor]))
|
|
97586
|
+
) as [reference]
|
|
97587
|
+
FROM
|
|
97588
|
+
[meta].[ECSchemaDef] as [refSchema]
|
|
97589
|
+
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
97590
|
+
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
97591
|
+
)
|
|
97592
97592
|
`;
|
|
97593
97593
|
/**
|
|
97594
97594
|
* A CTE used to select Relationship constraints for a given RelationshipClass.
|
|
97595
97595
|
*/
|
|
97596
|
-
const withRelationshipConstraints = `
|
|
97597
|
-
ClassRelationshipConstraints as (
|
|
97598
|
-
SELECT
|
|
97599
|
-
[rhc].[SourceECInstanceId] as [ClassId],
|
|
97600
|
-
[constraintDef].[ECInstanceId] as [ConstraintId],
|
|
97601
|
-
[RelationshipEnd],
|
|
97602
|
-
CONCAT('(', [MultiplicityLowerLimit], '..', IIF([MultiplicityUpperLimit] IS NULL, '*', [MultiplicityUpperLimit]), ')') as [Multiplicity],
|
|
97603
|
-
[IsPolyMorphic],
|
|
97604
|
-
[RoleLabel],
|
|
97605
|
-
IIF([constraintDef].[AbstractConstraintClass] IS NOT NULL, ec_classname([constraintDef].[AbstractConstraintClass].[Id], 's.c'), null) as [AbstractConstraint],
|
|
97606
|
-
IIF ([rchc].[TargetECInstanceId] IS NOT NULL, JSON_GROUP_ARRAY(ec_classname([rchc].[TargetECInstanceId], 's.c')), null) as [ConstraintClasses]
|
|
97607
|
-
FROM
|
|
97608
|
-
[meta].[ECRelationshipConstraintDef] [constraintDef]
|
|
97609
|
-
JOIN [meta].[RelationshipHasConstraints] [rhc]
|
|
97610
|
-
ON [rhc].[TargetECInstanceId] = [constraintDef].[ECInstanceId]
|
|
97611
|
-
JOIN [meta].[RelationshipConstraintHasClasses] [rchc]
|
|
97612
|
-
ON [rchc].[SourceECInstanceId] = [constraintDef].[ECInstanceId]
|
|
97613
|
-
GROUP BY [constraintDef].[ECInstanceId]
|
|
97614
|
-
)
|
|
97596
|
+
const withRelationshipConstraints = `
|
|
97597
|
+
ClassRelationshipConstraints as (
|
|
97598
|
+
SELECT
|
|
97599
|
+
[rhc].[SourceECInstanceId] as [ClassId],
|
|
97600
|
+
[constraintDef].[ECInstanceId] as [ConstraintId],
|
|
97601
|
+
[RelationshipEnd],
|
|
97602
|
+
CONCAT('(', [MultiplicityLowerLimit], '..', IIF([MultiplicityUpperLimit] IS NULL, '*', [MultiplicityUpperLimit]), ')') as [Multiplicity],
|
|
97603
|
+
[IsPolyMorphic],
|
|
97604
|
+
[RoleLabel],
|
|
97605
|
+
IIF([constraintDef].[AbstractConstraintClass] IS NOT NULL, ec_classname([constraintDef].[AbstractConstraintClass].[Id], 's.c'), null) as [AbstractConstraint],
|
|
97606
|
+
IIF ([rchc].[TargetECInstanceId] IS NOT NULL, JSON_GROUP_ARRAY(ec_classname([rchc].[TargetECInstanceId], 's.c')), null) as [ConstraintClasses]
|
|
97607
|
+
FROM
|
|
97608
|
+
[meta].[ECRelationshipConstraintDef] [constraintDef]
|
|
97609
|
+
JOIN [meta].[RelationshipHasConstraints] [rhc]
|
|
97610
|
+
ON [rhc].[TargetECInstanceId] = [constraintDef].[ECInstanceId]
|
|
97611
|
+
JOIN [meta].[RelationshipConstraintHasClasses] [rchc]
|
|
97612
|
+
ON [rchc].[SourceECInstanceId] = [constraintDef].[ECInstanceId]
|
|
97613
|
+
GROUP BY [constraintDef].[ECInstanceId]
|
|
97614
|
+
)
|
|
97615
97615
|
`;
|
|
97616
97616
|
/**
|
|
97617
97617
|
* A CTE used to select Class property data for a given Class.
|
|
97618
97618
|
*/
|
|
97619
|
-
const withClassProperties = `
|
|
97620
|
-
ClassProperties as (
|
|
97621
|
-
SELECT
|
|
97622
|
-
[cop].[SourceECInstanceId] as [ClassId],
|
|
97623
|
-
json_object(
|
|
97624
|
-
'name', [pd].[Name],
|
|
97625
|
-
'label', [pd].[DisplayLabel],
|
|
97626
|
-
'description', [pd].[Description],
|
|
97627
|
-
'isReadOnly', IIF([pd].[IsReadOnly] = 1, json('true'), NULL),
|
|
97628
|
-
'priority', [pd].[Priority],
|
|
97629
|
-
'category', IIF([categoryDef].[Name] IS NULL, NULL, CONCAT([categorySchemaDef].[Name], '.', [categoryDef].[Name])),
|
|
97630
|
-
'kindOfQuantity', IIF([koqDef].[Name] IS NULL, NULL, CONCAT([koqSchemaDef].[Name], '.', [koqDef].[Name])),
|
|
97631
|
-
'typeName',
|
|
97632
|
-
CASE
|
|
97633
|
-
WHEN [pd].[Kind] = 0 OR [pd].[Kind] = 2 Then
|
|
97634
|
-
CASE
|
|
97635
|
-
WHEN [enumDef].[Name] IS NOT NULL Then CONCAT([enumSchemaDef].[Name], '.', [enumDef].[Name])
|
|
97636
|
-
WHEN [pd].[PrimitiveType] = 257 Then 'binary'
|
|
97637
|
-
WHEN [pd].[PrimitiveType] = 513 Then 'boolean'
|
|
97638
|
-
WHEN [pd].[PrimitiveType] = 769 Then 'dateTime'
|
|
97639
|
-
WHEN [pd].[PrimitiveType] = 1025 Then 'double'
|
|
97640
|
-
WHEN [pd].[PrimitiveType] = 1281 Then 'int'
|
|
97641
|
-
WHEN [pd].[PrimitiveType] = 1537 Then 'long'
|
|
97642
|
-
WHEN [pd].[PrimitiveType] = 1793 Then 'point2d'
|
|
97643
|
-
WHEN [pd].[PrimitiveType] = 2049 Then 'point3d'
|
|
97644
|
-
WHEN [pd].[PrimitiveType] = 2305 Then 'string'
|
|
97645
|
-
WHEN [pd].[PrimitiveType] = 2561 Then 'Bentley.Geometry.Common.IGeometry'
|
|
97646
|
-
ELSE null
|
|
97647
|
-
END
|
|
97648
|
-
WHEN [pd].[Kind] = 1 OR [pd].[Kind] = 3 Then
|
|
97649
|
-
CONCAT([structSchemaDef].[Name], '.', [structDef].[Name])
|
|
97650
|
-
ELSE null
|
|
97651
|
-
END,
|
|
97652
|
-
'type', ${propertyType("pd")},
|
|
97653
|
-
'minLength', [pd].[PrimitiveTypeMinLength],
|
|
97654
|
-
'maxLength', [pd].[PrimitiveTypeMaxLength],
|
|
97655
|
-
'minValue', [pd].[PrimitiveTypeMinValue],
|
|
97656
|
-
'maxValue', [pd].[PrimitiveTypeMaxValue],
|
|
97657
|
-
'extendedTypeName', [pd].[ExtendedTypeName],
|
|
97658
|
-
'minOccurs', [pd].[ArrayMinOccurs],
|
|
97659
|
-
'maxOccurs', [pd].[ArrayMaxOccurs],
|
|
97660
|
-
'direction', ${navigationDirection("pd")},
|
|
97661
|
-
'relationshipName', IIF([navRelDef].[Name] IS NULL, NULL, CONCAT([navSchemaDef].[Name], '.', [navRelDef].[Name])),
|
|
97662
|
-
'customAttributes', (${propertyCustomAttribute("pd")})
|
|
97663
|
-
) as [property]
|
|
97664
|
-
FROM
|
|
97665
|
-
[meta].[ECPropertyDef] as [pd]
|
|
97666
|
-
JOIN [meta].[ClassOwnsLocalProperties] [cop]
|
|
97667
|
-
ON cop.[TargetECInstanceId] = [pd].[ECInstanceId]
|
|
97668
|
-
LEFT JOIN [meta].[ECEnumerationDef] [enumDef]
|
|
97669
|
-
ON [enumDef].[ECInstanceId] = [pd].[Enumeration].[Id]
|
|
97670
|
-
LEFT JOIN [meta].[ECSchemaDef] enumSchemaDef
|
|
97671
|
-
ON [enumSchemaDef].[ECInstanceId] = [enumDef].[Schema].[Id]
|
|
97672
|
-
LEFT JOIN [meta].[PropertyCategoryDef] [categoryDef]
|
|
97673
|
-
ON [categoryDef].[ECInstanceId] = [pd].[Category].[Id]
|
|
97674
|
-
LEFT JOIN [meta].[ECSchemaDef] [categorySchemaDef]
|
|
97675
|
-
ON [categorySchemaDef].[ECInstanceId] = [categoryDef].[Schema].[Id]
|
|
97676
|
-
LEFT JOIN [meta].[KindOfQuantityDef] [koqDef]
|
|
97677
|
-
ON [koqDef].[ECInstanceId] = [pd].[KindOfQuantity].[Id]
|
|
97678
|
-
LEFT JOIN [meta].[ECSchemaDef] [koqSchemaDef]
|
|
97679
|
-
ON [koqSchemaDef].[ECInstanceId] = [koqDef].[Schema].[Id]
|
|
97680
|
-
LEFT JOIN [meta].[ECClassDef] [structDef]
|
|
97681
|
-
ON structDef.[ECInstanceId] = [pd].[StructClass].[Id]
|
|
97682
|
-
LEFT JOIN [meta].[ECSchemaDef] [structSchemaDef]
|
|
97683
|
-
ON [structSchemaDef].[ECInstanceId] = [structDef].[Schema].[Id]
|
|
97684
|
-
LEFT JOIN [meta].[ECClassDef] [navRelDef]
|
|
97685
|
-
ON [navRelDef].[ECInstanceId] = [pd].[NavigationRelationshipClass].[Id]
|
|
97686
|
-
LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
|
|
97687
|
-
ON [navSchemaDef].[ECInstanceId] = [navRelDef].[Schema].[Id]
|
|
97688
|
-
)
|
|
97619
|
+
const withClassProperties = `
|
|
97620
|
+
ClassProperties as (
|
|
97621
|
+
SELECT
|
|
97622
|
+
[cop].[SourceECInstanceId] as [ClassId],
|
|
97623
|
+
json_object(
|
|
97624
|
+
'name', [pd].[Name],
|
|
97625
|
+
'label', [pd].[DisplayLabel],
|
|
97626
|
+
'description', [pd].[Description],
|
|
97627
|
+
'isReadOnly', IIF([pd].[IsReadOnly] = 1, json('true'), NULL),
|
|
97628
|
+
'priority', [pd].[Priority],
|
|
97629
|
+
'category', IIF([categoryDef].[Name] IS NULL, NULL, CONCAT([categorySchemaDef].[Name], '.', [categoryDef].[Name])),
|
|
97630
|
+
'kindOfQuantity', IIF([koqDef].[Name] IS NULL, NULL, CONCAT([koqSchemaDef].[Name], '.', [koqDef].[Name])),
|
|
97631
|
+
'typeName',
|
|
97632
|
+
CASE
|
|
97633
|
+
WHEN [pd].[Kind] = 0 OR [pd].[Kind] = 2 Then
|
|
97634
|
+
CASE
|
|
97635
|
+
WHEN [enumDef].[Name] IS NOT NULL Then CONCAT([enumSchemaDef].[Name], '.', [enumDef].[Name])
|
|
97636
|
+
WHEN [pd].[PrimitiveType] = 257 Then 'binary'
|
|
97637
|
+
WHEN [pd].[PrimitiveType] = 513 Then 'boolean'
|
|
97638
|
+
WHEN [pd].[PrimitiveType] = 769 Then 'dateTime'
|
|
97639
|
+
WHEN [pd].[PrimitiveType] = 1025 Then 'double'
|
|
97640
|
+
WHEN [pd].[PrimitiveType] = 1281 Then 'int'
|
|
97641
|
+
WHEN [pd].[PrimitiveType] = 1537 Then 'long'
|
|
97642
|
+
WHEN [pd].[PrimitiveType] = 1793 Then 'point2d'
|
|
97643
|
+
WHEN [pd].[PrimitiveType] = 2049 Then 'point3d'
|
|
97644
|
+
WHEN [pd].[PrimitiveType] = 2305 Then 'string'
|
|
97645
|
+
WHEN [pd].[PrimitiveType] = 2561 Then 'Bentley.Geometry.Common.IGeometry'
|
|
97646
|
+
ELSE null
|
|
97647
|
+
END
|
|
97648
|
+
WHEN [pd].[Kind] = 1 OR [pd].[Kind] = 3 Then
|
|
97649
|
+
CONCAT([structSchemaDef].[Name], '.', [structDef].[Name])
|
|
97650
|
+
ELSE null
|
|
97651
|
+
END,
|
|
97652
|
+
'type', ${propertyType("pd")},
|
|
97653
|
+
'minLength', [pd].[PrimitiveTypeMinLength],
|
|
97654
|
+
'maxLength', [pd].[PrimitiveTypeMaxLength],
|
|
97655
|
+
'minValue', [pd].[PrimitiveTypeMinValue],
|
|
97656
|
+
'maxValue', [pd].[PrimitiveTypeMaxValue],
|
|
97657
|
+
'extendedTypeName', [pd].[ExtendedTypeName],
|
|
97658
|
+
'minOccurs', [pd].[ArrayMinOccurs],
|
|
97659
|
+
'maxOccurs', [pd].[ArrayMaxOccurs],
|
|
97660
|
+
'direction', ${navigationDirection("pd")},
|
|
97661
|
+
'relationshipName', IIF([navRelDef].[Name] IS NULL, NULL, CONCAT([navSchemaDef].[Name], '.', [navRelDef].[Name])),
|
|
97662
|
+
'customAttributes', (${propertyCustomAttribute("pd")})
|
|
97663
|
+
) as [property]
|
|
97664
|
+
FROM
|
|
97665
|
+
[meta].[ECPropertyDef] as [pd]
|
|
97666
|
+
JOIN [meta].[ClassOwnsLocalProperties] [cop]
|
|
97667
|
+
ON cop.[TargetECInstanceId] = [pd].[ECInstanceId]
|
|
97668
|
+
LEFT JOIN [meta].[ECEnumerationDef] [enumDef]
|
|
97669
|
+
ON [enumDef].[ECInstanceId] = [pd].[Enumeration].[Id]
|
|
97670
|
+
LEFT JOIN [meta].[ECSchemaDef] enumSchemaDef
|
|
97671
|
+
ON [enumSchemaDef].[ECInstanceId] = [enumDef].[Schema].[Id]
|
|
97672
|
+
LEFT JOIN [meta].[PropertyCategoryDef] [categoryDef]
|
|
97673
|
+
ON [categoryDef].[ECInstanceId] = [pd].[Category].[Id]
|
|
97674
|
+
LEFT JOIN [meta].[ECSchemaDef] [categorySchemaDef]
|
|
97675
|
+
ON [categorySchemaDef].[ECInstanceId] = [categoryDef].[Schema].[Id]
|
|
97676
|
+
LEFT JOIN [meta].[KindOfQuantityDef] [koqDef]
|
|
97677
|
+
ON [koqDef].[ECInstanceId] = [pd].[KindOfQuantity].[Id]
|
|
97678
|
+
LEFT JOIN [meta].[ECSchemaDef] [koqSchemaDef]
|
|
97679
|
+
ON [koqSchemaDef].[ECInstanceId] = [koqDef].[Schema].[Id]
|
|
97680
|
+
LEFT JOIN [meta].[ECClassDef] [structDef]
|
|
97681
|
+
ON structDef.[ECInstanceId] = [pd].[StructClass].[Id]
|
|
97682
|
+
LEFT JOIN [meta].[ECSchemaDef] [structSchemaDef]
|
|
97683
|
+
ON [structSchemaDef].[ECInstanceId] = [structDef].[Schema].[Id]
|
|
97684
|
+
LEFT JOIN [meta].[ECClassDef] [navRelDef]
|
|
97685
|
+
ON [navRelDef].[ECInstanceId] = [pd].[NavigationRelationshipClass].[Id]
|
|
97686
|
+
LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
|
|
97687
|
+
ON [navSchemaDef].[ECInstanceId] = [navRelDef].[Schema].[Id]
|
|
97688
|
+
)
|
|
97689
97689
|
`;
|
|
97690
97690
|
/**
|
|
97691
97691
|
* Query that provides EntityClass data and is shared by two cases:
|
|
@@ -97693,52 +97693,52 @@ LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
|
|
|
97693
97693
|
* 2. When querying a full schema with multiple schema item queries or
|
|
97694
97694
|
* when just querying for Entity classes.
|
|
97695
97695
|
*/
|
|
97696
|
-
const baseEntityQuery = `
|
|
97697
|
-
SELECT
|
|
97698
|
-
[sd].[Name] as [schema],
|
|
97699
|
-
json_object (
|
|
97700
|
-
'schemaItemType', 'EntityClass',
|
|
97701
|
-
'name', [class].[Name],
|
|
97702
|
-
'label', [class].[DisplayLabel],
|
|
97703
|
-
'description', [class].[Description],
|
|
97704
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97705
|
-
'baseClass', (
|
|
97706
|
-
${selectBaseClasses}
|
|
97707
|
-
),
|
|
97708
|
-
'mixins', (
|
|
97709
|
-
SELECT
|
|
97710
|
-
json_group_array(
|
|
97711
|
-
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
97712
|
-
)
|
|
97713
|
-
FROM
|
|
97714
|
-
[meta].[ECClassDef] [baseClass]
|
|
97715
|
-
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
97716
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
97717
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
97718
|
-
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
97719
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
97720
|
-
),
|
|
97721
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
97722
|
-
'properties', (
|
|
97723
|
-
${selectProperties}
|
|
97724
|
-
)
|
|
97725
|
-
) AS [item]
|
|
97726
|
-
FROM [meta].[ECClassDef] [class]
|
|
97727
|
-
JOIN
|
|
97728
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97729
|
-
WHERE [class].[Type] = 0 AND
|
|
97730
|
-
[sd].[Name] = :schemaName
|
|
97731
|
-
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
97732
|
-
AND [ca].[CustomAttributeClass].Id Is ([CoreCA].[IsMixin]))
|
|
97696
|
+
const baseEntityQuery = `
|
|
97697
|
+
SELECT
|
|
97698
|
+
[sd].[Name] as [schema],
|
|
97699
|
+
json_object (
|
|
97700
|
+
'schemaItemType', 'EntityClass',
|
|
97701
|
+
'name', [class].[Name],
|
|
97702
|
+
'label', [class].[DisplayLabel],
|
|
97703
|
+
'description', [class].[Description],
|
|
97704
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97705
|
+
'baseClass', (
|
|
97706
|
+
${selectBaseClasses}
|
|
97707
|
+
),
|
|
97708
|
+
'mixins', (
|
|
97709
|
+
SELECT
|
|
97710
|
+
json_group_array(
|
|
97711
|
+
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
97712
|
+
)
|
|
97713
|
+
FROM
|
|
97714
|
+
[meta].[ECClassDef] [baseClass]
|
|
97715
|
+
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
97716
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
97717
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
97718
|
+
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
97719
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
97720
|
+
),
|
|
97721
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
97722
|
+
'properties', (
|
|
97723
|
+
${selectProperties}
|
|
97724
|
+
)
|
|
97725
|
+
) AS [item]
|
|
97726
|
+
FROM [meta].[ECClassDef] [class]
|
|
97727
|
+
JOIN
|
|
97728
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97729
|
+
WHERE [class].[Type] = 0 AND
|
|
97730
|
+
[sd].[Name] = :schemaName
|
|
97731
|
+
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
97732
|
+
AND [ca].[CustomAttributeClass].Id Is ([CoreCA].[IsMixin]))
|
|
97733
97733
|
`;
|
|
97734
97734
|
/**
|
|
97735
97735
|
* EntityClass query used to when querying for EntityClass data only. Not used
|
|
97736
97736
|
* for full Schema load via single query.
|
|
97737
97737
|
*/
|
|
97738
|
-
const entityQuery = `
|
|
97739
|
-
WITH
|
|
97740
|
-
${withClassProperties}
|
|
97741
|
-
${baseEntityQuery}
|
|
97738
|
+
const entityQuery = `
|
|
97739
|
+
WITH
|
|
97740
|
+
${withClassProperties}
|
|
97741
|
+
${baseEntityQuery}
|
|
97742
97742
|
`;
|
|
97743
97743
|
/**
|
|
97744
97744
|
* Query that provides Mixin data and is shared by two cases:
|
|
@@ -97746,56 +97746,56 @@ const entityQuery = `
|
|
|
97746
97746
|
* 2. When querying a full schema with multiple schema item queries or
|
|
97747
97747
|
* when just querying for Mixin classes.
|
|
97748
97748
|
*/
|
|
97749
|
-
const baseMixinQuery = `
|
|
97750
|
-
SELECT
|
|
97751
|
-
[sd].[Name] as [schema],
|
|
97752
|
-
json_object (
|
|
97753
|
-
'schemaItemType', 'Mixin',
|
|
97754
|
-
'name', [class].[Name],
|
|
97755
|
-
'label', [class].[DisplayLabel],
|
|
97756
|
-
'description', [class].[Description],
|
|
97757
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97758
|
-
'baseClass', (
|
|
97759
|
-
${selectBaseClasses}
|
|
97760
|
-
),
|
|
97761
|
-
'appliesTo', (
|
|
97762
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
97763
|
-
FROM [AppliesToCTE] [atCTE]
|
|
97764
|
-
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
97765
|
-
),
|
|
97766
|
-
'customAttributes', (
|
|
97767
|
-
SELECT
|
|
97768
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97769
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97770
|
-
WHERE [ca].[ContainerId] = [class].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
97771
|
-
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') <> 'IsMixin'
|
|
97772
|
-
),
|
|
97773
|
-
'properties', (
|
|
97774
|
-
SELECT
|
|
97775
|
-
json_group_array(json([classProperties].[property]))
|
|
97776
|
-
FROM
|
|
97777
|
-
[ClassProperties] [classProperties]
|
|
97778
|
-
WHERE
|
|
97779
|
-
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
97780
|
-
)
|
|
97781
|
-
) AS [item]
|
|
97782
|
-
FROM [meta].[ECClassDef] [class]
|
|
97783
|
-
JOIN
|
|
97784
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97785
|
-
WHERE [class].[Type] = 0 AND
|
|
97786
|
-
[sd].[Name] = :schemaName
|
|
97787
|
-
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
97788
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
97749
|
+
const baseMixinQuery = `
|
|
97750
|
+
SELECT
|
|
97751
|
+
[sd].[Name] as [schema],
|
|
97752
|
+
json_object (
|
|
97753
|
+
'schemaItemType', 'Mixin',
|
|
97754
|
+
'name', [class].[Name],
|
|
97755
|
+
'label', [class].[DisplayLabel],
|
|
97756
|
+
'description', [class].[Description],
|
|
97757
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97758
|
+
'baseClass', (
|
|
97759
|
+
${selectBaseClasses}
|
|
97760
|
+
),
|
|
97761
|
+
'appliesTo', (
|
|
97762
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
97763
|
+
FROM [AppliesToCTE] [atCTE]
|
|
97764
|
+
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
97765
|
+
),
|
|
97766
|
+
'customAttributes', (
|
|
97767
|
+
SELECT
|
|
97768
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97769
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97770
|
+
WHERE [ca].[ContainerId] = [class].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
97771
|
+
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') <> 'IsMixin'
|
|
97772
|
+
),
|
|
97773
|
+
'properties', (
|
|
97774
|
+
SELECT
|
|
97775
|
+
json_group_array(json([classProperties].[property]))
|
|
97776
|
+
FROM
|
|
97777
|
+
[ClassProperties] [classProperties]
|
|
97778
|
+
WHERE
|
|
97779
|
+
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
97780
|
+
)
|
|
97781
|
+
) AS [item]
|
|
97782
|
+
FROM [meta].[ECClassDef] [class]
|
|
97783
|
+
JOIN
|
|
97784
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97785
|
+
WHERE [class].[Type] = 0 AND
|
|
97786
|
+
[sd].[Name] = :schemaName
|
|
97787
|
+
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
97788
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
97789
97789
|
`;
|
|
97790
97790
|
/**
|
|
97791
97791
|
* Mixin query used to when querying for Mixin data only. Not used
|
|
97792
97792
|
* for full Schema load via single query.
|
|
97793
97793
|
*/
|
|
97794
|
-
const mixinQuery = `
|
|
97795
|
-
WITH
|
|
97796
|
-
${withAppliesTo},
|
|
97797
|
-
${withClassProperties}
|
|
97798
|
-
${baseMixinQuery}
|
|
97794
|
+
const mixinQuery = `
|
|
97795
|
+
WITH
|
|
97796
|
+
${withAppliesTo},
|
|
97797
|
+
${withClassProperties}
|
|
97798
|
+
${baseMixinQuery}
|
|
97799
97799
|
`;
|
|
97800
97800
|
/**
|
|
97801
97801
|
* Query that provides RelationshipClass data and is shared by two cases:
|
|
@@ -97803,82 +97803,82 @@ ${baseMixinQuery}
|
|
|
97803
97803
|
* 2. When querying a full schema with multiple schema item queries or
|
|
97804
97804
|
* when just querying for Relationship classes.
|
|
97805
97805
|
*/
|
|
97806
|
-
const baseRelationshipClassQuery = `
|
|
97807
|
-
SELECT
|
|
97808
|
-
[sd].Name as schema,
|
|
97809
|
-
json_object (
|
|
97810
|
-
'schemaItemType', 'RelationshipClass',
|
|
97811
|
-
'name', [class].[Name],
|
|
97812
|
-
'label', [class].[DisplayLabel],
|
|
97813
|
-
'description', [class].[Description],
|
|
97814
|
-
'strength', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strength)("class")},
|
|
97815
|
-
'strengthDirection', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strengthDirection)("class")},
|
|
97816
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97817
|
-
'baseClass', (
|
|
97818
|
-
${selectBaseClasses}
|
|
97819
|
-
),
|
|
97820
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
97821
|
-
'properties', (
|
|
97822
|
-
${selectProperties}
|
|
97823
|
-
),
|
|
97824
|
-
'source', (
|
|
97825
|
-
SELECT
|
|
97826
|
-
json_object (
|
|
97827
|
-
'multiplicity', [sourceConst].[Multiplicity],
|
|
97828
|
-
'roleLabel', [sourceConst].[RoleLabel],
|
|
97829
|
-
'polymorphic', IIF([sourceConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
97830
|
-
'abstractConstraint', [sourceConst].[AbstractConstraint],
|
|
97831
|
-
'constraintClasses', json([sourceConst].[ConstraintClasses]),
|
|
97832
|
-
'customAttributes', (
|
|
97833
|
-
SELECT
|
|
97834
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97835
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97836
|
-
WHERE [ca].[ContainerId] = [sourceConst].[ConstraintId] AND [ca].[ContainerType] = 1024
|
|
97837
|
-
ORDER BY [ca].[Ordinal]
|
|
97838
|
-
)
|
|
97839
|
-
)
|
|
97840
|
-
FROM
|
|
97841
|
-
[ClassRelationshipConstraints] [sourceConst]
|
|
97842
|
-
WHERE [sourceConst].[relationshipEnd] = 0
|
|
97843
|
-
AND [sourceConst].[ClassId] = [class].[ECInstanceId]
|
|
97844
|
-
),
|
|
97845
|
-
'target', (
|
|
97846
|
-
SELECT
|
|
97847
|
-
json_object (
|
|
97848
|
-
'multiplicity', [targetConst].[Multiplicity],
|
|
97849
|
-
'roleLabel', [targetConst].[RoleLabel],
|
|
97850
|
-
'polymorphic', IIF([targetConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
97851
|
-
'abstractConstraint', [targetConst].[AbstractConstraint],
|
|
97852
|
-
'constraintClasses', json([targetConst].[ConstraintClasses]),
|
|
97853
|
-
'customAttributes', (
|
|
97854
|
-
SELECT
|
|
97855
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97856
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
97857
|
-
WHERE [ca].[ContainerId] = [targetConst].[ConstraintId] AND [ca].[ContainerType] = 2048
|
|
97858
|
-
ORDER BY [ca].[Ordinal]
|
|
97859
|
-
)
|
|
97860
|
-
)
|
|
97861
|
-
FROM
|
|
97862
|
-
[ClassRelationshipConstraints] [targetConst]
|
|
97863
|
-
WHERE [targetConst].[relationshipEnd] = 1
|
|
97864
|
-
AND [targetConst].[ClassId] = [class].[ECInstanceId]
|
|
97865
|
-
)
|
|
97866
|
-
) AS [item]
|
|
97867
|
-
FROM [meta].[ECClassDef] [class]
|
|
97868
|
-
JOIN
|
|
97869
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97870
|
-
WHERE [class].[Type] = 1 AND
|
|
97871
|
-
[sd].[Name] = :schemaName
|
|
97806
|
+
const baseRelationshipClassQuery = `
|
|
97807
|
+
SELECT
|
|
97808
|
+
[sd].Name as schema,
|
|
97809
|
+
json_object (
|
|
97810
|
+
'schemaItemType', 'RelationshipClass',
|
|
97811
|
+
'name', [class].[Name],
|
|
97812
|
+
'label', [class].[DisplayLabel],
|
|
97813
|
+
'description', [class].[Description],
|
|
97814
|
+
'strength', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strength)("class")},
|
|
97815
|
+
'strengthDirection', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strengthDirection)("class")},
|
|
97816
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97817
|
+
'baseClass', (
|
|
97818
|
+
${selectBaseClasses}
|
|
97819
|
+
),
|
|
97820
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
97821
|
+
'properties', (
|
|
97822
|
+
${selectProperties}
|
|
97823
|
+
),
|
|
97824
|
+
'source', (
|
|
97825
|
+
SELECT
|
|
97826
|
+
json_object (
|
|
97827
|
+
'multiplicity', [sourceConst].[Multiplicity],
|
|
97828
|
+
'roleLabel', [sourceConst].[RoleLabel],
|
|
97829
|
+
'polymorphic', IIF([sourceConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
97830
|
+
'abstractConstraint', [sourceConst].[AbstractConstraint],
|
|
97831
|
+
'constraintClasses', json([sourceConst].[ConstraintClasses]),
|
|
97832
|
+
'customAttributes', (
|
|
97833
|
+
SELECT
|
|
97834
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97835
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97836
|
+
WHERE [ca].[ContainerId] = [sourceConst].[ConstraintId] AND [ca].[ContainerType] = 1024
|
|
97837
|
+
ORDER BY [ca].[Ordinal]
|
|
97838
|
+
)
|
|
97839
|
+
)
|
|
97840
|
+
FROM
|
|
97841
|
+
[ClassRelationshipConstraints] [sourceConst]
|
|
97842
|
+
WHERE [sourceConst].[relationshipEnd] = 0
|
|
97843
|
+
AND [sourceConst].[ClassId] = [class].[ECInstanceId]
|
|
97844
|
+
),
|
|
97845
|
+
'target', (
|
|
97846
|
+
SELECT
|
|
97847
|
+
json_object (
|
|
97848
|
+
'multiplicity', [targetConst].[Multiplicity],
|
|
97849
|
+
'roleLabel', [targetConst].[RoleLabel],
|
|
97850
|
+
'polymorphic', IIF([targetConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
97851
|
+
'abstractConstraint', [targetConst].[AbstractConstraint],
|
|
97852
|
+
'constraintClasses', json([targetConst].[ConstraintClasses]),
|
|
97853
|
+
'customAttributes', (
|
|
97854
|
+
SELECT
|
|
97855
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
97856
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
97857
|
+
WHERE [ca].[ContainerId] = [targetConst].[ConstraintId] AND [ca].[ContainerType] = 2048
|
|
97858
|
+
ORDER BY [ca].[Ordinal]
|
|
97859
|
+
)
|
|
97860
|
+
)
|
|
97861
|
+
FROM
|
|
97862
|
+
[ClassRelationshipConstraints] [targetConst]
|
|
97863
|
+
WHERE [targetConst].[relationshipEnd] = 1
|
|
97864
|
+
AND [targetConst].[ClassId] = [class].[ECInstanceId]
|
|
97865
|
+
)
|
|
97866
|
+
) AS [item]
|
|
97867
|
+
FROM [meta].[ECClassDef] [class]
|
|
97868
|
+
JOIN
|
|
97869
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97870
|
+
WHERE [class].[Type] = 1 AND
|
|
97871
|
+
[sd].[Name] = :schemaName
|
|
97872
97872
|
`;
|
|
97873
97873
|
/**
|
|
97874
97874
|
* RelationshipClass query used to when querying for RelationshipClass data only. Not used
|
|
97875
97875
|
* for full Schema load via single query.
|
|
97876
97876
|
*/
|
|
97877
|
-
const relationshipClassQuery = `
|
|
97878
|
-
WITH
|
|
97879
|
-
${withClassProperties},
|
|
97880
|
-
${withRelationshipConstraints}
|
|
97881
|
-
${baseRelationshipClassQuery}
|
|
97877
|
+
const relationshipClassQuery = `
|
|
97878
|
+
WITH
|
|
97879
|
+
${withClassProperties},
|
|
97880
|
+
${withRelationshipConstraints}
|
|
97881
|
+
${baseRelationshipClassQuery}
|
|
97882
97882
|
`;
|
|
97883
97883
|
/**
|
|
97884
97884
|
* Query that provides StructClass data and is shared by two cases:
|
|
@@ -97886,37 +97886,37 @@ ${baseRelationshipClassQuery}
|
|
|
97886
97886
|
* 2. When querying a full schema with multiple schema item queries or
|
|
97887
97887
|
* when just querying for Struct classes.
|
|
97888
97888
|
*/
|
|
97889
|
-
const baseStructQuery = `
|
|
97890
|
-
SELECT
|
|
97891
|
-
[sd].Name as schema,
|
|
97892
|
-
json_object (
|
|
97893
|
-
'schemaItemType', 'StructClass',
|
|
97894
|
-
'name', [class].[Name],
|
|
97895
|
-
'label', [class].[DisplayLabel],
|
|
97896
|
-
'description', [class].[Description],
|
|
97897
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97898
|
-
'baseClass', (
|
|
97899
|
-
${selectBaseClasses}
|
|
97900
|
-
),
|
|
97901
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
97902
|
-
'properties', (
|
|
97903
|
-
${selectProperties}
|
|
97904
|
-
)
|
|
97905
|
-
) AS item
|
|
97906
|
-
FROM [meta].[ECClassDef] [class]
|
|
97907
|
-
JOIN
|
|
97908
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97909
|
-
WHERE [class].[Type] = 2 AND
|
|
97910
|
-
[sd].[Name] = :schemaName
|
|
97889
|
+
const baseStructQuery = `
|
|
97890
|
+
SELECT
|
|
97891
|
+
[sd].Name as schema,
|
|
97892
|
+
json_object (
|
|
97893
|
+
'schemaItemType', 'StructClass',
|
|
97894
|
+
'name', [class].[Name],
|
|
97895
|
+
'label', [class].[DisplayLabel],
|
|
97896
|
+
'description', [class].[Description],
|
|
97897
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97898
|
+
'baseClass', (
|
|
97899
|
+
${selectBaseClasses}
|
|
97900
|
+
),
|
|
97901
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
97902
|
+
'properties', (
|
|
97903
|
+
${selectProperties}
|
|
97904
|
+
)
|
|
97905
|
+
) AS item
|
|
97906
|
+
FROM [meta].[ECClassDef] [class]
|
|
97907
|
+
JOIN
|
|
97908
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97909
|
+
WHERE [class].[Type] = 2 AND
|
|
97910
|
+
[sd].[Name] = :schemaName
|
|
97911
97911
|
`;
|
|
97912
97912
|
/**
|
|
97913
97913
|
* StructClass query used to when querying for StructClass data only. Not used
|
|
97914
97914
|
* for full Schema load via single query.
|
|
97915
97915
|
*/
|
|
97916
|
-
const structQuery = `
|
|
97917
|
-
WITH
|
|
97918
|
-
${withClassProperties}
|
|
97919
|
-
${baseStructQuery}
|
|
97916
|
+
const structQuery = `
|
|
97917
|
+
WITH
|
|
97918
|
+
${withClassProperties}
|
|
97919
|
+
${baseStructQuery}
|
|
97920
97920
|
`;
|
|
97921
97921
|
/**
|
|
97922
97922
|
* Query that provides CustomAttributeClass data and is shared by two cases:
|
|
@@ -97924,141 +97924,141 @@ ${baseStructQuery}
|
|
|
97924
97924
|
* 2. When querying a full schema with multiple schema item queries or
|
|
97925
97925
|
* when just querying for CustomAttribute classes.
|
|
97926
97926
|
*/
|
|
97927
|
-
const baseCustomAttributeQuery = `
|
|
97928
|
-
SELECT
|
|
97929
|
-
[sd].Name as schema,
|
|
97930
|
-
json_object (
|
|
97931
|
-
'schemaItemType', 'CustomAttributeClass',
|
|
97932
|
-
'name', [class].[Name],
|
|
97933
|
-
'label', [class].[DisplayLabel],
|
|
97934
|
-
'description', [class].[Description],
|
|
97935
|
-
'appliesTo', [class].[CustomAttributeContainerType],
|
|
97936
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97937
|
-
'baseClass', (
|
|
97938
|
-
${selectBaseClasses}
|
|
97939
|
-
),
|
|
97940
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
97941
|
-
'properties', (
|
|
97942
|
-
${selectProperties}
|
|
97943
|
-
)
|
|
97944
|
-
) AS [item]
|
|
97945
|
-
FROM [meta].[ECClassDef] [class]
|
|
97946
|
-
JOIN
|
|
97947
|
-
[meta].[ECSchemaDef] sd ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97948
|
-
WHERE [class].[Type] = 3 AND
|
|
97949
|
-
[sd].[Name] = :schemaName
|
|
97927
|
+
const baseCustomAttributeQuery = `
|
|
97928
|
+
SELECT
|
|
97929
|
+
[sd].Name as schema,
|
|
97930
|
+
json_object (
|
|
97931
|
+
'schemaItemType', 'CustomAttributeClass',
|
|
97932
|
+
'name', [class].[Name],
|
|
97933
|
+
'label', [class].[DisplayLabel],
|
|
97934
|
+
'description', [class].[Description],
|
|
97935
|
+
'appliesTo', [class].[CustomAttributeContainerType],
|
|
97936
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
97937
|
+
'baseClass', (
|
|
97938
|
+
${selectBaseClasses}
|
|
97939
|
+
),
|
|
97940
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
97941
|
+
'properties', (
|
|
97942
|
+
${selectProperties}
|
|
97943
|
+
)
|
|
97944
|
+
) AS [item]
|
|
97945
|
+
FROM [meta].[ECClassDef] [class]
|
|
97946
|
+
JOIN
|
|
97947
|
+
[meta].[ECSchemaDef] sd ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
97948
|
+
WHERE [class].[Type] = 3 AND
|
|
97949
|
+
[sd].[Name] = :schemaName
|
|
97950
97950
|
`;
|
|
97951
97951
|
/**
|
|
97952
97952
|
* CustomAttributeClass query used to when querying for CustomAttributeClass data only. Not used
|
|
97953
97953
|
* for full Schema load via single query.
|
|
97954
97954
|
*/
|
|
97955
|
-
const customAttributeQuery = `
|
|
97956
|
-
WITH
|
|
97957
|
-
${withClassProperties}
|
|
97958
|
-
${baseCustomAttributeQuery}
|
|
97955
|
+
const customAttributeQuery = `
|
|
97956
|
+
WITH
|
|
97957
|
+
${withClassProperties}
|
|
97958
|
+
${baseCustomAttributeQuery}
|
|
97959
97959
|
`;
|
|
97960
97960
|
/**
|
|
97961
97961
|
* Used by full schema load query via single query. Allows
|
|
97962
97962
|
* all SchemaItemTypes to be queried at once.
|
|
97963
97963
|
*/
|
|
97964
|
-
const withSchemaItems = `
|
|
97965
|
-
SchemaItems AS (
|
|
97966
|
-
${baseEntityQuery}
|
|
97967
|
-
UNION ALL
|
|
97968
|
-
${baseRelationshipClassQuery}
|
|
97969
|
-
UNION ALL
|
|
97970
|
-
${baseStructQuery}
|
|
97971
|
-
UNION ALL
|
|
97972
|
-
${baseMixinQuery}
|
|
97973
|
-
UNION ALL
|
|
97974
|
-
${baseCustomAttributeQuery}
|
|
97975
|
-
UNION ALL
|
|
97976
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity(true)}
|
|
97977
|
-
UNION ALL
|
|
97978
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration(true)}
|
|
97979
|
-
UNION ALL
|
|
97980
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory(true)}
|
|
97981
|
-
UNION ALL
|
|
97982
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit(true)}
|
|
97983
|
-
UNION ALL
|
|
97984
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit(true)}
|
|
97985
|
-
UNION ALL
|
|
97986
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem(true)}
|
|
97987
|
-
UNION ALL
|
|
97988
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant(true)}
|
|
97989
|
-
UNION ALL
|
|
97990
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon(true)}
|
|
97991
|
-
UNION ALL
|
|
97992
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format(true)}
|
|
97993
|
-
)
|
|
97964
|
+
const withSchemaItems = `
|
|
97965
|
+
SchemaItems AS (
|
|
97966
|
+
${baseEntityQuery}
|
|
97967
|
+
UNION ALL
|
|
97968
|
+
${baseRelationshipClassQuery}
|
|
97969
|
+
UNION ALL
|
|
97970
|
+
${baseStructQuery}
|
|
97971
|
+
UNION ALL
|
|
97972
|
+
${baseMixinQuery}
|
|
97973
|
+
UNION ALL
|
|
97974
|
+
${baseCustomAttributeQuery}
|
|
97975
|
+
UNION ALL
|
|
97976
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity(true)}
|
|
97977
|
+
UNION ALL
|
|
97978
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration(true)}
|
|
97979
|
+
UNION ALL
|
|
97980
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory(true)}
|
|
97981
|
+
UNION ALL
|
|
97982
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit(true)}
|
|
97983
|
+
UNION ALL
|
|
97984
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit(true)}
|
|
97985
|
+
UNION ALL
|
|
97986
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem(true)}
|
|
97987
|
+
UNION ALL
|
|
97988
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant(true)}
|
|
97989
|
+
UNION ALL
|
|
97990
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon(true)}
|
|
97991
|
+
UNION ALL
|
|
97992
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format(true)}
|
|
97993
|
+
)
|
|
97994
97994
|
`;
|
|
97995
97995
|
/**
|
|
97996
97996
|
* Query for Schema data without SchemaItems
|
|
97997
97997
|
*/
|
|
97998
|
-
const schemaNoItemsQuery = `
|
|
97999
|
-
WITH
|
|
98000
|
-
${withSchemaReferences}
|
|
98001
|
-
SELECT
|
|
98002
|
-
json_object (
|
|
98003
|
-
'name', [schemaDef].[Name],
|
|
98004
|
-
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
98005
|
-
'alias', [schemaDef].[Alias],
|
|
98006
|
-
'label', [schemaDef].[DisplayLabel],
|
|
98007
|
-
'description', [schemaDef].[Description],
|
|
98008
|
-
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
98009
|
-
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
98010
|
-
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
98011
|
-
'references', (
|
|
98012
|
-
SELECT
|
|
98013
|
-
json_group_array(json([schemaReferences].[reference]))
|
|
98014
|
-
FROM
|
|
98015
|
-
[SchemaReferences] [schemaReferences]
|
|
98016
|
-
WHERE
|
|
98017
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
98018
|
-
)
|
|
98019
|
-
) as [schema]
|
|
98020
|
-
FROM
|
|
98021
|
-
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
97998
|
+
const schemaNoItemsQuery = `
|
|
97999
|
+
WITH
|
|
98000
|
+
${withSchemaReferences}
|
|
98001
|
+
SELECT
|
|
98002
|
+
json_object (
|
|
98003
|
+
'name', [schemaDef].[Name],
|
|
98004
|
+
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
98005
|
+
'alias', [schemaDef].[Alias],
|
|
98006
|
+
'label', [schemaDef].[DisplayLabel],
|
|
98007
|
+
'description', [schemaDef].[Description],
|
|
98008
|
+
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
98009
|
+
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
98010
|
+
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
98011
|
+
'references', (
|
|
98012
|
+
SELECT
|
|
98013
|
+
json_group_array(json([schemaReferences].[reference]))
|
|
98014
|
+
FROM
|
|
98015
|
+
[SchemaReferences] [schemaReferences]
|
|
98016
|
+
WHERE
|
|
98017
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
98018
|
+
)
|
|
98019
|
+
) as [schema]
|
|
98020
|
+
FROM
|
|
98021
|
+
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
98022
98022
|
`;
|
|
98023
98023
|
/**
|
|
98024
98024
|
* Query to load a full Schema via a single query.
|
|
98025
98025
|
*/
|
|
98026
|
-
const schemaQuery = `
|
|
98027
|
-
WITH
|
|
98028
|
-
${withAppliesTo},
|
|
98029
|
-
${withSchemaReferences},
|
|
98030
|
-
${withClassProperties},
|
|
98031
|
-
${withRelationshipConstraints},
|
|
98032
|
-
${withSchemaItems}
|
|
98033
|
-
SELECT
|
|
98034
|
-
json_object (
|
|
98035
|
-
'name', [schemaDef].[Name],
|
|
98036
|
-
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
98037
|
-
'alias', [schemaDef].[Alias],
|
|
98038
|
-
'label', [schemaDef].[DisplayLabel],
|
|
98039
|
-
'description', [schemaDef].[Description],
|
|
98040
|
-
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
98041
|
-
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
98042
|
-
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
98043
|
-
'references', (
|
|
98044
|
-
SELECT
|
|
98045
|
-
json_group_array(json([schemaReferences].[reference]))
|
|
98046
|
-
FROM
|
|
98047
|
-
[SchemaReferences] [schemaReferences]
|
|
98048
|
-
WHERE
|
|
98049
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
98050
|
-
),
|
|
98051
|
-
'items', (
|
|
98052
|
-
SELECT
|
|
98053
|
-
json_group_array(json(json_object(
|
|
98054
|
-
'item', json([items].[item])
|
|
98055
|
-
)))
|
|
98056
|
-
FROM
|
|
98057
|
-
[SchemaItems] [items]
|
|
98058
|
-
)
|
|
98059
|
-
) as [schema]
|
|
98060
|
-
FROM
|
|
98061
|
-
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
98026
|
+
const schemaQuery = `
|
|
98027
|
+
WITH
|
|
98028
|
+
${withAppliesTo},
|
|
98029
|
+
${withSchemaReferences},
|
|
98030
|
+
${withClassProperties},
|
|
98031
|
+
${withRelationshipConstraints},
|
|
98032
|
+
${withSchemaItems}
|
|
98033
|
+
SELECT
|
|
98034
|
+
json_object (
|
|
98035
|
+
'name', [schemaDef].[Name],
|
|
98036
|
+
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
98037
|
+
'alias', [schemaDef].[Alias],
|
|
98038
|
+
'label', [schemaDef].[DisplayLabel],
|
|
98039
|
+
'description', [schemaDef].[Description],
|
|
98040
|
+
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
98041
|
+
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
98042
|
+
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
98043
|
+
'references', (
|
|
98044
|
+
SELECT
|
|
98045
|
+
json_group_array(json([schemaReferences].[reference]))
|
|
98046
|
+
FROM
|
|
98047
|
+
[SchemaReferences] [schemaReferences]
|
|
98048
|
+
WHERE
|
|
98049
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
98050
|
+
),
|
|
98051
|
+
'items', (
|
|
98052
|
+
SELECT
|
|
98053
|
+
json_group_array(json(json_object(
|
|
98054
|
+
'item', json([items].[item])
|
|
98055
|
+
)))
|
|
98056
|
+
FROM
|
|
98057
|
+
[SchemaItems] [items]
|
|
98058
|
+
)
|
|
98059
|
+
) as [schema]
|
|
98060
|
+
FROM
|
|
98061
|
+
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
98062
98062
|
`;
|
|
98063
98063
|
/**
|
|
98064
98064
|
* Queries for loading full Schema JSON.
|
|
@@ -98564,281 +98564,281 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98564
98564
|
* Query for SchemaItemType KindOfQuantity data.
|
|
98565
98565
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98566
98566
|
*/
|
|
98567
|
-
const kindOfQuantity = (singleSchema) => `
|
|
98568
|
-
SELECT
|
|
98569
|
-
[koq].[Schema].[Id] AS [SchemaId],
|
|
98570
|
-
json_object (
|
|
98571
|
-
'schemaItemType', 'KindOfQuantity',
|
|
98572
|
-
'name', [koq].[Name],
|
|
98573
|
-
'label', [koq].[DisplayLabel],
|
|
98574
|
-
'description', [koq].[Description],
|
|
98575
|
-
'relativeError', [koq].[RelativeError],
|
|
98576
|
-
'persistenceUnit', [koq].[PersistenceUnit]
|
|
98577
|
-
${singleSchema ? `
|
|
98578
|
-
,'presentationUnits', (
|
|
98579
|
-
SELECT json_group_array(js."value")
|
|
98580
|
-
FROM [meta].[KindOfQuantityDef] [koq1], json1.json_each([PresentationUnits]) js
|
|
98581
|
-
WHERE [koq1].[ECInstanceId] = [koq].[ECInstanceId]
|
|
98582
|
-
) ` : ""}
|
|
98583
|
-
) as [item]
|
|
98584
|
-
FROM
|
|
98585
|
-
[meta].[KindOfQuantityDef] [koq]
|
|
98586
|
-
${singleSchema ? `
|
|
98587
|
-
JOIN
|
|
98588
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [koq].[Schema].[Id]
|
|
98589
|
-
WHERE [schema].[Name] = :schemaName
|
|
98590
|
-
` : ""}
|
|
98567
|
+
const kindOfQuantity = (singleSchema) => `
|
|
98568
|
+
SELECT
|
|
98569
|
+
[koq].[Schema].[Id] AS [SchemaId],
|
|
98570
|
+
json_object (
|
|
98571
|
+
'schemaItemType', 'KindOfQuantity',
|
|
98572
|
+
'name', [koq].[Name],
|
|
98573
|
+
'label', [koq].[DisplayLabel],
|
|
98574
|
+
'description', [koq].[Description],
|
|
98575
|
+
'relativeError', [koq].[RelativeError],
|
|
98576
|
+
'persistenceUnit', [koq].[PersistenceUnit]
|
|
98577
|
+
${singleSchema ? `
|
|
98578
|
+
,'presentationUnits', (
|
|
98579
|
+
SELECT json_group_array(js."value")
|
|
98580
|
+
FROM [meta].[KindOfQuantityDef] [koq1], json1.json_each([PresentationUnits]) js
|
|
98581
|
+
WHERE [koq1].[ECInstanceId] = [koq].[ECInstanceId]
|
|
98582
|
+
) ` : ""}
|
|
98583
|
+
) as [item]
|
|
98584
|
+
FROM
|
|
98585
|
+
[meta].[KindOfQuantityDef] [koq]
|
|
98586
|
+
${singleSchema ? `
|
|
98587
|
+
JOIN
|
|
98588
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [koq].[Schema].[Id]
|
|
98589
|
+
WHERE [schema].[Name] = :schemaName
|
|
98590
|
+
` : ""}
|
|
98591
98591
|
`;
|
|
98592
98592
|
/**
|
|
98593
98593
|
* Query for SchemaItemType PropertyCategory data.
|
|
98594
98594
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98595
98595
|
*/
|
|
98596
|
-
const propertyCategory = (singleSchema) => `
|
|
98597
|
-
SELECT
|
|
98598
|
-
[pc].[Schema].[Id] AS [SchemaId],
|
|
98599
|
-
json_object (
|
|
98600
|
-
'schemaItemType', 'PropertyCategory',
|
|
98601
|
-
'name', [pc].[Name],
|
|
98602
|
-
'label', [pc].[DisplayLabel],
|
|
98603
|
-
'description', [pc].[Description],
|
|
98604
|
-
'priority', [pc].[Priority]
|
|
98605
|
-
) as [item]
|
|
98606
|
-
FROM
|
|
98607
|
-
[meta].[PropertyCategoryDef] [pc]
|
|
98608
|
-
${singleSchema ? `
|
|
98609
|
-
JOIN
|
|
98610
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pc].[Schema].[Id]
|
|
98611
|
-
WHERE [schema].[Name] = :schemaName
|
|
98612
|
-
` : ""}
|
|
98596
|
+
const propertyCategory = (singleSchema) => `
|
|
98597
|
+
SELECT
|
|
98598
|
+
[pc].[Schema].[Id] AS [SchemaId],
|
|
98599
|
+
json_object (
|
|
98600
|
+
'schemaItemType', 'PropertyCategory',
|
|
98601
|
+
'name', [pc].[Name],
|
|
98602
|
+
'label', [pc].[DisplayLabel],
|
|
98603
|
+
'description', [pc].[Description],
|
|
98604
|
+
'priority', [pc].[Priority]
|
|
98605
|
+
) as [item]
|
|
98606
|
+
FROM
|
|
98607
|
+
[meta].[PropertyCategoryDef] [pc]
|
|
98608
|
+
${singleSchema ? `
|
|
98609
|
+
JOIN
|
|
98610
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pc].[Schema].[Id]
|
|
98611
|
+
WHERE [schema].[Name] = :schemaName
|
|
98612
|
+
` : ""}
|
|
98613
98613
|
`;
|
|
98614
98614
|
/**
|
|
98615
98615
|
* Query for SchemaItemType Enumeration data.
|
|
98616
98616
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98617
98617
|
*/
|
|
98618
|
-
const enumeration = (singleSchema) => `
|
|
98619
|
-
SELECT
|
|
98620
|
-
[ed].[Schema].[Id] AS [SchemaId],
|
|
98621
|
-
json_object (
|
|
98622
|
-
'schemaItemType', 'Enumeration',
|
|
98623
|
-
'name', [ed].[Name],
|
|
98624
|
-
'label', [ed].[DisplayLabel],
|
|
98625
|
-
'description', [ed].[Description],
|
|
98626
|
-
'type', IIF([ed].[Type] = 1281, 'int', IIF([ed].[Type] = 2305, 'string', null)),
|
|
98627
|
-
'isStrict', IIF([ed].[IsStrict] = 1, json('true'), json('false')),
|
|
98628
|
-
'enumerators', (
|
|
98629
|
-
SELECT json_group_array(json(json_object(
|
|
98630
|
-
'name', json_extract(js."value", '$.Name'),
|
|
98631
|
-
'value', IFNULL(json_extract(js."value", '$.StringValue'), (json_extract(js."value", '$.IntValue'))),
|
|
98632
|
-
'label', json_extract(js."value", '$.DisplayLabel'),
|
|
98633
|
-
'description', json_extract(js."value", '$.Description')
|
|
98634
|
-
)))
|
|
98635
|
-
FROM [meta].[ECEnumerationDef] [enumerationDef], json1.json_each([EnumValues]) js
|
|
98636
|
-
WHERE [enumerationDef].[ECInstanceId] = [ed].[ECInstanceId]
|
|
98637
|
-
)
|
|
98638
|
-
) as [item]
|
|
98639
|
-
FROM
|
|
98640
|
-
[meta].[ECEnumerationDef] [ed]
|
|
98641
|
-
${singleSchema ? `
|
|
98642
|
-
JOIN
|
|
98643
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ed].[Schema].[Id]
|
|
98644
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98618
|
+
const enumeration = (singleSchema) => `
|
|
98619
|
+
SELECT
|
|
98620
|
+
[ed].[Schema].[Id] AS [SchemaId],
|
|
98621
|
+
json_object (
|
|
98622
|
+
'schemaItemType', 'Enumeration',
|
|
98623
|
+
'name', [ed].[Name],
|
|
98624
|
+
'label', [ed].[DisplayLabel],
|
|
98625
|
+
'description', [ed].[Description],
|
|
98626
|
+
'type', IIF([ed].[Type] = 1281, 'int', IIF([ed].[Type] = 2305, 'string', null)),
|
|
98627
|
+
'isStrict', IIF([ed].[IsStrict] = 1, json('true'), json('false')),
|
|
98628
|
+
'enumerators', (
|
|
98629
|
+
SELECT json_group_array(json(json_object(
|
|
98630
|
+
'name', json_extract(js."value", '$.Name'),
|
|
98631
|
+
'value', IFNULL(json_extract(js."value", '$.StringValue'), (json_extract(js."value", '$.IntValue'))),
|
|
98632
|
+
'label', json_extract(js."value", '$.DisplayLabel'),
|
|
98633
|
+
'description', json_extract(js."value", '$.Description')
|
|
98634
|
+
)))
|
|
98635
|
+
FROM [meta].[ECEnumerationDef] [enumerationDef], json1.json_each([EnumValues]) js
|
|
98636
|
+
WHERE [enumerationDef].[ECInstanceId] = [ed].[ECInstanceId]
|
|
98637
|
+
)
|
|
98638
|
+
) as [item]
|
|
98639
|
+
FROM
|
|
98640
|
+
[meta].[ECEnumerationDef] [ed]
|
|
98641
|
+
${singleSchema ? `
|
|
98642
|
+
JOIN
|
|
98643
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ed].[Schema].[Id]
|
|
98644
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98645
98645
|
`;
|
|
98646
98646
|
/**
|
|
98647
98647
|
* Query for SchemaItemType Unit data.
|
|
98648
98648
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98649
98649
|
*/
|
|
98650
|
-
const unit = (singleSchema) => `
|
|
98651
|
-
SELECT
|
|
98652
|
-
[ud].[Schema].[Id] AS [SchemaId],
|
|
98653
|
-
json_object (
|
|
98654
|
-
'schemaItemType', 'Unit',
|
|
98655
|
-
'name', [ud].[Name],
|
|
98656
|
-
'label', [ud].[DisplayLabel],
|
|
98657
|
-
'description', [ud].[Description],
|
|
98658
|
-
'definition', [ud].[Definition],
|
|
98659
|
-
'numerator', IIF([ud].[Numerator] IS NULL, NULL, json(format('%.16g', [ud].[Numerator]))),
|
|
98660
|
-
'denominator', IIF([ud].[Denominator] IS NULL, NULL, json(format('%.16g', [ud].[Denominator]))),
|
|
98661
|
-
'offset', IIF([ud].[Offset] IS NULL, NULL, json(format('%!.15f', [ud].[Offset]))),
|
|
98662
|
-
'unitSystem', CONCAT([uss].[Name],'.', [usd].[Name]),
|
|
98663
|
-
'phenomenon', CONCAT([ps].[Name],'.', [pd].[Name])
|
|
98664
|
-
) as item
|
|
98665
|
-
FROM
|
|
98666
|
-
[meta].[UnitDef] [ud]
|
|
98667
|
-
${singleSchema ? `
|
|
98668
|
-
JOIN
|
|
98669
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
98670
|
-
JOIN [meta].[UnitSystemDef] [usd]
|
|
98671
|
-
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
98672
|
-
JOIN [meta].[ECSchemaDef] [uss]
|
|
98673
|
-
ON [uss].[ECInstanceId] = [usd].[Schema].[Id]
|
|
98674
|
-
JOIN [meta].[PhenomenonDef] [pd]
|
|
98675
|
-
ON [pd].[ECInstanceId] = [ud].[Phenomenon].[Id]
|
|
98676
|
-
JOIN [meta].[ECSchemaDef] [ps]
|
|
98677
|
-
ON [ps].[ECInstanceId] = [pd].[Schema].[Id]
|
|
98678
|
-
WHERE
|
|
98679
|
-
${singleSchema ? `
|
|
98680
|
-
[schema].[Name] = :schemaName AND` : ""}
|
|
98681
|
-
[ud].[IsConstant] = 0 AND
|
|
98682
|
-
[ud].[InvertingUnit] IS NULL
|
|
98650
|
+
const unit = (singleSchema) => `
|
|
98651
|
+
SELECT
|
|
98652
|
+
[ud].[Schema].[Id] AS [SchemaId],
|
|
98653
|
+
json_object (
|
|
98654
|
+
'schemaItemType', 'Unit',
|
|
98655
|
+
'name', [ud].[Name],
|
|
98656
|
+
'label', [ud].[DisplayLabel],
|
|
98657
|
+
'description', [ud].[Description],
|
|
98658
|
+
'definition', [ud].[Definition],
|
|
98659
|
+
'numerator', IIF([ud].[Numerator] IS NULL, NULL, json(format('%.16g', [ud].[Numerator]))),
|
|
98660
|
+
'denominator', IIF([ud].[Denominator] IS NULL, NULL, json(format('%.16g', [ud].[Denominator]))),
|
|
98661
|
+
'offset', IIF([ud].[Offset] IS NULL, NULL, json(format('%!.15f', [ud].[Offset]))),
|
|
98662
|
+
'unitSystem', CONCAT([uss].[Name],'.', [usd].[Name]),
|
|
98663
|
+
'phenomenon', CONCAT([ps].[Name],'.', [pd].[Name])
|
|
98664
|
+
) as item
|
|
98665
|
+
FROM
|
|
98666
|
+
[meta].[UnitDef] [ud]
|
|
98667
|
+
${singleSchema ? `
|
|
98668
|
+
JOIN
|
|
98669
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
98670
|
+
JOIN [meta].[UnitSystemDef] [usd]
|
|
98671
|
+
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
98672
|
+
JOIN [meta].[ECSchemaDef] [uss]
|
|
98673
|
+
ON [uss].[ECInstanceId] = [usd].[Schema].[Id]
|
|
98674
|
+
JOIN [meta].[PhenomenonDef] [pd]
|
|
98675
|
+
ON [pd].[ECInstanceId] = [ud].[Phenomenon].[Id]
|
|
98676
|
+
JOIN [meta].[ECSchemaDef] [ps]
|
|
98677
|
+
ON [ps].[ECInstanceId] = [pd].[Schema].[Id]
|
|
98678
|
+
WHERE
|
|
98679
|
+
${singleSchema ? `
|
|
98680
|
+
[schema].[Name] = :schemaName AND` : ""}
|
|
98681
|
+
[ud].[IsConstant] = 0 AND
|
|
98682
|
+
[ud].[InvertingUnit] IS NULL
|
|
98683
98683
|
`;
|
|
98684
98684
|
/**
|
|
98685
98685
|
* Query for SchemaItemType InvertedUnit data.
|
|
98686
98686
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98687
98687
|
*/
|
|
98688
|
-
const invertedUnit = (singleSchema) => `
|
|
98689
|
-
SELECT
|
|
98690
|
-
[ud].[Schema].[Id] AS [SchemaId],
|
|
98691
|
-
json_object (
|
|
98692
|
-
'schemaItemType', 'InvertedUnit',
|
|
98693
|
-
'name', [ud].[Name],
|
|
98694
|
-
'label', [ud].[DisplayLabel],
|
|
98695
|
-
'description', [ud].[Description],
|
|
98696
|
-
'unitSystem', CONCAT([systemSchema].[Name],'.', [usd].[Name]),
|
|
98697
|
-
'invertsUnit', IIF([iud].[Name] IS NULL, null, CONCAT([ius].[Name],'.', [iud].[Name]))
|
|
98698
|
-
) as [item]
|
|
98699
|
-
FROM
|
|
98700
|
-
[meta].[UnitDef] [ud]
|
|
98701
|
-
${singleSchema ? `
|
|
98702
|
-
JOIN
|
|
98703
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
98704
|
-
JOIN [meta].[UnitSystemDef] [usd]
|
|
98705
|
-
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
98706
|
-
JOIN [meta].[ECSchemaDef] [systemSchema]
|
|
98707
|
-
ON [systemSchema].[ECInstanceId] = [usd].[Schema].[Id]
|
|
98708
|
-
LEFT JOIN [meta].[UnitDef] [iud]
|
|
98709
|
-
ON [iud].[ECInstanceId] = [ud].[InvertingUnit].[Id]
|
|
98710
|
-
LEFT JOIN [meta].[ECSchemaDef] [ius]
|
|
98711
|
-
ON [ius].[ECInstanceId] = [iud].[Schema].[Id]
|
|
98712
|
-
WHERE
|
|
98713
|
-
${singleSchema ? `
|
|
98714
|
-
[schema].[Name] = :schemaName AND` : ""}
|
|
98715
|
-
[ud].[IsConstant] = 0 AND
|
|
98716
|
-
[ud].[InvertingUnit] IS NOT NULL
|
|
98688
|
+
const invertedUnit = (singleSchema) => `
|
|
98689
|
+
SELECT
|
|
98690
|
+
[ud].[Schema].[Id] AS [SchemaId],
|
|
98691
|
+
json_object (
|
|
98692
|
+
'schemaItemType', 'InvertedUnit',
|
|
98693
|
+
'name', [ud].[Name],
|
|
98694
|
+
'label', [ud].[DisplayLabel],
|
|
98695
|
+
'description', [ud].[Description],
|
|
98696
|
+
'unitSystem', CONCAT([systemSchema].[Name],'.', [usd].[Name]),
|
|
98697
|
+
'invertsUnit', IIF([iud].[Name] IS NULL, null, CONCAT([ius].[Name],'.', [iud].[Name]))
|
|
98698
|
+
) as [item]
|
|
98699
|
+
FROM
|
|
98700
|
+
[meta].[UnitDef] [ud]
|
|
98701
|
+
${singleSchema ? `
|
|
98702
|
+
JOIN
|
|
98703
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
98704
|
+
JOIN [meta].[UnitSystemDef] [usd]
|
|
98705
|
+
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
98706
|
+
JOIN [meta].[ECSchemaDef] [systemSchema]
|
|
98707
|
+
ON [systemSchema].[ECInstanceId] = [usd].[Schema].[Id]
|
|
98708
|
+
LEFT JOIN [meta].[UnitDef] [iud]
|
|
98709
|
+
ON [iud].[ECInstanceId] = [ud].[InvertingUnit].[Id]
|
|
98710
|
+
LEFT JOIN [meta].[ECSchemaDef] [ius]
|
|
98711
|
+
ON [ius].[ECInstanceId] = [iud].[Schema].[Id]
|
|
98712
|
+
WHERE
|
|
98713
|
+
${singleSchema ? `
|
|
98714
|
+
[schema].[Name] = :schemaName AND` : ""}
|
|
98715
|
+
[ud].[IsConstant] = 0 AND
|
|
98716
|
+
[ud].[InvertingUnit] IS NOT NULL
|
|
98717
98717
|
`;
|
|
98718
98718
|
/**
|
|
98719
98719
|
* Query for SchemaItemType Constant data.
|
|
98720
98720
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98721
98721
|
*/
|
|
98722
|
-
const constant = (singleSchema) => `
|
|
98723
|
-
SELECT
|
|
98724
|
-
[cd].[Schema].[Id] AS [SchemaId],
|
|
98725
|
-
json_object(
|
|
98726
|
-
'schemaItemType', 'Constant',
|
|
98727
|
-
'name', [cd].[Name],
|
|
98728
|
-
'label', [cd].[DisplayLabel],
|
|
98729
|
-
'description', [cd].[Description],
|
|
98730
|
-
'definition', [cd].[Definition],
|
|
98731
|
-
'numerator', IIF([cd].[Numerator] IS NULL, NULL, json(format('%.16g', [cd].[Numerator]))),
|
|
98732
|
-
'denominator', IIF([cd].[Denominator] IS NULL, NULL, json(format('%.16g', [cd].[Denominator]))),
|
|
98733
|
-
'phenomenon', CONCAT([phenomSchema].[Name],'.', [phenomDef].[Name])
|
|
98734
|
-
) as item
|
|
98735
|
-
FROM
|
|
98736
|
-
[meta].[UnitDef] [cd]
|
|
98737
|
-
${singleSchema ? `
|
|
98738
|
-
JOIN
|
|
98739
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [cd].[Schema].[Id]` : ""}
|
|
98740
|
-
JOIN [meta].[PhenomenonDef] [phenomDef]
|
|
98741
|
-
ON [phenomDef].[ECInstanceId] = [cd].[Phenomenon].[Id]
|
|
98742
|
-
JOIN [meta].[ECSchemaDef] [phenomSchema]
|
|
98743
|
-
ON [phenomSchema].[ECInstanceId] = [phenomDef].[Schema].[Id]
|
|
98744
|
-
WHERE
|
|
98745
|
-
${singleSchema ? `
|
|
98746
|
-
[schema].[Name] = :schemaName AND` : ""}
|
|
98747
|
-
[cd].[IsConstant] = 1
|
|
98722
|
+
const constant = (singleSchema) => `
|
|
98723
|
+
SELECT
|
|
98724
|
+
[cd].[Schema].[Id] AS [SchemaId],
|
|
98725
|
+
json_object(
|
|
98726
|
+
'schemaItemType', 'Constant',
|
|
98727
|
+
'name', [cd].[Name],
|
|
98728
|
+
'label', [cd].[DisplayLabel],
|
|
98729
|
+
'description', [cd].[Description],
|
|
98730
|
+
'definition', [cd].[Definition],
|
|
98731
|
+
'numerator', IIF([cd].[Numerator] IS NULL, NULL, json(format('%.16g', [cd].[Numerator]))),
|
|
98732
|
+
'denominator', IIF([cd].[Denominator] IS NULL, NULL, json(format('%.16g', [cd].[Denominator]))),
|
|
98733
|
+
'phenomenon', CONCAT([phenomSchema].[Name],'.', [phenomDef].[Name])
|
|
98734
|
+
) as item
|
|
98735
|
+
FROM
|
|
98736
|
+
[meta].[UnitDef] [cd]
|
|
98737
|
+
${singleSchema ? `
|
|
98738
|
+
JOIN
|
|
98739
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [cd].[Schema].[Id]` : ""}
|
|
98740
|
+
JOIN [meta].[PhenomenonDef] [phenomDef]
|
|
98741
|
+
ON [phenomDef].[ECInstanceId] = [cd].[Phenomenon].[Id]
|
|
98742
|
+
JOIN [meta].[ECSchemaDef] [phenomSchema]
|
|
98743
|
+
ON [phenomSchema].[ECInstanceId] = [phenomDef].[Schema].[Id]
|
|
98744
|
+
WHERE
|
|
98745
|
+
${singleSchema ? `
|
|
98746
|
+
[schema].[Name] = :schemaName AND` : ""}
|
|
98747
|
+
[cd].[IsConstant] = 1
|
|
98748
98748
|
`;
|
|
98749
98749
|
/**
|
|
98750
98750
|
* Query for SchemaItemType UnitSystem data.
|
|
98751
98751
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98752
98752
|
*/
|
|
98753
|
-
const unitSystem = (singleSchema) => `
|
|
98754
|
-
SELECT
|
|
98755
|
-
[us].[Schema].[Id] AS [SchemaId],
|
|
98756
|
-
json_object (
|
|
98757
|
-
'schemaItemType', 'UnitSystem',
|
|
98758
|
-
'name', [us].[Name],
|
|
98759
|
-
'label', [us].[DisplayLabel],
|
|
98760
|
-
'description', [us].[Description]
|
|
98761
|
-
) as [item]
|
|
98762
|
-
FROM
|
|
98763
|
-
[meta].[UnitSystemDef] [us]
|
|
98764
|
-
${singleSchema ? `
|
|
98765
|
-
JOIN
|
|
98766
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [us].[Schema].[Id]
|
|
98767
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98753
|
+
const unitSystem = (singleSchema) => `
|
|
98754
|
+
SELECT
|
|
98755
|
+
[us].[Schema].[Id] AS [SchemaId],
|
|
98756
|
+
json_object (
|
|
98757
|
+
'schemaItemType', 'UnitSystem',
|
|
98758
|
+
'name', [us].[Name],
|
|
98759
|
+
'label', [us].[DisplayLabel],
|
|
98760
|
+
'description', [us].[Description]
|
|
98761
|
+
) as [item]
|
|
98762
|
+
FROM
|
|
98763
|
+
[meta].[UnitSystemDef] [us]
|
|
98764
|
+
${singleSchema ? `
|
|
98765
|
+
JOIN
|
|
98766
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [us].[Schema].[Id]
|
|
98767
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98768
98768
|
`;
|
|
98769
98769
|
/**
|
|
98770
98770
|
* Query for SchemaItemType Phenomenon data.
|
|
98771
98771
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98772
98772
|
*/
|
|
98773
|
-
const phenomenon = (singleSchema) => `
|
|
98774
|
-
SELECT
|
|
98775
|
-
[pd].[Schema].[Id] AS [SchemaId],
|
|
98776
|
-
json_object(
|
|
98777
|
-
'schemaItemType', 'Phenomenon',
|
|
98778
|
-
'name', [pd].[Name],
|
|
98779
|
-
'label', [pd].[DisplayLabel],
|
|
98780
|
-
'description', [pd].[Description],
|
|
98781
|
-
'definition', [pd].[Definition]
|
|
98782
|
-
) as [item]
|
|
98783
|
-
FROM
|
|
98784
|
-
[meta].[PhenomenonDef] [pd]
|
|
98785
|
-
${singleSchema ? `
|
|
98786
|
-
JOIN
|
|
98787
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pd].[Schema].[Id]
|
|
98788
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98773
|
+
const phenomenon = (singleSchema) => `
|
|
98774
|
+
SELECT
|
|
98775
|
+
[pd].[Schema].[Id] AS [SchemaId],
|
|
98776
|
+
json_object(
|
|
98777
|
+
'schemaItemType', 'Phenomenon',
|
|
98778
|
+
'name', [pd].[Name],
|
|
98779
|
+
'label', [pd].[DisplayLabel],
|
|
98780
|
+
'description', [pd].[Description],
|
|
98781
|
+
'definition', [pd].[Definition]
|
|
98782
|
+
) as [item]
|
|
98783
|
+
FROM
|
|
98784
|
+
[meta].[PhenomenonDef] [pd]
|
|
98785
|
+
${singleSchema ? `
|
|
98786
|
+
JOIN
|
|
98787
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pd].[Schema].[Id]
|
|
98788
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98789
98789
|
`;
|
|
98790
98790
|
/**
|
|
98791
98791
|
* Query for SchemaItemType Format data.
|
|
98792
98792
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
98793
98793
|
*/
|
|
98794
|
-
const format = (singleSchema) => `
|
|
98795
|
-
SELECT
|
|
98796
|
-
[fd].[Schema].[Id] AS [SchemaId],
|
|
98797
|
-
json_object(
|
|
98798
|
-
'schemaItemType', 'Format',
|
|
98799
|
-
'name', [fd].[Name],
|
|
98800
|
-
'label', [fd].[DisplayLabel],
|
|
98801
|
-
'description', [fd].[Description],
|
|
98802
|
-
'type', json_extract([fd].[NumericSpec], '$.type'),
|
|
98803
|
-
'precision', json_extract([fd].[NumericSpec], '$.precision'),
|
|
98804
|
-
'roundFactor', json_extract([fd].[NumericSpec], '$.roundFactor'),
|
|
98805
|
-
'minWidth', json_extract([fd].[NumericSpec], '$.minWidth'),
|
|
98806
|
-
'showSignOption', json_extract([fd].[NumericSpec], '$.showSignOption'),
|
|
98807
|
-
'decimalSeparator', json_extract([fd].[NumericSpec], '$.decimalSeparator'),
|
|
98808
|
-
'thousandSeparator', json_extract([fd].[NumericSpec], '$.thousandSeparator'),
|
|
98809
|
-
'uomSeparator', json_extract([fd].[NumericSpec], '$.uomSeparator'),
|
|
98810
|
-
'scientificType', json_extract([fd].[NumericSpec], '$.scientificType'),
|
|
98811
|
-
'stationOffsetSize', json_extract([fd].[NumericSpec], '$.stationOffsetSize'),
|
|
98812
|
-
'stationSeparator', json_extract([fd].[NumericSpec], '$.stationSeparator'),
|
|
98813
|
-
'formatTraits', json_extract([fd].[NumericSpec], '$.formatTraits')
|
|
98814
|
-
${singleSchema ? `
|
|
98815
|
-
,'composite', (
|
|
98816
|
-
SELECT
|
|
98817
|
-
json_object(
|
|
98818
|
-
'spacer', json_extract([fd1].[CompositeSpec], '$.spacer'),
|
|
98819
|
-
'includeZero', json(IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 1, 'true', IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 0, 'false', null))),
|
|
98820
|
-
'units', (
|
|
98821
|
-
SELECT json_group_array(json(json_object(
|
|
98822
|
-
'name', CONCAT([sd].[Name], '.', [ud].[Name]),
|
|
98823
|
-
'label', [fud].[Label]
|
|
98824
|
-
)))
|
|
98825
|
-
FROM [meta].[FormatDef] [fd2]
|
|
98826
|
-
LEFT JOIN [meta].[FormatCompositeUnitDef] [fud] ON [fud].[Format].[Id] = [fd2].[ECInstanceId]
|
|
98827
|
-
LEFT JOIN [meta].[UnitDef] [ud] ON [ud].[ECInstanceId] = [fud].[Unit].[Id]
|
|
98828
|
-
INNER JOIN [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [ud].[Schema].[Id]
|
|
98829
|
-
WHERE [fd2].[ECInstanceId] = [fd1].[ECInstanceId]
|
|
98830
|
-
)
|
|
98831
|
-
)
|
|
98832
|
-
FROM [meta].[FormatDef] [fd1]
|
|
98833
|
-
WHERE [fd1].[ECInstanceId]= [fd].[ECInstanceId] AND [fd1].[CompositeSpec] IS NOT NULL
|
|
98834
|
-
)` : ""}
|
|
98835
|
-
) AS item
|
|
98836
|
-
FROM
|
|
98837
|
-
[meta].[FormatDef] [fd]
|
|
98838
|
-
${singleSchema ? `
|
|
98839
|
-
JOIN
|
|
98840
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [fd].[Schema].[Id]
|
|
98841
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98794
|
+
const format = (singleSchema) => `
|
|
98795
|
+
SELECT
|
|
98796
|
+
[fd].[Schema].[Id] AS [SchemaId],
|
|
98797
|
+
json_object(
|
|
98798
|
+
'schemaItemType', 'Format',
|
|
98799
|
+
'name', [fd].[Name],
|
|
98800
|
+
'label', [fd].[DisplayLabel],
|
|
98801
|
+
'description', [fd].[Description],
|
|
98802
|
+
'type', json_extract([fd].[NumericSpec], '$.type'),
|
|
98803
|
+
'precision', json_extract([fd].[NumericSpec], '$.precision'),
|
|
98804
|
+
'roundFactor', json_extract([fd].[NumericSpec], '$.roundFactor'),
|
|
98805
|
+
'minWidth', json_extract([fd].[NumericSpec], '$.minWidth'),
|
|
98806
|
+
'showSignOption', json_extract([fd].[NumericSpec], '$.showSignOption'),
|
|
98807
|
+
'decimalSeparator', json_extract([fd].[NumericSpec], '$.decimalSeparator'),
|
|
98808
|
+
'thousandSeparator', json_extract([fd].[NumericSpec], '$.thousandSeparator'),
|
|
98809
|
+
'uomSeparator', json_extract([fd].[NumericSpec], '$.uomSeparator'),
|
|
98810
|
+
'scientificType', json_extract([fd].[NumericSpec], '$.scientificType'),
|
|
98811
|
+
'stationOffsetSize', json_extract([fd].[NumericSpec], '$.stationOffsetSize'),
|
|
98812
|
+
'stationSeparator', json_extract([fd].[NumericSpec], '$.stationSeparator'),
|
|
98813
|
+
'formatTraits', json_extract([fd].[NumericSpec], '$.formatTraits')
|
|
98814
|
+
${singleSchema ? `
|
|
98815
|
+
,'composite', (
|
|
98816
|
+
SELECT
|
|
98817
|
+
json_object(
|
|
98818
|
+
'spacer', json_extract([fd1].[CompositeSpec], '$.spacer'),
|
|
98819
|
+
'includeZero', json(IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 1, 'true', IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 0, 'false', null))),
|
|
98820
|
+
'units', (
|
|
98821
|
+
SELECT json_group_array(json(json_object(
|
|
98822
|
+
'name', CONCAT([sd].[Name], '.', [ud].[Name]),
|
|
98823
|
+
'label', [fud].[Label]
|
|
98824
|
+
)))
|
|
98825
|
+
FROM [meta].[FormatDef] [fd2]
|
|
98826
|
+
LEFT JOIN [meta].[FormatCompositeUnitDef] [fud] ON [fud].[Format].[Id] = [fd2].[ECInstanceId]
|
|
98827
|
+
LEFT JOIN [meta].[UnitDef] [ud] ON [ud].[ECInstanceId] = [fud].[Unit].[Id]
|
|
98828
|
+
INNER JOIN [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [ud].[Schema].[Id]
|
|
98829
|
+
WHERE [fd2].[ECInstanceId] = [fd1].[ECInstanceId]
|
|
98830
|
+
)
|
|
98831
|
+
)
|
|
98832
|
+
FROM [meta].[FormatDef] [fd1]
|
|
98833
|
+
WHERE [fd1].[ECInstanceId]= [fd].[ECInstanceId] AND [fd1].[CompositeSpec] IS NOT NULL
|
|
98834
|
+
)` : ""}
|
|
98835
|
+
) AS item
|
|
98836
|
+
FROM
|
|
98837
|
+
[meta].[FormatDef] [fd]
|
|
98838
|
+
${singleSchema ? `
|
|
98839
|
+
JOIN
|
|
98840
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [fd].[Schema].[Id]
|
|
98841
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
98842
98842
|
`;
|
|
98843
98843
|
/**
|
|
98844
98844
|
* Queries for each SchemaItemType
|
|
@@ -99004,332 +99004,332 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
99004
99004
|
*--------------------------------------------------------------------------------------------*/
|
|
99005
99005
|
|
|
99006
99006
|
const modifier = (alias) => {
|
|
99007
|
-
return `
|
|
99008
|
-
CASE
|
|
99009
|
-
WHEN [${alias}].[modifier] = 0 THEN 'None'
|
|
99010
|
-
WHEN [${alias}].[modifier] = 1 THEN 'Abstract'
|
|
99011
|
-
WHEN [${alias}].[modifier] = 2 THEN 'Sealed'
|
|
99012
|
-
ELSE NULL
|
|
99013
|
-
END
|
|
99007
|
+
return `
|
|
99008
|
+
CASE
|
|
99009
|
+
WHEN [${alias}].[modifier] = 0 THEN 'None'
|
|
99010
|
+
WHEN [${alias}].[modifier] = 1 THEN 'Abstract'
|
|
99011
|
+
WHEN [${alias}].[modifier] = 2 THEN 'Sealed'
|
|
99012
|
+
ELSE NULL
|
|
99013
|
+
END
|
|
99014
99014
|
`;
|
|
99015
99015
|
};
|
|
99016
99016
|
const strength = (alias) => {
|
|
99017
|
-
return `
|
|
99018
|
-
CASE
|
|
99019
|
-
WHEN [${alias}].[RelationshipStrength] = 0 THEN 'Referencing'
|
|
99020
|
-
WHEN [${alias}].[RelationshipStrength] = 1 THEN 'Holding'
|
|
99021
|
-
WHEN [${alias}].[RelationshipStrength] = 2 THEN 'Embedding'
|
|
99022
|
-
ELSE NULL
|
|
99023
|
-
END
|
|
99017
|
+
return `
|
|
99018
|
+
CASE
|
|
99019
|
+
WHEN [${alias}].[RelationshipStrength] = 0 THEN 'Referencing'
|
|
99020
|
+
WHEN [${alias}].[RelationshipStrength] = 1 THEN 'Holding'
|
|
99021
|
+
WHEN [${alias}].[RelationshipStrength] = 2 THEN 'Embedding'
|
|
99022
|
+
ELSE NULL
|
|
99023
|
+
END
|
|
99024
99024
|
`;
|
|
99025
99025
|
};
|
|
99026
99026
|
const strengthDirection = (alias) => {
|
|
99027
|
-
return `
|
|
99028
|
-
CASE
|
|
99029
|
-
WHEN [${alias}].[RelationshipStrengthDirection] = 1 THEN 'Forward'
|
|
99030
|
-
WHEN [${alias}].[RelationshipStrengthDirection] = 2 THEN 'Backward'
|
|
99031
|
-
ELSE NULL
|
|
99032
|
-
END
|
|
99027
|
+
return `
|
|
99028
|
+
CASE
|
|
99029
|
+
WHEN [${alias}].[RelationshipStrengthDirection] = 1 THEN 'Forward'
|
|
99030
|
+
WHEN [${alias}].[RelationshipStrengthDirection] = 2 THEN 'Backward'
|
|
99031
|
+
ELSE NULL
|
|
99032
|
+
END
|
|
99033
99033
|
`;
|
|
99034
99034
|
};
|
|
99035
|
-
const withAppliesTo = `
|
|
99036
|
-
AppliesToCTE AS (
|
|
99037
|
-
SELECT
|
|
99038
|
-
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
99039
|
-
[appliesToSchema].[name] as [AppliesToSchema],
|
|
99040
|
-
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
99041
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
99042
|
-
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
99043
|
-
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
99044
|
-
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
99045
|
-
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
99046
|
-
WHERE [ca].[ContainerType] = 30
|
|
99047
|
-
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
99048
|
-
)
|
|
99035
|
+
const withAppliesTo = `
|
|
99036
|
+
AppliesToCTE AS (
|
|
99037
|
+
SELECT
|
|
99038
|
+
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
99039
|
+
[appliesToSchema].[name] as [AppliesToSchema],
|
|
99040
|
+
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
99041
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
99042
|
+
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
99043
|
+
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
99044
|
+
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
99045
|
+
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
99046
|
+
WHERE [ca].[ContainerType] = 30
|
|
99047
|
+
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
99048
|
+
)
|
|
99049
99049
|
`;
|
|
99050
|
-
const withSchemaReferences = `
|
|
99051
|
-
SchemaReferences AS (
|
|
99052
|
-
SELECT
|
|
99053
|
-
[ref].[SourceECInstanceId] AS [SchemaId],
|
|
99054
|
-
CONCAT([Name],'.',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [fullName]
|
|
99055
|
-
FROM
|
|
99056
|
-
[meta].[ECSchemaDef] AS [refSchema]
|
|
99057
|
-
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
99058
|
-
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
99059
|
-
)
|
|
99050
|
+
const withSchemaReferences = `
|
|
99051
|
+
SchemaReferences AS (
|
|
99052
|
+
SELECT
|
|
99053
|
+
[ref].[SourceECInstanceId] AS [SchemaId],
|
|
99054
|
+
CONCAT([Name],'.',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [fullName]
|
|
99055
|
+
FROM
|
|
99056
|
+
[meta].[ECSchemaDef] AS [refSchema]
|
|
99057
|
+
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
99058
|
+
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
99059
|
+
)
|
|
99060
99060
|
`;
|
|
99061
|
-
const customAttributeQuery = `
|
|
99062
|
-
SELECT
|
|
99063
|
-
[Schema].[Id] AS [SchemaId],
|
|
99064
|
-
json_object(
|
|
99065
|
-
'name', [class].[Name],
|
|
99066
|
-
'schemaItemType', 'CustomAttributeClass',
|
|
99067
|
-
'modifier', ${modifier("class")},
|
|
99068
|
-
'label', [class].[DisplayLabel],
|
|
99069
|
-
'description', [class].[Description],
|
|
99070
|
-
'appliesTo', [class].[CustomAttributeContainerType],
|
|
99071
|
-
'baseClasses', (
|
|
99072
|
-
SELECT
|
|
99073
|
-
json_group_array(json(json_object(
|
|
99074
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99075
|
-
'name', [baseClass].[Name],
|
|
99076
|
-
'schemaItemType', 'CustomAttributeClass',
|
|
99077
|
-
'modifier', ${modifier("baseClass")},
|
|
99078
|
-
'label', [baseClass].[DisplayLabel],
|
|
99079
|
-
'description', [baseClass].[Description],
|
|
99080
|
-
'appliesTo', [baseClass].[CustomAttributeContainerType]
|
|
99081
|
-
)))
|
|
99082
|
-
FROM
|
|
99083
|
-
[meta].[ECClassDef] [baseClass]
|
|
99084
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99085
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99086
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99087
|
-
)
|
|
99088
|
-
) AS [item]
|
|
99089
|
-
FROM [meta].[ECClassDef] [class]
|
|
99090
|
-
WHERE [class].[Type] = 3
|
|
99061
|
+
const customAttributeQuery = `
|
|
99062
|
+
SELECT
|
|
99063
|
+
[Schema].[Id] AS [SchemaId],
|
|
99064
|
+
json_object(
|
|
99065
|
+
'name', [class].[Name],
|
|
99066
|
+
'schemaItemType', 'CustomAttributeClass',
|
|
99067
|
+
'modifier', ${modifier("class")},
|
|
99068
|
+
'label', [class].[DisplayLabel],
|
|
99069
|
+
'description', [class].[Description],
|
|
99070
|
+
'appliesTo', [class].[CustomAttributeContainerType],
|
|
99071
|
+
'baseClasses', (
|
|
99072
|
+
SELECT
|
|
99073
|
+
json_group_array(json(json_object(
|
|
99074
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99075
|
+
'name', [baseClass].[Name],
|
|
99076
|
+
'schemaItemType', 'CustomAttributeClass',
|
|
99077
|
+
'modifier', ${modifier("baseClass")},
|
|
99078
|
+
'label', [baseClass].[DisplayLabel],
|
|
99079
|
+
'description', [baseClass].[Description],
|
|
99080
|
+
'appliesTo', [baseClass].[CustomAttributeContainerType]
|
|
99081
|
+
)))
|
|
99082
|
+
FROM
|
|
99083
|
+
[meta].[ECClassDef] [baseClass]
|
|
99084
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99085
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99086
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99087
|
+
)
|
|
99088
|
+
) AS [item]
|
|
99089
|
+
FROM [meta].[ECClassDef] [class]
|
|
99090
|
+
WHERE [class].[Type] = 3
|
|
99091
99091
|
`;
|
|
99092
|
-
const structQuery = `
|
|
99093
|
-
SELECT
|
|
99094
|
-
[Schema].[Id] AS [SchemaId],
|
|
99095
|
-
json_object(
|
|
99096
|
-
'name', [class].[Name],
|
|
99097
|
-
'schemaItemType', 'StructClass',
|
|
99098
|
-
'modifier', ${modifier("class")},
|
|
99099
|
-
'label', [class].[DisplayLabel],
|
|
99100
|
-
'description', [class].[Description],
|
|
99101
|
-
'baseClasses', (
|
|
99102
|
-
SELECT
|
|
99103
|
-
json_group_array(json(json_object(
|
|
99104
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99105
|
-
'name', [baseClass].[Name],
|
|
99106
|
-
'schemaItemType', 'StructClass',
|
|
99107
|
-
'modifier', ${modifier("baseClass")},
|
|
99108
|
-
'label', [baseClass].[DisplayLabel],
|
|
99109
|
-
'description', [baseClass].[Description]
|
|
99110
|
-
)))
|
|
99111
|
-
FROM
|
|
99112
|
-
[meta].[ECClassDef] [baseClass]
|
|
99113
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99114
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99115
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99116
|
-
)
|
|
99117
|
-
) AS [item]
|
|
99118
|
-
FROM [meta].[ECClassDef] [class]
|
|
99119
|
-
WHERE [class].[Type] = 2
|
|
99092
|
+
const structQuery = `
|
|
99093
|
+
SELECT
|
|
99094
|
+
[Schema].[Id] AS [SchemaId],
|
|
99095
|
+
json_object(
|
|
99096
|
+
'name', [class].[Name],
|
|
99097
|
+
'schemaItemType', 'StructClass',
|
|
99098
|
+
'modifier', ${modifier("class")},
|
|
99099
|
+
'label', [class].[DisplayLabel],
|
|
99100
|
+
'description', [class].[Description],
|
|
99101
|
+
'baseClasses', (
|
|
99102
|
+
SELECT
|
|
99103
|
+
json_group_array(json(json_object(
|
|
99104
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99105
|
+
'name', [baseClass].[Name],
|
|
99106
|
+
'schemaItemType', 'StructClass',
|
|
99107
|
+
'modifier', ${modifier("baseClass")},
|
|
99108
|
+
'label', [baseClass].[DisplayLabel],
|
|
99109
|
+
'description', [baseClass].[Description]
|
|
99110
|
+
)))
|
|
99111
|
+
FROM
|
|
99112
|
+
[meta].[ECClassDef] [baseClass]
|
|
99113
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99114
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99115
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99116
|
+
)
|
|
99117
|
+
) AS [item]
|
|
99118
|
+
FROM [meta].[ECClassDef] [class]
|
|
99119
|
+
WHERE [class].[Type] = 2
|
|
99120
99120
|
`;
|
|
99121
|
-
const relationshipQuery = `
|
|
99122
|
-
SELECT
|
|
99123
|
-
[Schema].[Id] AS [SchemaId],
|
|
99124
|
-
json_object(
|
|
99125
|
-
'name', [class].[Name],
|
|
99126
|
-
'schemaItemType', 'RelationshipClass',
|
|
99127
|
-
'modifier', ${modifier("class")},
|
|
99128
|
-
'label', [class].[DisplayLabel],
|
|
99129
|
-
'description', [class].[Description],
|
|
99130
|
-
'strength', ${strength("class")},
|
|
99131
|
-
'strengthDirection', ${strengthDirection("class")},
|
|
99132
|
-
'baseClasses', (
|
|
99133
|
-
SELECT
|
|
99134
|
-
json_group_array(json(json_object(
|
|
99135
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99136
|
-
'name', [baseClass].[Name],
|
|
99137
|
-
'schemaItemType', 'RelationshipClass',
|
|
99138
|
-
'modifier', ${modifier("baseClass")},
|
|
99139
|
-
'label', [baseClass].[DisplayLabel],
|
|
99140
|
-
'description', [baseClass].[Description],
|
|
99141
|
-
'strength', ${strength("baseClass")},
|
|
99142
|
-
'strengthDirection', ${strengthDirection("baseClass")}
|
|
99143
|
-
)))
|
|
99144
|
-
FROM
|
|
99145
|
-
[meta].[ECClassDef] [baseClass]
|
|
99146
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99147
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99148
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99149
|
-
)
|
|
99150
|
-
) AS [item]
|
|
99151
|
-
FROM [meta].[ECClassDef] [class]
|
|
99152
|
-
WHERE [class].[Type] = 1
|
|
99121
|
+
const relationshipQuery = `
|
|
99122
|
+
SELECT
|
|
99123
|
+
[Schema].[Id] AS [SchemaId],
|
|
99124
|
+
json_object(
|
|
99125
|
+
'name', [class].[Name],
|
|
99126
|
+
'schemaItemType', 'RelationshipClass',
|
|
99127
|
+
'modifier', ${modifier("class")},
|
|
99128
|
+
'label', [class].[DisplayLabel],
|
|
99129
|
+
'description', [class].[Description],
|
|
99130
|
+
'strength', ${strength("class")},
|
|
99131
|
+
'strengthDirection', ${strengthDirection("class")},
|
|
99132
|
+
'baseClasses', (
|
|
99133
|
+
SELECT
|
|
99134
|
+
json_group_array(json(json_object(
|
|
99135
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99136
|
+
'name', [baseClass].[Name],
|
|
99137
|
+
'schemaItemType', 'RelationshipClass',
|
|
99138
|
+
'modifier', ${modifier("baseClass")},
|
|
99139
|
+
'label', [baseClass].[DisplayLabel],
|
|
99140
|
+
'description', [baseClass].[Description],
|
|
99141
|
+
'strength', ${strength("baseClass")},
|
|
99142
|
+
'strengthDirection', ${strengthDirection("baseClass")}
|
|
99143
|
+
)))
|
|
99144
|
+
FROM
|
|
99145
|
+
[meta].[ECClassDef] [baseClass]
|
|
99146
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99147
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99148
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99149
|
+
)
|
|
99150
|
+
) AS [item]
|
|
99151
|
+
FROM [meta].[ECClassDef] [class]
|
|
99152
|
+
WHERE [class].[Type] = 1
|
|
99153
99153
|
`;
|
|
99154
|
-
const entityQuery = `
|
|
99155
|
-
SELECT
|
|
99156
|
-
[Schema].[Id] AS [SchemaId],
|
|
99157
|
-
json_object(
|
|
99158
|
-
'name', [class].[Name],
|
|
99159
|
-
'schemaItemType', 'EntityClass',
|
|
99160
|
-
'modifier', ${modifier("class")},
|
|
99161
|
-
'label', [class].[DisplayLabel],
|
|
99162
|
-
'description', [class].[Description],
|
|
99163
|
-
'baseClasses', (
|
|
99164
|
-
SELECT
|
|
99165
|
-
json_group_array(json(json_object(
|
|
99166
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99167
|
-
'name', [baseClass].[Name],
|
|
99168
|
-
'schemaItemType', 'EntityClass',
|
|
99169
|
-
'modifier', ${modifier("baseClass")},
|
|
99170
|
-
'label', [baseClass].[DisplayLabel],
|
|
99171
|
-
'description', [baseClass].[Description]
|
|
99172
|
-
)))
|
|
99173
|
-
FROM
|
|
99174
|
-
[meta].[ECClassDef] [baseClass]
|
|
99175
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99176
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99177
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99178
|
-
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
99179
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99180
|
-
),
|
|
99181
|
-
'mixins', (
|
|
99182
|
-
SELECT
|
|
99183
|
-
json_group_array(json(json_object(
|
|
99184
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99185
|
-
'name', [baseClass].[Name],
|
|
99186
|
-
'schemaItemType', 'Mixin',
|
|
99187
|
-
'modifier', ${modifier("baseClass")},
|
|
99188
|
-
'label', [baseClass].[DisplayLabel],
|
|
99189
|
-
'description', [baseClass].[Description],
|
|
99190
|
-
'appliesTo', (
|
|
99191
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99192
|
-
FROM [AppliesToCTE] [atCTE]
|
|
99193
|
-
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
99194
|
-
),
|
|
99195
|
-
'baseClasses', (
|
|
99196
|
-
SELECT
|
|
99197
|
-
json_group_array(json(json_object(
|
|
99198
|
-
'schema', ec_classname([mixinBaseClass].[ECInstanceId], 's'),
|
|
99199
|
-
'name', [mixinBaseClass].[Name],
|
|
99200
|
-
'schemaItemType', 'Mixin',
|
|
99201
|
-
'modifier', ${modifier("mixinBaseClass")},
|
|
99202
|
-
'label', [mixinBaseClass].[DisplayLabel],
|
|
99203
|
-
'description', [mixinBaseClass].[Description],
|
|
99204
|
-
'appliesTo', (
|
|
99205
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99206
|
-
FROM [AppliesToCTE] [atCTE]
|
|
99207
|
-
WHERE [atCTE].[AppliesToId] = [mixinBaseClass].[ECInstanceId]
|
|
99208
|
-
)
|
|
99209
|
-
)))
|
|
99210
|
-
FROM
|
|
99211
|
-
[meta].[ECClassDef] [mixinBaseClass]
|
|
99212
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [mixinBaseClassMap]
|
|
99213
|
-
ON [mixinBaseClassMap].[TargetECInstanceId] = [mixinBaseClass].[ECInstanceId]
|
|
99214
|
-
WHERE [mixinBaseClassMap].[SourceECInstanceId] = [baseClass].[ECInstanceId]
|
|
99215
|
-
)
|
|
99216
|
-
)))
|
|
99217
|
-
FROM
|
|
99218
|
-
[meta].[ECClassDef] [baseClass]
|
|
99219
|
-
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
99220
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99221
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99222
|
-
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
99223
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99224
|
-
)
|
|
99225
|
-
) AS [item]
|
|
99226
|
-
FROM [meta].[ECClassDef] [class]
|
|
99227
|
-
WHERE [class].[Type] = 0
|
|
99228
|
-
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
99229
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99154
|
+
const entityQuery = `
|
|
99155
|
+
SELECT
|
|
99156
|
+
[Schema].[Id] AS [SchemaId],
|
|
99157
|
+
json_object(
|
|
99158
|
+
'name', [class].[Name],
|
|
99159
|
+
'schemaItemType', 'EntityClass',
|
|
99160
|
+
'modifier', ${modifier("class")},
|
|
99161
|
+
'label', [class].[DisplayLabel],
|
|
99162
|
+
'description', [class].[Description],
|
|
99163
|
+
'baseClasses', (
|
|
99164
|
+
SELECT
|
|
99165
|
+
json_group_array(json(json_object(
|
|
99166
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99167
|
+
'name', [baseClass].[Name],
|
|
99168
|
+
'schemaItemType', 'EntityClass',
|
|
99169
|
+
'modifier', ${modifier("baseClass")},
|
|
99170
|
+
'label', [baseClass].[DisplayLabel],
|
|
99171
|
+
'description', [baseClass].[Description]
|
|
99172
|
+
)))
|
|
99173
|
+
FROM
|
|
99174
|
+
[meta].[ECClassDef] [baseClass]
|
|
99175
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99176
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99177
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99178
|
+
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
99179
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99180
|
+
),
|
|
99181
|
+
'mixins', (
|
|
99182
|
+
SELECT
|
|
99183
|
+
json_group_array(json(json_object(
|
|
99184
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99185
|
+
'name', [baseClass].[Name],
|
|
99186
|
+
'schemaItemType', 'Mixin',
|
|
99187
|
+
'modifier', ${modifier("baseClass")},
|
|
99188
|
+
'label', [baseClass].[DisplayLabel],
|
|
99189
|
+
'description', [baseClass].[Description],
|
|
99190
|
+
'appliesTo', (
|
|
99191
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99192
|
+
FROM [AppliesToCTE] [atCTE]
|
|
99193
|
+
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
99194
|
+
),
|
|
99195
|
+
'baseClasses', (
|
|
99196
|
+
SELECT
|
|
99197
|
+
json_group_array(json(json_object(
|
|
99198
|
+
'schema', ec_classname([mixinBaseClass].[ECInstanceId], 's'),
|
|
99199
|
+
'name', [mixinBaseClass].[Name],
|
|
99200
|
+
'schemaItemType', 'Mixin',
|
|
99201
|
+
'modifier', ${modifier("mixinBaseClass")},
|
|
99202
|
+
'label', [mixinBaseClass].[DisplayLabel],
|
|
99203
|
+
'description', [mixinBaseClass].[Description],
|
|
99204
|
+
'appliesTo', (
|
|
99205
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99206
|
+
FROM [AppliesToCTE] [atCTE]
|
|
99207
|
+
WHERE [atCTE].[AppliesToId] = [mixinBaseClass].[ECInstanceId]
|
|
99208
|
+
)
|
|
99209
|
+
)))
|
|
99210
|
+
FROM
|
|
99211
|
+
[meta].[ECClassDef] [mixinBaseClass]
|
|
99212
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [mixinBaseClassMap]
|
|
99213
|
+
ON [mixinBaseClassMap].[TargetECInstanceId] = [mixinBaseClass].[ECInstanceId]
|
|
99214
|
+
WHERE [mixinBaseClassMap].[SourceECInstanceId] = [baseClass].[ECInstanceId]
|
|
99215
|
+
)
|
|
99216
|
+
)))
|
|
99217
|
+
FROM
|
|
99218
|
+
[meta].[ECClassDef] [baseClass]
|
|
99219
|
+
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
99220
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99221
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99222
|
+
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
99223
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99224
|
+
)
|
|
99225
|
+
) AS [item]
|
|
99226
|
+
FROM [meta].[ECClassDef] [class]
|
|
99227
|
+
WHERE [class].[Type] = 0
|
|
99228
|
+
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
99229
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99230
99230
|
`;
|
|
99231
|
-
const mixinQuery = `
|
|
99232
|
-
SELECT
|
|
99233
|
-
[Schema].[Id] AS [SchemaId],
|
|
99234
|
-
json_object(
|
|
99235
|
-
'name', [class].[Name],
|
|
99236
|
-
'schemaItemType', 'Mixin',
|
|
99237
|
-
'modifier', ${modifier("class")},
|
|
99238
|
-
'label', [class].[DisplayLabel],
|
|
99239
|
-
'description', [class].[Description],
|
|
99240
|
-
'appliesTo', (
|
|
99241
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99242
|
-
FROM [AppliesToCTE] [atCTE]
|
|
99243
|
-
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
99244
|
-
),
|
|
99245
|
-
'baseClasses', (
|
|
99246
|
-
SELECT
|
|
99247
|
-
json_group_array(json(json_object(
|
|
99248
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99249
|
-
'name', [baseClass].[Name],
|
|
99250
|
-
'schemaItemType', 'Mixin',
|
|
99251
|
-
'modifier', ${modifier("baseClass")},
|
|
99252
|
-
'label', [baseClass].[DisplayLabel],
|
|
99253
|
-
'description', [baseClass].[Description],
|
|
99254
|
-
'appliesTo', (
|
|
99255
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99256
|
-
FROM [AppliesToCTE] [atCTE]
|
|
99257
|
-
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
99258
|
-
)
|
|
99259
|
-
)))
|
|
99260
|
-
FROM
|
|
99261
|
-
[meta].[ECClassDef] [baseClass]
|
|
99262
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99263
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99264
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99265
|
-
)
|
|
99266
|
-
) AS [item]
|
|
99267
|
-
FROM [meta].[ECClassDef] [class]
|
|
99268
|
-
WHERE [class].[Type] = 0 AND EXISTS (SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
99269
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99231
|
+
const mixinQuery = `
|
|
99232
|
+
SELECT
|
|
99233
|
+
[Schema].[Id] AS [SchemaId],
|
|
99234
|
+
json_object(
|
|
99235
|
+
'name', [class].[Name],
|
|
99236
|
+
'schemaItemType', 'Mixin',
|
|
99237
|
+
'modifier', ${modifier("class")},
|
|
99238
|
+
'label', [class].[DisplayLabel],
|
|
99239
|
+
'description', [class].[Description],
|
|
99240
|
+
'appliesTo', (
|
|
99241
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99242
|
+
FROM [AppliesToCTE] [atCTE]
|
|
99243
|
+
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
99244
|
+
),
|
|
99245
|
+
'baseClasses', (
|
|
99246
|
+
SELECT
|
|
99247
|
+
json_group_array(json(json_object(
|
|
99248
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
99249
|
+
'name', [baseClass].[Name],
|
|
99250
|
+
'schemaItemType', 'Mixin',
|
|
99251
|
+
'modifier', ${modifier("baseClass")},
|
|
99252
|
+
'label', [baseClass].[DisplayLabel],
|
|
99253
|
+
'description', [baseClass].[Description],
|
|
99254
|
+
'appliesTo', (
|
|
99255
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
99256
|
+
FROM [AppliesToCTE] [atCTE]
|
|
99257
|
+
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
99258
|
+
)
|
|
99259
|
+
)))
|
|
99260
|
+
FROM
|
|
99261
|
+
[meta].[ECClassDef] [baseClass]
|
|
99262
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
99263
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
99264
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
99265
|
+
)
|
|
99266
|
+
) AS [item]
|
|
99267
|
+
FROM [meta].[ECClassDef] [class]
|
|
99268
|
+
WHERE [class].[Type] = 0 AND EXISTS (SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
99269
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
99270
99270
|
`;
|
|
99271
|
-
const withSchemaItems = `
|
|
99272
|
-
SchemaItems AS (
|
|
99273
|
-
${customAttributeQuery}
|
|
99274
|
-
UNION ALL
|
|
99275
|
-
${structQuery}
|
|
99276
|
-
UNION ALL
|
|
99277
|
-
${relationshipQuery}
|
|
99278
|
-
UNION ALL
|
|
99279
|
-
${entityQuery}
|
|
99280
|
-
UNION ALL
|
|
99281
|
-
${mixinQuery}
|
|
99282
|
-
UNION ALL
|
|
99283
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration()}
|
|
99284
|
-
UNION ALL
|
|
99285
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity()}
|
|
99286
|
-
UNION ALL
|
|
99287
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory()}
|
|
99288
|
-
UNION ALL
|
|
99289
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit()}
|
|
99290
|
-
UNION ALL
|
|
99291
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit()}
|
|
99292
|
-
UNION ALL
|
|
99293
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant()}
|
|
99294
|
-
UNION ALL
|
|
99295
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon()}
|
|
99296
|
-
UNION ALL
|
|
99297
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem()}
|
|
99298
|
-
UNION ALL
|
|
99299
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format()}
|
|
99300
|
-
)
|
|
99271
|
+
const withSchemaItems = `
|
|
99272
|
+
SchemaItems AS (
|
|
99273
|
+
${customAttributeQuery}
|
|
99274
|
+
UNION ALL
|
|
99275
|
+
${structQuery}
|
|
99276
|
+
UNION ALL
|
|
99277
|
+
${relationshipQuery}
|
|
99278
|
+
UNION ALL
|
|
99279
|
+
${entityQuery}
|
|
99280
|
+
UNION ALL
|
|
99281
|
+
${mixinQuery}
|
|
99282
|
+
UNION ALL
|
|
99283
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration()}
|
|
99284
|
+
UNION ALL
|
|
99285
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity()}
|
|
99286
|
+
UNION ALL
|
|
99287
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory()}
|
|
99288
|
+
UNION ALL
|
|
99289
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit()}
|
|
99290
|
+
UNION ALL
|
|
99291
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit()}
|
|
99292
|
+
UNION ALL
|
|
99293
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant()}
|
|
99294
|
+
UNION ALL
|
|
99295
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon()}
|
|
99296
|
+
UNION ALL
|
|
99297
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem()}
|
|
99298
|
+
UNION ALL
|
|
99299
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format()}
|
|
99300
|
+
)
|
|
99301
99301
|
`;
|
|
99302
|
-
const schemaStubQuery = `
|
|
99303
|
-
WITH
|
|
99304
|
-
${withAppliesTo},
|
|
99305
|
-
${withSchemaItems}
|
|
99306
|
-
SELECT
|
|
99307
|
-
[items].[item]
|
|
99308
|
-
FROM
|
|
99309
|
-
[SchemaItems] [items]
|
|
99310
|
-
JOIN [meta].[ECSchemaDef] [schemaDef]
|
|
99311
|
-
ON [schemaDef].[ECInstanceId] = [items].[SchemaId]
|
|
99312
|
-
WHERE [schemaDef].[Name] = :schemaName
|
|
99302
|
+
const schemaStubQuery = `
|
|
99303
|
+
WITH
|
|
99304
|
+
${withAppliesTo},
|
|
99305
|
+
${withSchemaItems}
|
|
99306
|
+
SELECT
|
|
99307
|
+
[items].[item]
|
|
99308
|
+
FROM
|
|
99309
|
+
[SchemaItems] [items]
|
|
99310
|
+
JOIN [meta].[ECSchemaDef] [schemaDef]
|
|
99311
|
+
ON [schemaDef].[ECInstanceId] = [items].[SchemaId]
|
|
99312
|
+
WHERE [schemaDef].[Name] = :schemaName
|
|
99313
99313
|
`;
|
|
99314
|
-
const schemaInfoQuery = `
|
|
99315
|
-
WITH
|
|
99316
|
-
${withSchemaReferences}
|
|
99317
|
-
SELECT
|
|
99318
|
-
[Name] as [name],
|
|
99319
|
-
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
99320
|
-
[Alias] as [alias],
|
|
99321
|
-
[DisplayLabel] as [label],
|
|
99322
|
-
[Description] as [description],
|
|
99323
|
-
(
|
|
99324
|
-
SELECT
|
|
99325
|
-
json_group_array([schemaReferences].[fullName])
|
|
99326
|
-
FROM
|
|
99327
|
-
[SchemaReferences] [schemaReferences]
|
|
99328
|
-
WHERE
|
|
99329
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
99330
|
-
) AS [references]
|
|
99331
|
-
FROM
|
|
99332
|
-
[meta].[ECSchemaDef] [schemaDef]
|
|
99314
|
+
const schemaInfoQuery = `
|
|
99315
|
+
WITH
|
|
99316
|
+
${withSchemaReferences}
|
|
99317
|
+
SELECT
|
|
99318
|
+
[Name] as [name],
|
|
99319
|
+
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
99320
|
+
[Alias] as [alias],
|
|
99321
|
+
[DisplayLabel] as [label],
|
|
99322
|
+
[Description] as [description],
|
|
99323
|
+
(
|
|
99324
|
+
SELECT
|
|
99325
|
+
json_group_array([schemaReferences].[fullName])
|
|
99326
|
+
FROM
|
|
99327
|
+
[SchemaReferences] [schemaReferences]
|
|
99328
|
+
WHERE
|
|
99329
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
99330
|
+
) AS [references]
|
|
99331
|
+
FROM
|
|
99332
|
+
[meta].[ECSchemaDef] [schemaDef]
|
|
99333
99333
|
`;
|
|
99334
99334
|
/**
|
|
99335
99335
|
* Partial Schema queries.
|
|
@@ -100664,7 +100664,7 @@ class CustomAttributeClass extends _Class__WEBPACK_IMPORTED_MODULE_2__.ECClass {
|
|
|
100664
100664
|
static get schemaItemType() { return _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaItemType.CustomAttributeClass; }
|
|
100665
100665
|
_appliesTo;
|
|
100666
100666
|
/**
|
|
100667
|
-
* @deprecated in 4.8 -
|
|
100667
|
+
* @deprecated in 4.8 - might be removed in next major version. Use [[appliesTo]]
|
|
100668
100668
|
* */
|
|
100669
100669
|
get containerType() {
|
|
100670
100670
|
return this.appliesTo;
|
|
@@ -114695,7 +114695,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114695
114695
|
* Use of this service requires an API key to be supplied via [[MapLayerOptions.BingMaps]] in the [[IModelAppOptions.mapLayerOptions]] passed to [[IModelApp.startup]].
|
|
114696
114696
|
* @public
|
|
114697
114697
|
* @extensions
|
|
114698
|
-
* @deprecated in 5.11.0. Provide a [[LocationProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
114698
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Provide a [[LocationProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
114699
114699
|
* @note This class structurally satisfies [[LocationProvider]] but does not use an explicit `implements` clause
|
|
114700
114700
|
* because api-extractor forbids `@public` classes from referencing `@beta` interfaces (ae-incompatible-release-tags).
|
|
114701
114701
|
*/
|
|
@@ -120382,7 +120382,7 @@ class GraphicalEditingScope extends _BriefcaseTxns__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
120382
120382
|
this._cleanup = undefined;
|
|
120383
120383
|
}
|
|
120384
120384
|
}
|
|
120385
|
-
/** @deprecated in 5.0 -
|
|
120385
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
120386
120386
|
dispose() {
|
|
120387
120387
|
this[Symbol.dispose]();
|
|
120388
120388
|
}
|
|
@@ -121852,14 +121852,14 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
121852
121852
|
*/
|
|
121853
121853
|
onClose = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
121854
121854
|
/** The font map for this IModelConnection. Only valid after calling #loadFontMap and waiting for the returned promise to be fulfilled.
|
|
121855
|
-
* @deprecated in 5.0.0 -
|
|
121855
|
+
* @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).
|
|
121856
121856
|
*/
|
|
121857
121857
|
fontMap; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
121858
121858
|
_schemaContext;
|
|
121859
121859
|
_schemasPromise;
|
|
121860
121860
|
/** Load the FontMap for this IModelConnection.
|
|
121861
121861
|
* @returns Returns a Promise<FontMap> that is fulfilled when the FontMap member of this IModelConnection is valid.
|
|
121862
|
-
* @deprecated in 5.0.0 -
|
|
121862
|
+
* @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).
|
|
121863
121863
|
*/
|
|
121864
121864
|
async loadFontMap() {
|
|
121865
121865
|
if (undefined === this.fontMap) { // eslint-disable-line @typescript-eslint/no-deprecated
|
|
@@ -121983,7 +121983,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
121983
121983
|
return this.isOpen ? this._snapRpc.request(props) : { status: 2 };
|
|
121984
121984
|
}
|
|
121985
121985
|
/** @internal
|
|
121986
|
-
* @deprecated in 4.8 -
|
|
121986
|
+
* @deprecated in 4.8 - might be removed in next major version. Use AccuSnap.doSnapRequest.
|
|
121987
121987
|
*/
|
|
121988
121988
|
async requestSnap(props) {
|
|
121989
121989
|
return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_12__._requestSnap](props);
|
|
@@ -122024,7 +122024,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
122024
122024
|
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getMassProperties(this.getRpcProps(), requestProps);
|
|
122025
122025
|
}
|
|
122026
122026
|
/** Request mass properties for multiple elements from the backend.
|
|
122027
|
-
* @deprecated in 4.11 -
|
|
122027
|
+
* @deprecated in 4.11 - might be removed in next major version. Use [[IModelConnection.getMassProperties]].
|
|
122028
122028
|
*/
|
|
122029
122029
|
async getMassPropertiesPerCandidate(requestProps) {
|
|
122030
122030
|
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getMassPropertiesPerCandidate(this.getRpcProps(), requestProps);
|
|
@@ -122464,7 +122464,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
122464
122464
|
}
|
|
122465
122465
|
/** Open an IModelConnection to a remote read-only snapshot iModel from a key that will be resolved by the backend.
|
|
122466
122466
|
* @note This method is intended for web applications.
|
|
122467
|
-
* @deprecated in 4.10 -
|
|
122467
|
+
* @deprecated in 4.10 - might be removed in next major version. Use [[CheckpointConnection.openRemote]].
|
|
122468
122468
|
*/
|
|
122469
122469
|
static async openRemote(fileKey) {
|
|
122470
122470
|
const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.default;
|
|
@@ -123049,7 +123049,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
123049
123049
|
* There is no guarantee that this view will be suitable for the purposes of any other applications.
|
|
123050
123050
|
* Most applications should ignore the default view and instead create a [[ViewState]] that fits their own requirements using APIs like [[ViewCreator3d]].
|
|
123051
123051
|
* @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.
|
|
123052
|
-
* @deprecated in 4.2 -
|
|
123052
|
+
* @deprecated in 4.2 - might be removed in next major version. Create a ViewState to your own specifications.
|
|
123053
123053
|
*/
|
|
123054
123054
|
async queryDefaultViewId() {
|
|
123055
123055
|
const iModel = this._iModel;
|
|
@@ -123439,7 +123439,7 @@ class IpcApp {
|
|
|
123439
123439
|
throw Object.assign(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BackendError(err.errorNumber, err.iTwinErrorId.key, err.message, err.loggingMetadata), trimErr);
|
|
123440
123440
|
}
|
|
123441
123441
|
/** @internal
|
|
123442
|
-
* @deprecated in 4.8 -
|
|
123442
|
+
* @deprecated in 4.8 - might be removed in next major version. Use [[makeIpcProxy]] for a type-safe interface.
|
|
123443
123443
|
*/
|
|
123444
123444
|
static async callIpcChannel(channelName, methodName, ...args) {
|
|
123445
123445
|
return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_2__._callIpcChannel](channelName, methodName, ...args);
|
|
@@ -126746,7 +126746,7 @@ class HiliteSet {
|
|
|
126746
126746
|
/** Toggle the hilited state of one or more elements.
|
|
126747
126747
|
* @param arg the ID(s) of the elements whose state is to be toggled.
|
|
126748
126748
|
* @param onOff True to add the elements to the hilited set, false to remove them.
|
|
126749
|
-
* @deprecated in 5.0 -
|
|
126749
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[add]], [[remove]], [[replace]] instead.
|
|
126750
126750
|
*/
|
|
126751
126751
|
setHilite(arg, onOff) {
|
|
126752
126752
|
if (onOff) {
|
|
@@ -126814,14 +126814,14 @@ class SelectionSet {
|
|
|
126814
126814
|
}
|
|
126815
126815
|
/** Return true if elemId is in this `SelectionSet`.
|
|
126816
126816
|
* @see [[isSelected]]
|
|
126817
|
-
* @deprecated in 5.0 -
|
|
126817
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `SelectionSet.elements.has(elemId)` instead.
|
|
126818
126818
|
*/
|
|
126819
126819
|
has(elemId) {
|
|
126820
126820
|
return !!elemId && this.elements.has(elemId);
|
|
126821
126821
|
}
|
|
126822
126822
|
/** Query whether an Id is in the selection set.
|
|
126823
126823
|
* @see [[has]]
|
|
126824
|
-
* @deprecated in 5.0 -
|
|
126824
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `SelectionSet.elements.has(elemId)` instead.
|
|
126825
126825
|
*/
|
|
126826
126826
|
isSelected(elemId) {
|
|
126827
126827
|
return !!elemId && this.elements.has(elemId);
|
|
@@ -131101,7 +131101,7 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
131101
131101
|
/** Execute a function against each [[TileTreeReference]] associated with this view.
|
|
131102
131102
|
* This may include tile trees not associated with any [[GeometricModelState]] - e.g., context reality data.
|
|
131103
131103
|
* @note This method is inefficient (iteration cannot be aborted) and awkward (callback cannot be async nor return a value). Prefer to iterate using [[getTileTreeRefs]].
|
|
131104
|
-
* @deprecated in 5.0 -
|
|
131104
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[getTileTreeRefs]] instead.
|
|
131105
131105
|
*/
|
|
131106
131106
|
forEachTileTreeRef(func) {
|
|
131107
131107
|
for (const ref of this.getModelTreeRefs()) {
|
|
@@ -131499,11 +131499,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
131499
131499
|
origin.setFrom(vp.view.isSpatialView() ? vp.view.iModel.globalOrigin : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.create());
|
|
131500
131500
|
switch (orientation) {
|
|
131501
131501
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.View: {
|
|
131502
|
-
const
|
|
131503
|
-
vp.npcToWorld(centerWorld, centerWorld);
|
|
131502
|
+
const center = vp.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter);
|
|
131504
131503
|
rMatrix.setFrom(vp.rotation);
|
|
131505
|
-
rMatrix.
|
|
131506
|
-
origin.z =
|
|
131504
|
+
rMatrix.multiplyVectorInPlace(origin);
|
|
131505
|
+
origin.z = center.z;
|
|
131507
131506
|
rMatrix.multiplyTransposeVectorInPlace(origin);
|
|
131508
131507
|
break;
|
|
131509
131508
|
}
|
|
@@ -134199,7 +134198,7 @@ class Viewport {
|
|
|
134199
134198
|
this.onDisposed.raiseEvent(this);
|
|
134200
134199
|
this.detachFromView();
|
|
134201
134200
|
}
|
|
134202
|
-
/** @deprecated in 5.0 -
|
|
134201
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
134203
134202
|
dispose() {
|
|
134204
134203
|
this[Symbol.dispose]();
|
|
134205
134204
|
}
|
|
@@ -134600,7 +134599,7 @@ class Viewport {
|
|
|
134600
134599
|
}
|
|
134601
134600
|
}
|
|
134602
134601
|
/** Apply a function to every tile tree reference associated with the map layers displayed by this viewport.
|
|
134603
|
-
* @deprecated in 5.0 -
|
|
134602
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[mapTileTreeRefs]] instead.
|
|
134604
134603
|
*/
|
|
134605
134604
|
forEachMapTreeRef(func) {
|
|
134606
134605
|
if (this._mapTiledGraphicsProvider)
|
|
@@ -134612,7 +134611,7 @@ class Viewport {
|
|
|
134612
134611
|
}
|
|
134613
134612
|
;
|
|
134614
134613
|
/** Apply a function to every [[TileTreeReference]] displayed by this viewport.
|
|
134615
|
-
* @deprecated in 5.0 -
|
|
134614
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[getTileTreeRefs]] instead.
|
|
134616
134615
|
*/
|
|
134617
134616
|
forEachTileTreeRef(func) {
|
|
134618
134617
|
for (const ref of this.getTileTreeRefs()) {
|
|
@@ -135242,11 +135241,11 @@ class Viewport {
|
|
|
135242
135241
|
origin.setFrom(this.iModel.globalOrigin);
|
|
135243
135242
|
switch (this.view.getGridOrientation()) {
|
|
135244
135243
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.View: {
|
|
135245
|
-
const center = this.
|
|
135246
|
-
this.
|
|
135247
|
-
|
|
135244
|
+
const center = this.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter);
|
|
135245
|
+
rMatrix.setFrom(this.rotation);
|
|
135246
|
+
rMatrix.multiplyVectorInPlace(origin);
|
|
135248
135247
|
origin.z = center.z;
|
|
135249
|
-
|
|
135248
|
+
rMatrix.multiplyTransposeVectorInPlace(origin);
|
|
135250
135249
|
break;
|
|
135251
135250
|
}
|
|
135252
135251
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.WorldXY:
|
|
@@ -135270,24 +135269,24 @@ class Viewport {
|
|
|
135270
135269
|
eyeVec = this._viewingSpace.rotation.getRow(2);
|
|
135271
135270
|
eyeVec.normalizeInPlace();
|
|
135272
135271
|
(0,_LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_12__.linePlaneIntersect)(point, point, eyeVec, origin, planeNormal, false);
|
|
135273
|
-
//
|
|
135274
|
-
const
|
|
135275
|
-
const
|
|
135276
|
-
|
|
135277
|
-
|
|
135272
|
+
// Get origin and point in the grid's local coordinate system.
|
|
135273
|
+
const pointGrid = point.clone();
|
|
135274
|
+
const originGrid = origin.clone();
|
|
135275
|
+
rMatrix.multiplyXYZtoXYZ(pointGrid, pointGrid);
|
|
135276
|
+
rMatrix.multiplyXYZtoXYZ(originGrid, originGrid);
|
|
135278
135277
|
// subtract off the origin
|
|
135279
|
-
|
|
135280
|
-
|
|
135278
|
+
pointGrid.y -= originGrid.y;
|
|
135279
|
+
pointGrid.x -= originGrid.x;
|
|
135281
135280
|
// round off the remainder to the grid distances
|
|
135282
135281
|
const gridSpacing = this.view.getGridSpacing();
|
|
135283
|
-
|
|
135284
|
-
|
|
135282
|
+
pointGrid.x = Viewport.roundGrid(pointGrid.x, gridSpacing.x);
|
|
135283
|
+
pointGrid.y = Viewport.roundGrid(pointGrid.y, gridSpacing.y);
|
|
135285
135284
|
// add the origin back in
|
|
135286
|
-
|
|
135287
|
-
|
|
135285
|
+
pointGrid.x += originGrid.x;
|
|
135286
|
+
pointGrid.y += originGrid.y;
|
|
135288
135287
|
// go back to root coordinate system
|
|
135289
|
-
|
|
135290
|
-
point.setFrom(
|
|
135288
|
+
rMatrix.multiplyTransposeVectorInPlace(pointGrid);
|
|
135289
|
+
point.setFrom(pointGrid);
|
|
135291
135290
|
}
|
|
135292
135291
|
/** @internal */
|
|
135293
135292
|
pointToGrid(point) {
|
|
@@ -149157,7 +149156,7 @@ class AtmosphereUniforms {
|
|
|
149157
149156
|
return true;
|
|
149158
149157
|
}
|
|
149159
149158
|
[Symbol.dispose]() { }
|
|
149160
|
-
/** @deprecated in 5.0 -
|
|
149159
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
149161
149160
|
dispose() {
|
|
149162
149161
|
this[Symbol.dispose]();
|
|
149163
149162
|
}
|
|
@@ -149243,7 +149242,7 @@ class BuffersContainer {
|
|
|
149243
149242
|
this._context = context;
|
|
149244
149243
|
this._vao = new VAOHandle(this._context);
|
|
149245
149244
|
}
|
|
149246
|
-
/** @deprecated in 5.0 -
|
|
149245
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
149247
149246
|
dispose() {
|
|
149248
149247
|
this[Symbol.dispose]();
|
|
149249
149248
|
}
|
|
@@ -149305,7 +149304,7 @@ class VAOHandle {
|
|
|
149305
149304
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(!this.isDisposed);
|
|
149306
149305
|
}
|
|
149307
149306
|
get isDisposed() { return this._arrayObject === undefined; }
|
|
149308
|
-
/** @deprecated in 5.0 -
|
|
149307
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
149309
149308
|
dispose() {
|
|
149310
149309
|
this[Symbol.dispose]();
|
|
149311
149310
|
}
|
|
@@ -152052,7 +152051,7 @@ class ClippingProgram {
|
|
|
152052
152051
|
[Symbol.dispose]() {
|
|
152053
152052
|
this._program = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._program);
|
|
152054
152053
|
}
|
|
152055
|
-
/** @deprecated in 5.0 -
|
|
152054
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
152056
152055
|
dispose() {
|
|
152057
152056
|
this[Symbol.dispose]();
|
|
152058
152057
|
}
|
|
@@ -164180,7 +164179,7 @@ class ShaderProgram {
|
|
|
164180
164179
|
this._status = 2 /* CompileStatus.Uncompiled */;
|
|
164181
164180
|
}
|
|
164182
164181
|
}
|
|
164183
|
-
/** @deprecated in 5.0 -
|
|
164182
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
164184
164183
|
dispose() {
|
|
164185
164184
|
this[Symbol.dispose]();
|
|
164186
164185
|
}
|
|
@@ -164649,7 +164648,7 @@ class ShaderProgramExecutor {
|
|
|
164649
164648
|
ShaderProgramExecutor.freeParams();
|
|
164650
164649
|
this._isDisposed = true;
|
|
164651
164650
|
}
|
|
164652
|
-
/** @deprecated in 5.0 -
|
|
164651
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
164653
164652
|
dispose() {
|
|
164654
164653
|
this[Symbol.dispose]();
|
|
164655
164654
|
}
|
|
@@ -168290,7 +168289,7 @@ class SingularTechnique {
|
|
|
168290
168289
|
[Symbol.dispose]() {
|
|
168291
168290
|
this.program[Symbol.dispose]();
|
|
168292
168291
|
}
|
|
168293
|
-
/** @deprecated in 5.0 -
|
|
168292
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
168294
168293
|
dispose() {
|
|
168295
168294
|
this[Symbol.dispose]();
|
|
168296
168295
|
}
|
|
@@ -168347,7 +168346,7 @@ class VariedTechnique {
|
|
|
168347
168346
|
this._clippingPrograms.length = 0;
|
|
168348
168347
|
this._isDisposed = true;
|
|
168349
168348
|
}
|
|
168350
|
-
/** @deprecated in 5.0 -
|
|
168349
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
168351
168350
|
dispose() {
|
|
168352
168351
|
this[Symbol.dispose]();
|
|
168353
168352
|
}
|
|
@@ -169054,7 +169053,7 @@ class Techniques {
|
|
|
169054
169053
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(tech);
|
|
169055
169054
|
this._list.length = 0;
|
|
169056
169055
|
}
|
|
169057
|
-
/** @deprecated in 5.0 -
|
|
169056
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
169058
169057
|
dispose() {
|
|
169059
169058
|
this[Symbol.dispose]();
|
|
169060
169059
|
}
|
|
@@ -185347,7 +185346,7 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
185347
185346
|
div.innerHTML = strings.join("<br>");
|
|
185348
185347
|
return div;
|
|
185349
185348
|
}
|
|
185350
|
-
/** @deprecated in 5.0 -
|
|
185349
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
185351
185350
|
addLogoCards(cards) {
|
|
185352
185351
|
if (this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.CesiumIonAsset && !cards.dataset.openStreetMapLogoCard) {
|
|
185353
185352
|
cards.dataset.openStreetMapLogoCard = "true";
|
|
@@ -187164,7 +187163,7 @@ class ArcGISMapLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MOD
|
|
|
187164
187163
|
}
|
|
187165
187164
|
}
|
|
187166
187165
|
}
|
|
187167
|
-
/** @deprecated in 5.0 -
|
|
187166
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
187168
187167
|
addLogoCards(cards) {
|
|
187169
187168
|
if (!cards.dataset.arcGisLogoCard) {
|
|
187170
187169
|
cards.dataset.arcGisLogoCard = "true";
|
|
@@ -187449,7 +187448,7 @@ class BingAttribution {
|
|
|
187449
187448
|
function replaceHttpWithHttps(originalUrl) {
|
|
187450
187449
|
return originalUrl.startsWith("http:") ? "https:".concat(originalUrl.slice(5)) : originalUrl;
|
|
187451
187450
|
}
|
|
187452
|
-
/** @deprecated in 5.11.0. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
|
|
187451
|
+
/** @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`. */
|
|
187453
187452
|
class BingMapsImageryLayerProvider extends _tile_internal__WEBPACK_IMPORTED_MODULE_3__.MapLayerImageryProvider {
|
|
187454
187453
|
_urlTemplate;
|
|
187455
187454
|
_urlSubdomains;
|
|
@@ -187518,7 +187517,7 @@ class BingMapsImageryLayerProvider extends _tile_internal__WEBPACK_IMPORTED_MODU
|
|
|
187518
187517
|
}
|
|
187519
187518
|
return matchingAttributions;
|
|
187520
187519
|
}
|
|
187521
|
-
/** @deprecated in 5.0 -
|
|
187520
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
187522
187521
|
addLogoCards(cards, vp) {
|
|
187523
187522
|
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getTilesForUser(vp)?.selected;
|
|
187524
187523
|
const matchingAttributions = this.getMatchingAttributions(tiles);
|
|
@@ -187975,7 +187974,7 @@ class MapBoxLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MODULE
|
|
|
187975
187974
|
url = url.concat(`?${this._settings.accessKey.key}=${this._settings.accessKey.value}`);
|
|
187976
187975
|
return url;
|
|
187977
187976
|
}
|
|
187978
|
-
/** @deprecated in 5.0 -
|
|
187977
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
187979
187978
|
addLogoCards(cards) {
|
|
187980
187979
|
if (!cards.dataset.mapboxLogoCard) {
|
|
187981
187980
|
cards.dataset.mapboxLogoCard = "true";
|
|
@@ -189712,7 +189711,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
189712
189711
|
|
|
189713
189712
|
/**
|
|
189714
189713
|
* Angle Property Description
|
|
189715
|
-
* @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).
|
|
189714
|
+
* @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).
|
|
189716
189715
|
* @beta
|
|
189717
189716
|
*/
|
|
189718
189717
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -189729,7 +189728,7 @@ class AngleDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_M
|
|
|
189729
189728
|
}
|
|
189730
189729
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Angle; }
|
|
189731
189730
|
/**
|
|
189732
|
-
* @deprecated in 5.0 -
|
|
189731
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
189733
189732
|
*/
|
|
189734
189733
|
get quantityType() { return "Angle"; }
|
|
189735
189734
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); }
|
|
@@ -189798,7 +189797,7 @@ function createQuantityDescription(props) {
|
|
|
189798
189797
|
}
|
|
189799
189798
|
/**
|
|
189800
189799
|
* Base Quantity Property Description
|
|
189801
|
-
* @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).
|
|
189800
|
+
* @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).
|
|
189802
189801
|
* @beta
|
|
189803
189802
|
*/
|
|
189804
189803
|
class FormattedQuantityDescription extends _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.BaseQuantityDescription {
|
|
@@ -189885,7 +189884,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
189885
189884
|
|
|
189886
189885
|
/**
|
|
189887
189886
|
* Length Property Description
|
|
189888
|
-
* @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).
|
|
189887
|
+
* @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).
|
|
189889
189888
|
* @beta
|
|
189890
189889
|
*/
|
|
189891
189890
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -189902,14 +189901,14 @@ class LengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_
|
|
|
189902
189901
|
}
|
|
189903
189902
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Length; }
|
|
189904
189903
|
/**
|
|
189905
|
-
* @deprecated in 5.0 -
|
|
189904
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
189906
189905
|
*/
|
|
189907
189906
|
get quantityType() { return "Length"; }
|
|
189908
189907
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
189909
189908
|
}
|
|
189910
189909
|
/**
|
|
189911
189910
|
* Survey Length Property Description
|
|
189912
|
-
* @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).
|
|
189911
|
+
* @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).
|
|
189913
189912
|
* @beta
|
|
189914
189913
|
*/
|
|
189915
189914
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -189926,14 +189925,14 @@ class SurveyLengthDescription extends _FormattedQuantityDescription__WEBPACK_IMP
|
|
|
189926
189925
|
}
|
|
189927
189926
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthSurvey; }
|
|
189928
189927
|
/**
|
|
189929
|
-
* @deprecated in 5.0 -
|
|
189928
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
189930
189929
|
*/
|
|
189931
189930
|
get quantityType() { return "LengthSurvey"; }
|
|
189932
189931
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
189933
189932
|
}
|
|
189934
189933
|
/**
|
|
189935
189934
|
* Engineering Length Property Description
|
|
189936
|
-
* @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).
|
|
189935
|
+
* @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).
|
|
189937
189936
|
* @beta
|
|
189938
189937
|
*/
|
|
189939
189938
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -189950,7 +189949,7 @@ class EngineeringLengthDescription extends _FormattedQuantityDescription__WEBPAC
|
|
|
189950
189949
|
}
|
|
189951
189950
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthEngineering; }
|
|
189952
189951
|
/**
|
|
189953
|
-
* @deprecated in 5.0 -
|
|
189952
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
189954
189953
|
*/
|
|
189955
189954
|
get quantityType() { return "LengthEngineering"; }
|
|
189956
189955
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
@@ -191905,7 +191904,7 @@ class Decorations {
|
|
|
191905
191904
|
this.viewOverlay = undefined;
|
|
191906
191905
|
this.normal = undefined;
|
|
191907
191906
|
}
|
|
191908
|
-
/** @deprecated in 5.0 -
|
|
191907
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
191909
191908
|
dispose() {
|
|
191910
191909
|
this[Symbol.dispose]();
|
|
191911
191910
|
}
|
|
@@ -192206,7 +192205,7 @@ class GraphicBranch {
|
|
|
192206
192205
|
[Symbol.dispose]() {
|
|
192207
192206
|
this.clear();
|
|
192208
192207
|
}
|
|
192209
|
-
/** @deprecated in 5.0 -
|
|
192208
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
192210
192209
|
dispose() {
|
|
192211
192210
|
this[Symbol.dispose]();
|
|
192212
192211
|
}
|
|
@@ -198234,7 +198233,7 @@ class Tile {
|
|
|
198234
198233
|
this._state = 5 /* TileState.Abandoned */;
|
|
198235
198234
|
this.disposeChildren();
|
|
198236
198235
|
}
|
|
198237
|
-
/** @deprecated in 5.0 -
|
|
198236
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
198238
198237
|
dispose() {
|
|
198239
198238
|
this[Symbol.dispose]();
|
|
198240
198239
|
}
|
|
@@ -200913,7 +200912,7 @@ class TileTree {
|
|
|
200913
200912
|
this._isDisposed = true;
|
|
200914
200913
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this.rootTile);
|
|
200915
200914
|
}
|
|
200916
|
-
/** @deprecated in 5.0 -
|
|
200915
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
200917
200916
|
dispose() {
|
|
200918
200917
|
this[Symbol.dispose]();
|
|
200919
200918
|
}
|
|
@@ -201252,7 +201251,7 @@ class TileTreeReference /* implements RenderMemory.Consumer */ {
|
|
|
201252
201251
|
* @beta
|
|
201253
201252
|
*/
|
|
201254
201253
|
get planarClipMaskPriority() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PlanarClipMaskPriority.DesignModel; }
|
|
201255
|
-
/** @deprecated in 5.0 -
|
|
201254
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
201256
201255
|
addLogoCards(_cards, _vp) { }
|
|
201257
201256
|
/** Add attribution logo cards for the tile tree source logo cards to the viewport's logo div.
|
|
201258
201257
|
* @beta
|
|
@@ -201920,7 +201919,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
201920
201919
|
* passed to [[IModelApp.startup]].
|
|
201921
201920
|
* @public
|
|
201922
201921
|
* @extensions
|
|
201923
|
-
* @deprecated in 5.11.0. Provide an [[ElevationProvider]] and [[GeoidProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
201922
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Provide an [[ElevationProvider]] and [[GeoidProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
201924
201923
|
* @note This class structurally satisfies both [[ElevationProvider]] and [[GeoidProvider]] but does not use an explicit
|
|
201925
201924
|
* `implements` clause because api-extractor forbids `@public` classes from referencing `@beta` interfaces (ae-incompatible-release-tags).
|
|
201926
201925
|
*/
|
|
@@ -201996,14 +201995,14 @@ class BingElevationProvider {
|
|
|
201996
201995
|
}
|
|
201997
201996
|
/** Get the height (altitude) at a given iModel coordinate. The height is geodetic (WGS84 ellipsoid)
|
|
201998
201997
|
* 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').
|
|
201999
|
-
* @deprecated in 5.11.0. Use [[ElevationProvider.getHeight]] via [[IModelApp.elevationProvider]] instead.
|
|
201998
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use [[ElevationProvider.getHeight]] via [[IModelApp.elevationProvider]] instead.
|
|
202000
201999
|
* @public
|
|
202001
202000
|
*/
|
|
202002
202001
|
async getHeightValue(point, iModel, geodetic = true) {
|
|
202003
202002
|
return this.getHeight(iModel.spatialToCartographicFromEcef(point), geodetic);
|
|
202004
202003
|
}
|
|
202005
202004
|
/** Get the height (altitude) range for a given iModel project extents. The height values are geodetic (WGS84 ellipsoid).
|
|
202006
|
-
* @deprecated in 5.11.0. Use standalone [[getHeightRange]] function instead.
|
|
202005
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use standalone [[getHeightRange]] function instead.
|
|
202007
202006
|
* @public
|
|
202008
202007
|
*/
|
|
202009
202008
|
async getHeightRange(iModel) {
|
|
@@ -202019,7 +202018,7 @@ class BingElevationProvider {
|
|
|
202019
202018
|
return heights ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_3__.Range1d.createArray(heights) : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_3__.Range1d.createNull();
|
|
202020
202019
|
}
|
|
202021
202020
|
/** Get the average height (altitude) for a given iModel project extents. The height values are geodetic (WGS84 ellipsoid).
|
|
202022
|
-
* @deprecated in 5.11.0. Use standalone [[getHeightAverage]] function instead.
|
|
202021
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use standalone [[getHeightAverage]] function instead.
|
|
202023
202022
|
* @public
|
|
202024
202023
|
*/
|
|
202025
202024
|
async getHeightAverage(iModel) {
|
|
@@ -202261,7 +202260,7 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__.Terra
|
|
|
202261
202260
|
this._iTwinId = opts.iTwinId;
|
|
202262
202261
|
this._tokenTimeOut = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeTimePoint.now().plus(computeCesiumTokenTimeoutInterval(expiresAt));
|
|
202263
202262
|
}
|
|
202264
|
-
/** @deprecated in 5.0 -
|
|
202263
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
202265
202264
|
addLogoCards(cards) {
|
|
202266
202265
|
if (cards.dataset.cesiumIonLogoCard)
|
|
202267
202266
|
return;
|
|
@@ -202894,7 +202893,7 @@ class ImageryMapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityT
|
|
|
202894
202893
|
this._rootTile = new ImageryMapTile(params.rootTile, this, rootQuadId, this.getTileRectangle(rootQuadId));
|
|
202895
202894
|
}
|
|
202896
202895
|
get tilingScheme() { return this._imageryLoader.imageryProvider.tilingScheme; }
|
|
202897
|
-
/** @deprecated in 5.0 -
|
|
202896
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
202898
202897
|
addLogoCards(cards, vp) {
|
|
202899
202898
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
202900
202899
|
this._imageryLoader.addLogoCards(cards, vp);
|
|
@@ -202948,7 +202947,7 @@ class ImageryTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTi
|
|
|
202948
202947
|
get maxDepth() { return this._imageryProvider.maximumZoomLevel; }
|
|
202949
202948
|
get minDepth() { return this._imageryProvider.minimumZoomLevel; }
|
|
202950
202949
|
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_4__.TileLoadPriority.Map; }
|
|
202951
|
-
/** @deprecated in 5.0 -
|
|
202950
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
202952
202951
|
addLogoCards(cards, vp) {
|
|
202953
202952
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
202954
202953
|
this._imageryProvider.addLogoCards(cards, vp);
|
|
@@ -203708,7 +203707,7 @@ class ArcGISMapLayerFormat extends ImageryMapLayerFormat {
|
|
|
203708
203707
|
return new _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGISMapLayerImageryProvider(settings);
|
|
203709
203708
|
}
|
|
203710
203709
|
}
|
|
203711
|
-
/** @deprecated in 5.11.0. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
|
|
203710
|
+
/** @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`. */
|
|
203712
203711
|
class BingMapsMapLayerFormat extends ImageryMapLayerFormat {
|
|
203713
203712
|
static formatId = "BingMaps";
|
|
203714
203713
|
static createImageryProvider(settings) {
|
|
@@ -203876,7 +203875,7 @@ class MapLayerImageryProvider {
|
|
|
203876
203875
|
});
|
|
203877
203876
|
}
|
|
203878
203877
|
get tilingScheme() { return this.useGeographicTilingScheme ? this._geographicTilingScheme : this._mercatorTilingScheme; }
|
|
203879
|
-
/** @deprecated in 5.0 -
|
|
203878
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
203880
203879
|
addLogoCards(_cards, _viewport) { }
|
|
203881
203880
|
/**
|
|
203882
203881
|
* Add attribution logo cards for the data supplied by this provider to the [[Viewport]]'s logo div.
|
|
@@ -206301,7 +206300,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
|
|
|
206301
206300
|
}
|
|
206302
206301
|
return info;
|
|
206303
206302
|
}
|
|
206304
|
-
/** @deprecated in 5.0 -
|
|
206303
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
206305
206304
|
addLogoCards(cards, vp) {
|
|
206306
206305
|
const tree = this.treeOwner.tileTree;
|
|
206307
206306
|
if (tree) {
|
|
@@ -206941,7 +206940,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
206941
206940
|
* @public
|
|
206942
206941
|
*/
|
|
206943
206942
|
class TerrainMeshProvider {
|
|
206944
|
-
/** @deprecated in 5.0 -
|
|
206943
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
206945
206944
|
addLogoCards(_cards, _vp) { }
|
|
206946
206945
|
/** Add attribution logo cards for the terrain data supplied by this provider to the [[Viewport]]'s logo div.
|
|
206947
206946
|
* For example, a provider that produces meshes from [Bing Maps](https://docs.microsoft.com/en-us/bingmaps/rest-services/elevations/) would be required to
|
|
@@ -222536,7 +222535,7 @@ class Geometry {
|
|
|
222536
222535
|
static largeCoordinateResult = 1.0e13;
|
|
222537
222536
|
/**
|
|
222538
222537
|
* Numeric value that may considered infinite for metric coordinates.
|
|
222539
|
-
* @deprecated in 4.9.0 -
|
|
222538
|
+
* @deprecated in 4.9.0 - might be removed in next major version. Use [[largeCoordinateResult]].
|
|
222540
222539
|
* * This coordinate should be used only as a placeholder indicating "at infinity" -- computing actual
|
|
222541
222540
|
* points at this coordinate invites numerical problems.
|
|
222542
222541
|
*/
|
|
@@ -222547,7 +222546,7 @@ class Geometry {
|
|
|
222547
222546
|
}
|
|
222548
222547
|
/**
|
|
222549
222548
|
* Test if the absolute value of x is at least [[largeCoordinateResult]].
|
|
222550
|
-
* @deprecated in 4.9.0 -
|
|
222549
|
+
* @deprecated in 4.9.0 - might be removed in next major version. Use [[isLargeCoordinateResult]].
|
|
222551
222550
|
*/
|
|
222552
222551
|
static isHugeCoordinate(x) {
|
|
222553
222552
|
return Geometry.isLargeCoordinateResult(x);
|
|
@@ -223615,7 +223614,7 @@ class Geometry {
|
|
|
223615
223614
|
/**
|
|
223616
223615
|
* Clone an array whose members have type `T`, which implements the clone method.
|
|
223617
223616
|
* * If the clone method returns `undefined`, then `undefined` is forced into the cloned array.
|
|
223618
|
-
* @deprecated in 4.4.0 -
|
|
223617
|
+
* @deprecated in 4.4.0 - might be removed in next major version. Use cloneArray.
|
|
223619
223618
|
*/
|
|
223620
223619
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
223621
223620
|
static cloneMembers(array) {
|
|
@@ -224057,7 +224056,7 @@ class BSpline1dNd {
|
|
|
224057
224056
|
* Test if the leading and trailing polygon coordinates are replicated in the manner of a "closed" bspline polygon
|
|
224058
224057
|
* which has been expanded to act as a normal bspline.
|
|
224059
224058
|
* @returns true if `degree` leading and trailing polygon blocks match.
|
|
224060
|
-
* @deprecated in 4.2.1 -
|
|
224059
|
+
* @deprecated in 4.2.1 - might be removed in next major version. Use `testClosablePolygon` instead.
|
|
224061
224060
|
*/
|
|
224062
224061
|
testCloseablePolygon(mode) {
|
|
224063
224062
|
return this.testClosablePolygon(mode);
|
|
@@ -226362,7 +226361,7 @@ var UVSelect;
|
|
|
226362
226361
|
UVSelect[UVSelect["uDirection"] = 0] = "uDirection";
|
|
226363
226362
|
/**
|
|
226364
226363
|
* index of v direction
|
|
226365
|
-
* @deprecated in 4.3.0 -
|
|
226364
|
+
* @deprecated in 4.3.0 - might be removed in next major version. Use vDirection instead.
|
|
226366
226365
|
*/
|
|
226367
226366
|
UVSelect[UVSelect["VDirection"] = 1] = "VDirection";
|
|
226368
226367
|
/** index of v direction */
|
|
@@ -226589,7 +226588,7 @@ class BSpline2dNd extends _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geom
|
|
|
226589
226588
|
}
|
|
226590
226589
|
/**
|
|
226591
226590
|
* sum poles by the weights in the basisBuffer, using poles for given span
|
|
226592
|
-
* @deprecated in 4.3.0 -
|
|
226591
|
+
* @deprecated in 4.3.0 - might be removed in next major version. Use sumPoleBufferDerivativesForSpan instead.
|
|
226593
226592
|
*/
|
|
226594
226593
|
sumpoleBufferDerivativesForSpan(spanIndexU, spanIndexV) {
|
|
226595
226594
|
return this.sumPoleBufferDerivativesForSpan(spanIndexU, spanIndexV);
|
|
@@ -236405,7 +236404,7 @@ class Arc3d extends _CurvePrimitive__WEBPACK_IMPORTED_MODULE_1__.CurvePrimitive
|
|
|
236405
236404
|
}
|
|
236406
236405
|
/**
|
|
236407
236406
|
* Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep).
|
|
236408
|
-
* @deprecated in 5.0 -
|
|
236407
|
+
* @deprecated in 5.0 - might be removed in next major version. Use correct spelling quadratureGaussCount.
|
|
236409
236408
|
*/
|
|
236410
236409
|
static quadratureGuassCount = 5;
|
|
236411
236410
|
/** Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep). */
|
|
@@ -241050,7 +241049,7 @@ class CurveLocationDetailPair {
|
|
|
241050
241049
|
}
|
|
241051
241050
|
/**
|
|
241052
241051
|
* Data bundle for a pair of arrays of CurveLocationDetail structures.
|
|
241053
|
-
* @deprecated in 4.2.0 -
|
|
241052
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Use CurveLocationDetailPair[] instead.
|
|
241054
241053
|
* @public
|
|
241055
241054
|
*/
|
|
241056
241055
|
class CurveLocationDetailArrayPair {
|
|
@@ -249214,7 +249213,7 @@ class StrokeOptions {
|
|
|
249214
249213
|
maxEdgeLength;
|
|
249215
249214
|
/**
|
|
249216
249215
|
* Caller expects convex facets.
|
|
249217
|
-
* @deprecated in 4.2.0 -
|
|
249216
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Never used. See [[shouldTriangulate]] and [[maximizeConvexFacets]].
|
|
249218
249217
|
*/
|
|
249219
249218
|
needConvexFacets;
|
|
249220
249219
|
/** Minimum strokes on a primitive. */
|
|
@@ -266143,7 +266142,7 @@ class GrowableXYArray extends _IndexedXYCollection__WEBPACK_IMPORTED_MODULE_0__.
|
|
|
266143
266142
|
}
|
|
266144
266143
|
/**
|
|
266145
266144
|
* Restructure MultiLineStringDataVariant as array of GrowableXYZArray
|
|
266146
|
-
* @deprecated in 4.2.0 -
|
|
266145
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Moved to GrowableXYZArray class.
|
|
266147
266146
|
*/
|
|
266148
266147
|
static createArrayOfGrowableXYZArray(data) {
|
|
266149
266148
|
return _GrowableXYZArray__WEBPACK_IMPORTED_MODULE_1__.GrowableXYZArray.createArrayOfGrowableXYZArray(data);
|
|
@@ -285304,7 +285303,7 @@ class Point4d extends _geometry3d_Plane3d__WEBPACK_IMPORTED_MODULE_0__.Plane3d {
|
|
|
285304
285303
|
* extract 4 consecutive numbers from a Float64Array into a Point4d.
|
|
285305
285304
|
* @param data buffer of numbers
|
|
285306
285305
|
* @param xIndex first index for x,y,z,w sequence. Assumed to be a valid index!
|
|
285307
|
-
* @deprecated in 4.3.0 -
|
|
285306
|
+
* @deprecated in 4.3.0 - might be removed in next major version. Use createFromPacked instead.
|
|
285308
285307
|
*/
|
|
285309
285308
|
static createFromPackedXYZW(data, xIndex = 0, result) {
|
|
285310
285309
|
return Point4d.create(data[xIndex], data[xIndex + 1], data[xIndex + 2], data[xIndex + 3], result);
|
|
@@ -294711,7 +294710,7 @@ class IndexedPolyface extends Polyface {
|
|
|
294711
294710
|
}
|
|
294712
294711
|
/**
|
|
294713
294712
|
* Clean up the open facet.
|
|
294714
|
-
* @deprecated in 4.5.0 -
|
|
294713
|
+
* @deprecated in 4.5.0 - might be removed in next major version. To remove nebulous "open facet" concept from the API. Call [[PolyfaceData.trimAllIndexArrays]]
|
|
294715
294714
|
* instead.
|
|
294716
294715
|
*/
|
|
294717
294716
|
cleanupOpenFacet() {
|
|
@@ -294857,7 +294856,7 @@ class IndexedPolyface extends Polyface {
|
|
|
294857
294856
|
}
|
|
294858
294857
|
/**
|
|
294859
294858
|
* Given the index of a facet, return the data pertaining to the face it is a part of.
|
|
294860
|
-
* @deprecated in 4.5.0 -
|
|
294859
|
+
* @deprecated in 4.5.0 - might be removed in next major version. Use [[IndexedPolyface.tryGetFaceData]], which verifies the index is in range.
|
|
294861
294860
|
*/
|
|
294862
294861
|
getFaceDataByFacetIndex(facetIndex) {
|
|
294863
294862
|
return this.data.face[this._facetToFaceData[facetIndex]];
|
|
@@ -296143,7 +296142,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
296143
296142
|
* Apply stroke counts to curve primitives.
|
|
296144
296143
|
* * Recursively visit all children of data.
|
|
296145
296144
|
* * At each primitive, invoke `computeStrokeCountForOptions` method with options from the builder.
|
|
296146
|
-
* @deprecated in 4.8.0 -
|
|
296145
|
+
* @deprecated in 4.8.0 - might be removed in next major version. This method does nothing and is unneeded.
|
|
296147
296146
|
*/
|
|
296148
296147
|
applyStrokeCountsToCurvePrimitives(data) {
|
|
296149
296148
|
const options = this._options;
|
|
@@ -298237,7 +298236,7 @@ class PolyfaceData {
|
|
|
298237
298236
|
}
|
|
298238
298237
|
/**
|
|
298239
298238
|
* Resize all data arrays to the specified `length`.
|
|
298240
|
-
* @deprecated in 4.5.0 -
|
|
298239
|
+
* @deprecated in 4.5.0 - might be removed in next major version. Because name is misleading. Call [[PolyfaceData.resizeAllArrays]] instead.
|
|
298241
298240
|
*/
|
|
298242
298241
|
resizeAllDataArrays(length) {
|
|
298243
298242
|
if (length > this.point.length) {
|
|
@@ -299811,7 +299810,7 @@ class PolyfaceQuery {
|
|
|
299811
299810
|
});
|
|
299812
299811
|
return builder.claimPolyface(true);
|
|
299813
299812
|
}
|
|
299814
|
-
/** @deprecated in 4.7.0 -
|
|
299813
|
+
/** @deprecated in 4.7.0 - might be removed in next major version. Use [[sweepLineStringToFacetsXYReturnSweptFacets]] instead. */
|
|
299815
299814
|
static sweepLinestringToFacetsXYreturnSweptFacets(linestringPoints, polyface) {
|
|
299816
299815
|
return this.sweepLineStringToFacetsXYReturnSweptFacets(linestringPoints, polyface);
|
|
299817
299816
|
}
|
|
@@ -299914,7 +299913,7 @@ class PolyfaceQuery {
|
|
|
299914
299913
|
* * Return collected line segments.
|
|
299915
299914
|
* * This calls [[sweepLineStringToFacets]] with options created by
|
|
299916
299915
|
* `const options = SweepLineStringToFacetsOptions.create(Vector3d.unitZ(), Angle.createSmallAngle(), false, true, true, true);`
|
|
299917
|
-
* @deprecated in 4.7.0 -
|
|
299916
|
+
* @deprecated in 4.7.0 - might be removed in next major version. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
|
|
299918
299917
|
*/
|
|
299919
299918
|
static sweepLinestringToFacetsXYReturnLines(linestringPoints, polyface) {
|
|
299920
299919
|
const options = SweepLineStringToFacetsOptions.create(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.unitZ(), _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createSmallAngle(), false, true, true, true);
|
|
@@ -299924,7 +299923,7 @@ class PolyfaceQuery {
|
|
|
299924
299923
|
* Find segments (within the linestring) which project to facets.
|
|
299925
299924
|
* * Return chains.
|
|
299926
299925
|
* * This calls [[sweepLineStringToFacets]] with default options.
|
|
299927
|
-
* @deprecated in 4.7.0 -
|
|
299926
|
+
* @deprecated in 4.7.0 - might be removed in next major version. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
|
|
299928
299927
|
*/
|
|
299929
299928
|
static sweepLinestringToFacetsXYReturnChains(linestringPoints, polyface) {
|
|
299930
299929
|
return PolyfaceQuery.sweepLineStringToFacets(linestringPoints, polyface);
|
|
@@ -342913,7 +342912,7 @@ var ShowSignOption;
|
|
|
342913
342912
|
// parse and toString methods
|
|
342914
342913
|
/**
|
|
342915
342914
|
* @beta
|
|
342916
|
-
* @deprecated in 4.10 -
|
|
342915
|
+
* @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.
|
|
342917
342916
|
*/
|
|
342918
342917
|
function scientificTypeToString(scientificType) {
|
|
342919
342918
|
return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
|
|
@@ -342967,7 +342966,7 @@ function parseShowSignOption(showSignOption, formatName) {
|
|
|
342967
342966
|
}
|
|
342968
342967
|
/**
|
|
342969
342968
|
* @beta
|
|
342970
|
-
* @deprecated in 4.10 -
|
|
342969
|
+
* @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.
|
|
342971
342970
|
*/
|
|
342972
342971
|
function showSignOptionToString(showSign) {
|
|
342973
342972
|
switch (showSign) {
|
|
@@ -343060,7 +343059,7 @@ function parseFormatType(jsonObjType, formatName) {
|
|
|
343060
343059
|
}
|
|
343061
343060
|
}
|
|
343062
343061
|
/** @beta
|
|
343063
|
-
* @deprecated in 4.10 -
|
|
343062
|
+
* @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.
|
|
343064
343063
|
*/
|
|
343065
343064
|
function formatTypeToString(type) {
|
|
343066
343065
|
switch (type) {
|
|
@@ -344763,7 +344762,7 @@ class Parser {
|
|
|
344763
344762
|
* @param inString A string that contains text represent a quantity.
|
|
344764
344763
|
* @param format Defines the likely format of inString. Primary unit serves as a default unit if no unit label found in string.
|
|
344765
344764
|
* @param unitsConversions dictionary of conversions used to convert from unit used in inString to output quantity
|
|
344766
|
-
* @deprecated in 4.10 -
|
|
344765
|
+
* @deprecated in 4.10 - might be removed in next major version. Check [[Parser.parseQuantityString]] for replacements.
|
|
344767
344766
|
*/
|
|
344768
344767
|
static parseToQuantityValue(inString, format, unitsConversions) {
|
|
344769
344768
|
// TODO: This method is not able to do bearing and azimuth formatting and is overlapping with parseQuantityString.
|
|
@@ -348572,18 +348571,18 @@ class Settings {
|
|
|
348572
348571
|
}
|
|
348573
348572
|
}
|
|
348574
348573
|
toString() {
|
|
348575
|
-
return `Configurations:
|
|
348576
|
-
backend location: ${this.Backend.location},
|
|
348577
|
-
backend name: ${this.Backend.name},
|
|
348578
|
-
backend version: ${this.Backend.version},
|
|
348579
|
-
oidc client id: ${this.oidcClientId},
|
|
348580
|
-
oidc scopes: ${this.oidcScopes},
|
|
348581
|
-
applicationId: ${this.gprid},
|
|
348582
|
-
log level: ${this.logLevel},
|
|
348583
|
-
testing iModelTileRpcTests: ${this.runiModelTileRpcTests},
|
|
348584
|
-
testing PresentationRpcTest: ${this.runPresentationRpcTests},
|
|
348585
|
-
testing iModelReadRpcTests: ${this.runiModelReadRpcTests},
|
|
348586
|
-
testing DevToolsRpcTests: ${this.runDevToolsRpcTests},
|
|
348574
|
+
return `Configurations:
|
|
348575
|
+
backend location: ${this.Backend.location},
|
|
348576
|
+
backend name: ${this.Backend.name},
|
|
348577
|
+
backend version: ${this.Backend.version},
|
|
348578
|
+
oidc client id: ${this.oidcClientId},
|
|
348579
|
+
oidc scopes: ${this.oidcScopes},
|
|
348580
|
+
applicationId: ${this.gprid},
|
|
348581
|
+
log level: ${this.logLevel},
|
|
348582
|
+
testing iModelTileRpcTests: ${this.runiModelTileRpcTests},
|
|
348583
|
+
testing PresentationRpcTest: ${this.runPresentationRpcTests},
|
|
348584
|
+
testing iModelReadRpcTests: ${this.runiModelReadRpcTests},
|
|
348585
|
+
testing DevToolsRpcTests: ${this.runDevToolsRpcTests},
|
|
348587
348586
|
testing iModelWriteRpcTests: ${this.runiModelWriteRpcTests}`;
|
|
348588
348587
|
}
|
|
348589
348588
|
}
|
|
@@ -348808,7 +348807,7 @@ class TestContext {
|
|
|
348808
348807
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
348809
348808
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
348810
348809
|
await core_frontend_1.NoRenderApp.startup({
|
|
348811
|
-
applicationVersion: "5.12.0-dev.
|
|
348810
|
+
applicationVersion: "5.12.0-dev.5",
|
|
348812
348811
|
applicationId: this.settings.gprid,
|
|
348813
348812
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
348814
348813
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -349089,7 +349088,7 @@ class UiAdmin {
|
|
|
349089
349088
|
/** Get the cursor X and Y position. */
|
|
349090
349089
|
get cursorPosition() { return { x: 0, y: 0 }; }
|
|
349091
349090
|
/** Create a PointProps object.
|
|
349092
|
-
* @deprecated in 4.2.0 -
|
|
349091
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Please use @core/geometry [[XAndY]] or a custom implementation.
|
|
349093
349092
|
*/
|
|
349094
349093
|
createXAndY(x, y) { return { x, y }; }
|
|
349095
349094
|
/** Determines if focus is set to Home */
|
|
@@ -349293,7 +349292,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
349293
349292
|
* @module Utilities
|
|
349294
349293
|
*/
|
|
349295
349294
|
/** Enumeration for Function Keys
|
|
349296
|
-
* @public @deprecated in 4.3 -
|
|
349295
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Please use the `ts-key-enum` npm package or string literals.
|
|
349297
349296
|
*/
|
|
349298
349297
|
var FunctionKey;
|
|
349299
349298
|
(function (FunctionKey) {
|
|
@@ -349311,7 +349310,7 @@ var FunctionKey;
|
|
|
349311
349310
|
FunctionKey["F12"] = "F12";
|
|
349312
349311
|
})(FunctionKey || (FunctionKey = {}));
|
|
349313
349312
|
/** Enumeration for Special Keys
|
|
349314
|
-
* @public @deprecated in 4.3 -
|
|
349313
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Please use the `ts-key-enum` npm package or string literals.
|
|
349315
349314
|
*/
|
|
349316
349315
|
var SpecialKey;
|
|
349317
349316
|
(function (SpecialKey) {
|
|
@@ -349340,7 +349339,7 @@ var SpecialKey;
|
|
|
349340
349339
|
SpecialKey["Decimal"] = "Decimal";
|
|
349341
349340
|
})(SpecialKey || (SpecialKey = {}));
|
|
349342
349341
|
/** Determines if a KeyboardEvent.key is an Arrow key
|
|
349343
|
-
* @public @deprecated in 4.3 -
|
|
349342
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Please use a custom implementation moving forward.
|
|
349344
349343
|
*/
|
|
349345
349344
|
function isArrowKey(key) {
|
|
349346
349345
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -349392,7 +349391,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
349392
349391
|
/**
|
|
349393
349392
|
* Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.
|
|
349394
349393
|
* @public
|
|
349395
|
-
* @deprecated in 4.10.0 -
|
|
349394
|
+
* @deprecated in 4.10.0 - might be removed in next major version. Use `StandardContentLayouts` from `@itwin/appui-react`.
|
|
349396
349395
|
*/
|
|
349397
349396
|
class StandardContentLayouts {
|
|
349398
349397
|
static singleView = {
|
|
@@ -350920,20 +350919,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
350920
350919
|
*/
|
|
350921
350920
|
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
350922
350921
|
/** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.
|
|
350923
|
-
* @public @deprecated in 4.3 -
|
|
350922
|
+
* @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.
|
|
350924
350923
|
*/
|
|
350925
350924
|
class IconSpecUtilities {
|
|
350926
350925
|
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
|
350927
350926
|
static SVG_PREFIX = "svg:";
|
|
350928
350927
|
static WEB_COMPONENT_PREFIX = "webSvg:";
|
|
350929
350928
|
/** Create an IconSpec for an SVG loaded into web component with svg-loader
|
|
350930
|
-
* @public @deprecated in 4.3 -
|
|
350929
|
+
* @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.
|
|
350931
350930
|
*/
|
|
350932
350931
|
static createWebComponentIconSpec(srcString) {
|
|
350933
350932
|
return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;
|
|
350934
350933
|
}
|
|
350935
350934
|
/** Get the SVG Source from an svg-loader IconSpec
|
|
350936
|
-
* @public @deprecated in 4.3 -
|
|
350935
|
+
* @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.
|
|
350937
350936
|
*/
|
|
350938
350937
|
static getWebComponentSource(iconSpec) {
|
|
350939
350938
|
if (iconSpec.startsWith(IconSpecUtilities.WEB_COMPONENT_PREFIX) && iconSpec.length > 7) {
|
|
@@ -350987,7 +350986,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
350987
350986
|
*/
|
|
350988
350987
|
|
|
350989
350988
|
/** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.
|
|
350990
|
-
* @public @deprecated in 4.3 -
|
|
350989
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Use [[Bentley.BentleyError]] instead.
|
|
350991
350990
|
*/
|
|
350992
350991
|
class UiError extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError {
|
|
350993
350992
|
category;
|
|
@@ -351023,7 +351022,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
351023
351022
|
|
|
351024
351023
|
/** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
|
|
351025
351024
|
* @public
|
|
351026
|
-
* @deprecated in 4.2 -
|
|
351025
|
+
* @deprecated in 4.2 - might be removed in next major version. This type is a duplicate of [[BeUiEvent]], which should be used instead.
|
|
351027
351026
|
*/
|
|
351028
351027
|
class UiEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
|
|
351029
351028
|
}
|
|
@@ -351054,7 +351053,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
351054
351053
|
|
|
351055
351054
|
/** UiSync Event class.
|
|
351056
351055
|
* @public
|
|
351057
|
-
* @deprecated in 4.2.0 -
|
|
351056
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Use [[UiSyncEvent]] from @itwin/appui-react.
|
|
351058
351057
|
*/
|
|
351059
351058
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
351060
351059
|
class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
|
|
@@ -351062,7 +351061,7 @@ class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiE
|
|
|
351062
351061
|
/** This class is used to send eventIds to interested UI components so the component can determine if it needs
|
|
351063
351062
|
* to refresh its display by calling setState on itself.
|
|
351064
351063
|
* @public
|
|
351065
|
-
* @deprecated in 4.2.0 -
|
|
351064
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Use [[SyncUiEventDispatcher]] from @itwin/appui-react.
|
|
351066
351065
|
*/
|
|
351067
351066
|
class UiEventDispatcher {
|
|
351068
351067
|
_syncEventTimerId;
|
|
@@ -351265,7 +351264,7 @@ function join(head, tail) {
|
|
|
351265
351264
|
* @param contiguous - If true the filter string must be found "contiguous" in the searched string (E.g. "pul" will match "Git: Pull").
|
|
351266
351265
|
* 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").
|
|
351267
351266
|
* Useful in cases where the target is words (e.g. command labels)
|
|
351268
|
-
* @internal @deprecated in 4.3 -
|
|
351267
|
+
* @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.
|
|
351269
351268
|
*/
|
|
351270
351269
|
function matchesWords(word, target, contiguous = false) {
|
|
351271
351270
|
if (!target || target.length === 0) {
|
|
@@ -351337,7 +351336,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
351337
351336
|
*/
|
|
351338
351337
|
/** Gets the class name for an object.
|
|
351339
351338
|
* @internal
|
|
351340
|
-
* @deprecated in 4.3 -
|
|
351339
|
+
* @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.
|
|
351341
351340
|
*/
|
|
351342
351341
|
const getClassName = (obj) => {
|
|
351343
351342
|
let className = "";
|
|
@@ -355040,7 +355039,7 @@ var PresentationStatus;
|
|
|
355040
355039
|
* Timeout for the request was reached which prevented it from being fulfilled. Frontend may
|
|
355041
355040
|
* repeat the request.
|
|
355042
355041
|
*
|
|
355043
|
-
* @deprecated in 5.0 -
|
|
355042
|
+
* @deprecated in 5.0 - might be removed in next major version. Presentation RPC now relies on `RpcPendingResponse` to handle timeouts.
|
|
355044
355043
|
*/
|
|
355045
355044
|
PresentationStatus[PresentationStatus["BackendTimeout"] = 65543] = "BackendTimeout";
|
|
355046
355045
|
})(PresentationStatus || (exports.PresentationStatus = PresentationStatus = {}));
|
|
@@ -356031,33 +356030,33 @@ let PresentationRpcInterface = class PresentationRpcInterface extends core_commo
|
|
|
356031
356030
|
NOTE: Any add/remove/change to the methods below requires an update of the interface version.
|
|
356032
356031
|
NOTE: Please consult the README in core/common/src/rpc for the semantic versioning rules.
|
|
356033
356032
|
===========================================================================================*/
|
|
356034
|
-
/** @deprecated in 4.10 -
|
|
356033
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356035
356034
|
async getNodesCount(_token, _options) {
|
|
356036
356035
|
return this.forward(arguments);
|
|
356037
356036
|
}
|
|
356038
|
-
/** @deprecated in 4.10 -
|
|
356037
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356039
356038
|
async getPagedNodes(_token, _options) {
|
|
356040
356039
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356041
356040
|
}
|
|
356042
|
-
/** @deprecated in 4.10 -
|
|
356041
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356043
356042
|
async getNodesDescriptor(_token, _options) {
|
|
356044
356043
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356045
356044
|
}
|
|
356046
|
-
/** @deprecated in 4.10 -
|
|
356045
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356047
356046
|
// TODO: add paged version of this (#387280)
|
|
356048
356047
|
async getNodePaths(_token, _options) {
|
|
356049
356048
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356050
356049
|
}
|
|
356051
|
-
/** @deprecated in 4.10 -
|
|
356050
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356052
356051
|
// TODO: add paged version of this (#387280)
|
|
356053
356052
|
async getFilteredNodePaths(_token, _options) {
|
|
356054
356053
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356055
356054
|
}
|
|
356056
|
-
/** @deprecated in 4.10 -
|
|
356055
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356057
356056
|
async getContentSources(_token, _options) {
|
|
356058
356057
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356059
356058
|
}
|
|
356060
|
-
/** @deprecated in 4.10 -
|
|
356059
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356061
356060
|
async getContentDescriptor(_token, _options) {
|
|
356062
356061
|
const response = await this.forward(arguments);
|
|
356063
356062
|
return {
|
|
@@ -356065,11 +356064,11 @@ let PresentationRpcInterface = class PresentationRpcInterface extends core_commo
|
|
|
356065
356064
|
...(response.result ? { result: JSON.parse(response.result) } : {}),
|
|
356066
356065
|
};
|
|
356067
356066
|
}
|
|
356068
|
-
/** @deprecated in 4.10 -
|
|
356067
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356069
356068
|
async getContentSetSize(_token, _options) {
|
|
356070
356069
|
return this.forward(arguments);
|
|
356071
356070
|
}
|
|
356072
|
-
/** @deprecated in 4.10 -
|
|
356071
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356073
356072
|
async getPagedContent(_token, _options) {
|
|
356074
356073
|
const rpcResponse = await this.forward(arguments);
|
|
356075
356074
|
return {
|
|
@@ -356079,35 +356078,35 @@ let PresentationRpcInterface = class PresentationRpcInterface extends core_commo
|
|
|
356079
356078
|
: {}),
|
|
356080
356079
|
};
|
|
356081
356080
|
}
|
|
356082
|
-
/** @deprecated in 4.10 -
|
|
356081
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356083
356082
|
async getPagedContentSet(_token, _options) {
|
|
356084
356083
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356085
356084
|
}
|
|
356086
|
-
/** @deprecated in 4.10 -
|
|
356085
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356087
356086
|
async getElementProperties(_token, _options) {
|
|
356088
356087
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356089
356088
|
}
|
|
356090
|
-
/** @deprecated in 4.10 -
|
|
356089
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356091
356090
|
async getPagedDistinctValues(_token, _options) {
|
|
356092
356091
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356093
356092
|
}
|
|
356094
|
-
/** @deprecated in 4.10 -
|
|
356093
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356095
356094
|
async getContentInstanceKeys(_token, _options) {
|
|
356096
356095
|
return this.forward(arguments);
|
|
356097
356096
|
}
|
|
356098
|
-
/** @deprecated in 4.10 -
|
|
356097
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356099
356098
|
async getDisplayLabelDefinition(_token, _options) {
|
|
356100
356099
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356101
356100
|
}
|
|
356102
|
-
/** @deprecated in 4.10 -
|
|
356101
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356103
356102
|
async getPagedDisplayLabelDefinitions(_token, _options) {
|
|
356104
356103
|
return (0, Utils_js_1.deepReplaceNullsToUndefined)(await this.forward(arguments));
|
|
356105
356104
|
}
|
|
356106
|
-
/** @deprecated in 4.10 -
|
|
356105
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356107
356106
|
async getSelectionScopes(_token, _options) {
|
|
356108
356107
|
return this.forward(arguments);
|
|
356109
356108
|
}
|
|
356110
|
-
/** @deprecated in 4.10 -
|
|
356109
|
+
/** @deprecated in 4.10 - might be removed in next major version. Use [PresentationManager]($presentation-frontend) instead of calling the RPC interface directly. */
|
|
356111
356110
|
async computeSelection(_token, _options) {
|
|
356112
356111
|
return this.forward(arguments);
|
|
356113
356112
|
}
|
|
@@ -356155,7 +356154,7 @@ class RegisteredRuleset {
|
|
|
356155
356154
|
[Symbol.dispose]() {
|
|
356156
356155
|
this._disposeFunc(this);
|
|
356157
356156
|
}
|
|
356158
|
-
/** @deprecated in 5.0 -
|
|
356157
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
356159
356158
|
/* c8 ignore next 3 */
|
|
356160
356159
|
dispose() {
|
|
356161
356160
|
this[Symbol.dispose]();
|
|
@@ -358153,7 +358152,7 @@ class Field {
|
|
|
358153
358152
|
}
|
|
358154
358153
|
/**
|
|
358155
358154
|
* Serialize this object to JSON.
|
|
358156
|
-
* @deprecated in 5.0 -
|
|
358155
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[toCompressedJSON]] instead.
|
|
358157
358156
|
*/
|
|
358158
358157
|
toJSON() {
|
|
358159
358158
|
return this.toCompressedJSON({});
|
|
@@ -358174,7 +358173,7 @@ class Field {
|
|
|
358174
358173
|
}
|
|
358175
358174
|
/**
|
|
358176
358175
|
* Deserialize [[Field]] from JSON.
|
|
358177
|
-
* @deprecated in 5.0 -
|
|
358176
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[fromCompressedJSON]] instead.
|
|
358178
358177
|
*/
|
|
358179
358178
|
static fromJSON(json, categories) {
|
|
358180
358179
|
if (!json) {
|
|
@@ -358328,7 +358327,7 @@ class PropertiesField extends Field {
|
|
|
358328
358327
|
}
|
|
358329
358328
|
/**
|
|
358330
358329
|
* Serialize this object to JSON
|
|
358331
|
-
* @deprecated in 5.0 -
|
|
358330
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[toCompressedJSON]] instead.
|
|
358332
358331
|
*/
|
|
358333
358332
|
toJSON() {
|
|
358334
358333
|
return {
|
|
@@ -358346,7 +358345,7 @@ class PropertiesField extends Field {
|
|
|
358346
358345
|
}
|
|
358347
358346
|
/**
|
|
358348
358347
|
* Deserialize [[PropertiesField]] from JSON.
|
|
358349
|
-
* @deprecated in 5.0 -
|
|
358348
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[fromCompressedJSON]] instead.
|
|
358350
358349
|
*/
|
|
358351
358350
|
static fromJSON(json, categories) {
|
|
358352
358351
|
if (!json) {
|
|
@@ -358481,7 +358480,7 @@ class ArrayPropertiesField extends PropertiesField {
|
|
|
358481
358480
|
}
|
|
358482
358481
|
/**
|
|
358483
358482
|
* Serialize this object to JSON.
|
|
358484
|
-
* @deprecated in 5.0 -
|
|
358483
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[toCompressedJSON]] instead.
|
|
358485
358484
|
*/
|
|
358486
358485
|
toJSON() {
|
|
358487
358486
|
return {
|
|
@@ -358500,7 +358499,7 @@ class ArrayPropertiesField extends PropertiesField {
|
|
|
358500
358499
|
}
|
|
358501
358500
|
/**
|
|
358502
358501
|
* Deserialize [[ArrayPropertiesField]] from JSON.
|
|
358503
|
-
* @deprecated in 5.0 -
|
|
358502
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[fromCompressedJSON]] instead.
|
|
358504
358503
|
*/
|
|
358505
358504
|
static fromJSON(json, categories) {
|
|
358506
358505
|
return new ArrayPropertiesField({
|
|
@@ -358571,7 +358570,7 @@ class StructPropertiesField extends PropertiesField {
|
|
|
358571
358570
|
}
|
|
358572
358571
|
/**
|
|
358573
358572
|
* Serialize this object to JSON.
|
|
358574
|
-
* @deprecated in 5.0 -
|
|
358573
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[toCompressedJSON]] instead.
|
|
358575
358574
|
*/
|
|
358576
358575
|
toJSON() {
|
|
358577
358576
|
return {
|
|
@@ -358590,7 +358589,7 @@ class StructPropertiesField extends PropertiesField {
|
|
|
358590
358589
|
}
|
|
358591
358590
|
/**
|
|
358592
358591
|
* Deserialize [[StructPropertiesField]] from JSON.
|
|
358593
|
-
* @deprecated in 5.0 -
|
|
358592
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[fromCompressedJSON]] instead.
|
|
358594
358593
|
*/
|
|
358595
358594
|
static fromJSON(json, categories) {
|
|
358596
358595
|
return new StructPropertiesField({
|
|
@@ -358691,7 +358690,7 @@ class NestedContentField extends Field {
|
|
|
358691
358690
|
}
|
|
358692
358691
|
/**
|
|
358693
358692
|
* Serialize this object to JSON.
|
|
358694
|
-
* @deprecated in 5.0 -
|
|
358693
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[toCompressedJSON]] instead.
|
|
358695
358694
|
*/
|
|
358696
358695
|
toJSON() {
|
|
358697
358696
|
return {
|
|
@@ -360906,7 +360905,7 @@ class Presentation {
|
|
|
360906
360905
|
/**
|
|
360907
360906
|
* The singleton [[SelectionManager]].
|
|
360908
360907
|
*
|
|
360909
|
-
* @deprecated in 5.0 -
|
|
360908
|
+
* @deprecated in 5.0 - might be removed in next major version. The whole unified selection system in this package is deprecated in favor of the new
|
|
360910
360909
|
* [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package.
|
|
360911
360910
|
*/
|
|
360912
360911
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -361001,7 +361000,7 @@ class PresentationManager {
|
|
|
361001
361000
|
/**
|
|
361002
361001
|
* Get / set active unit system used to format property values with units.
|
|
361003
361002
|
*
|
|
361004
|
-
* @deprecated in 4.0 -
|
|
361003
|
+
* @deprecated in 4.0 - might be removed in next major version. `IModelApp.quantityFormatter` should be used to get/set the active unit system. At the moment
|
|
361005
361004
|
* [[PresentationManager]] allows overriding it, but returns `IModelApp.quantityFormatter.activeUnitSystem` if override
|
|
361006
361005
|
* is not set.
|
|
361007
361006
|
*/
|
|
@@ -361045,7 +361044,7 @@ class PresentationManager {
|
|
|
361045
361044
|
this._clearEventListener = undefined;
|
|
361046
361045
|
}
|
|
361047
361046
|
}
|
|
361048
|
-
/** @deprecated in 5.0 -
|
|
361047
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
361049
361048
|
/* c8 ignore next 3 */
|
|
361050
361049
|
dispose() {
|
|
361051
361050
|
this[Symbol.dispose]();
|
|
@@ -361179,7 +361178,7 @@ class PresentationManager {
|
|
|
361179
361178
|
}
|
|
361180
361179
|
/**
|
|
361181
361180
|
* Retrieves nodes.
|
|
361182
|
-
* @deprecated in 4.5 -
|
|
361181
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[getNodesIterator]] instead.
|
|
361183
361182
|
*/
|
|
361184
361183
|
async getNodes(requestOptions) {
|
|
361185
361184
|
const result = await this.getNodesIterator(requestOptions);
|
|
@@ -361198,7 +361197,7 @@ class PresentationManager {
|
|
|
361198
361197
|
}
|
|
361199
361198
|
/**
|
|
361200
361199
|
* Retrieves total nodes count and a single page of nodes.
|
|
361201
|
-
* @deprecated in 4.5 -
|
|
361200
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[getNodesIterator]] instead.
|
|
361202
361201
|
*/
|
|
361203
361202
|
async getNodesAndCount(requestOptions) {
|
|
361204
361203
|
const result = await this.getNodesIterator(requestOptions);
|
|
@@ -361359,7 +361358,7 @@ class PresentationManager {
|
|
|
361359
361358
|
}
|
|
361360
361359
|
/**
|
|
361361
361360
|
* Retrieves content which consists of a content descriptor and a page of records.
|
|
361362
|
-
* @deprecated in 4.5 -
|
|
361361
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[getContentIterator]] instead.
|
|
361363
361362
|
*/
|
|
361364
361363
|
async getContent(requestOptions) {
|
|
361365
361364
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -361367,7 +361366,7 @@ class PresentationManager {
|
|
|
361367
361366
|
}
|
|
361368
361367
|
/**
|
|
361369
361368
|
* Retrieves content set size and content which consists of a content descriptor and a page of records.
|
|
361370
|
-
* @deprecated in 4.5 -
|
|
361369
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[getContentIterator]] instead.
|
|
361371
361370
|
*/
|
|
361372
361371
|
async getContentAndSize(requestOptions) {
|
|
361373
361372
|
const response = await this.getContentIterator(requestOptions);
|
|
@@ -361404,7 +361403,7 @@ class PresentationManager {
|
|
|
361404
361403
|
}
|
|
361405
361404
|
/**
|
|
361406
361405
|
* Retrieves distinct values of specific field from the content.
|
|
361407
|
-
* @deprecated in 4.5 -
|
|
361406
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[getDistinctValuesIterator]] instead.
|
|
361408
361407
|
*/
|
|
361409
361408
|
async getPagedDistinctValues(requestOptions) {
|
|
361410
361409
|
const result = await this.getDistinctValuesIterator(requestOptions);
|
|
@@ -361493,7 +361492,7 @@ class PresentationManager {
|
|
|
361493
361492
|
}
|
|
361494
361493
|
/**
|
|
361495
361494
|
* Retrieves display label definition of specific items.
|
|
361496
|
-
* @deprecated in 4.5 -
|
|
361495
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[getDisplayLabelDefinitionsIterator]] instead.
|
|
361497
361496
|
*/
|
|
361498
361497
|
async getDisplayLabelDefinitions(requestOptions) {
|
|
361499
361498
|
const { items } = await this.getDisplayLabelDefinitionsIterator(requestOptions);
|
|
@@ -362059,14 +362058,14 @@ class FavoritePropertiesManager {
|
|
|
362059
362058
|
this.storage.dispose();
|
|
362060
362059
|
}
|
|
362061
362060
|
}
|
|
362062
|
-
/** @deprecated in 5.0 -
|
|
362061
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
362063
362062
|
/* c8 ignore next 3 */
|
|
362064
362063
|
dispose() {
|
|
362065
362064
|
this[Symbol.dispose]();
|
|
362066
362065
|
}
|
|
362067
362066
|
/**
|
|
362068
362067
|
* Initialize favorite properties for the provided IModelConnection.
|
|
362069
|
-
* @deprecated in 4.5 -
|
|
362068
|
+
* @deprecated in 4.5 - might be removed in next major version. Initialization is performed automatically by all async methods and only needed for deprecated [[FavoritePropertiesManager.has]] and [[FavoritePropertiesManager.sortFields]].
|
|
362070
362069
|
*/
|
|
362071
362070
|
initializeConnection = async (imodel) => {
|
|
362072
362071
|
const imodelId = imodel.iModelId;
|
|
@@ -362276,7 +362275,7 @@ class FavoritePropertiesManager {
|
|
|
362276
362275
|
* @param imodel IModelConnection.
|
|
362277
362276
|
* @param scope FavoritePropertiesScope to check for favorite properties. It also checks the more general scopes.
|
|
362278
362277
|
* @note `initializeConnection` must be called with the `imodel` before calling this function.
|
|
362279
|
-
* @deprecated in 4.5 -
|
|
362278
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[FavoritePropertiesManager.hasAsync]] instead. This method is not async, therefore it requires early initialization by calling [[FavoritePropertiesManager.initializeConnection]].
|
|
362280
362279
|
*/
|
|
362281
362280
|
has(field, imodel, scope) {
|
|
362282
362281
|
this.validateInitialization(imodel);
|
|
@@ -362304,7 +362303,7 @@ class FavoritePropertiesManager {
|
|
|
362304
362303
|
* @param imodel IModelConnection.
|
|
362305
362304
|
* @param fields Array of Field's that needs to be sorted.
|
|
362306
362305
|
* @note `initializeConnection` must be called with the `imodel` before calling this function.
|
|
362307
|
-
* @deprecated in 4.5 -
|
|
362306
|
+
* @deprecated in 4.5 - might be removed in next major version. Use [[FavoritePropertiesManager.sortFieldsAsync]] instead. This method is not async, therefore it requires early initialization by calling [[FavoritePropertiesManager.initializeConnection]].
|
|
362308
362307
|
*/
|
|
362309
362308
|
sortFields = (imodel, fields) => {
|
|
362310
362309
|
this.validateInitialization(imodel);
|
|
@@ -362980,7 +362979,7 @@ const HILITE_RULESET = HiliteRules_json_1.default;
|
|
|
362980
362979
|
* supplied `KeySet`.
|
|
362981
362980
|
*
|
|
362982
362981
|
* @public
|
|
362983
|
-
* @deprecated in 5.0 -
|
|
362982
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `HiliteSetProvider` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#hilite-sets) package instead.
|
|
362984
362983
|
*/
|
|
362985
362984
|
class HiliteSetProvider {
|
|
362986
362985
|
_imodel;
|
|
@@ -363140,7 +363139,7 @@ const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../cor
|
|
|
363140
363139
|
/**
|
|
363141
363140
|
* An event broadcasted on selection changes
|
|
363142
363141
|
* @public
|
|
363143
|
-
* @deprecated in 5.0 -
|
|
363142
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `Event<StorageSelectionChangesListener>` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package instead.
|
|
363144
363143
|
*/
|
|
363145
363144
|
class SelectionChangeEvent extends core_bentley_1.BeEvent {
|
|
363146
363145
|
}
|
|
@@ -363148,7 +363147,7 @@ exports.SelectionChangeEvent = SelectionChangeEvent;
|
|
|
363148
363147
|
/**
|
|
363149
363148
|
* The type of selection change
|
|
363150
363149
|
* @public
|
|
363151
|
-
* @deprecated in 5.0 -
|
|
363150
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `StorageSelectionChangeType` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package instead.
|
|
363152
363151
|
*/
|
|
363153
363152
|
var SelectionChangeType;
|
|
363154
363153
|
(function (SelectionChangeType) {
|
|
@@ -363189,7 +363188,7 @@ const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../cor
|
|
|
363189
363188
|
* internal the selection state.
|
|
363190
363189
|
*
|
|
363191
363190
|
* @public
|
|
363192
|
-
* @deprecated in 5.0 -
|
|
363191
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `SelectionStorage` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#basic-usage) package instead.
|
|
363193
363192
|
*/
|
|
363194
363193
|
class SelectionHandler {
|
|
363195
363194
|
_inSelect;
|
|
@@ -363227,7 +363226,7 @@ class SelectionHandler {
|
|
|
363227
363226
|
[Symbol.dispose]() {
|
|
363228
363227
|
this._disposables.dispose();
|
|
363229
363228
|
}
|
|
363230
|
-
/** @deprecated in 5.0 -
|
|
363229
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
363231
363230
|
/* c8 ignore next 3 */
|
|
363232
363231
|
dispose() {
|
|
363233
363232
|
this[Symbol.dispose]();
|
|
@@ -363332,7 +363331,7 @@ const presentation_common_1 = __webpack_require__(/*! @itwin/presentation-common
|
|
|
363332
363331
|
/**
|
|
363333
363332
|
* Helper class for working with selection.
|
|
363334
363333
|
* @public
|
|
363335
|
-
* @deprecated in 5.0 -
|
|
363334
|
+
* @deprecated in 5.0 - might be removed in next major version. This is unnecessary after switching to [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md)
|
|
363336
363335
|
* package. A similar method to this in the new system is `Selectables.load()`.
|
|
363337
363336
|
*/
|
|
363338
363337
|
class SelectionHelper {
|
|
@@ -363451,7 +363450,7 @@ const SelectionScopesManager_js_1 = __webpack_require__(/*! ./SelectionScopesMan
|
|
|
363451
363450
|
/**
|
|
363452
363451
|
* The selection manager which stores the overall selection.
|
|
363453
363452
|
* @public
|
|
363454
|
-
* @deprecated in 5.0 -
|
|
363453
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `SelectionStorage` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md) package instead.
|
|
363455
363454
|
*/
|
|
363456
363455
|
class SelectionManager {
|
|
363457
363456
|
_imodelKeyFactory;
|
|
@@ -363494,7 +363493,7 @@ class SelectionManager {
|
|
|
363494
363493
|
this._selectionEventsSubscription.unsubscribe();
|
|
363495
363494
|
this._listeners.forEach((dispose) => dispose());
|
|
363496
363495
|
}
|
|
363497
|
-
/** @deprecated in 5.0 -
|
|
363496
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
363498
363497
|
/* c8 ignore next 3 */
|
|
363499
363498
|
dispose() {
|
|
363500
363499
|
this[Symbol.dispose]();
|
|
@@ -364149,7 +364148,7 @@ const presentation_common_1 = __webpack_require__(/*! @itwin/presentation-common
|
|
|
364149
364148
|
* and can compute logical selection based on element IDs and selection scope.
|
|
364150
364149
|
*
|
|
364151
364150
|
* @public
|
|
364152
|
-
* @deprecated in 5.0 -
|
|
364151
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
|
|
364153
364152
|
*/
|
|
364154
364153
|
class SelectionScopesManager {
|
|
364155
364154
|
_rpcRequestsHandler;
|
|
@@ -364217,7 +364216,7 @@ exports.SelectionScopesManager = SelectionScopesManager;
|
|
|
364217
364216
|
* calculating selection with scope.
|
|
364218
364217
|
*
|
|
364219
364218
|
* @public
|
|
364220
|
-
* @deprecated in 5.0 -
|
|
364219
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `computeSelection` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
|
|
364221
364220
|
*/
|
|
364222
364221
|
function createSelectionScopeProps(scope) {
|
|
364223
364222
|
if (!scope) {
|
|
@@ -375759,7 +375758,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
375759
375758
|
/***/ ((module) => {
|
|
375760
375759
|
|
|
375761
375760
|
"use strict";
|
|
375762
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.
|
|
375761
|
+
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"}}');
|
|
375763
375762
|
|
|
375764
375763
|
/***/ }),
|
|
375765
375764
|
|