@itwin/rpcinterface-full-stack-tests 5.1.1 → 5.1.3-experimental.1
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.map +1 -1
- package/lib/common/SideChannels.js.map +1 -1
- package/lib/dist/bundled-tests.js +1032 -1031
- 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 +14 -14
|
@@ -64032,7 +64032,7 @@ class IModel {
|
|
|
64032
64032
|
projectExtents: this.projectExtents.toJSON(),
|
|
64033
64033
|
globalOrigin: this.globalOrigin.toJSON(),
|
|
64034
64034
|
ecefLocation: this.ecefLocation,
|
|
64035
|
-
geographicCoordinateSystem: this.geographicCoordinateSystem,
|
|
64035
|
+
geographicCoordinateSystem: this.geographicCoordinateSystem?.toJSON(),
|
|
64036
64036
|
...this._getRpcProps(),
|
|
64037
64037
|
};
|
|
64038
64038
|
}
|
|
@@ -95015,212 +95015,212 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
95015
95015
|
* WITH clauses are broken down into individual variables.
|
|
95016
95016
|
*/
|
|
95017
95017
|
const propertyType = (alias) => {
|
|
95018
|
-
return `
|
|
95019
|
-
CASE
|
|
95020
|
-
WHEN [${alias}].[Kind] = 0 THEN 'PrimitiveProperty'
|
|
95021
|
-
WHEN [${alias}].[Kind] = 1 THEN 'StructProperty'
|
|
95022
|
-
WHEN [${alias}].[Kind] = 2 THEN 'PrimitiveArrayProperty'
|
|
95023
|
-
WHEN [${alias}].[Kind] = 3 THEN 'StructArrayProperty'
|
|
95024
|
-
WHEN [${alias}].[Kind] = 4 THEN 'NavigationProperty'
|
|
95025
|
-
ELSE NULL
|
|
95026
|
-
END
|
|
95018
|
+
return `
|
|
95019
|
+
CASE
|
|
95020
|
+
WHEN [${alias}].[Kind] = 0 THEN 'PrimitiveProperty'
|
|
95021
|
+
WHEN [${alias}].[Kind] = 1 THEN 'StructProperty'
|
|
95022
|
+
WHEN [${alias}].[Kind] = 2 THEN 'PrimitiveArrayProperty'
|
|
95023
|
+
WHEN [${alias}].[Kind] = 3 THEN 'StructArrayProperty'
|
|
95024
|
+
WHEN [${alias}].[Kind] = 4 THEN 'NavigationProperty'
|
|
95025
|
+
ELSE NULL
|
|
95026
|
+
END
|
|
95027
95027
|
`;
|
|
95028
95028
|
};
|
|
95029
95029
|
const navigationDirection = (alias) => {
|
|
95030
|
-
return `
|
|
95031
|
-
CASE
|
|
95032
|
-
WHEN [${alias}].[NavigationDirection] = 1 THEN 'Forward'
|
|
95033
|
-
WHEN [${alias}].[NavigationDirection] = 2 THEN 'Backward'
|
|
95034
|
-
ELSE NULL
|
|
95035
|
-
END
|
|
95030
|
+
return `
|
|
95031
|
+
CASE
|
|
95032
|
+
WHEN [${alias}].[NavigationDirection] = 1 THEN 'Forward'
|
|
95033
|
+
WHEN [${alias}].[NavigationDirection] = 2 THEN 'Backward'
|
|
95034
|
+
ELSE NULL
|
|
95035
|
+
END
|
|
95036
95036
|
`;
|
|
95037
95037
|
};
|
|
95038
95038
|
const schemaCustomAttribute = (alias) => {
|
|
95039
|
-
return `
|
|
95040
|
-
SELECT
|
|
95041
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95042
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95043
|
-
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 1
|
|
95044
|
-
ORDER BY [ca].[Ordinal]
|
|
95039
|
+
return `
|
|
95040
|
+
SELECT
|
|
95041
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95042
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95043
|
+
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 1
|
|
95044
|
+
ORDER BY [ca].[Ordinal]
|
|
95045
95045
|
`;
|
|
95046
95046
|
};
|
|
95047
95047
|
/**
|
|
95048
95048
|
* Selects customAttribute data for each class type.
|
|
95049
95049
|
*/
|
|
95050
95050
|
const classCustomAttribute = (alias) => {
|
|
95051
|
-
return `
|
|
95052
|
-
SELECT
|
|
95053
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95054
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95055
|
-
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
95056
|
-
ORDER BY [ca].[Ordinal]
|
|
95051
|
+
return `
|
|
95052
|
+
SELECT
|
|
95053
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95054
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95055
|
+
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
95056
|
+
ORDER BY [ca].[Ordinal]
|
|
95057
95057
|
`;
|
|
95058
95058
|
};
|
|
95059
95059
|
const propertyCustomAttribute = (alias) => {
|
|
95060
|
-
return `
|
|
95061
|
-
SELECT
|
|
95062
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95063
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95064
|
-
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 992
|
|
95065
|
-
ORDER BY [ca].[Ordinal]
|
|
95060
|
+
return `
|
|
95061
|
+
SELECT
|
|
95062
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95063
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95064
|
+
WHERE [ca].[ContainerId] = [${alias}].[ECInstanceId] AND [ca].[ContainerType] = 992
|
|
95065
|
+
ORDER BY [ca].[Ordinal]
|
|
95066
95066
|
`;
|
|
95067
95067
|
};
|
|
95068
95068
|
/**
|
|
95069
95069
|
* Selects base class data for each class type.
|
|
95070
95070
|
*/
|
|
95071
|
-
const selectBaseClasses = `
|
|
95072
|
-
SELECT
|
|
95073
|
-
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
95074
|
-
FROM
|
|
95075
|
-
[meta].[ECClassDef] [baseClass]
|
|
95076
|
-
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
95077
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
95078
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
95079
|
-
LIMIT 1
|
|
95071
|
+
const selectBaseClasses = `
|
|
95072
|
+
SELECT
|
|
95073
|
+
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
95074
|
+
FROM
|
|
95075
|
+
[meta].[ECClassDef] [baseClass]
|
|
95076
|
+
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
95077
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
95078
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
95079
|
+
LIMIT 1
|
|
95080
95080
|
`;
|
|
95081
95081
|
/**
|
|
95082
95082
|
* Selects class property data for each class type. ClassProperties
|
|
95083
95083
|
* is a common table expression (CTE or WITH clause) defined below.
|
|
95084
95084
|
*/
|
|
95085
|
-
const selectProperties = `
|
|
95086
|
-
SELECT
|
|
95087
|
-
json_group_array(json([classProperties].[property]))
|
|
95088
|
-
FROM
|
|
95089
|
-
[ClassProperties] [classProperties]
|
|
95090
|
-
WHERE
|
|
95091
|
-
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
95085
|
+
const selectProperties = `
|
|
95086
|
+
SELECT
|
|
95087
|
+
json_group_array(json([classProperties].[property]))
|
|
95088
|
+
FROM
|
|
95089
|
+
[ClassProperties] [classProperties]
|
|
95090
|
+
WHERE
|
|
95091
|
+
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
95092
95092
|
`;
|
|
95093
95093
|
/**
|
|
95094
95094
|
* A CTE used to select AppliesTo from IsMixin CustomAttributes for a given Mixin.
|
|
95095
95095
|
*/
|
|
95096
|
-
const withAppliesTo = `
|
|
95097
|
-
AppliesToCTE AS (
|
|
95098
|
-
SELECT
|
|
95099
|
-
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
95100
|
-
[appliesToSchema].[name] as [AppliesToSchema],
|
|
95101
|
-
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
95102
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95103
|
-
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
95104
|
-
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
95105
|
-
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
95106
|
-
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
95107
|
-
WHERE [ca].[ContainerType] = 30
|
|
95108
|
-
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
95109
|
-
)
|
|
95096
|
+
const withAppliesTo = `
|
|
95097
|
+
AppliesToCTE AS (
|
|
95098
|
+
SELECT
|
|
95099
|
+
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
95100
|
+
[appliesToSchema].[name] as [AppliesToSchema],
|
|
95101
|
+
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
95102
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95103
|
+
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
95104
|
+
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
95105
|
+
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
95106
|
+
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
95107
|
+
WHERE [ca].[ContainerType] = 30
|
|
95108
|
+
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
95109
|
+
)
|
|
95110
95110
|
`;
|
|
95111
95111
|
/**
|
|
95112
95112
|
* A CTE used to select Schema reference data for a given Schema.
|
|
95113
95113
|
*/
|
|
95114
|
-
const withSchemaReferences = `
|
|
95115
|
-
SchemaReferences as (
|
|
95116
|
-
SELECT
|
|
95117
|
-
[ref].[SourceECInstanceId] as [SchemaId],
|
|
95118
|
-
json_object(
|
|
95119
|
-
'name', [Name],
|
|
95120
|
-
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor]))
|
|
95121
|
-
) as [reference]
|
|
95122
|
-
FROM
|
|
95123
|
-
[meta].[ECSchemaDef] as [refSchema]
|
|
95124
|
-
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
95125
|
-
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
95126
|
-
)
|
|
95114
|
+
const withSchemaReferences = `
|
|
95115
|
+
SchemaReferences as (
|
|
95116
|
+
SELECT
|
|
95117
|
+
[ref].[SourceECInstanceId] as [SchemaId],
|
|
95118
|
+
json_object(
|
|
95119
|
+
'name', [Name],
|
|
95120
|
+
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor]))
|
|
95121
|
+
) as [reference]
|
|
95122
|
+
FROM
|
|
95123
|
+
[meta].[ECSchemaDef] as [refSchema]
|
|
95124
|
+
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
95125
|
+
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
95126
|
+
)
|
|
95127
95127
|
`;
|
|
95128
95128
|
/**
|
|
95129
95129
|
* A CTE used to select Relationship constraints for a given RelationshipClass.
|
|
95130
95130
|
*/
|
|
95131
|
-
const withRelationshipConstraints = `
|
|
95132
|
-
ClassRelationshipConstraints as (
|
|
95133
|
-
SELECT
|
|
95134
|
-
[rhc].[SourceECInstanceId] as [ClassId],
|
|
95135
|
-
[constraintDef].[ECInstanceId] as [ConstraintId],
|
|
95136
|
-
[RelationshipEnd],
|
|
95137
|
-
CONCAT('(', [MultiplicityLowerLimit], '..', IIF([MultiplicityUpperLimit] IS NULL, '*', [MultiplicityUpperLimit]), ')') as [Multiplicity],
|
|
95138
|
-
[IsPolyMorphic],
|
|
95139
|
-
[RoleLabel],
|
|
95140
|
-
IIF([constraintDef].[AbstractConstraintClass] IS NOT NULL, ec_classname([constraintDef].[AbstractConstraintClass].[Id], 's.c'), null) as [AbstractConstraint],
|
|
95141
|
-
IIF ([rchc].[TargetECInstanceId] IS NOT NULL, JSON_GROUP_ARRAY(ec_classname([rchc].[TargetECInstanceId], 's.c')), null) as [ConstraintClasses]
|
|
95142
|
-
FROM
|
|
95143
|
-
[meta].[ECRelationshipConstraintDef] [constraintDef]
|
|
95144
|
-
JOIN [meta].[RelationshipHasConstraints] [rhc]
|
|
95145
|
-
ON [rhc].[TargetECInstanceId] = [constraintDef].[ECInstanceId]
|
|
95146
|
-
JOIN [meta].[RelationshipConstraintHasClasses] [rchc]
|
|
95147
|
-
ON [rchc].[SourceECInstanceId] = [constraintDef].[ECInstanceId]
|
|
95148
|
-
GROUP BY [constraintDef].[ECInstanceId]
|
|
95149
|
-
)
|
|
95131
|
+
const withRelationshipConstraints = `
|
|
95132
|
+
ClassRelationshipConstraints as (
|
|
95133
|
+
SELECT
|
|
95134
|
+
[rhc].[SourceECInstanceId] as [ClassId],
|
|
95135
|
+
[constraintDef].[ECInstanceId] as [ConstraintId],
|
|
95136
|
+
[RelationshipEnd],
|
|
95137
|
+
CONCAT('(', [MultiplicityLowerLimit], '..', IIF([MultiplicityUpperLimit] IS NULL, '*', [MultiplicityUpperLimit]), ')') as [Multiplicity],
|
|
95138
|
+
[IsPolyMorphic],
|
|
95139
|
+
[RoleLabel],
|
|
95140
|
+
IIF([constraintDef].[AbstractConstraintClass] IS NOT NULL, ec_classname([constraintDef].[AbstractConstraintClass].[Id], 's.c'), null) as [AbstractConstraint],
|
|
95141
|
+
IIF ([rchc].[TargetECInstanceId] IS NOT NULL, JSON_GROUP_ARRAY(ec_classname([rchc].[TargetECInstanceId], 's.c')), null) as [ConstraintClasses]
|
|
95142
|
+
FROM
|
|
95143
|
+
[meta].[ECRelationshipConstraintDef] [constraintDef]
|
|
95144
|
+
JOIN [meta].[RelationshipHasConstraints] [rhc]
|
|
95145
|
+
ON [rhc].[TargetECInstanceId] = [constraintDef].[ECInstanceId]
|
|
95146
|
+
JOIN [meta].[RelationshipConstraintHasClasses] [rchc]
|
|
95147
|
+
ON [rchc].[SourceECInstanceId] = [constraintDef].[ECInstanceId]
|
|
95148
|
+
GROUP BY [constraintDef].[ECInstanceId]
|
|
95149
|
+
)
|
|
95150
95150
|
`;
|
|
95151
95151
|
/**
|
|
95152
95152
|
* A CTE used to select Class property data for a given Class.
|
|
95153
95153
|
*/
|
|
95154
|
-
const withClassProperties = `
|
|
95155
|
-
ClassProperties as (
|
|
95156
|
-
SELECT
|
|
95157
|
-
[cop].[SourceECInstanceId] as [ClassId],
|
|
95158
|
-
json_object(
|
|
95159
|
-
'name', [pd].[Name],
|
|
95160
|
-
'label', [pd].[DisplayLabel],
|
|
95161
|
-
'description', [pd].[Description],
|
|
95162
|
-
'isReadOnly', IIF([pd].[IsReadOnly] = 1, json('true'), NULL),
|
|
95163
|
-
'priority', [pd].[Priority],
|
|
95164
|
-
'category', IIF([categoryDef].[Name] IS NULL, NULL, CONCAT([categorySchemaDef].[Name], '.', [categoryDef].[Name])),
|
|
95165
|
-
'kindOfQuantity', IIF([koqDef].[Name] IS NULL, NULL, CONCAT([koqSchemaDef].[Name], '.', [koqDef].[Name])),
|
|
95166
|
-
'typeName',
|
|
95167
|
-
CASE
|
|
95168
|
-
WHEN [pd].[Kind] = 0 OR [pd].[Kind] = 2 Then
|
|
95169
|
-
CASE
|
|
95170
|
-
WHEN [enumDef].[Name] IS NOT NULL Then CONCAT([enumSchemaDef].[Name], '.', [enumDef].[Name])
|
|
95171
|
-
WHEN [pd].[PrimitiveType] = 257 Then 'binary'
|
|
95172
|
-
WHEN [pd].[PrimitiveType] = 513 Then 'boolean'
|
|
95173
|
-
WHEN [pd].[PrimitiveType] = 769 Then 'dateTime'
|
|
95174
|
-
WHEN [pd].[PrimitiveType] = 1025 Then 'double'
|
|
95175
|
-
WHEN [pd].[PrimitiveType] = 1281 Then 'int'
|
|
95176
|
-
WHEN [pd].[PrimitiveType] = 1537 Then 'long'
|
|
95177
|
-
WHEN [pd].[PrimitiveType] = 1793 Then 'point2d'
|
|
95178
|
-
WHEN [pd].[PrimitiveType] = 2049 Then 'point3d'
|
|
95179
|
-
WHEN [pd].[PrimitiveType] = 2305 Then 'string'
|
|
95180
|
-
WHEN [pd].[PrimitiveType] = 2561 Then 'Bentley.Geometry.Common.IGeometry'
|
|
95181
|
-
ELSE null
|
|
95182
|
-
END
|
|
95183
|
-
WHEN [pd].[Kind] = 1 OR [pd].[Kind] = 3 Then
|
|
95184
|
-
CONCAT([structSchemaDef].[Name], '.', [structDef].[Name])
|
|
95185
|
-
ELSE null
|
|
95186
|
-
END,
|
|
95187
|
-
'type', ${propertyType("pd")},
|
|
95188
|
-
'minLength', [pd].[PrimitiveTypeMinLength],
|
|
95189
|
-
'maxLength', [pd].[PrimitiveTypeMaxLength],
|
|
95190
|
-
'minValue', [pd].[PrimitiveTypeMinValue],
|
|
95191
|
-
'maxValue', [pd].[PrimitiveTypeMaxValue],
|
|
95192
|
-
'extendedTypeName', [pd].[ExtendedTypeName],
|
|
95193
|
-
'minOccurs', [pd].[ArrayMinOccurs],
|
|
95194
|
-
'maxOccurs', [pd].[ArrayMaxOccurs],
|
|
95195
|
-
'direction', ${navigationDirection("pd")},
|
|
95196
|
-
'relationshipName', IIF([navRelDef].[Name] IS NULL, NULL, CONCAT([navSchemaDef].[Name], '.', [navRelDef].[Name])),
|
|
95197
|
-
'customAttributes', (${propertyCustomAttribute("pd")})
|
|
95198
|
-
) as [property]
|
|
95199
|
-
FROM
|
|
95200
|
-
[meta].[ECPropertyDef] as [pd]
|
|
95201
|
-
JOIN [meta].[ClassOwnsLocalProperties] [cop]
|
|
95202
|
-
ON cop.[TargetECInstanceId] = [pd].[ECInstanceId]
|
|
95203
|
-
LEFT JOIN [meta].[ECEnumerationDef] [enumDef]
|
|
95204
|
-
ON [enumDef].[ECInstanceId] = [pd].[Enumeration].[Id]
|
|
95205
|
-
LEFT JOIN [meta].[ECSchemaDef] enumSchemaDef
|
|
95206
|
-
ON [enumSchemaDef].[ECInstanceId] = [enumDef].[Schema].[Id]
|
|
95207
|
-
LEFT JOIN [meta].[PropertyCategoryDef] [categoryDef]
|
|
95208
|
-
ON [categoryDef].[ECInstanceId] = [pd].[Category].[Id]
|
|
95209
|
-
LEFT JOIN [meta].[ECSchemaDef] [categorySchemaDef]
|
|
95210
|
-
ON [categorySchemaDef].[ECInstanceId] = [categoryDef].[Schema].[Id]
|
|
95211
|
-
LEFT JOIN [meta].[KindOfQuantityDef] [koqDef]
|
|
95212
|
-
ON [koqDef].[ECInstanceId] = [pd].[KindOfQuantity].[Id]
|
|
95213
|
-
LEFT JOIN [meta].[ECSchemaDef] [koqSchemaDef]
|
|
95214
|
-
ON [koqSchemaDef].[ECInstanceId] = [koqDef].[Schema].[Id]
|
|
95215
|
-
LEFT JOIN [meta].[ECClassDef] [structDef]
|
|
95216
|
-
ON structDef.[ECInstanceId] = [pd].[StructClass].[Id]
|
|
95217
|
-
LEFT JOIN [meta].[ECSchemaDef] [structSchemaDef]
|
|
95218
|
-
ON [structSchemaDef].[ECInstanceId] = [structDef].[Schema].[Id]
|
|
95219
|
-
LEFT JOIN [meta].[ECClassDef] [navRelDef]
|
|
95220
|
-
ON [navRelDef].[ECInstanceId] = [pd].[NavigationRelationshipClass].[Id]
|
|
95221
|
-
LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
|
|
95222
|
-
ON [navSchemaDef].[ECInstanceId] = [navRelDef].[Schema].[Id]
|
|
95223
|
-
)
|
|
95154
|
+
const withClassProperties = `
|
|
95155
|
+
ClassProperties as (
|
|
95156
|
+
SELECT
|
|
95157
|
+
[cop].[SourceECInstanceId] as [ClassId],
|
|
95158
|
+
json_object(
|
|
95159
|
+
'name', [pd].[Name],
|
|
95160
|
+
'label', [pd].[DisplayLabel],
|
|
95161
|
+
'description', [pd].[Description],
|
|
95162
|
+
'isReadOnly', IIF([pd].[IsReadOnly] = 1, json('true'), NULL),
|
|
95163
|
+
'priority', [pd].[Priority],
|
|
95164
|
+
'category', IIF([categoryDef].[Name] IS NULL, NULL, CONCAT([categorySchemaDef].[Name], '.', [categoryDef].[Name])),
|
|
95165
|
+
'kindOfQuantity', IIF([koqDef].[Name] IS NULL, NULL, CONCAT([koqSchemaDef].[Name], '.', [koqDef].[Name])),
|
|
95166
|
+
'typeName',
|
|
95167
|
+
CASE
|
|
95168
|
+
WHEN [pd].[Kind] = 0 OR [pd].[Kind] = 2 Then
|
|
95169
|
+
CASE
|
|
95170
|
+
WHEN [enumDef].[Name] IS NOT NULL Then CONCAT([enumSchemaDef].[Name], '.', [enumDef].[Name])
|
|
95171
|
+
WHEN [pd].[PrimitiveType] = 257 Then 'binary'
|
|
95172
|
+
WHEN [pd].[PrimitiveType] = 513 Then 'boolean'
|
|
95173
|
+
WHEN [pd].[PrimitiveType] = 769 Then 'dateTime'
|
|
95174
|
+
WHEN [pd].[PrimitiveType] = 1025 Then 'double'
|
|
95175
|
+
WHEN [pd].[PrimitiveType] = 1281 Then 'int'
|
|
95176
|
+
WHEN [pd].[PrimitiveType] = 1537 Then 'long'
|
|
95177
|
+
WHEN [pd].[PrimitiveType] = 1793 Then 'point2d'
|
|
95178
|
+
WHEN [pd].[PrimitiveType] = 2049 Then 'point3d'
|
|
95179
|
+
WHEN [pd].[PrimitiveType] = 2305 Then 'string'
|
|
95180
|
+
WHEN [pd].[PrimitiveType] = 2561 Then 'Bentley.Geometry.Common.IGeometry'
|
|
95181
|
+
ELSE null
|
|
95182
|
+
END
|
|
95183
|
+
WHEN [pd].[Kind] = 1 OR [pd].[Kind] = 3 Then
|
|
95184
|
+
CONCAT([structSchemaDef].[Name], '.', [structDef].[Name])
|
|
95185
|
+
ELSE null
|
|
95186
|
+
END,
|
|
95187
|
+
'type', ${propertyType("pd")},
|
|
95188
|
+
'minLength', [pd].[PrimitiveTypeMinLength],
|
|
95189
|
+
'maxLength', [pd].[PrimitiveTypeMaxLength],
|
|
95190
|
+
'minValue', [pd].[PrimitiveTypeMinValue],
|
|
95191
|
+
'maxValue', [pd].[PrimitiveTypeMaxValue],
|
|
95192
|
+
'extendedTypeName', [pd].[ExtendedTypeName],
|
|
95193
|
+
'minOccurs', [pd].[ArrayMinOccurs],
|
|
95194
|
+
'maxOccurs', [pd].[ArrayMaxOccurs],
|
|
95195
|
+
'direction', ${navigationDirection("pd")},
|
|
95196
|
+
'relationshipName', IIF([navRelDef].[Name] IS NULL, NULL, CONCAT([navSchemaDef].[Name], '.', [navRelDef].[Name])),
|
|
95197
|
+
'customAttributes', (${propertyCustomAttribute("pd")})
|
|
95198
|
+
) as [property]
|
|
95199
|
+
FROM
|
|
95200
|
+
[meta].[ECPropertyDef] as [pd]
|
|
95201
|
+
JOIN [meta].[ClassOwnsLocalProperties] [cop]
|
|
95202
|
+
ON cop.[TargetECInstanceId] = [pd].[ECInstanceId]
|
|
95203
|
+
LEFT JOIN [meta].[ECEnumerationDef] [enumDef]
|
|
95204
|
+
ON [enumDef].[ECInstanceId] = [pd].[Enumeration].[Id]
|
|
95205
|
+
LEFT JOIN [meta].[ECSchemaDef] enumSchemaDef
|
|
95206
|
+
ON [enumSchemaDef].[ECInstanceId] = [enumDef].[Schema].[Id]
|
|
95207
|
+
LEFT JOIN [meta].[PropertyCategoryDef] [categoryDef]
|
|
95208
|
+
ON [categoryDef].[ECInstanceId] = [pd].[Category].[Id]
|
|
95209
|
+
LEFT JOIN [meta].[ECSchemaDef] [categorySchemaDef]
|
|
95210
|
+
ON [categorySchemaDef].[ECInstanceId] = [categoryDef].[Schema].[Id]
|
|
95211
|
+
LEFT JOIN [meta].[KindOfQuantityDef] [koqDef]
|
|
95212
|
+
ON [koqDef].[ECInstanceId] = [pd].[KindOfQuantity].[Id]
|
|
95213
|
+
LEFT JOIN [meta].[ECSchemaDef] [koqSchemaDef]
|
|
95214
|
+
ON [koqSchemaDef].[ECInstanceId] = [koqDef].[Schema].[Id]
|
|
95215
|
+
LEFT JOIN [meta].[ECClassDef] [structDef]
|
|
95216
|
+
ON structDef.[ECInstanceId] = [pd].[StructClass].[Id]
|
|
95217
|
+
LEFT JOIN [meta].[ECSchemaDef] [structSchemaDef]
|
|
95218
|
+
ON [structSchemaDef].[ECInstanceId] = [structDef].[Schema].[Id]
|
|
95219
|
+
LEFT JOIN [meta].[ECClassDef] [navRelDef]
|
|
95220
|
+
ON [navRelDef].[ECInstanceId] = [pd].[NavigationRelationshipClass].[Id]
|
|
95221
|
+
LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
|
|
95222
|
+
ON [navSchemaDef].[ECInstanceId] = [navRelDef].[Schema].[Id]
|
|
95223
|
+
)
|
|
95224
95224
|
`;
|
|
95225
95225
|
/**
|
|
95226
95226
|
* Query that provides EntityClass data and is shared by two cases:
|
|
@@ -95228,52 +95228,52 @@ LEFT JOIN [meta].[ECSchemaDef] [navSchemaDef]
|
|
|
95228
95228
|
* 2. When querying a full schema with multiple schema item queries or
|
|
95229
95229
|
* when just querying for Entity classes.
|
|
95230
95230
|
*/
|
|
95231
|
-
const baseEntityQuery = `
|
|
95232
|
-
SELECT
|
|
95233
|
-
[sd].[Name] as [schema],
|
|
95234
|
-
json_object (
|
|
95235
|
-
'schemaItemType', 'EntityClass',
|
|
95236
|
-
'name', [class].[Name],
|
|
95237
|
-
'label', [class].[DisplayLabel],
|
|
95238
|
-
'description', [class].[Description],
|
|
95239
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95240
|
-
'baseClass', (
|
|
95241
|
-
${selectBaseClasses}
|
|
95242
|
-
),
|
|
95243
|
-
'mixins', (
|
|
95244
|
-
SELECT
|
|
95245
|
-
json_group_array(
|
|
95246
|
-
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
95247
|
-
)
|
|
95248
|
-
FROM
|
|
95249
|
-
[meta].[ECClassDef] [baseClass]
|
|
95250
|
-
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
95251
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
95252
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
95253
|
-
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
95254
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
95255
|
-
),
|
|
95256
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
95257
|
-
'properties', (
|
|
95258
|
-
${selectProperties}
|
|
95259
|
-
)
|
|
95260
|
-
) AS [item]
|
|
95261
|
-
FROM [meta].[ECClassDef] [class]
|
|
95262
|
-
JOIN
|
|
95263
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95264
|
-
WHERE [class].[Type] = 0 AND
|
|
95265
|
-
[sd].[Name] = :schemaName
|
|
95266
|
-
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
95267
|
-
AND [ca].[CustomAttributeClass].Id Is ([CoreCA].[IsMixin]))
|
|
95231
|
+
const baseEntityQuery = `
|
|
95232
|
+
SELECT
|
|
95233
|
+
[sd].[Name] as [schema],
|
|
95234
|
+
json_object (
|
|
95235
|
+
'schemaItemType', 'EntityClass',
|
|
95236
|
+
'name', [class].[Name],
|
|
95237
|
+
'label', [class].[DisplayLabel],
|
|
95238
|
+
'description', [class].[Description],
|
|
95239
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95240
|
+
'baseClass', (
|
|
95241
|
+
${selectBaseClasses}
|
|
95242
|
+
),
|
|
95243
|
+
'mixins', (
|
|
95244
|
+
SELECT
|
|
95245
|
+
json_group_array(
|
|
95246
|
+
ec_classname([baseClass].[ECInstanceId], 's.c')
|
|
95247
|
+
)
|
|
95248
|
+
FROM
|
|
95249
|
+
[meta].[ECClassDef] [baseClass]
|
|
95250
|
+
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
95251
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseClass].[ECInstanceId]
|
|
95252
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
95253
|
+
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
95254
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
95255
|
+
),
|
|
95256
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
95257
|
+
'properties', (
|
|
95258
|
+
${selectProperties}
|
|
95259
|
+
)
|
|
95260
|
+
) AS [item]
|
|
95261
|
+
FROM [meta].[ECClassDef] [class]
|
|
95262
|
+
JOIN
|
|
95263
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95264
|
+
WHERE [class].[Type] = 0 AND
|
|
95265
|
+
[sd].[Name] = :schemaName
|
|
95266
|
+
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
95267
|
+
AND [ca].[CustomAttributeClass].Id Is ([CoreCA].[IsMixin]))
|
|
95268
95268
|
`;
|
|
95269
95269
|
/**
|
|
95270
95270
|
* EntityClass query used to when querying for EntityClass data only. Not used
|
|
95271
95271
|
* for full Schema load via single query.
|
|
95272
95272
|
*/
|
|
95273
|
-
const entityQuery = `
|
|
95274
|
-
WITH
|
|
95275
|
-
${withClassProperties}
|
|
95276
|
-
${baseEntityQuery}
|
|
95273
|
+
const entityQuery = `
|
|
95274
|
+
WITH
|
|
95275
|
+
${withClassProperties}
|
|
95276
|
+
${baseEntityQuery}
|
|
95277
95277
|
`;
|
|
95278
95278
|
/**
|
|
95279
95279
|
* Query that provides Mixin data and is shared by two cases:
|
|
@@ -95281,56 +95281,56 @@ const entityQuery = `
|
|
|
95281
95281
|
* 2. When querying a full schema with multiple schema item queries or
|
|
95282
95282
|
* when just querying for Mixin classes.
|
|
95283
95283
|
*/
|
|
95284
|
-
const baseMixinQuery = `
|
|
95285
|
-
SELECT
|
|
95286
|
-
[sd].[Name] as [schema],
|
|
95287
|
-
json_object (
|
|
95288
|
-
'schemaItemType', 'Mixin',
|
|
95289
|
-
'name', [class].[Name],
|
|
95290
|
-
'label', [class].[DisplayLabel],
|
|
95291
|
-
'description', [class].[Description],
|
|
95292
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95293
|
-
'baseClass', (
|
|
95294
|
-
${selectBaseClasses}
|
|
95295
|
-
),
|
|
95296
|
-
'appliesTo', (
|
|
95297
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
95298
|
-
FROM [AppliesToCTE] [atCTE]
|
|
95299
|
-
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
95300
|
-
),
|
|
95301
|
-
'customAttributes', (
|
|
95302
|
-
SELECT
|
|
95303
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95304
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95305
|
-
WHERE [ca].[ContainerId] = [class].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
95306
|
-
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') <> 'IsMixin'
|
|
95307
|
-
),
|
|
95308
|
-
'properties', (
|
|
95309
|
-
SELECT
|
|
95310
|
-
json_group_array(json([classProperties].[property]))
|
|
95311
|
-
FROM
|
|
95312
|
-
[ClassProperties] [classProperties]
|
|
95313
|
-
WHERE
|
|
95314
|
-
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
95315
|
-
)
|
|
95316
|
-
) AS [item]
|
|
95317
|
-
FROM [meta].[ECClassDef] [class]
|
|
95318
|
-
JOIN
|
|
95319
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95320
|
-
WHERE [class].[Type] = 0 AND
|
|
95321
|
-
[sd].[Name] = :schemaName
|
|
95322
|
-
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
95323
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
95284
|
+
const baseMixinQuery = `
|
|
95285
|
+
SELECT
|
|
95286
|
+
[sd].[Name] as [schema],
|
|
95287
|
+
json_object (
|
|
95288
|
+
'schemaItemType', 'Mixin',
|
|
95289
|
+
'name', [class].[Name],
|
|
95290
|
+
'label', [class].[DisplayLabel],
|
|
95291
|
+
'description', [class].[Description],
|
|
95292
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95293
|
+
'baseClass', (
|
|
95294
|
+
${selectBaseClasses}
|
|
95295
|
+
),
|
|
95296
|
+
'appliesTo', (
|
|
95297
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
95298
|
+
FROM [AppliesToCTE] [atCTE]
|
|
95299
|
+
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
95300
|
+
),
|
|
95301
|
+
'customAttributes', (
|
|
95302
|
+
SELECT
|
|
95303
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95304
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95305
|
+
WHERE [ca].[ContainerId] = [class].[ECInstanceId] AND [ca].[ContainerType] = 30
|
|
95306
|
+
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') <> 'IsMixin'
|
|
95307
|
+
),
|
|
95308
|
+
'properties', (
|
|
95309
|
+
SELECT
|
|
95310
|
+
json_group_array(json([classProperties].[property]))
|
|
95311
|
+
FROM
|
|
95312
|
+
[ClassProperties] [classProperties]
|
|
95313
|
+
WHERE
|
|
95314
|
+
[classProperties].[ClassId] = [class].[ECInstanceId]
|
|
95315
|
+
)
|
|
95316
|
+
) AS [item]
|
|
95317
|
+
FROM [meta].[ECClassDef] [class]
|
|
95318
|
+
JOIN
|
|
95319
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95320
|
+
WHERE [class].[Type] = 0 AND
|
|
95321
|
+
[sd].[Name] = :schemaName
|
|
95322
|
+
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
95323
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
95324
95324
|
`;
|
|
95325
95325
|
/**
|
|
95326
95326
|
* Mixin query used to when querying for Mixin data only. Not used
|
|
95327
95327
|
* for full Schema load via single query.
|
|
95328
95328
|
*/
|
|
95329
|
-
const mixinQuery = `
|
|
95330
|
-
WITH
|
|
95331
|
-
${withAppliesTo},
|
|
95332
|
-
${withClassProperties}
|
|
95333
|
-
${baseMixinQuery}
|
|
95329
|
+
const mixinQuery = `
|
|
95330
|
+
WITH
|
|
95331
|
+
${withAppliesTo},
|
|
95332
|
+
${withClassProperties}
|
|
95333
|
+
${baseMixinQuery}
|
|
95334
95334
|
`;
|
|
95335
95335
|
/**
|
|
95336
95336
|
* Query that provides RelationshipClass data and is shared by two cases:
|
|
@@ -95338,82 +95338,82 @@ ${baseMixinQuery}
|
|
|
95338
95338
|
* 2. When querying a full schema with multiple schema item queries or
|
|
95339
95339
|
* when just querying for Relationship classes.
|
|
95340
95340
|
*/
|
|
95341
|
-
const baseRelationshipClassQuery = `
|
|
95342
|
-
SELECT
|
|
95343
|
-
[sd].Name as schema,
|
|
95344
|
-
json_object (
|
|
95345
|
-
'schemaItemType', 'RelationshipClass',
|
|
95346
|
-
'name', [class].[Name],
|
|
95347
|
-
'label', [class].[DisplayLabel],
|
|
95348
|
-
'description', [class].[Description],
|
|
95349
|
-
'strength', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strength)("class")},
|
|
95350
|
-
'strengthDirection', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strengthDirection)("class")},
|
|
95351
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95352
|
-
'baseClass', (
|
|
95353
|
-
${selectBaseClasses}
|
|
95354
|
-
),
|
|
95355
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
95356
|
-
'properties', (
|
|
95357
|
-
${selectProperties}
|
|
95358
|
-
),
|
|
95359
|
-
'source', (
|
|
95360
|
-
SELECT
|
|
95361
|
-
json_object (
|
|
95362
|
-
'multiplicity', [sourceConst].[Multiplicity],
|
|
95363
|
-
'roleLabel', [sourceConst].[RoleLabel],
|
|
95364
|
-
'polymorphic', IIF([sourceConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
95365
|
-
'abstractConstraint', [sourceConst].[AbstractConstraint],
|
|
95366
|
-
'constraintClasses', json([sourceConst].[ConstraintClasses]),
|
|
95367
|
-
'customAttributes', (
|
|
95368
|
-
SELECT
|
|
95369
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95370
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95371
|
-
WHERE [ca].[ContainerId] = [sourceConst].[ConstraintId] AND [ca].[ContainerType] = 1024
|
|
95372
|
-
ORDER BY [ca].[Ordinal]
|
|
95373
|
-
)
|
|
95374
|
-
)
|
|
95375
|
-
FROM
|
|
95376
|
-
[ClassRelationshipConstraints] [sourceConst]
|
|
95377
|
-
WHERE [sourceConst].[relationshipEnd] = 0
|
|
95378
|
-
AND [sourceConst].[ClassId] = [class].[ECInstanceId]
|
|
95379
|
-
),
|
|
95380
|
-
'target', (
|
|
95381
|
-
SELECT
|
|
95382
|
-
json_object (
|
|
95383
|
-
'multiplicity', [targetConst].[Multiplicity],
|
|
95384
|
-
'roleLabel', [targetConst].[RoleLabel],
|
|
95385
|
-
'polymorphic', IIF([targetConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
95386
|
-
'abstractConstraint', [targetConst].[AbstractConstraint],
|
|
95387
|
-
'constraintClasses', json([targetConst].[ConstraintClasses]),
|
|
95388
|
-
'customAttributes', (
|
|
95389
|
-
SELECT
|
|
95390
|
-
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95391
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
95392
|
-
WHERE [ca].[ContainerId] = [targetConst].[ConstraintId] AND [ca].[ContainerType] = 2048
|
|
95393
|
-
ORDER BY [ca].[Ordinal]
|
|
95394
|
-
)
|
|
95395
|
-
)
|
|
95396
|
-
FROM
|
|
95397
|
-
[ClassRelationshipConstraints] [targetConst]
|
|
95398
|
-
WHERE [targetConst].[relationshipEnd] = 1
|
|
95399
|
-
AND [targetConst].[ClassId] = [class].[ECInstanceId]
|
|
95400
|
-
)
|
|
95401
|
-
) AS [item]
|
|
95402
|
-
FROM [meta].[ECClassDef] [class]
|
|
95403
|
-
JOIN
|
|
95404
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95405
|
-
WHERE [class].[Type] = 1 AND
|
|
95406
|
-
[sd].[Name] = :schemaName
|
|
95341
|
+
const baseRelationshipClassQuery = `
|
|
95342
|
+
SELECT
|
|
95343
|
+
[sd].Name as schema,
|
|
95344
|
+
json_object (
|
|
95345
|
+
'schemaItemType', 'RelationshipClass',
|
|
95346
|
+
'name', [class].[Name],
|
|
95347
|
+
'label', [class].[DisplayLabel],
|
|
95348
|
+
'description', [class].[Description],
|
|
95349
|
+
'strength', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strength)("class")},
|
|
95350
|
+
'strengthDirection', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.strengthDirection)("class")},
|
|
95351
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95352
|
+
'baseClass', (
|
|
95353
|
+
${selectBaseClasses}
|
|
95354
|
+
),
|
|
95355
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
95356
|
+
'properties', (
|
|
95357
|
+
${selectProperties}
|
|
95358
|
+
),
|
|
95359
|
+
'source', (
|
|
95360
|
+
SELECT
|
|
95361
|
+
json_object (
|
|
95362
|
+
'multiplicity', [sourceConst].[Multiplicity],
|
|
95363
|
+
'roleLabel', [sourceConst].[RoleLabel],
|
|
95364
|
+
'polymorphic', IIF([sourceConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
95365
|
+
'abstractConstraint', [sourceConst].[AbstractConstraint],
|
|
95366
|
+
'constraintClasses', json([sourceConst].[ConstraintClasses]),
|
|
95367
|
+
'customAttributes', (
|
|
95368
|
+
SELECT
|
|
95369
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95370
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95371
|
+
WHERE [ca].[ContainerId] = [sourceConst].[ConstraintId] AND [ca].[ContainerType] = 1024
|
|
95372
|
+
ORDER BY [ca].[Ordinal]
|
|
95373
|
+
)
|
|
95374
|
+
)
|
|
95375
|
+
FROM
|
|
95376
|
+
[ClassRelationshipConstraints] [sourceConst]
|
|
95377
|
+
WHERE [sourceConst].[relationshipEnd] = 0
|
|
95378
|
+
AND [sourceConst].[ClassId] = [class].[ECInstanceId]
|
|
95379
|
+
),
|
|
95380
|
+
'target', (
|
|
95381
|
+
SELECT
|
|
95382
|
+
json_object (
|
|
95383
|
+
'multiplicity', [targetConst].[Multiplicity],
|
|
95384
|
+
'roleLabel', [targetConst].[RoleLabel],
|
|
95385
|
+
'polymorphic', IIF([targetConst].[IsPolyMorphic] = 1, json('true'), json('false')),
|
|
95386
|
+
'abstractConstraint', [targetConst].[AbstractConstraint],
|
|
95387
|
+
'constraintClasses', json([targetConst].[ConstraintClasses]),
|
|
95388
|
+
'customAttributes', (
|
|
95389
|
+
SELECT
|
|
95390
|
+
json_group_array(json(XmlCAToJson([ca].[Class].[Id], [ca].[Instance])))
|
|
95391
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
95392
|
+
WHERE [ca].[ContainerId] = [targetConst].[ConstraintId] AND [ca].[ContainerType] = 2048
|
|
95393
|
+
ORDER BY [ca].[Ordinal]
|
|
95394
|
+
)
|
|
95395
|
+
)
|
|
95396
|
+
FROM
|
|
95397
|
+
[ClassRelationshipConstraints] [targetConst]
|
|
95398
|
+
WHERE [targetConst].[relationshipEnd] = 1
|
|
95399
|
+
AND [targetConst].[ClassId] = [class].[ECInstanceId]
|
|
95400
|
+
)
|
|
95401
|
+
) AS [item]
|
|
95402
|
+
FROM [meta].[ECClassDef] [class]
|
|
95403
|
+
JOIN
|
|
95404
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95405
|
+
WHERE [class].[Type] = 1 AND
|
|
95406
|
+
[sd].[Name] = :schemaName
|
|
95407
95407
|
`;
|
|
95408
95408
|
/**
|
|
95409
95409
|
* RelationshipClass query used to when querying for RelationshipClass data only. Not used
|
|
95410
95410
|
* for full Schema load via single query.
|
|
95411
95411
|
*/
|
|
95412
|
-
const relationshipClassQuery = `
|
|
95413
|
-
WITH
|
|
95414
|
-
${withClassProperties},
|
|
95415
|
-
${withRelationshipConstraints}
|
|
95416
|
-
${baseRelationshipClassQuery}
|
|
95412
|
+
const relationshipClassQuery = `
|
|
95413
|
+
WITH
|
|
95414
|
+
${withClassProperties},
|
|
95415
|
+
${withRelationshipConstraints}
|
|
95416
|
+
${baseRelationshipClassQuery}
|
|
95417
95417
|
`;
|
|
95418
95418
|
/**
|
|
95419
95419
|
* Query that provides StructClass data and is shared by two cases:
|
|
@@ -95421,37 +95421,37 @@ ${baseRelationshipClassQuery}
|
|
|
95421
95421
|
* 2. When querying a full schema with multiple schema item queries or
|
|
95422
95422
|
* when just querying for Struct classes.
|
|
95423
95423
|
*/
|
|
95424
|
-
const baseStructQuery = `
|
|
95425
|
-
SELECT
|
|
95426
|
-
[sd].Name as schema,
|
|
95427
|
-
json_object (
|
|
95428
|
-
'schemaItemType', 'StructClass',
|
|
95429
|
-
'name', [class].[Name],
|
|
95430
|
-
'label', [class].[DisplayLabel],
|
|
95431
|
-
'description', [class].[Description],
|
|
95432
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95433
|
-
'baseClass', (
|
|
95434
|
-
${selectBaseClasses}
|
|
95435
|
-
),
|
|
95436
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
95437
|
-
'properties', (
|
|
95438
|
-
${selectProperties}
|
|
95439
|
-
)
|
|
95440
|
-
) AS item
|
|
95441
|
-
FROM [meta].[ECClassDef] [class]
|
|
95442
|
-
JOIN
|
|
95443
|
-
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95444
|
-
WHERE [class].[Type] = 2 AND
|
|
95445
|
-
[sd].[Name] = :schemaName
|
|
95424
|
+
const baseStructQuery = `
|
|
95425
|
+
SELECT
|
|
95426
|
+
[sd].Name as schema,
|
|
95427
|
+
json_object (
|
|
95428
|
+
'schemaItemType', 'StructClass',
|
|
95429
|
+
'name', [class].[Name],
|
|
95430
|
+
'label', [class].[DisplayLabel],
|
|
95431
|
+
'description', [class].[Description],
|
|
95432
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95433
|
+
'baseClass', (
|
|
95434
|
+
${selectBaseClasses}
|
|
95435
|
+
),
|
|
95436
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
95437
|
+
'properties', (
|
|
95438
|
+
${selectProperties}
|
|
95439
|
+
)
|
|
95440
|
+
) AS item
|
|
95441
|
+
FROM [meta].[ECClassDef] [class]
|
|
95442
|
+
JOIN
|
|
95443
|
+
[meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95444
|
+
WHERE [class].[Type] = 2 AND
|
|
95445
|
+
[sd].[Name] = :schemaName
|
|
95446
95446
|
`;
|
|
95447
95447
|
/**
|
|
95448
95448
|
* StructClass query used to when querying for StructClass data only. Not used
|
|
95449
95449
|
* for full Schema load via single query.
|
|
95450
95450
|
*/
|
|
95451
|
-
const structQuery = `
|
|
95452
|
-
WITH
|
|
95453
|
-
${withClassProperties}
|
|
95454
|
-
${baseStructQuery}
|
|
95451
|
+
const structQuery = `
|
|
95452
|
+
WITH
|
|
95453
|
+
${withClassProperties}
|
|
95454
|
+
${baseStructQuery}
|
|
95455
95455
|
`;
|
|
95456
95456
|
/**
|
|
95457
95457
|
* Query that provides CustomAttributeClass data and is shared by two cases:
|
|
@@ -95459,141 +95459,141 @@ ${baseStructQuery}
|
|
|
95459
95459
|
* 2. When querying a full schema with multiple schema item queries or
|
|
95460
95460
|
* when just querying for CustomAttribute classes.
|
|
95461
95461
|
*/
|
|
95462
|
-
const baseCustomAttributeQuery = `
|
|
95463
|
-
SELECT
|
|
95464
|
-
[sd].Name as schema,
|
|
95465
|
-
json_object (
|
|
95466
|
-
'schemaItemType', 'CustomAttributeClass',
|
|
95467
|
-
'name', [class].[Name],
|
|
95468
|
-
'label', [class].[DisplayLabel],
|
|
95469
|
-
'description', [class].[Description],
|
|
95470
|
-
'appliesTo', [class].[CustomAttributeContainerType],
|
|
95471
|
-
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95472
|
-
'baseClass', (
|
|
95473
|
-
${selectBaseClasses}
|
|
95474
|
-
),
|
|
95475
|
-
'customAttributes', (${classCustomAttribute("class")}),
|
|
95476
|
-
'properties', (
|
|
95477
|
-
${selectProperties}
|
|
95478
|
-
)
|
|
95479
|
-
) AS [item]
|
|
95480
|
-
FROM [meta].[ECClassDef] [class]
|
|
95481
|
-
JOIN
|
|
95482
|
-
[meta].[ECSchemaDef] sd ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95483
|
-
WHERE [class].[Type] = 3 AND
|
|
95484
|
-
[sd].[Name] = :schemaName
|
|
95462
|
+
const baseCustomAttributeQuery = `
|
|
95463
|
+
SELECT
|
|
95464
|
+
[sd].Name as schema,
|
|
95465
|
+
json_object (
|
|
95466
|
+
'schemaItemType', 'CustomAttributeClass',
|
|
95467
|
+
'name', [class].[Name],
|
|
95468
|
+
'label', [class].[DisplayLabel],
|
|
95469
|
+
'description', [class].[Description],
|
|
95470
|
+
'appliesTo', [class].[CustomAttributeContainerType],
|
|
95471
|
+
'modifier', ${(0,_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_1__.modifier)("class")},
|
|
95472
|
+
'baseClass', (
|
|
95473
|
+
${selectBaseClasses}
|
|
95474
|
+
),
|
|
95475
|
+
'customAttributes', (${classCustomAttribute("class")}),
|
|
95476
|
+
'properties', (
|
|
95477
|
+
${selectProperties}
|
|
95478
|
+
)
|
|
95479
|
+
) AS [item]
|
|
95480
|
+
FROM [meta].[ECClassDef] [class]
|
|
95481
|
+
JOIN
|
|
95482
|
+
[meta].[ECSchemaDef] sd ON [sd].[ECInstanceId] = [class].[Schema].[Id]
|
|
95483
|
+
WHERE [class].[Type] = 3 AND
|
|
95484
|
+
[sd].[Name] = :schemaName
|
|
95485
95485
|
`;
|
|
95486
95486
|
/**
|
|
95487
95487
|
* CustomAttributeClass query used to when querying for CustomAttributeClass data only. Not used
|
|
95488
95488
|
* for full Schema load via single query.
|
|
95489
95489
|
*/
|
|
95490
|
-
const customAttributeQuery = `
|
|
95491
|
-
WITH
|
|
95492
|
-
${withClassProperties}
|
|
95493
|
-
${baseCustomAttributeQuery}
|
|
95490
|
+
const customAttributeQuery = `
|
|
95491
|
+
WITH
|
|
95492
|
+
${withClassProperties}
|
|
95493
|
+
${baseCustomAttributeQuery}
|
|
95494
95494
|
`;
|
|
95495
95495
|
/**
|
|
95496
95496
|
* Used by full schema load query via single query. Allows
|
|
95497
95497
|
* all SchemaItemTypes to be queried at once.
|
|
95498
95498
|
*/
|
|
95499
|
-
const withSchemaItems = `
|
|
95500
|
-
SchemaItems AS (
|
|
95501
|
-
${baseEntityQuery}
|
|
95502
|
-
UNION ALL
|
|
95503
|
-
${baseRelationshipClassQuery}
|
|
95504
|
-
UNION ALL
|
|
95505
|
-
${baseStructQuery}
|
|
95506
|
-
UNION ALL
|
|
95507
|
-
${baseMixinQuery}
|
|
95508
|
-
UNION ALL
|
|
95509
|
-
${baseCustomAttributeQuery}
|
|
95510
|
-
UNION ALL
|
|
95511
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity(true)}
|
|
95512
|
-
UNION ALL
|
|
95513
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration(true)}
|
|
95514
|
-
UNION ALL
|
|
95515
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory(true)}
|
|
95516
|
-
UNION ALL
|
|
95517
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit(true)}
|
|
95518
|
-
UNION ALL
|
|
95519
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit(true)}
|
|
95520
|
-
UNION ALL
|
|
95521
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem(true)}
|
|
95522
|
-
UNION ALL
|
|
95523
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant(true)}
|
|
95524
|
-
UNION ALL
|
|
95525
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon(true)}
|
|
95526
|
-
UNION ALL
|
|
95527
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format(true)}
|
|
95528
|
-
)
|
|
95499
|
+
const withSchemaItems = `
|
|
95500
|
+
SchemaItems AS (
|
|
95501
|
+
${baseEntityQuery}
|
|
95502
|
+
UNION ALL
|
|
95503
|
+
${baseRelationshipClassQuery}
|
|
95504
|
+
UNION ALL
|
|
95505
|
+
${baseStructQuery}
|
|
95506
|
+
UNION ALL
|
|
95507
|
+
${baseMixinQuery}
|
|
95508
|
+
UNION ALL
|
|
95509
|
+
${baseCustomAttributeQuery}
|
|
95510
|
+
UNION ALL
|
|
95511
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity(true)}
|
|
95512
|
+
UNION ALL
|
|
95513
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration(true)}
|
|
95514
|
+
UNION ALL
|
|
95515
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory(true)}
|
|
95516
|
+
UNION ALL
|
|
95517
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit(true)}
|
|
95518
|
+
UNION ALL
|
|
95519
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit(true)}
|
|
95520
|
+
UNION ALL
|
|
95521
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem(true)}
|
|
95522
|
+
UNION ALL
|
|
95523
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant(true)}
|
|
95524
|
+
UNION ALL
|
|
95525
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon(true)}
|
|
95526
|
+
UNION ALL
|
|
95527
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format(true)}
|
|
95528
|
+
)
|
|
95529
95529
|
`;
|
|
95530
95530
|
/**
|
|
95531
95531
|
* Query for Schema data without SchemaItems
|
|
95532
95532
|
*/
|
|
95533
|
-
const schemaNoItemsQuery = `
|
|
95534
|
-
WITH
|
|
95535
|
-
${withSchemaReferences}
|
|
95536
|
-
SELECT
|
|
95537
|
-
json_object (
|
|
95538
|
-
'name', [schemaDef].[Name],
|
|
95539
|
-
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
95540
|
-
'alias', [schemaDef].[Alias],
|
|
95541
|
-
'label', [schemaDef].[DisplayLabel],
|
|
95542
|
-
'description', [schemaDef].[Description],
|
|
95543
|
-
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
95544
|
-
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
95545
|
-
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
95546
|
-
'references', (
|
|
95547
|
-
SELECT
|
|
95548
|
-
json_group_array(json([schemaReferences].[reference]))
|
|
95549
|
-
FROM
|
|
95550
|
-
[SchemaReferences] [schemaReferences]
|
|
95551
|
-
WHERE
|
|
95552
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
95553
|
-
)
|
|
95554
|
-
) as [schema]
|
|
95555
|
-
FROM
|
|
95556
|
-
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
95533
|
+
const schemaNoItemsQuery = `
|
|
95534
|
+
WITH
|
|
95535
|
+
${withSchemaReferences}
|
|
95536
|
+
SELECT
|
|
95537
|
+
json_object (
|
|
95538
|
+
'name', [schemaDef].[Name],
|
|
95539
|
+
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
95540
|
+
'alias', [schemaDef].[Alias],
|
|
95541
|
+
'label', [schemaDef].[DisplayLabel],
|
|
95542
|
+
'description', [schemaDef].[Description],
|
|
95543
|
+
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
95544
|
+
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
95545
|
+
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
95546
|
+
'references', (
|
|
95547
|
+
SELECT
|
|
95548
|
+
json_group_array(json([schemaReferences].[reference]))
|
|
95549
|
+
FROM
|
|
95550
|
+
[SchemaReferences] [schemaReferences]
|
|
95551
|
+
WHERE
|
|
95552
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
95553
|
+
)
|
|
95554
|
+
) as [schema]
|
|
95555
|
+
FROM
|
|
95556
|
+
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
95557
95557
|
`;
|
|
95558
95558
|
/**
|
|
95559
95559
|
* Query to load a full Schema via a single query.
|
|
95560
95560
|
*/
|
|
95561
|
-
const schemaQuery = `
|
|
95562
|
-
WITH
|
|
95563
|
-
${withAppliesTo},
|
|
95564
|
-
${withSchemaReferences},
|
|
95565
|
-
${withClassProperties},
|
|
95566
|
-
${withRelationshipConstraints},
|
|
95567
|
-
${withSchemaItems}
|
|
95568
|
-
SELECT
|
|
95569
|
-
json_object (
|
|
95570
|
-
'name', [schemaDef].[Name],
|
|
95571
|
-
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
95572
|
-
'alias', [schemaDef].[Alias],
|
|
95573
|
-
'label', [schemaDef].[DisplayLabel],
|
|
95574
|
-
'description', [schemaDef].[Description],
|
|
95575
|
-
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
95576
|
-
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
95577
|
-
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
95578
|
-
'references', (
|
|
95579
|
-
SELECT
|
|
95580
|
-
json_group_array(json([schemaReferences].[reference]))
|
|
95581
|
-
FROM
|
|
95582
|
-
[SchemaReferences] [schemaReferences]
|
|
95583
|
-
WHERE
|
|
95584
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
95585
|
-
),
|
|
95586
|
-
'items', (
|
|
95587
|
-
SELECT
|
|
95588
|
-
json_group_array(json(json_object(
|
|
95589
|
-
'item', json([items].[item])
|
|
95590
|
-
)))
|
|
95591
|
-
FROM
|
|
95592
|
-
[SchemaItems] [items]
|
|
95593
|
-
)
|
|
95594
|
-
) as [schema]
|
|
95595
|
-
FROM
|
|
95596
|
-
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
95561
|
+
const schemaQuery = `
|
|
95562
|
+
WITH
|
|
95563
|
+
${withAppliesTo},
|
|
95564
|
+
${withSchemaReferences},
|
|
95565
|
+
${withClassProperties},
|
|
95566
|
+
${withRelationshipConstraints},
|
|
95567
|
+
${withSchemaItems}
|
|
95568
|
+
SELECT
|
|
95569
|
+
json_object (
|
|
95570
|
+
'name', [schemaDef].[Name],
|
|
95571
|
+
'version', CONCAT(printf('%02d', [VersionMajor]), '.', printf('%02d', [VersionWrite]), '.', printf('%02d', [VersionMinor])),
|
|
95572
|
+
'alias', [schemaDef].[Alias],
|
|
95573
|
+
'label', [schemaDef].[DisplayLabel],
|
|
95574
|
+
'description', [schemaDef].[Description],
|
|
95575
|
+
'ecSpecMajorVersion', [schemaDef].[OriginalECXmlVersionMajor],
|
|
95576
|
+
'ecSpecMinorVersion', [schemaDef].[OriginalECXmlVersionMinor],
|
|
95577
|
+
'customAttributes', (${schemaCustomAttribute("schemaDef")}),
|
|
95578
|
+
'references', (
|
|
95579
|
+
SELECT
|
|
95580
|
+
json_group_array(json([schemaReferences].[reference]))
|
|
95581
|
+
FROM
|
|
95582
|
+
[SchemaReferences] [schemaReferences]
|
|
95583
|
+
WHERE
|
|
95584
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
95585
|
+
),
|
|
95586
|
+
'items', (
|
|
95587
|
+
SELECT
|
|
95588
|
+
json_group_array(json(json_object(
|
|
95589
|
+
'item', json([items].[item])
|
|
95590
|
+
)))
|
|
95591
|
+
FROM
|
|
95592
|
+
[SchemaItems] [items]
|
|
95593
|
+
)
|
|
95594
|
+
) as [schema]
|
|
95595
|
+
FROM
|
|
95596
|
+
[meta].[ECSchemaDef] [schemaDef] WHERE [Name] = :schemaName
|
|
95597
95597
|
`;
|
|
95598
95598
|
/**
|
|
95599
95599
|
* Queries for loading full Schema JSON.
|
|
@@ -96102,281 +96102,281 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96102
96102
|
* Query for SchemaItemType KindOfQuantity data.
|
|
96103
96103
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96104
96104
|
*/
|
|
96105
|
-
const kindOfQuantity = (singleSchema) => `
|
|
96106
|
-
SELECT
|
|
96107
|
-
[koq].[Schema].[Id] AS [SchemaId],
|
|
96108
|
-
json_object (
|
|
96109
|
-
'schemaItemType', 'KindOfQuantity',
|
|
96110
|
-
'name', [koq].[Name],
|
|
96111
|
-
'label', [koq].[DisplayLabel],
|
|
96112
|
-
'description', [koq].[Description]
|
|
96113
|
-
${singleSchema ? `
|
|
96114
|
-
,'relativeError', [koq].[RelativeError],
|
|
96115
|
-
'persistenceUnit', [koq].[PersistenceUnit],
|
|
96116
|
-
'presentationUnits', (
|
|
96117
|
-
SELECT json_group_array(js."value")
|
|
96118
|
-
FROM [meta].[KindOfQuantityDef] [koq1], json1.json_each([PresentationUnits]) js
|
|
96119
|
-
WHERE [koq1].[ECInstanceId] = [koq].[ECInstanceId]
|
|
96120
|
-
) ` : ""}
|
|
96121
|
-
) as [item]
|
|
96122
|
-
FROM
|
|
96123
|
-
[meta].[KindOfQuantityDef] [koq]
|
|
96124
|
-
${singleSchema ? `
|
|
96125
|
-
JOIN
|
|
96126
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [koq].[Schema].[Id]
|
|
96127
|
-
WHERE [schema].[Name] = :schemaName
|
|
96128
|
-
` : ""}
|
|
96105
|
+
const kindOfQuantity = (singleSchema) => `
|
|
96106
|
+
SELECT
|
|
96107
|
+
[koq].[Schema].[Id] AS [SchemaId],
|
|
96108
|
+
json_object (
|
|
96109
|
+
'schemaItemType', 'KindOfQuantity',
|
|
96110
|
+
'name', [koq].[Name],
|
|
96111
|
+
'label', [koq].[DisplayLabel],
|
|
96112
|
+
'description', [koq].[Description]
|
|
96113
|
+
${singleSchema ? `
|
|
96114
|
+
,'relativeError', [koq].[RelativeError],
|
|
96115
|
+
'persistenceUnit', [koq].[PersistenceUnit],
|
|
96116
|
+
'presentationUnits', (
|
|
96117
|
+
SELECT json_group_array(js."value")
|
|
96118
|
+
FROM [meta].[KindOfQuantityDef] [koq1], json1.json_each([PresentationUnits]) js
|
|
96119
|
+
WHERE [koq1].[ECInstanceId] = [koq].[ECInstanceId]
|
|
96120
|
+
) ` : ""}
|
|
96121
|
+
) as [item]
|
|
96122
|
+
FROM
|
|
96123
|
+
[meta].[KindOfQuantityDef] [koq]
|
|
96124
|
+
${singleSchema ? `
|
|
96125
|
+
JOIN
|
|
96126
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [koq].[Schema].[Id]
|
|
96127
|
+
WHERE [schema].[Name] = :schemaName
|
|
96128
|
+
` : ""}
|
|
96129
96129
|
`;
|
|
96130
96130
|
/**
|
|
96131
96131
|
* Query for SchemaItemType PropertyCategory data.
|
|
96132
96132
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96133
96133
|
*/
|
|
96134
|
-
const propertyCategory = (singleSchema) => `
|
|
96135
|
-
SELECT
|
|
96136
|
-
[pc].[Schema].[Id] AS [SchemaId],
|
|
96137
|
-
json_object (
|
|
96138
|
-
'schemaItemType', 'PropertyCategory',
|
|
96139
|
-
'name', [pc].[Name],
|
|
96140
|
-
'label', [pc].[DisplayLabel],
|
|
96141
|
-
'description', [pc].[Description],
|
|
96142
|
-
'priority', [pc].[Priority]
|
|
96143
|
-
) as [item]
|
|
96144
|
-
FROM
|
|
96145
|
-
[meta].[PropertyCategoryDef] [pc]
|
|
96146
|
-
${singleSchema ? `
|
|
96147
|
-
JOIN
|
|
96148
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pc].[Schema].[Id]
|
|
96149
|
-
WHERE [schema].[Name] = :schemaName
|
|
96150
|
-
` : ""}
|
|
96134
|
+
const propertyCategory = (singleSchema) => `
|
|
96135
|
+
SELECT
|
|
96136
|
+
[pc].[Schema].[Id] AS [SchemaId],
|
|
96137
|
+
json_object (
|
|
96138
|
+
'schemaItemType', 'PropertyCategory',
|
|
96139
|
+
'name', [pc].[Name],
|
|
96140
|
+
'label', [pc].[DisplayLabel],
|
|
96141
|
+
'description', [pc].[Description],
|
|
96142
|
+
'priority', [pc].[Priority]
|
|
96143
|
+
) as [item]
|
|
96144
|
+
FROM
|
|
96145
|
+
[meta].[PropertyCategoryDef] [pc]
|
|
96146
|
+
${singleSchema ? `
|
|
96147
|
+
JOIN
|
|
96148
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pc].[Schema].[Id]
|
|
96149
|
+
WHERE [schema].[Name] = :schemaName
|
|
96150
|
+
` : ""}
|
|
96151
96151
|
`;
|
|
96152
96152
|
/**
|
|
96153
96153
|
* Query for SchemaItemType Enumeration data.
|
|
96154
96154
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96155
96155
|
*/
|
|
96156
|
-
const enumeration = (singleSchema) => `
|
|
96157
|
-
SELECT
|
|
96158
|
-
[ed].[Schema].[Id] AS [SchemaId],
|
|
96159
|
-
json_object (
|
|
96160
|
-
'schemaItemType', 'Enumeration',
|
|
96161
|
-
'name', [ed].[Name],
|
|
96162
|
-
'label', [ed].[DisplayLabel],
|
|
96163
|
-
'description', [ed].[Description],
|
|
96164
|
-
'type', IIF([ed].[Type] = 1281, 'int', IIF([ed].[Type] = 2305, 'string', null)),
|
|
96165
|
-
'isStrict', IIF([ed].[IsStrict] = 1, json('true'), json('false')),
|
|
96166
|
-
'enumerators', (
|
|
96167
|
-
SELECT json_group_array(json(json_object(
|
|
96168
|
-
'name', json_extract(js."value", '$.Name'),
|
|
96169
|
-
'value', IFNULL(json_extract(js."value", '$.StringValue'), (json_extract(js."value", '$.IntValue'))),
|
|
96170
|
-
'label', json_extract(js."value", '$.DisplayLabel'),
|
|
96171
|
-
'description', json_extract(js."value", '$.Description')
|
|
96172
|
-
)))
|
|
96173
|
-
FROM [meta].[ECEnumerationDef] [enumerationDef], json1.json_each([EnumValues]) js
|
|
96174
|
-
WHERE [enumerationDef].[ECInstanceId] = [ed].[ECInstanceId]
|
|
96175
|
-
)
|
|
96176
|
-
) as [item]
|
|
96177
|
-
FROM
|
|
96178
|
-
[meta].[ECEnumerationDef] [ed]
|
|
96179
|
-
${singleSchema ? `
|
|
96180
|
-
JOIN
|
|
96181
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ed].[Schema].[Id]
|
|
96182
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96156
|
+
const enumeration = (singleSchema) => `
|
|
96157
|
+
SELECT
|
|
96158
|
+
[ed].[Schema].[Id] AS [SchemaId],
|
|
96159
|
+
json_object (
|
|
96160
|
+
'schemaItemType', 'Enumeration',
|
|
96161
|
+
'name', [ed].[Name],
|
|
96162
|
+
'label', [ed].[DisplayLabel],
|
|
96163
|
+
'description', [ed].[Description],
|
|
96164
|
+
'type', IIF([ed].[Type] = 1281, 'int', IIF([ed].[Type] = 2305, 'string', null)),
|
|
96165
|
+
'isStrict', IIF([ed].[IsStrict] = 1, json('true'), json('false')),
|
|
96166
|
+
'enumerators', (
|
|
96167
|
+
SELECT json_group_array(json(json_object(
|
|
96168
|
+
'name', json_extract(js."value", '$.Name'),
|
|
96169
|
+
'value', IFNULL(json_extract(js."value", '$.StringValue'), (json_extract(js."value", '$.IntValue'))),
|
|
96170
|
+
'label', json_extract(js."value", '$.DisplayLabel'),
|
|
96171
|
+
'description', json_extract(js."value", '$.Description')
|
|
96172
|
+
)))
|
|
96173
|
+
FROM [meta].[ECEnumerationDef] [enumerationDef], json1.json_each([EnumValues]) js
|
|
96174
|
+
WHERE [enumerationDef].[ECInstanceId] = [ed].[ECInstanceId]
|
|
96175
|
+
)
|
|
96176
|
+
) as [item]
|
|
96177
|
+
FROM
|
|
96178
|
+
[meta].[ECEnumerationDef] [ed]
|
|
96179
|
+
${singleSchema ? `
|
|
96180
|
+
JOIN
|
|
96181
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ed].[Schema].[Id]
|
|
96182
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96183
96183
|
`;
|
|
96184
96184
|
/**
|
|
96185
96185
|
* Query for SchemaItemType Unit data.
|
|
96186
96186
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96187
96187
|
*/
|
|
96188
|
-
const unit = (singleSchema) => `
|
|
96189
|
-
SELECT
|
|
96190
|
-
[ud].[Schema].[Id] AS [SchemaId],
|
|
96191
|
-
json_object (
|
|
96192
|
-
'schemaItemType', 'Unit',
|
|
96193
|
-
'name', [ud].[Name],
|
|
96194
|
-
'label', [ud].[DisplayLabel],
|
|
96195
|
-
'description', [ud].[Description],
|
|
96196
|
-
'definition', [ud].[Definition],
|
|
96197
|
-
'numerator', IIF([ud].[Numerator] IS NULL, NULL, json(format('%.16g', [ud].[Numerator]))),
|
|
96198
|
-
'denominator', IIF([ud].[Denominator] IS NULL, NULL, json(format('%.16g', [ud].[Denominator]))),
|
|
96199
|
-
'offset', IIF([ud].[Offset] IS NULL, NULL, json(format('%!.15f', [ud].[Offset]))),
|
|
96200
|
-
'unitSystem', CONCAT([uss].[Name],'.', [usd].[Name]),
|
|
96201
|
-
'phenomenon', CONCAT([ps].[Name],'.', [pd].[Name])
|
|
96202
|
-
) as item
|
|
96203
|
-
FROM
|
|
96204
|
-
[meta].[UnitDef] [ud]
|
|
96205
|
-
${singleSchema ? `
|
|
96206
|
-
JOIN
|
|
96207
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
96208
|
-
JOIN [meta].[UnitSystemDef] [usd]
|
|
96209
|
-
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
96210
|
-
JOIN [meta].[ECSchemaDef] [uss]
|
|
96211
|
-
ON [uss].[ECInstanceId] = [usd].[Schema].[Id]
|
|
96212
|
-
JOIN [meta].[PhenomenonDef] [pd]
|
|
96213
|
-
ON [pd].[ECInstanceId] = [ud].[Phenomenon].[Id]
|
|
96214
|
-
JOIN [meta].[ECSchemaDef] [ps]
|
|
96215
|
-
ON [ps].[ECInstanceId] = [pd].[Schema].[Id]
|
|
96216
|
-
WHERE
|
|
96217
|
-
${singleSchema ? `
|
|
96218
|
-
[schema].[Name] = :schemaName AND` : ""}
|
|
96219
|
-
[ud].[IsConstant] = 0 AND
|
|
96220
|
-
[ud].[InvertingUnit] IS NULL
|
|
96188
|
+
const unit = (singleSchema) => `
|
|
96189
|
+
SELECT
|
|
96190
|
+
[ud].[Schema].[Id] AS [SchemaId],
|
|
96191
|
+
json_object (
|
|
96192
|
+
'schemaItemType', 'Unit',
|
|
96193
|
+
'name', [ud].[Name],
|
|
96194
|
+
'label', [ud].[DisplayLabel],
|
|
96195
|
+
'description', [ud].[Description],
|
|
96196
|
+
'definition', [ud].[Definition],
|
|
96197
|
+
'numerator', IIF([ud].[Numerator] IS NULL, NULL, json(format('%.16g', [ud].[Numerator]))),
|
|
96198
|
+
'denominator', IIF([ud].[Denominator] IS NULL, NULL, json(format('%.16g', [ud].[Denominator]))),
|
|
96199
|
+
'offset', IIF([ud].[Offset] IS NULL, NULL, json(format('%!.15f', [ud].[Offset]))),
|
|
96200
|
+
'unitSystem', CONCAT([uss].[Name],'.', [usd].[Name]),
|
|
96201
|
+
'phenomenon', CONCAT([ps].[Name],'.', [pd].[Name])
|
|
96202
|
+
) as item
|
|
96203
|
+
FROM
|
|
96204
|
+
[meta].[UnitDef] [ud]
|
|
96205
|
+
${singleSchema ? `
|
|
96206
|
+
JOIN
|
|
96207
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
96208
|
+
JOIN [meta].[UnitSystemDef] [usd]
|
|
96209
|
+
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
96210
|
+
JOIN [meta].[ECSchemaDef] [uss]
|
|
96211
|
+
ON [uss].[ECInstanceId] = [usd].[Schema].[Id]
|
|
96212
|
+
JOIN [meta].[PhenomenonDef] [pd]
|
|
96213
|
+
ON [pd].[ECInstanceId] = [ud].[Phenomenon].[Id]
|
|
96214
|
+
JOIN [meta].[ECSchemaDef] [ps]
|
|
96215
|
+
ON [ps].[ECInstanceId] = [pd].[Schema].[Id]
|
|
96216
|
+
WHERE
|
|
96217
|
+
${singleSchema ? `
|
|
96218
|
+
[schema].[Name] = :schemaName AND` : ""}
|
|
96219
|
+
[ud].[IsConstant] = 0 AND
|
|
96220
|
+
[ud].[InvertingUnit] IS NULL
|
|
96221
96221
|
`;
|
|
96222
96222
|
/**
|
|
96223
96223
|
* Query for SchemaItemType InvertedUnit data.
|
|
96224
96224
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96225
96225
|
*/
|
|
96226
|
-
const invertedUnit = (singleSchema) => `
|
|
96227
|
-
SELECT
|
|
96228
|
-
[ud].[Schema].[Id] AS [SchemaId],
|
|
96229
|
-
json_object (
|
|
96230
|
-
'schemaItemType', 'InvertedUnit',
|
|
96231
|
-
'name', [ud].[Name],
|
|
96232
|
-
'label', [ud].[DisplayLabel],
|
|
96233
|
-
'description', [ud].[Description],
|
|
96234
|
-
'unitSystem', CONCAT([systemSchema].[Name],'.', [usd].[Name]),
|
|
96235
|
-
'invertsUnit', IIF([iud].[Name] IS NULL, null, CONCAT([ius].[Name],'.', [iud].[Name]))
|
|
96236
|
-
) as [item]
|
|
96237
|
-
FROM
|
|
96238
|
-
[meta].[UnitDef] [ud]
|
|
96239
|
-
${singleSchema ? `
|
|
96240
|
-
JOIN
|
|
96241
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
96242
|
-
JOIN [meta].[UnitSystemDef] [usd]
|
|
96243
|
-
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
96244
|
-
JOIN [meta].[ECSchemaDef] [systemSchema]
|
|
96245
|
-
ON [systemSchema].[ECInstanceId] = [usd].[Schema].[Id]
|
|
96246
|
-
LEFT JOIN [meta].[UnitDef] [iud]
|
|
96247
|
-
ON [iud].[ECInstanceId] = [ud].[InvertingUnit].[Id]
|
|
96248
|
-
LEFT JOIN [meta].[ECSchemaDef] [ius]
|
|
96249
|
-
ON [ius].[ECInstanceId] = [iud].[Schema].[Id]
|
|
96250
|
-
WHERE
|
|
96251
|
-
${singleSchema ? `
|
|
96252
|
-
[schema].[Name] = :schemaName AND` : ""}
|
|
96253
|
-
[ud].[IsConstant] = 0 AND
|
|
96254
|
-
[ud].[InvertingUnit] IS NOT NULL
|
|
96226
|
+
const invertedUnit = (singleSchema) => `
|
|
96227
|
+
SELECT
|
|
96228
|
+
[ud].[Schema].[Id] AS [SchemaId],
|
|
96229
|
+
json_object (
|
|
96230
|
+
'schemaItemType', 'InvertedUnit',
|
|
96231
|
+
'name', [ud].[Name],
|
|
96232
|
+
'label', [ud].[DisplayLabel],
|
|
96233
|
+
'description', [ud].[Description],
|
|
96234
|
+
'unitSystem', CONCAT([systemSchema].[Name],'.', [usd].[Name]),
|
|
96235
|
+
'invertsUnit', IIF([iud].[Name] IS NULL, null, CONCAT([ius].[Name],'.', [iud].[Name]))
|
|
96236
|
+
) as [item]
|
|
96237
|
+
FROM
|
|
96238
|
+
[meta].[UnitDef] [ud]
|
|
96239
|
+
${singleSchema ? `
|
|
96240
|
+
JOIN
|
|
96241
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [ud].[Schema].[Id]` : ""}
|
|
96242
|
+
JOIN [meta].[UnitSystemDef] [usd]
|
|
96243
|
+
ON [usd].[ECInstanceId] = [ud].[UnitSystem].[Id]
|
|
96244
|
+
JOIN [meta].[ECSchemaDef] [systemSchema]
|
|
96245
|
+
ON [systemSchema].[ECInstanceId] = [usd].[Schema].[Id]
|
|
96246
|
+
LEFT JOIN [meta].[UnitDef] [iud]
|
|
96247
|
+
ON [iud].[ECInstanceId] = [ud].[InvertingUnit].[Id]
|
|
96248
|
+
LEFT JOIN [meta].[ECSchemaDef] [ius]
|
|
96249
|
+
ON [ius].[ECInstanceId] = [iud].[Schema].[Id]
|
|
96250
|
+
WHERE
|
|
96251
|
+
${singleSchema ? `
|
|
96252
|
+
[schema].[Name] = :schemaName AND` : ""}
|
|
96253
|
+
[ud].[IsConstant] = 0 AND
|
|
96254
|
+
[ud].[InvertingUnit] IS NOT NULL
|
|
96255
96255
|
`;
|
|
96256
96256
|
/**
|
|
96257
96257
|
* Query for SchemaItemType Constant data.
|
|
96258
96258
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96259
96259
|
*/
|
|
96260
|
-
const constant = (singleSchema) => `
|
|
96261
|
-
SELECT
|
|
96262
|
-
[cd].[Schema].[Id] AS [SchemaId],
|
|
96263
|
-
json_object(
|
|
96264
|
-
'schemaItemType', 'Constant',
|
|
96265
|
-
'name', [cd].[Name],
|
|
96266
|
-
'label', [cd].[DisplayLabel],
|
|
96267
|
-
'description', [cd].[Description],
|
|
96268
|
-
'definition', [cd].[Definition],
|
|
96269
|
-
'numerator', IIF([cd].[Numerator] IS NULL, NULL, json(format('%.16g', [cd].[Numerator]))),
|
|
96270
|
-
'denominator', IIF([cd].[Denominator] IS NULL, NULL, json(format('%.16g', [cd].[Denominator]))),
|
|
96271
|
-
'phenomenon', CONCAT([phenomSchema].[Name],'.', [phenomDef].[Name])
|
|
96272
|
-
) as item
|
|
96273
|
-
FROM
|
|
96274
|
-
[meta].[UnitDef] [cd]
|
|
96275
|
-
${singleSchema ? `
|
|
96276
|
-
JOIN
|
|
96277
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [cd].[Schema].[Id]` : ""}
|
|
96278
|
-
JOIN [meta].[PhenomenonDef] [phenomDef]
|
|
96279
|
-
ON [phenomDef].[ECInstanceId] = [cd].[Phenomenon].[Id]
|
|
96280
|
-
JOIN [meta].[ECSchemaDef] [phenomSchema]
|
|
96281
|
-
ON [phenomSchema].[ECInstanceId] = [phenomDef].[Schema].[Id]
|
|
96282
|
-
WHERE
|
|
96283
|
-
${singleSchema ? `
|
|
96284
|
-
[schema].[Name] = :schemaName AND` : ""}
|
|
96285
|
-
[cd].[IsConstant] = 1
|
|
96260
|
+
const constant = (singleSchema) => `
|
|
96261
|
+
SELECT
|
|
96262
|
+
[cd].[Schema].[Id] AS [SchemaId],
|
|
96263
|
+
json_object(
|
|
96264
|
+
'schemaItemType', 'Constant',
|
|
96265
|
+
'name', [cd].[Name],
|
|
96266
|
+
'label', [cd].[DisplayLabel],
|
|
96267
|
+
'description', [cd].[Description],
|
|
96268
|
+
'definition', [cd].[Definition],
|
|
96269
|
+
'numerator', IIF([cd].[Numerator] IS NULL, NULL, json(format('%.16g', [cd].[Numerator]))),
|
|
96270
|
+
'denominator', IIF([cd].[Denominator] IS NULL, NULL, json(format('%.16g', [cd].[Denominator]))),
|
|
96271
|
+
'phenomenon', CONCAT([phenomSchema].[Name],'.', [phenomDef].[Name])
|
|
96272
|
+
) as item
|
|
96273
|
+
FROM
|
|
96274
|
+
[meta].[UnitDef] [cd]
|
|
96275
|
+
${singleSchema ? `
|
|
96276
|
+
JOIN
|
|
96277
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [cd].[Schema].[Id]` : ""}
|
|
96278
|
+
JOIN [meta].[PhenomenonDef] [phenomDef]
|
|
96279
|
+
ON [phenomDef].[ECInstanceId] = [cd].[Phenomenon].[Id]
|
|
96280
|
+
JOIN [meta].[ECSchemaDef] [phenomSchema]
|
|
96281
|
+
ON [phenomSchema].[ECInstanceId] = [phenomDef].[Schema].[Id]
|
|
96282
|
+
WHERE
|
|
96283
|
+
${singleSchema ? `
|
|
96284
|
+
[schema].[Name] = :schemaName AND` : ""}
|
|
96285
|
+
[cd].[IsConstant] = 1
|
|
96286
96286
|
`;
|
|
96287
96287
|
/**
|
|
96288
96288
|
* Query for SchemaItemType UnitSystem data.
|
|
96289
96289
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96290
96290
|
*/
|
|
96291
|
-
const unitSystem = (singleSchema) => `
|
|
96292
|
-
SELECT
|
|
96293
|
-
[us].[Schema].[Id] AS [SchemaId],
|
|
96294
|
-
json_object (
|
|
96295
|
-
'schemaItemType', 'UnitSystem',
|
|
96296
|
-
'name', [us].[Name],
|
|
96297
|
-
'label', [us].[DisplayLabel],
|
|
96298
|
-
'description', [us].[Description]
|
|
96299
|
-
) as [item]
|
|
96300
|
-
FROM
|
|
96301
|
-
[meta].[UnitSystemDef] [us]
|
|
96302
|
-
${singleSchema ? `
|
|
96303
|
-
JOIN
|
|
96304
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [us].[Schema].[Id]
|
|
96305
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96291
|
+
const unitSystem = (singleSchema) => `
|
|
96292
|
+
SELECT
|
|
96293
|
+
[us].[Schema].[Id] AS [SchemaId],
|
|
96294
|
+
json_object (
|
|
96295
|
+
'schemaItemType', 'UnitSystem',
|
|
96296
|
+
'name', [us].[Name],
|
|
96297
|
+
'label', [us].[DisplayLabel],
|
|
96298
|
+
'description', [us].[Description]
|
|
96299
|
+
) as [item]
|
|
96300
|
+
FROM
|
|
96301
|
+
[meta].[UnitSystemDef] [us]
|
|
96302
|
+
${singleSchema ? `
|
|
96303
|
+
JOIN
|
|
96304
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [us].[Schema].[Id]
|
|
96305
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96306
96306
|
`;
|
|
96307
96307
|
/**
|
|
96308
96308
|
* Query for SchemaItemType Phenomenon data.
|
|
96309
96309
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96310
96310
|
*/
|
|
96311
|
-
const phenomenon = (singleSchema) => `
|
|
96312
|
-
SELECT
|
|
96313
|
-
[pd].[Schema].[Id] AS [SchemaId],
|
|
96314
|
-
json_object(
|
|
96315
|
-
'schemaItemType', 'Phenomenon',
|
|
96316
|
-
'name', [pd].[Name],
|
|
96317
|
-
'label', [pd].[DisplayLabel],
|
|
96318
|
-
'description', [pd].[Description],
|
|
96319
|
-
'definition', [pd].[Definition]
|
|
96320
|
-
) as [item]
|
|
96321
|
-
FROM
|
|
96322
|
-
[meta].[PhenomenonDef] [pd]
|
|
96323
|
-
${singleSchema ? `
|
|
96324
|
-
JOIN
|
|
96325
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pd].[Schema].[Id]
|
|
96326
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96311
|
+
const phenomenon = (singleSchema) => `
|
|
96312
|
+
SELECT
|
|
96313
|
+
[pd].[Schema].[Id] AS [SchemaId],
|
|
96314
|
+
json_object(
|
|
96315
|
+
'schemaItemType', 'Phenomenon',
|
|
96316
|
+
'name', [pd].[Name],
|
|
96317
|
+
'label', [pd].[DisplayLabel],
|
|
96318
|
+
'description', [pd].[Description],
|
|
96319
|
+
'definition', [pd].[Definition]
|
|
96320
|
+
) as [item]
|
|
96321
|
+
FROM
|
|
96322
|
+
[meta].[PhenomenonDef] [pd]
|
|
96323
|
+
${singleSchema ? `
|
|
96324
|
+
JOIN
|
|
96325
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [pd].[Schema].[Id]
|
|
96326
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96327
96327
|
`;
|
|
96328
96328
|
/**
|
|
96329
96329
|
* Query for SchemaItemType Format data.
|
|
96330
96330
|
* @param singleSchema Indicates if a filter and join for a single Schema should be applied.
|
|
96331
96331
|
*/
|
|
96332
|
-
const format = (singleSchema) => `
|
|
96333
|
-
SELECT
|
|
96334
|
-
[fd].[Schema].[Id] AS [SchemaId],
|
|
96335
|
-
json_object(
|
|
96336
|
-
'schemaItemType', 'Format',
|
|
96337
|
-
'name', [fd].[Name],
|
|
96338
|
-
'label', [fd].[DisplayLabel],
|
|
96339
|
-
'description', [fd].[Description],
|
|
96340
|
-
'type', json_extract([fd].[NumericSpec], '$.type'),
|
|
96341
|
-
'precision', json_extract([fd].[NumericSpec], '$.precision'),
|
|
96342
|
-
'roundFactor', json_extract([fd].[NumericSpec], '$.roundFactor'),
|
|
96343
|
-
'minWidth', json_extract([fd].[NumericSpec], '$.minWidth'),
|
|
96344
|
-
'showSignOption', json_extract([fd].[NumericSpec], '$.showSignOption'),
|
|
96345
|
-
'decimalSeparator', json_extract([fd].[NumericSpec], '$.decimalSeparator'),
|
|
96346
|
-
'thousandSeparator', json_extract([fd].[NumericSpec], '$.thousandSeparator'),
|
|
96347
|
-
'uomSeparator', json_extract([fd].[NumericSpec], '$.uomSeparator'),
|
|
96348
|
-
'scientificType', json_extract([fd].[NumericSpec], '$.scientificType'),
|
|
96349
|
-
'stationOffsetSize', json_extract([fd].[NumericSpec], '$.stationOffsetSize'),
|
|
96350
|
-
'stationSeparator', json_extract([fd].[NumericSpec], '$.stationSeparator'),
|
|
96351
|
-
'formatTraits', json_extract([fd].[NumericSpec], '$.formatTraits')
|
|
96352
|
-
${singleSchema ? `
|
|
96353
|
-
,'composite', (
|
|
96354
|
-
SELECT
|
|
96355
|
-
json_object(
|
|
96356
|
-
'spacer', json_extract([fd1].[CompositeSpec], '$.spacer'),
|
|
96357
|
-
'includeZero', json(IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 1, 'true', IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 0, 'false', null))),
|
|
96358
|
-
'units', (
|
|
96359
|
-
SELECT json_group_array(json(json_object(
|
|
96360
|
-
'name', CONCAT([sd].[Name], '.', [ud].[Name]),
|
|
96361
|
-
'label', [fud].[Label]
|
|
96362
|
-
)))
|
|
96363
|
-
FROM [meta].[FormatDef] [fd2]
|
|
96364
|
-
LEFT JOIN [meta].[FormatCompositeUnitDef] [fud] ON [fud].[Format].[Id] = [fd2].[ECInstanceId]
|
|
96365
|
-
LEFT JOIN [meta].[UnitDef] [ud] ON [ud].[ECInstanceId] = [fud].[Unit].[Id]
|
|
96366
|
-
INNER JOIN [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [ud].[Schema].[Id]
|
|
96367
|
-
WHERE [fd2].[ECInstanceId] = [fd1].[ECInstanceId]
|
|
96368
|
-
)
|
|
96369
|
-
)
|
|
96370
|
-
FROM [meta].[FormatDef] [fd1]
|
|
96371
|
-
WHERE [fd1].[ECInstanceId]= [fd].[ECInstanceId] AND [fd1].[CompositeSpec] IS NOT NULL
|
|
96372
|
-
)` : ""}
|
|
96373
|
-
) AS item
|
|
96374
|
-
FROM
|
|
96375
|
-
[meta].[FormatDef] [fd]
|
|
96376
|
-
${singleSchema ? `
|
|
96377
|
-
JOIN
|
|
96378
|
-
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [fd].[Schema].[Id]
|
|
96379
|
-
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96332
|
+
const format = (singleSchema) => `
|
|
96333
|
+
SELECT
|
|
96334
|
+
[fd].[Schema].[Id] AS [SchemaId],
|
|
96335
|
+
json_object(
|
|
96336
|
+
'schemaItemType', 'Format',
|
|
96337
|
+
'name', [fd].[Name],
|
|
96338
|
+
'label', [fd].[DisplayLabel],
|
|
96339
|
+
'description', [fd].[Description],
|
|
96340
|
+
'type', json_extract([fd].[NumericSpec], '$.type'),
|
|
96341
|
+
'precision', json_extract([fd].[NumericSpec], '$.precision'),
|
|
96342
|
+
'roundFactor', json_extract([fd].[NumericSpec], '$.roundFactor'),
|
|
96343
|
+
'minWidth', json_extract([fd].[NumericSpec], '$.minWidth'),
|
|
96344
|
+
'showSignOption', json_extract([fd].[NumericSpec], '$.showSignOption'),
|
|
96345
|
+
'decimalSeparator', json_extract([fd].[NumericSpec], '$.decimalSeparator'),
|
|
96346
|
+
'thousandSeparator', json_extract([fd].[NumericSpec], '$.thousandSeparator'),
|
|
96347
|
+
'uomSeparator', json_extract([fd].[NumericSpec], '$.uomSeparator'),
|
|
96348
|
+
'scientificType', json_extract([fd].[NumericSpec], '$.scientificType'),
|
|
96349
|
+
'stationOffsetSize', json_extract([fd].[NumericSpec], '$.stationOffsetSize'),
|
|
96350
|
+
'stationSeparator', json_extract([fd].[NumericSpec], '$.stationSeparator'),
|
|
96351
|
+
'formatTraits', json_extract([fd].[NumericSpec], '$.formatTraits')
|
|
96352
|
+
${singleSchema ? `
|
|
96353
|
+
,'composite', (
|
|
96354
|
+
SELECT
|
|
96355
|
+
json_object(
|
|
96356
|
+
'spacer', json_extract([fd1].[CompositeSpec], '$.spacer'),
|
|
96357
|
+
'includeZero', json(IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 1, 'true', IIF(json_extract([fd1].[CompositeSpec], '$.includeZero') = 0, 'false', null))),
|
|
96358
|
+
'units', (
|
|
96359
|
+
SELECT json_group_array(json(json_object(
|
|
96360
|
+
'name', CONCAT([sd].[Name], '.', [ud].[Name]),
|
|
96361
|
+
'label', [fud].[Label]
|
|
96362
|
+
)))
|
|
96363
|
+
FROM [meta].[FormatDef] [fd2]
|
|
96364
|
+
LEFT JOIN [meta].[FormatCompositeUnitDef] [fud] ON [fud].[Format].[Id] = [fd2].[ECInstanceId]
|
|
96365
|
+
LEFT JOIN [meta].[UnitDef] [ud] ON [ud].[ECInstanceId] = [fud].[Unit].[Id]
|
|
96366
|
+
INNER JOIN [meta].[ECSchemaDef] [sd] ON [sd].[ECInstanceId] = [ud].[Schema].[Id]
|
|
96367
|
+
WHERE [fd2].[ECInstanceId] = [fd1].[ECInstanceId]
|
|
96368
|
+
)
|
|
96369
|
+
)
|
|
96370
|
+
FROM [meta].[FormatDef] [fd1]
|
|
96371
|
+
WHERE [fd1].[ECInstanceId]= [fd].[ECInstanceId] AND [fd1].[CompositeSpec] IS NOT NULL
|
|
96372
|
+
)` : ""}
|
|
96373
|
+
) AS item
|
|
96374
|
+
FROM
|
|
96375
|
+
[meta].[FormatDef] [fd]
|
|
96376
|
+
${singleSchema ? `
|
|
96377
|
+
JOIN
|
|
96378
|
+
[meta].[ECSchemaDef] [schema] ON [schema].[ECInstanceId] = [fd].[Schema].[Id]
|
|
96379
|
+
WHERE [schema].[Name] = :schemaName` : ""}
|
|
96380
96380
|
`;
|
|
96381
96381
|
/**
|
|
96382
96382
|
* Queries for each SchemaItemType
|
|
@@ -96542,349 +96542,349 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
96542
96542
|
*--------------------------------------------------------------------------------------------*/
|
|
96543
96543
|
|
|
96544
96544
|
const modifier = (alias) => {
|
|
96545
|
-
return `
|
|
96546
|
-
CASE
|
|
96547
|
-
WHEN [${alias}].[modifier] = 0 THEN 'None'
|
|
96548
|
-
WHEN [${alias}].[modifier] = 1 THEN 'Abstract'
|
|
96549
|
-
WHEN [${alias}].[modifier] = 2 THEN 'Sealed'
|
|
96550
|
-
ELSE NULL
|
|
96551
|
-
END
|
|
96545
|
+
return `
|
|
96546
|
+
CASE
|
|
96547
|
+
WHEN [${alias}].[modifier] = 0 THEN 'None'
|
|
96548
|
+
WHEN [${alias}].[modifier] = 1 THEN 'Abstract'
|
|
96549
|
+
WHEN [${alias}].[modifier] = 2 THEN 'Sealed'
|
|
96550
|
+
ELSE NULL
|
|
96551
|
+
END
|
|
96552
96552
|
`;
|
|
96553
96553
|
};
|
|
96554
96554
|
const strength = (alias) => {
|
|
96555
|
-
return `
|
|
96556
|
-
CASE
|
|
96557
|
-
WHEN [${alias}].[RelationshipStrength] = 0 THEN 'Referencing'
|
|
96558
|
-
WHEN [${alias}].[RelationshipStrength] = 1 THEN 'Holding'
|
|
96559
|
-
WHEN [${alias}].[RelationshipStrength] = 2 THEN 'Embedding'
|
|
96560
|
-
ELSE NULL
|
|
96561
|
-
END
|
|
96555
|
+
return `
|
|
96556
|
+
CASE
|
|
96557
|
+
WHEN [${alias}].[RelationshipStrength] = 0 THEN 'Referencing'
|
|
96558
|
+
WHEN [${alias}].[RelationshipStrength] = 1 THEN 'Holding'
|
|
96559
|
+
WHEN [${alias}].[RelationshipStrength] = 2 THEN 'Embedding'
|
|
96560
|
+
ELSE NULL
|
|
96561
|
+
END
|
|
96562
96562
|
`;
|
|
96563
96563
|
};
|
|
96564
96564
|
const strengthDirection = (alias) => {
|
|
96565
|
-
return `
|
|
96566
|
-
CASE
|
|
96567
|
-
WHEN [${alias}].[RelationshipStrengthDirection] = 1 THEN 'Forward'
|
|
96568
|
-
WHEN [${alias}].[RelationshipStrengthDirection] = 2 THEN 'Backward'
|
|
96569
|
-
ELSE NULL
|
|
96570
|
-
END
|
|
96565
|
+
return `
|
|
96566
|
+
CASE
|
|
96567
|
+
WHEN [${alias}].[RelationshipStrengthDirection] = 1 THEN 'Forward'
|
|
96568
|
+
WHEN [${alias}].[RelationshipStrengthDirection] = 2 THEN 'Backward'
|
|
96569
|
+
ELSE NULL
|
|
96570
|
+
END
|
|
96571
96571
|
`;
|
|
96572
96572
|
};
|
|
96573
|
-
const withAppliesTo = `
|
|
96574
|
-
AppliesToCTE AS (
|
|
96575
|
-
SELECT
|
|
96576
|
-
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
96577
|
-
[appliesToSchema].[name] as [AppliesToSchema],
|
|
96578
|
-
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
96579
|
-
FROM [meta].[CustomAttribute] [ca]
|
|
96580
|
-
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
96581
|
-
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
96582
|
-
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
96583
|
-
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
96584
|
-
WHERE [ca].[ContainerType] = 30
|
|
96585
|
-
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
96586
|
-
)
|
|
96573
|
+
const withAppliesTo = `
|
|
96574
|
+
AppliesToCTE AS (
|
|
96575
|
+
SELECT
|
|
96576
|
+
[mixinAppliesTo].[ECInstanceId] AS [AppliesToId],
|
|
96577
|
+
[appliesToSchema].[name] as [AppliesToSchema],
|
|
96578
|
+
json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.IsMixin.AppliesToEntityClass') AS [AppliesTo]
|
|
96579
|
+
FROM [meta].[CustomAttribute] [ca]
|
|
96580
|
+
JOIN [meta].[ECClassDef] [mixinAppliesTo]
|
|
96581
|
+
ON [mixinAppliesTo].[ECInstanceId] = [ca].[ContainerId]
|
|
96582
|
+
JOIN [meta].[ECSchemaDef] [appliesToSchema]
|
|
96583
|
+
ON [appliesToSchema].[ECInstanceId] = [mixinAppliesTo].[Schema].[Id]
|
|
96584
|
+
WHERE [ca].[ContainerType] = 30
|
|
96585
|
+
AND json_extract(XmlCAToJson([ca].[Class].[Id], [ca].[Instance]), '$.ecClass') = 'IsMixin'
|
|
96586
|
+
)
|
|
96587
96587
|
`;
|
|
96588
|
-
const withSchemaReferences = `
|
|
96589
|
-
SchemaReferences AS (
|
|
96590
|
-
SELECT
|
|
96591
|
-
[ref].[SourceECInstanceId] AS [SchemaId],
|
|
96592
|
-
CONCAT([Name],'.',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [fullName]
|
|
96593
|
-
FROM
|
|
96594
|
-
[meta].[ECSchemaDef] AS [refSchema]
|
|
96595
|
-
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
96596
|
-
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
96597
|
-
)
|
|
96588
|
+
const withSchemaReferences = `
|
|
96589
|
+
SchemaReferences AS (
|
|
96590
|
+
SELECT
|
|
96591
|
+
[ref].[SourceECInstanceId] AS [SchemaId],
|
|
96592
|
+
CONCAT([Name],'.',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [fullName]
|
|
96593
|
+
FROM
|
|
96594
|
+
[meta].[ECSchemaDef] AS [refSchema]
|
|
96595
|
+
INNER JOIN [meta].[SchemaHasSchemaReferences] [ref]
|
|
96596
|
+
ON [ref].[TargetECInstanceId] = [refSchema].[ECInstanceId]
|
|
96597
|
+
)
|
|
96598
96598
|
`;
|
|
96599
|
-
const customAttributeQuery = `
|
|
96600
|
-
SELECT
|
|
96601
|
-
[Schema].[Id] AS [SchemaId],
|
|
96602
|
-
json_object(
|
|
96603
|
-
'name', [class].[Name],
|
|
96604
|
-
'schemaItemType', 'CustomAttributeClass',
|
|
96605
|
-
'modifier', ${modifier("class")},
|
|
96606
|
-
'label', [class].[DisplayLabel],
|
|
96607
|
-
'description', [class].[Description],
|
|
96608
|
-
'appliesTo', [class].[CustomAttributeContainerType],
|
|
96609
|
-
'baseClasses', (
|
|
96610
|
-
SELECT
|
|
96611
|
-
json_group_array(json(json_object(
|
|
96612
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96613
|
-
'name', [baseClass].[Name],
|
|
96614
|
-
'schemaItemType', 'CustomAttributeClass',
|
|
96615
|
-
'modifier', ${modifier("baseClass")},
|
|
96616
|
-
'label', [baseClass].[DisplayLabel],
|
|
96617
|
-
'description', [baseClass].[Description],
|
|
96618
|
-
'appliesTo', [baseClass].[CustomAttributeContainerType]
|
|
96619
|
-
)))
|
|
96620
|
-
FROM
|
|
96621
|
-
[meta].[ECClassDef] [baseClass]
|
|
96622
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96623
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96624
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96625
|
-
)
|
|
96626
|
-
) AS [item]
|
|
96627
|
-
FROM [meta].[ECClassDef] [class]
|
|
96628
|
-
WHERE [class].[Type] = 3
|
|
96599
|
+
const customAttributeQuery = `
|
|
96600
|
+
SELECT
|
|
96601
|
+
[Schema].[Id] AS [SchemaId],
|
|
96602
|
+
json_object(
|
|
96603
|
+
'name', [class].[Name],
|
|
96604
|
+
'schemaItemType', 'CustomAttributeClass',
|
|
96605
|
+
'modifier', ${modifier("class")},
|
|
96606
|
+
'label', [class].[DisplayLabel],
|
|
96607
|
+
'description', [class].[Description],
|
|
96608
|
+
'appliesTo', [class].[CustomAttributeContainerType],
|
|
96609
|
+
'baseClasses', (
|
|
96610
|
+
SELECT
|
|
96611
|
+
json_group_array(json(json_object(
|
|
96612
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96613
|
+
'name', [baseClass].[Name],
|
|
96614
|
+
'schemaItemType', 'CustomAttributeClass',
|
|
96615
|
+
'modifier', ${modifier("baseClass")},
|
|
96616
|
+
'label', [baseClass].[DisplayLabel],
|
|
96617
|
+
'description', [baseClass].[Description],
|
|
96618
|
+
'appliesTo', [baseClass].[CustomAttributeContainerType]
|
|
96619
|
+
)))
|
|
96620
|
+
FROM
|
|
96621
|
+
[meta].[ECClassDef] [baseClass]
|
|
96622
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96623
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96624
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96625
|
+
)
|
|
96626
|
+
) AS [item]
|
|
96627
|
+
FROM [meta].[ECClassDef] [class]
|
|
96628
|
+
WHERE [class].[Type] = 3
|
|
96629
96629
|
`;
|
|
96630
|
-
const structQuery = `
|
|
96631
|
-
SELECT
|
|
96632
|
-
[Schema].[Id] AS [SchemaId],
|
|
96633
|
-
json_object(
|
|
96634
|
-
'name', [class].[Name],
|
|
96635
|
-
'schemaItemType', 'StructClass',
|
|
96636
|
-
'modifier', ${modifier("class")},
|
|
96637
|
-
'label', [class].[DisplayLabel],
|
|
96638
|
-
'description', [class].[Description],
|
|
96639
|
-
'baseClasses', (
|
|
96640
|
-
SELECT
|
|
96641
|
-
json_group_array(json(json_object(
|
|
96642
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96643
|
-
'name', [baseClass].[Name],
|
|
96644
|
-
'schemaItemType', 'StructClass',
|
|
96645
|
-
'modifier', ${modifier("baseClass")},
|
|
96646
|
-
'label', [baseClass].[DisplayLabel],
|
|
96647
|
-
'description', [baseClass].[Description]
|
|
96648
|
-
)))
|
|
96649
|
-
FROM
|
|
96650
|
-
[meta].[ECClassDef] [baseClass]
|
|
96651
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96652
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96653
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96654
|
-
)
|
|
96655
|
-
) AS [item]
|
|
96656
|
-
FROM [meta].[ECClassDef] [class]
|
|
96657
|
-
WHERE [class].[Type] = 2
|
|
96630
|
+
const structQuery = `
|
|
96631
|
+
SELECT
|
|
96632
|
+
[Schema].[Id] AS [SchemaId],
|
|
96633
|
+
json_object(
|
|
96634
|
+
'name', [class].[Name],
|
|
96635
|
+
'schemaItemType', 'StructClass',
|
|
96636
|
+
'modifier', ${modifier("class")},
|
|
96637
|
+
'label', [class].[DisplayLabel],
|
|
96638
|
+
'description', [class].[Description],
|
|
96639
|
+
'baseClasses', (
|
|
96640
|
+
SELECT
|
|
96641
|
+
json_group_array(json(json_object(
|
|
96642
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96643
|
+
'name', [baseClass].[Name],
|
|
96644
|
+
'schemaItemType', 'StructClass',
|
|
96645
|
+
'modifier', ${modifier("baseClass")},
|
|
96646
|
+
'label', [baseClass].[DisplayLabel],
|
|
96647
|
+
'description', [baseClass].[Description]
|
|
96648
|
+
)))
|
|
96649
|
+
FROM
|
|
96650
|
+
[meta].[ECClassDef] [baseClass]
|
|
96651
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96652
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96653
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96654
|
+
)
|
|
96655
|
+
) AS [item]
|
|
96656
|
+
FROM [meta].[ECClassDef] [class]
|
|
96657
|
+
WHERE [class].[Type] = 2
|
|
96658
96658
|
`;
|
|
96659
|
-
const relationshipQuery = `
|
|
96660
|
-
SELECT
|
|
96661
|
-
[Schema].[Id] AS [SchemaId],
|
|
96662
|
-
json_object(
|
|
96663
|
-
'name', [class].[Name],
|
|
96664
|
-
'schemaItemType', 'RelationshipClass',
|
|
96665
|
-
'modifier', ${modifier("class")},
|
|
96666
|
-
'label', [class].[DisplayLabel],
|
|
96667
|
-
'description', [class].[Description],
|
|
96668
|
-
'strength', ${strength("class")},
|
|
96669
|
-
'strengthDirection', ${strengthDirection("class")},
|
|
96670
|
-
'baseClasses', (
|
|
96671
|
-
SELECT
|
|
96672
|
-
json_group_array(json(json_object(
|
|
96673
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96674
|
-
'name', [baseClass].[Name],
|
|
96675
|
-
'schemaItemType', 'RelationshipClass',
|
|
96676
|
-
'modifier', ${modifier("baseClass")},
|
|
96677
|
-
'label', [baseClass].[DisplayLabel],
|
|
96678
|
-
'description', [baseClass].[Description],
|
|
96679
|
-
'strength', ${strength("baseClass")},
|
|
96680
|
-
'strengthDirection', ${strengthDirection("baseClass")}
|
|
96681
|
-
)))
|
|
96682
|
-
FROM
|
|
96683
|
-
[meta].[ECClassDef] [baseClass]
|
|
96684
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96685
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96686
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96687
|
-
)
|
|
96688
|
-
) AS [item]
|
|
96689
|
-
FROM [meta].[ECClassDef] [class]
|
|
96690
|
-
WHERE [class].[Type] = 1
|
|
96659
|
+
const relationshipQuery = `
|
|
96660
|
+
SELECT
|
|
96661
|
+
[Schema].[Id] AS [SchemaId],
|
|
96662
|
+
json_object(
|
|
96663
|
+
'name', [class].[Name],
|
|
96664
|
+
'schemaItemType', 'RelationshipClass',
|
|
96665
|
+
'modifier', ${modifier("class")},
|
|
96666
|
+
'label', [class].[DisplayLabel],
|
|
96667
|
+
'description', [class].[Description],
|
|
96668
|
+
'strength', ${strength("class")},
|
|
96669
|
+
'strengthDirection', ${strengthDirection("class")},
|
|
96670
|
+
'baseClasses', (
|
|
96671
|
+
SELECT
|
|
96672
|
+
json_group_array(json(json_object(
|
|
96673
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96674
|
+
'name', [baseClass].[Name],
|
|
96675
|
+
'schemaItemType', 'RelationshipClass',
|
|
96676
|
+
'modifier', ${modifier("baseClass")},
|
|
96677
|
+
'label', [baseClass].[DisplayLabel],
|
|
96678
|
+
'description', [baseClass].[Description],
|
|
96679
|
+
'strength', ${strength("baseClass")},
|
|
96680
|
+
'strengthDirection', ${strengthDirection("baseClass")}
|
|
96681
|
+
)))
|
|
96682
|
+
FROM
|
|
96683
|
+
[meta].[ECClassDef] [baseClass]
|
|
96684
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96685
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96686
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96687
|
+
)
|
|
96688
|
+
) AS [item]
|
|
96689
|
+
FROM [meta].[ECClassDef] [class]
|
|
96690
|
+
WHERE [class].[Type] = 1
|
|
96691
96691
|
`;
|
|
96692
|
-
const entityQuery = `
|
|
96693
|
-
SELECT
|
|
96694
|
-
[Schema].[Id] AS [SchemaId],
|
|
96695
|
-
json_object(
|
|
96696
|
-
'name', [class].[Name],
|
|
96697
|
-
'schemaItemType', 'EntityClass',
|
|
96698
|
-
'modifier', ${modifier("class")},
|
|
96699
|
-
'label', [class].[DisplayLabel],
|
|
96700
|
-
'description', [class].[Description],
|
|
96701
|
-
'baseClasses', (
|
|
96702
|
-
SELECT
|
|
96703
|
-
json_group_array(json(json_object(
|
|
96704
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96705
|
-
'name', [baseClass].[Name],
|
|
96706
|
-
'schemaItemType', 'EntityClass',
|
|
96707
|
-
'modifier', ${modifier("baseClass")},
|
|
96708
|
-
'label', [baseClass].[DisplayLabel],
|
|
96709
|
-
'description', [baseClass].[Description]
|
|
96710
|
-
)))
|
|
96711
|
-
FROM
|
|
96712
|
-
[meta].[ECClassDef] [baseClass]
|
|
96713
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96714
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96715
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96716
|
-
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
96717
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96718
|
-
),
|
|
96719
|
-
'mixins', (
|
|
96720
|
-
SELECT
|
|
96721
|
-
json_group_array(json(json_object(
|
|
96722
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96723
|
-
'name', [baseClass].[Name],
|
|
96724
|
-
'schemaItemType', 'Mixin',
|
|
96725
|
-
'modifier', ${modifier("baseClass")},
|
|
96726
|
-
'label', [baseClass].[DisplayLabel],
|
|
96727
|
-
'description', [baseClass].[Description],
|
|
96728
|
-
'appliesTo', (
|
|
96729
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96730
|
-
FROM [AppliesToCTE] [atCTE]
|
|
96731
|
-
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
96732
|
-
),
|
|
96733
|
-
'baseClasses', (
|
|
96734
|
-
SELECT
|
|
96735
|
-
json_group_array(json(json_object(
|
|
96736
|
-
'schema', ec_classname([mixinBaseClass].[ECInstanceId], 's'),
|
|
96737
|
-
'name', [mixinBaseClass].[Name],
|
|
96738
|
-
'schemaItemType', 'Mixin',
|
|
96739
|
-
'modifier', ${modifier("mixinBaseClass")},
|
|
96740
|
-
'label', [mixinBaseClass].[DisplayLabel],
|
|
96741
|
-
'description', [mixinBaseClass].[Description],
|
|
96742
|
-
'appliesTo', (
|
|
96743
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96744
|
-
FROM [AppliesToCTE] [atCTE]
|
|
96745
|
-
WHERE [atCTE].[AppliesToId] = [mixinBaseClass].[ECInstanceId]
|
|
96746
|
-
)
|
|
96747
|
-
)))
|
|
96748
|
-
FROM
|
|
96749
|
-
[meta].[ECClassDef] [mixinBaseClass]
|
|
96750
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [mixinBaseClassMap]
|
|
96751
|
-
ON [mixinBaseClassMap].[TargetECInstanceId] = [mixinBaseClass].[ECInstanceId]
|
|
96752
|
-
WHERE [mixinBaseClassMap].[SourceECInstanceId] = [baseClass].[ECInstanceId]
|
|
96753
|
-
)
|
|
96754
|
-
)))
|
|
96755
|
-
FROM
|
|
96756
|
-
[meta].[ECClassDef] [baseClass]
|
|
96757
|
-
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
96758
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96759
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96760
|
-
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
96761
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96762
|
-
)
|
|
96763
|
-
) AS [item]
|
|
96764
|
-
FROM [meta].[ECClassDef] [class]
|
|
96765
|
-
WHERE [class].[Type] = 0
|
|
96766
|
-
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
96767
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96692
|
+
const entityQuery = `
|
|
96693
|
+
SELECT
|
|
96694
|
+
[Schema].[Id] AS [SchemaId],
|
|
96695
|
+
json_object(
|
|
96696
|
+
'name', [class].[Name],
|
|
96697
|
+
'schemaItemType', 'EntityClass',
|
|
96698
|
+
'modifier', ${modifier("class")},
|
|
96699
|
+
'label', [class].[DisplayLabel],
|
|
96700
|
+
'description', [class].[Description],
|
|
96701
|
+
'baseClasses', (
|
|
96702
|
+
SELECT
|
|
96703
|
+
json_group_array(json(json_object(
|
|
96704
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96705
|
+
'name', [baseClass].[Name],
|
|
96706
|
+
'schemaItemType', 'EntityClass',
|
|
96707
|
+
'modifier', ${modifier("baseClass")},
|
|
96708
|
+
'label', [baseClass].[DisplayLabel],
|
|
96709
|
+
'description', [baseClass].[Description]
|
|
96710
|
+
)))
|
|
96711
|
+
FROM
|
|
96712
|
+
[meta].[ECClassDef] [baseClass]
|
|
96713
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96714
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96715
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96716
|
+
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
96717
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96718
|
+
),
|
|
96719
|
+
'mixins', (
|
|
96720
|
+
SELECT
|
|
96721
|
+
json_group_array(json(json_object(
|
|
96722
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96723
|
+
'name', [baseClass].[Name],
|
|
96724
|
+
'schemaItemType', 'Mixin',
|
|
96725
|
+
'modifier', ${modifier("baseClass")},
|
|
96726
|
+
'label', [baseClass].[DisplayLabel],
|
|
96727
|
+
'description', [baseClass].[Description],
|
|
96728
|
+
'appliesTo', (
|
|
96729
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96730
|
+
FROM [AppliesToCTE] [atCTE]
|
|
96731
|
+
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
96732
|
+
),
|
|
96733
|
+
'baseClasses', (
|
|
96734
|
+
SELECT
|
|
96735
|
+
json_group_array(json(json_object(
|
|
96736
|
+
'schema', ec_classname([mixinBaseClass].[ECInstanceId], 's'),
|
|
96737
|
+
'name', [mixinBaseClass].[Name],
|
|
96738
|
+
'schemaItemType', 'Mixin',
|
|
96739
|
+
'modifier', ${modifier("mixinBaseClass")},
|
|
96740
|
+
'label', [mixinBaseClass].[DisplayLabel],
|
|
96741
|
+
'description', [mixinBaseClass].[Description],
|
|
96742
|
+
'appliesTo', (
|
|
96743
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96744
|
+
FROM [AppliesToCTE] [atCTE]
|
|
96745
|
+
WHERE [atCTE].[AppliesToId] = [mixinBaseClass].[ECInstanceId]
|
|
96746
|
+
)
|
|
96747
|
+
)))
|
|
96748
|
+
FROM
|
|
96749
|
+
[meta].[ECClassDef] [mixinBaseClass]
|
|
96750
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [mixinBaseClassMap]
|
|
96751
|
+
ON [mixinBaseClassMap].[TargetECInstanceId] = [mixinBaseClass].[ECInstanceId]
|
|
96752
|
+
WHERE [mixinBaseClassMap].[SourceECInstanceId] = [baseClass].[ECInstanceId]
|
|
96753
|
+
)
|
|
96754
|
+
)))
|
|
96755
|
+
FROM
|
|
96756
|
+
[meta].[ECClassDef] [baseClass]
|
|
96757
|
+
INNER JOIN [meta].[ClassHasBaseClasses] [baseClassMap]
|
|
96758
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96759
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96760
|
+
AND EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [baseClass].[ECInstanceId] = [ca].[Class].[Id]
|
|
96761
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96762
|
+
)
|
|
96763
|
+
) AS [item]
|
|
96764
|
+
FROM [meta].[ECClassDef] [class]
|
|
96765
|
+
WHERE [class].[Type] = 0
|
|
96766
|
+
AND NOT EXISTS(SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
96767
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96768
96768
|
`;
|
|
96769
|
-
const mixinQuery = `
|
|
96770
|
-
SELECT
|
|
96771
|
-
[Schema].[Id] AS [SchemaId],
|
|
96772
|
-
json_object(
|
|
96773
|
-
'name', [class].[Name],
|
|
96774
|
-
'schemaItemType', 'Mixin',
|
|
96775
|
-
'modifier', ${modifier("class")},
|
|
96776
|
-
'label', [class].[DisplayLabel],
|
|
96777
|
-
'description', [class].[Description],
|
|
96778
|
-
'appliesTo', (
|
|
96779
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96780
|
-
FROM [AppliesToCTE] [atCTE]
|
|
96781
|
-
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
96782
|
-
),
|
|
96783
|
-
'baseClasses', (
|
|
96784
|
-
SELECT
|
|
96785
|
-
json_group_array(json(json_object(
|
|
96786
|
-
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96787
|
-
'name', [baseClass].[Name],
|
|
96788
|
-
'schemaItemType', 'Mixin',
|
|
96789
|
-
'modifier', ${modifier("baseClass")},
|
|
96790
|
-
'label', [baseClass].[DisplayLabel],
|
|
96791
|
-
'description', [baseClass].[Description],
|
|
96792
|
-
'appliesTo', (
|
|
96793
|
-
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96794
|
-
FROM [AppliesToCTE] [atCTE]
|
|
96795
|
-
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
96796
|
-
)
|
|
96797
|
-
)))
|
|
96798
|
-
FROM
|
|
96799
|
-
[meta].[ECClassDef] [baseClass]
|
|
96800
|
-
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96801
|
-
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96802
|
-
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96803
|
-
)
|
|
96804
|
-
) AS [item]
|
|
96805
|
-
FROM [meta].[ECClassDef] [class]
|
|
96806
|
-
WHERE [class].[Type] = 0 AND EXISTS (SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
96807
|
-
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96769
|
+
const mixinQuery = `
|
|
96770
|
+
SELECT
|
|
96771
|
+
[Schema].[Id] AS [SchemaId],
|
|
96772
|
+
json_object(
|
|
96773
|
+
'name', [class].[Name],
|
|
96774
|
+
'schemaItemType', 'Mixin',
|
|
96775
|
+
'modifier', ${modifier("class")},
|
|
96776
|
+
'label', [class].[DisplayLabel],
|
|
96777
|
+
'description', [class].[Description],
|
|
96778
|
+
'appliesTo', (
|
|
96779
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96780
|
+
FROM [AppliesToCTE] [atCTE]
|
|
96781
|
+
WHERE [atCTE].[AppliesToId] = [class].[ECInstanceId]
|
|
96782
|
+
),
|
|
96783
|
+
'baseClasses', (
|
|
96784
|
+
SELECT
|
|
96785
|
+
json_group_array(json(json_object(
|
|
96786
|
+
'schema', ec_classname([baseClass].[ECInstanceId], 's'),
|
|
96787
|
+
'name', [baseClass].[Name],
|
|
96788
|
+
'schemaItemType', 'Mixin',
|
|
96789
|
+
'modifier', ${modifier("baseClass")},
|
|
96790
|
+
'label', [baseClass].[DisplayLabel],
|
|
96791
|
+
'description', [baseClass].[Description],
|
|
96792
|
+
'appliesTo', (
|
|
96793
|
+
SELECT IIF(instr([atCTE].[AppliesTo], ':') > 1, ec_classname(ec_classId([atCTE].[AppliesTo]), 's.c'), CONCAT([atCTE].[AppliesToSchema], '.', [atCTE].[AppliesTo]))
|
|
96794
|
+
FROM [AppliesToCTE] [atCTE]
|
|
96795
|
+
WHERE [atCTE].[AppliesToId] = [baseClass].[ECInstanceId]
|
|
96796
|
+
)
|
|
96797
|
+
)))
|
|
96798
|
+
FROM
|
|
96799
|
+
[meta].[ECClassDef] [baseClass]
|
|
96800
|
+
INNER JOIN [meta].[ClassHasAllBaseClasses] [baseClassMap]
|
|
96801
|
+
ON [baseClassMap].[TargetECInstanceId] = [baseclass].[ECInstanceId]
|
|
96802
|
+
WHERE [baseClassMap].[SourceECInstanceId] = [class].[ECInstanceId]
|
|
96803
|
+
)
|
|
96804
|
+
) AS [item]
|
|
96805
|
+
FROM [meta].[ECClassDef] [class]
|
|
96806
|
+
WHERE [class].[Type] = 0 AND EXISTS (SELECT 1 FROM [meta].[ClassCustomAttribute] [ca] WHERE [class].[ECInstanceId] = [ca].[Class].[Id]
|
|
96807
|
+
AND [ca].[CustomAttributeClass].[Id] Is ([CoreCA].[IsMixin]))
|
|
96808
96808
|
`;
|
|
96809
|
-
const withSchemaItems = `
|
|
96810
|
-
SchemaItems AS (
|
|
96811
|
-
${customAttributeQuery}
|
|
96812
|
-
UNION ALL
|
|
96813
|
-
${structQuery}
|
|
96814
|
-
UNION ALL
|
|
96815
|
-
${relationshipQuery}
|
|
96816
|
-
UNION ALL
|
|
96817
|
-
${entityQuery}
|
|
96818
|
-
UNION ALL
|
|
96819
|
-
${mixinQuery}
|
|
96820
|
-
UNION ALL
|
|
96821
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration()}
|
|
96822
|
-
UNION ALL
|
|
96823
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity()}
|
|
96824
|
-
UNION ALL
|
|
96825
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory()}
|
|
96826
|
-
UNION ALL
|
|
96827
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit()}
|
|
96828
|
-
UNION ALL
|
|
96829
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit()}
|
|
96830
|
-
UNION ALL
|
|
96831
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant()}
|
|
96832
|
-
UNION ALL
|
|
96833
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon()}
|
|
96834
|
-
UNION ALL
|
|
96835
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem()}
|
|
96836
|
-
UNION ALL
|
|
96837
|
-
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format()}
|
|
96838
|
-
)
|
|
96809
|
+
const withSchemaItems = `
|
|
96810
|
+
SchemaItems AS (
|
|
96811
|
+
${customAttributeQuery}
|
|
96812
|
+
UNION ALL
|
|
96813
|
+
${structQuery}
|
|
96814
|
+
UNION ALL
|
|
96815
|
+
${relationshipQuery}
|
|
96816
|
+
UNION ALL
|
|
96817
|
+
${entityQuery}
|
|
96818
|
+
UNION ALL
|
|
96819
|
+
${mixinQuery}
|
|
96820
|
+
UNION ALL
|
|
96821
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.enumeration()}
|
|
96822
|
+
UNION ALL
|
|
96823
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.kindOfQuantity()}
|
|
96824
|
+
UNION ALL
|
|
96825
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.propertyCategory()}
|
|
96826
|
+
UNION ALL
|
|
96827
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unit()}
|
|
96828
|
+
UNION ALL
|
|
96829
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.invertedUnit()}
|
|
96830
|
+
UNION ALL
|
|
96831
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.constant()}
|
|
96832
|
+
UNION ALL
|
|
96833
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.phenomenon()}
|
|
96834
|
+
UNION ALL
|
|
96835
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.unitSystem()}
|
|
96836
|
+
UNION ALL
|
|
96837
|
+
${_SchemaItemQueries__WEBPACK_IMPORTED_MODULE_0__.SchemaItemQueries.format()}
|
|
96838
|
+
)
|
|
96839
96839
|
`;
|
|
96840
|
-
const schemaStubQuery = `
|
|
96841
|
-
WITH
|
|
96842
|
-
${withSchemaReferences},
|
|
96843
|
-
${withAppliesTo},
|
|
96844
|
-
${withSchemaItems}
|
|
96845
|
-
SELECT
|
|
96846
|
-
[Name] as [name],
|
|
96847
|
-
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
96848
|
-
[Alias] as [alias],
|
|
96849
|
-
[DisplayLabel] as [displayLabel],
|
|
96850
|
-
[Description] as [description],
|
|
96851
|
-
(
|
|
96852
|
-
SELECT
|
|
96853
|
-
json_group_array([schemaReferences].[fullName])
|
|
96854
|
-
FROM
|
|
96855
|
-
[SchemaReferences] [schemaReferences]
|
|
96856
|
-
WHERE
|
|
96857
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
96858
|
-
) AS [references],
|
|
96859
|
-
(
|
|
96860
|
-
SELECT
|
|
96861
|
-
json_group_array(json([items].[item]))
|
|
96862
|
-
FROM
|
|
96863
|
-
[SchemaItems] [items]
|
|
96864
|
-
WHERE
|
|
96865
|
-
[items].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
96866
|
-
) AS [items]
|
|
96867
|
-
FROM
|
|
96868
|
-
[meta].[ECSchemaDef] [schemaDef]
|
|
96869
|
-
WHERE [Name] = :schemaName
|
|
96840
|
+
const schemaStubQuery = `
|
|
96841
|
+
WITH
|
|
96842
|
+
${withSchemaReferences},
|
|
96843
|
+
${withAppliesTo},
|
|
96844
|
+
${withSchemaItems}
|
|
96845
|
+
SELECT
|
|
96846
|
+
[Name] as [name],
|
|
96847
|
+
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
96848
|
+
[Alias] as [alias],
|
|
96849
|
+
[DisplayLabel] as [displayLabel],
|
|
96850
|
+
[Description] as [description],
|
|
96851
|
+
(
|
|
96852
|
+
SELECT
|
|
96853
|
+
json_group_array([schemaReferences].[fullName])
|
|
96854
|
+
FROM
|
|
96855
|
+
[SchemaReferences] [schemaReferences]
|
|
96856
|
+
WHERE
|
|
96857
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
96858
|
+
) AS [references],
|
|
96859
|
+
(
|
|
96860
|
+
SELECT
|
|
96861
|
+
json_group_array(json([items].[item]))
|
|
96862
|
+
FROM
|
|
96863
|
+
[SchemaItems] [items]
|
|
96864
|
+
WHERE
|
|
96865
|
+
[items].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
96866
|
+
) AS [items]
|
|
96867
|
+
FROM
|
|
96868
|
+
[meta].[ECSchemaDef] [schemaDef]
|
|
96869
|
+
WHERE [Name] = :schemaName
|
|
96870
96870
|
`;
|
|
96871
|
-
const schemaInfoQuery = `
|
|
96872
|
-
WITH
|
|
96873
|
-
${withSchemaReferences}
|
|
96874
|
-
SELECT
|
|
96875
|
-
[Name] as [name],
|
|
96876
|
-
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
96877
|
-
[Alias] as [alias],
|
|
96878
|
-
(
|
|
96879
|
-
SELECT
|
|
96880
|
-
json_group_array([schemaReferences].[fullName])
|
|
96881
|
-
FROM
|
|
96882
|
-
[SchemaReferences] [schemaReferences]
|
|
96883
|
-
WHERE
|
|
96884
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
96885
|
-
) AS [references]
|
|
96886
|
-
FROM
|
|
96887
|
-
[meta].[ECSchemaDef] [schemaDef]
|
|
96871
|
+
const schemaInfoQuery = `
|
|
96872
|
+
WITH
|
|
96873
|
+
${withSchemaReferences}
|
|
96874
|
+
SELECT
|
|
96875
|
+
[Name] as [name],
|
|
96876
|
+
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
96877
|
+
[Alias] as [alias],
|
|
96878
|
+
(
|
|
96879
|
+
SELECT
|
|
96880
|
+
json_group_array([schemaReferences].[fullName])
|
|
96881
|
+
FROM
|
|
96882
|
+
[SchemaReferences] [schemaReferences]
|
|
96883
|
+
WHERE
|
|
96884
|
+
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
96885
|
+
) AS [references]
|
|
96886
|
+
FROM
|
|
96887
|
+
[meta].[ECSchemaDef] [schemaDef]
|
|
96888
96888
|
`;
|
|
96889
96889
|
/**
|
|
96890
96890
|
* Partial Schema queries.
|
|
@@ -144008,7 +144008,7 @@ class BackgroundMapDrape extends _TextureDrape__WEBPACK_IMPORTED_MODULE_13__.Tex
|
|
|
144008
144008
|
const prevPlan = target.plan;
|
|
144009
144009
|
const drawingParams = _PlanarTextureProjection__WEBPACK_IMPORTED_MODULE_9__.PlanarTextureProjection.getTextureDrawingParams(target);
|
|
144010
144010
|
const stack = new _BranchStack__WEBPACK_IMPORTED_MODULE_6__.BranchStack();
|
|
144011
|
-
stack.changeRenderPlan(drawingParams.viewFlags, prevPlan.is3d, prevPlan.hline);
|
|
144011
|
+
stack.changeRenderPlan(drawingParams.viewFlags, prevPlan.is3d, prevPlan.hline, prevPlan.contours);
|
|
144012
144012
|
stack.setSymbologyOverrides(this._symbologyOverrides);
|
|
144013
144013
|
const batchState = new _BatchState__WEBPACK_IMPORTED_MODULE_5__.BatchState(stack);
|
|
144014
144014
|
_System__WEBPACK_IMPORTED_MODULE_11__.System.instance.applyRenderState(drawingParams.state);
|
|
@@ -152366,7 +152366,7 @@ class PlanarClassifier extends _RenderPlanarClassifier__WEBPACK_IMPORTED_MODULE_
|
|
|
152366
152366
|
this._anyTranslucent = false;
|
|
152367
152367
|
const prevProjMatrix = target.uniforms.frustum.projectionMatrix;
|
|
152368
152368
|
target.uniforms.frustum.changeProjectionMatrix(PlanarClassifier._postProjectionMatrix.multiplyMatrixMatrix(prevProjMatrix));
|
|
152369
|
-
target.uniforms.branch.changeRenderPlan(vf, target.plan.is3d, target.plan.hline);
|
|
152369
|
+
target.uniforms.branch.changeRenderPlan(vf, target.plan.is3d, target.plan.hline, target.plan.contours);
|
|
152370
152370
|
const addCmds = (oldCmds, newCmds) => {
|
|
152371
152371
|
if (undefined === newCmds)
|
|
152372
152372
|
return oldCmds;
|
|
@@ -174536,6 +174536,7 @@ class GraphicsTile extends _tile_internal__WEBPACK_IMPORTED_MODULE_4__.Tile {
|
|
|
174536
174536
|
smoothPolyfaceEdges: this.tree.edgeOptions && this.tree.edgeOptions.smooth,
|
|
174537
174537
|
clipToProjectExtents: this.tree.is3d,
|
|
174538
174538
|
sectionCut: this.tree.stringifiedSectionClip,
|
|
174539
|
+
useAbsolutePositions: true,
|
|
174539
174540
|
};
|
|
174540
174541
|
return _IModelApp__WEBPACK_IMPORTED_MODULE_3__.IModelApp.tileAdmin.requestElementGraphics(this.tree.iModel, props);
|
|
174541
174542
|
}
|
|
@@ -335400,7 +335401,7 @@ class TestContext {
|
|
|
335400
335401
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
335401
335402
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
335402
335403
|
await core_frontend_1.NoRenderApp.startup({
|
|
335403
|
-
applicationVersion: "5.1.1",
|
|
335404
|
+
applicationVersion: "5.1.3-experimental.1",
|
|
335404
335405
|
applicationId: this.settings.gprid,
|
|
335405
335406
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
335406
335407
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -360489,7 +360490,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
360489
360490
|
/***/ ((module) => {
|
|
360490
360491
|
|
|
360491
360492
|
"use strict";
|
|
360492
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.1","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","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","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","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":{"@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/eslint-plugin":"5.2.2-dev.2","@types/chai-as-promised":"^7","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
360493
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.3-experimental.1","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","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","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","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":{"@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/eslint-plugin":"5.2.2-dev.2","@types/chai-as-promised":"^7","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","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/cloud-agnostic-core":"^2.2.4","@itwin/object-storage-core":"^2.3.0","@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
360493
360494
|
|
|
360494
360495
|
/***/ }),
|
|
360495
360496
|
|