@itwin/ecschema-rpcinterface-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 +21 -36
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -31398,8 +31398,6 @@ function equalLineRgb(a, b) {
|
|
|
31398
31398
|
return equalRgb(a, b);
|
|
31399
31399
|
}
|
|
31400
31400
|
else {
|
|
31401
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(a === undefined || a === false);
|
|
31402
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(b === undefined || b === false);
|
|
31403
31401
|
return false;
|
|
31404
31402
|
}
|
|
31405
31403
|
}
|
|
@@ -65617,6 +65615,8 @@ class ECSqlSchemaLocater extends _IncrementalSchemaLocater__WEBPACK_IMPORTED_MOD
|
|
|
65617
65615
|
const schemaRows = await this.executeQuery(_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_7__.ecsqlQueries.schemaInfoQuery);
|
|
65618
65616
|
return schemaRows.map((schemaRow) => ({
|
|
65619
65617
|
alias: schemaRow.alias,
|
|
65618
|
+
description: schemaRow.description,
|
|
65619
|
+
label: schemaRow.label,
|
|
65620
65620
|
schemaKey: _SchemaKey__WEBPACK_IMPORTED_MODULE_2__.SchemaKey.parseString(`${schemaRow.name}.${schemaRow.version}`),
|
|
65621
65621
|
references: Array.from(JSON.parse(schemaRow.references), parseSchemaReference),
|
|
65622
65622
|
}));
|
|
@@ -65630,16 +65630,16 @@ class ECSqlSchemaLocater extends _IncrementalSchemaLocater__WEBPACK_IMPORTED_MOD
|
|
|
65630
65630
|
*/
|
|
65631
65631
|
async getSchemaPartials(schemaKey, context) {
|
|
65632
65632
|
const queryStart = Date.now();
|
|
65633
|
-
const
|
|
65634
|
-
parameters: { schemaName: schemaKey.name }
|
|
65635
|
-
limit: 1
|
|
65633
|
+
const itemRows = await this.executeQuery(_SchemaStubQueries__WEBPACK_IMPORTED_MODULE_7__.ecsqlQueries.schemaStubQuery, {
|
|
65634
|
+
parameters: { schemaName: schemaKey.name }
|
|
65636
65635
|
});
|
|
65637
65636
|
const queryDuration = Date.now() - queryStart;
|
|
65638
65637
|
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logTrace(LOGGER_CATEGORY, `Recieved PartialSchema for ${schemaKey.name} in ${queryDuration}ms`, {
|
|
65639
65638
|
schemaName: schemaKey.name,
|
|
65639
|
+
itemCount: itemRows.length,
|
|
65640
65640
|
duration: queryDuration,
|
|
65641
65641
|
});
|
|
65642
|
-
if (
|
|
65642
|
+
if (itemRows.length === 0)
|
|
65643
65643
|
return undefined;
|
|
65644
65644
|
const schemaPartials = [];
|
|
65645
65645
|
const addSchema = async (key) => {
|
|
@@ -65667,14 +65667,14 @@ class ECSqlSchemaLocater extends _IncrementalSchemaLocater__WEBPACK_IMPORTED_MOD
|
|
|
65667
65667
|
Object.assign(items, { [itemInfo.name]: Object.assign(existingItem, itemInfo) });
|
|
65668
65668
|
};
|
|
65669
65669
|
const reviver = (_key, value) => {
|
|
65670
|
-
|
|
65671
|
-
return undefined;
|
|
65672
|
-
}
|
|
65673
|
-
return value;
|
|
65670
|
+
return value === null ? undefined : value;
|
|
65674
65671
|
};
|
|
65675
65672
|
await addSchema(schemaKey);
|
|
65676
65673
|
const schemaInfos = await this._schemaInfoCache.getSchemasByContext(context) ?? [];
|
|
65677
|
-
|
|
65674
|
+
const stubItems = itemRows.map((itemRow) => {
|
|
65675
|
+
return JSON.parse(itemRow.item, reviver);
|
|
65676
|
+
});
|
|
65677
|
+
await parseSchemaItemStubs(schemaKey.name, stubItems, addItems, schemaInfos);
|
|
65678
65678
|
return schemaPartials;
|
|
65679
65679
|
}
|
|
65680
65680
|
async querySchemaItem(context, schemaName, query, schemaType) {
|
|
@@ -66558,6 +66558,8 @@ class IncrementalSchemaLocater {
|
|
|
66558
66558
|
name: schemaKey.name,
|
|
66559
66559
|
alias: schemaInfo.alias,
|
|
66560
66560
|
version: schemaInfo.schemaKey.version.toString(),
|
|
66561
|
+
description: schemaInfo.description,
|
|
66562
|
+
label: schemaInfo.label,
|
|
66561
66563
|
references: schemaReferences,
|
|
66562
66564
|
items: {}
|
|
66563
66565
|
};
|
|
@@ -67634,34 +67636,15 @@ SchemaItems AS (
|
|
|
67634
67636
|
`;
|
|
67635
67637
|
const schemaStubQuery = `
|
|
67636
67638
|
WITH
|
|
67637
|
-
${withSchemaReferences},
|
|
67638
67639
|
${withAppliesTo},
|
|
67639
67640
|
${withSchemaItems}
|
|
67640
67641
|
SELECT
|
|
67641
|
-
[
|
|
67642
|
-
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
67643
|
-
[Alias] as [alias],
|
|
67644
|
-
[DisplayLabel] as [displayLabel],
|
|
67645
|
-
[Description] as [description],
|
|
67646
|
-
(
|
|
67647
|
-
SELECT
|
|
67648
|
-
json_group_array([schemaReferences].[fullName])
|
|
67649
|
-
FROM
|
|
67650
|
-
[SchemaReferences] [schemaReferences]
|
|
67651
|
-
WHERE
|
|
67652
|
-
[schemaReferences].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
67653
|
-
) AS [references],
|
|
67654
|
-
(
|
|
67655
|
-
SELECT
|
|
67656
|
-
json_group_array(json([items].[item]))
|
|
67657
|
-
FROM
|
|
67658
|
-
[SchemaItems] [items]
|
|
67659
|
-
WHERE
|
|
67660
|
-
[items].[SchemaId] = [schemaDef].[ECInstanceId]
|
|
67661
|
-
) AS [items]
|
|
67642
|
+
[items].[item]
|
|
67662
67643
|
FROM
|
|
67663
|
-
[
|
|
67664
|
-
|
|
67644
|
+
[SchemaItems] [items]
|
|
67645
|
+
JOIN [meta].[ECSchemaDef] [schemaDef]
|
|
67646
|
+
ON [schemaDef].[ECInstanceId] = [items].[SchemaId]
|
|
67647
|
+
WHERE [schemaDef].[Name] = :schemaName
|
|
67665
67648
|
`;
|
|
67666
67649
|
const schemaInfoQuery = `
|
|
67667
67650
|
WITH
|
|
@@ -67670,6 +67653,8 @@ const schemaInfoQuery = `
|
|
|
67670
67653
|
[Name] as [name],
|
|
67671
67654
|
CONCAT('',[VersionMajor],'.',[VersionWrite],'.',[VersionMinor]) AS [version],
|
|
67672
67655
|
[Alias] as [alias],
|
|
67656
|
+
[DisplayLabel] as [label],
|
|
67657
|
+
[Description] as [description],
|
|
67673
67658
|
(
|
|
67674
67659
|
SELECT
|
|
67675
67660
|
json_group_array([schemaReferences].[fullName])
|
|
@@ -318930,7 +318915,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
318930
318915
|
/***/ ((module) => {
|
|
318931
318916
|
|
|
318932
318917
|
"use strict";
|
|
318933
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.2.0-dev.
|
|
318918
|
+
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"}}');
|
|
318934
318919
|
|
|
318935
318920
|
/***/ })
|
|
318936
318921
|
|