@itwin/rpcinterface-full-stack-tests 5.2.0-dev.23 → 5.2.0-dev.25
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/dist/bundled-tests.js +31 -46
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -61033,8 +61033,6 @@ function equalLineRgb(a, b) {
|
|
|
61033
61033
|
return equalRgb(a, b);
|
|
61034
61034
|
}
|
|
61035
61035
|
else {
|
|
61036
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(a === undefined || a === false);
|
|
61037
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(b === undefined || b === false);
|
|
61038
61036
|
return false;
|
|
61039
61037
|
}
|
|
61040
61038
|
}
|
|
@@ -95252,6 +95250,8 @@ class ECSqlSchemaLocater extends _IncrementalSchemaLocater__WEBPACK_IMPORTED_MOD
|
|
|
95252
95250
|
const schemaRows = await this.executeQuery(_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_7__.ecsqlQueries.schemaInfoQuery);
|
|
95253
95251
|
return schemaRows.map((schemaRow) => ({
|
|
95254
95252
|
alias: schemaRow.alias,
|
|
95253
|
+
description: schemaRow.description,
|
|
95254
|
+
label: schemaRow.label,
|
|
95255
95255
|
schemaKey: _SchemaKey__WEBPACK_IMPORTED_MODULE_2__.SchemaKey.parseString(`${schemaRow.name}.${schemaRow.version}`),
|
|
95256
95256
|
references: Array.from(JSON.parse(schemaRow.references), parseSchemaReference),
|
|
95257
95257
|
}));
|
|
@@ -95265,16 +95265,16 @@ class ECSqlSchemaLocater extends _IncrementalSchemaLocater__WEBPACK_IMPORTED_MOD
|
|
|
95265
95265
|
*/
|
|
95266
95266
|
async getSchemaPartials(schemaKey, context) {
|
|
95267
95267
|
const queryStart = Date.now();
|
|
95268
|
-
const
|
|
95269
|
-
parameters: { schemaName: schemaKey.name }
|
|
95270
|
-
limit: 1
|
|
95268
|
+
const itemRows = await this.executeQuery(_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_7__.ecsqlQueries.schemaStubQuery, {
|
|
95269
|
+
parameters: { schemaName: schemaKey.name }
|
|
95271
95270
|
});
|
|
95272
95271
|
const queryDuration = Date.now() - queryStart;
|
|
95273
95272
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(LOGGER_CATEGORY, `Recieved PartialSchema for ${schemaKey.name} in ${queryDuration}ms`, {
|
|
95274
95273
|
schemaName: schemaKey.name,
|
|
95274
|
+
itemCount: itemRows.length,
|
|
95275
95275
|
duration: queryDuration,
|
|
95276
95276
|
});
|
|
95277
|
-
if (
|
|
95277
|
+
if (itemRows.length === 0)
|
|
95278
95278
|
return undefined;
|
|
95279
95279
|
const schemaPartials = [];
|
|
95280
95280
|
const addSchema = async (key) => {
|
|
@@ -95302,14 +95302,14 @@ class ECSqlSchemaLocater extends _IncrementalSchemaLocater__WEBPACK_IMPORTED_MOD
|
|
|
95302
95302
|
Object.assign(items, { [itemInfo.name]: Object.assign(existingItem, itemInfo) });
|
|
95303
95303
|
};
|
|
95304
95304
|
const reviver = (_key, value) => {
|
|
95305
|
-
|
|
95306
|
-
return undefined;
|
|
95307
|
-
}
|
|
95308
|
-
return value;
|
|
95305
|
+
return value === null ? undefined : value;
|
|
95309
95306
|
};
|
|
95310
95307
|
await addSchema(schemaKey);
|
|
95311
95308
|
const schemaInfos = await this._schemaInfoCache.getSchemasByContext(context) ?? [];
|
|
95312
|
-
|
|
95309
|
+
const stubItems = itemRows.map((itemRow) => {
|
|
95310
|
+
return JSON.parse(itemRow.item, reviver);
|
|
95311
|
+
});
|
|
95312
|
+
await parseSchemaItemStubs(schemaKey.name, stubItems, addItems, schemaInfos);
|
|
95313
95313
|
return schemaPartials;
|
|
95314
95314
|
}
|
|
95315
95315
|
async querySchemaItem(context, schemaName, query, schemaType) {
|
|
@@ -96193,6 +96193,8 @@ class IncrementalSchemaLocater {
|
|
|
96193
96193
|
name: schemaKey.name,
|
|
96194
96194
|
alias: schemaInfo.alias,
|
|
96195
96195
|
version: schemaInfo.schemaKey.version.toString(),
|
|
96196
|
+
description: schemaInfo.description,
|
|
96197
|
+
label: schemaInfo.label,
|
|
96196
96198
|
references: schemaReferences,
|
|
96197
96199
|
items: {}
|
|
96198
96200
|
};
|
|
@@ -97269,34 +97271,15 @@ SchemaItems AS (
|
|
|
97269
97271
|
`;
|
|
97270
97272
|
const schemaStubQuery = `
|
|
97271
97273
|
WITH
|
|
97272
|
-
${withSchemaReferences},
|
|
97273
97274
|
${withAppliesTo},
|
|
97274
97275
|
${withSchemaItems}
|
|
97275
97276
|
SELECT
|
|
97276
|
-
[
|
|
97277
|
-
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
97278
|
-
[Alias] as [alias],
|
|
97279
|
-
[DisplayLabel] as [displayLabel],
|
|
97280
|
-
[Description] as [description],
|
|
97281
|
-
(
|
|
97282
|
-
SELECT
|
|
97283
|
-
json_group_array([schemaReferences].[fullName])
|
|
97284
|
-
FROM
|
|
97285
|
-
[SchemaReferences] [schemaReferences]
|
|
97286
|
-
WHERE
|
|
97287
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
97288
|
-
) AS [references],
|
|
97289
|
-
(
|
|
97290
|
-
SELECT
|
|
97291
|
-
json_group_array(json([items].[item]))
|
|
97292
|
-
FROM
|
|
97293
|
-
[SchemaItems] [items]
|
|
97294
|
-
WHERE
|
|
97295
|
-
[items].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
97296
|
-
) AS [items]
|
|
97277
|
+
[items].[item]
|
|
97297
97278
|
FROM
|
|
97298
|
-
[
|
|
97299
|
-
|
|
97279
|
+
[SchemaItems] [items]
|
|
97280
|
+
JOIN [meta].[ECSchemaDef] [schemaDef]
|
|
97281
|
+
ON [schemaDef].[ECInstanceId] = [items].[SchemaId]
|
|
97282
|
+
WHERE [schemaDef].[Name] = :schemaName
|
|
97300
97283
|
`;
|
|
97301
97284
|
const schemaInfoQuery = `
|
|
97302
97285
|
WITH
|
|
@@ -97305,6 +97288,8 @@ const schemaInfoQuery = `
|
|
|
97305
97288
|
[Name] as [name],
|
|
97306
97289
|
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
97307
97290
|
[Alias] as [alias],
|
|
97291
|
+
[DisplayLabel] as [label],
|
|
97292
|
+
[Description] as [description],
|
|
97308
97293
|
(
|
|
97309
97294
|
SELECT
|
|
97310
97295
|
json_group_array([schemaReferences].[fullName])
|
|
@@ -336017,7 +336002,7 @@ class TestContext {
|
|
|
336017
336002
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
336018
336003
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
336019
336004
|
await core_frontend_1.NoRenderApp.startup({
|
|
336020
|
-
applicationVersion: "5.2.0-dev.
|
|
336005
|
+
applicationVersion: "5.2.0-dev.25",
|
|
336021
336006
|
applicationId: this.settings.gprid,
|
|
336022
336007
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
336023
336008
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -342740,7 +342725,7 @@ class KoqPropertyValueFormatter {
|
|
|
342740
342725
|
}
|
|
342741
342726
|
const { formatProps, persistenceUnitName } = formattingProps;
|
|
342742
342727
|
const persistenceUnit = await this._unitsProvider.findUnitByName(persistenceUnitName);
|
|
342743
|
-
const format = await core_quantity_1.Format.createFromJSON("", this._unitsProvider, formatProps);
|
|
342728
|
+
const format = await core_quantity_1.Format.createFromJSON("", this._unitsProvider, { ...formatProps, ...options.formatOverride });
|
|
342744
342729
|
return core_quantity_1.FormatterSpec.create("", format, this._unitsProvider, persistenceUnit);
|
|
342745
342730
|
}
|
|
342746
342731
|
async getParserSpec(options) {
|
|
@@ -342750,7 +342735,7 @@ class KoqPropertyValueFormatter {
|
|
|
342750
342735
|
}
|
|
342751
342736
|
const { formatProps, persistenceUnitName } = formattingProps;
|
|
342752
342737
|
const persistenceUnit = await this._unitsProvider.findUnitByName(persistenceUnitName);
|
|
342753
|
-
const format = await core_quantity_1.Format.createFromJSON("", this._unitsProvider, formatProps);
|
|
342738
|
+
const format = await core_quantity_1.Format.createFromJSON("", this._unitsProvider, { ...formatProps, ...options.formatOverride });
|
|
342754
342739
|
return core_quantity_1.ParserSpec.create(format, this._unitsProvider, persistenceUnit);
|
|
342755
342740
|
}
|
|
342756
342741
|
async #getFormattingProps(options) {
|
|
@@ -349198,13 +349183,13 @@ class FavoritePropertiesManager {
|
|
|
349198
349183
|
if (missingClasses.size === 0) {
|
|
349199
349184
|
return baseClasses;
|
|
349200
349185
|
}
|
|
349201
|
-
const query = `
|
|
349202
|
-
SELECT (derivedSchema.Name || ':' || derivedClass.Name) AS "ClassFullName", (baseSchema.Name || ':' || baseClass.Name) AS "BaseClassFullName"
|
|
349203
|
-
FROM ECDbMeta.ClassHasAllBaseClasses baseClassRels
|
|
349204
|
-
INNER JOIN ECDbMeta.ECClassDef derivedClass ON derivedClass.ECInstanceId = baseClassRels.SourceECInstanceId
|
|
349205
|
-
INNER JOIN ECDbMeta.ECSchemaDef derivedSchema ON derivedSchema.ECInstanceId = derivedClass.Schema.Id
|
|
349206
|
-
INNER JOIN ECDbMeta.ECClassDef baseClass ON baseClass.ECInstanceId = baseClassRels.TargetECInstanceId
|
|
349207
|
-
INNER JOIN ECDbMeta.ECSchemaDef baseSchema ON baseSchema.ECInstanceId = baseClass.Schema.Id
|
|
349186
|
+
const query = `
|
|
349187
|
+
SELECT (derivedSchema.Name || ':' || derivedClass.Name) AS "ClassFullName", (baseSchema.Name || ':' || baseClass.Name) AS "BaseClassFullName"
|
|
349188
|
+
FROM ECDbMeta.ClassHasAllBaseClasses baseClassRels
|
|
349189
|
+
INNER JOIN ECDbMeta.ECClassDef derivedClass ON derivedClass.ECInstanceId = baseClassRels.SourceECInstanceId
|
|
349190
|
+
INNER JOIN ECDbMeta.ECSchemaDef derivedSchema ON derivedSchema.ECInstanceId = derivedClass.Schema.Id
|
|
349191
|
+
INNER JOIN ECDbMeta.ECClassDef baseClass ON baseClass.ECInstanceId = baseClassRels.TargetECInstanceId
|
|
349192
|
+
INNER JOIN ECDbMeta.ECSchemaDef baseSchema ON baseSchema.ECInstanceId = baseClass.Schema.Id
|
|
349208
349193
|
WHERE (derivedSchema.Name || ':' || derivedClass.Name) IN (${[...missingClasses].map((className) => `'${className}'`).join(",")})`;
|
|
349209
349194
|
const reader = imodel.createQueryReader(query, undefined, { rowFormat: core_common_1.QueryRowFormat.UseJsPropertyNames });
|
|
349210
349195
|
while (await reader.step()) {
|
|
@@ -361147,7 +361132,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
361147
361132
|
/***/ ((module) => {
|
|
361148
361133
|
|
|
361149
361134
|
"use strict";
|
|
361150
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.2.0-dev.
|
|
361135
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.2.0-dev.25","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/draco3d/draco_decoder.wasm\\" ./lib/public","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/draco3d":"^1.4.10","@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":"^4.3.4","@loaders.gl/draco":"^4.3.4","draco3d":"^1.5.1","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
361151
361136
|
|
|
361152
361137
|
/***/ }),
|
|
361153
361138
|
|