@itwin/rpcinterface-full-stack-tests 4.0.0-dev.81 → 4.0.0-dev.83

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.
@@ -1 +1 @@
1
- {"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\4\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_d48c.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\10\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.1\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -66673,9 +66673,9 @@ class JsonParser extends AbstractParser_1.AbstractParser {
66673
66673
  return jsonObj;
66674
66674
  }
66675
66675
  /**
66676
- * Type checks format and returns FormatProps interface
66676
+ * Type checks format and returns SchemaItemFormatProps interface
66677
66677
  * @param jsonObj
66678
- * @returns FormatProps
66678
+ * @returns SchemaItemFormatProps
66679
66679
  */
66680
66680
  parseFormat(jsonObj) {
66681
66681
  this.checkSchemaItemProps(jsonObj);
@@ -70817,7 +70817,7 @@ exports.MutableMixin = MutableMixin;
70817
70817
  * @module Metadata
70818
70818
  */
70819
70819
  Object.defineProperty(exports, "__esModule", ({ value: true }));
70820
- exports.OverrideFormat = void 0;
70820
+ exports.getFormatProps = exports.OverrideFormat = void 0;
70821
70821
  const XmlSerializationUtils_1 = __webpack_require__(/*! ../Deserialization/XmlSerializationUtils */ "../../core/ecschema-metadata/lib/cjs/Deserialization/XmlSerializationUtils.js");
70822
70822
  const ECObjects_1 = __webpack_require__(/*! ../ECObjects */ "../../core/ecschema-metadata/lib/cjs/ECObjects.js");
70823
70823
  /**
@@ -70891,11 +70891,49 @@ class OverrideFormat {
70891
70891
  */
70892
70892
  static isOverrideFormat(object) {
70893
70893
  const overrideFormat = object;
70894
- return overrideFormat !== undefined && overrideFormat.name !== undefined && overrideFormat.parent !== undefined &&
70895
- overrideFormat.parent.schemaItemType === ECObjects_1.SchemaItemType.Format;
70894
+ return overrideFormat !== undefined && overrideFormat.name !== undefined && overrideFormat.parent !== undefined && overrideFormat.parent.schemaItemType === ECObjects_1.SchemaItemType.Format;
70895
+ }
70896
+ /**
70897
+ * Returns a JSON object that contains the specification for the OverrideFormat where the precision and units properties have been overriden.
70898
+ * If the precision and/or units properties have been overriden, the returned object will contain a "name" and a "parent" property.
70899
+ * The "name" property identifies the OverrideFormat object itself and the "parent" property identifies the Format that has been overriden.
70900
+ * This method is not intended for complete serialization as it does not serialize any of the schema item properties.
70901
+ */
70902
+ getFormatProps() {
70903
+ const formatJson = this.parent.toJSON();
70904
+ if (this.parent.fullName !== this.fullName) {
70905
+ // Update name and parent properties to distinguish it from parent Format
70906
+ formatJson.name = this.fullName;
70907
+ formatJson.parent = this.parent.fullName;
70908
+ }
70909
+ // Update Precision overriden property
70910
+ formatJson.precision = this.precision;
70911
+ if (this.units !== undefined) {
70912
+ // Update Units overriden property
70913
+ const units = [];
70914
+ for (const unit of this.units) {
70915
+ units.push({
70916
+ name: unit[0].fullName,
70917
+ label: unit[1],
70918
+ });
70919
+ }
70920
+ formatJson.composite = {
70921
+ spacer: (this.spacer !== " ") ? this.spacer : undefined,
70922
+ includeZero: (this.includeZero === false) ? this.includeZero : undefined,
70923
+ units,
70924
+ };
70925
+ }
70926
+ return formatJson;
70896
70927
  }
70897
70928
  }
70898
70929
  exports.OverrideFormat = OverrideFormat;
70930
+ /**
70931
+ * @internal
70932
+ */
70933
+ function getFormatProps(format) {
70934
+ return OverrideFormat.isOverrideFormat(format) ? format.getFormatProps() : format.toJSON();
70935
+ }
70936
+ exports.getFormatProps = getFormatProps;
70899
70937
 
70900
70938
 
70901
70939
  /***/ }),
@@ -74144,10 +74182,10 @@ class SchemaUnitProvider {
74144
74182
  return this.getUnitsProps(foundUnit);
74145
74183
  }
74146
74184
  /**
74147
- * Gets the @itwin/core-quantity UnitConversion for the given fromUnit and toUnit.
74185
+ * Gets the @itwin/core-quantity UnitConversionProps for the given fromUnit and toUnit.
74148
74186
  * @param fromUnit The UnitProps of the 'from' unit.
74149
74187
  * @param toUnit The UnitProps of the 'to' unit.
74150
- * @returns The UnitConversion interface from the @itwin/core-quantity package.
74188
+ * @returns The UnitConversionProps interface from the @itwin/core-quantity package.
74151
74189
  */
74152
74190
  async getConversion(fromUnit, toUnit) {
74153
74191
  const conversion = await this._unitConverter.calculateConversion(fromUnit.name, toUnit.name);
@@ -102012,7 +102050,7 @@ class BasicUnitsProvider {
102012
102050
  return new ConversionData();
102013
102051
  }
102014
102052
  }
102015
- /** Class that implements the minimum UnitConversion interface to provide information needed to convert unit values.
102053
+ /** Class that implements the minimum UnitConversionProps interface to provide information needed to convert unit values.
102016
102054
  * @alpha
102017
102055
  */
102018
102056
  class ConversionData {
@@ -277605,7 +277643,7 @@ class TestContext {
277605
277643
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
277606
277644
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
277607
277645
  await core_frontend_1.NoRenderApp.startup({
277608
- applicationVersion: "4.0.0-dev.81",
277646
+ applicationVersion: "4.0.0-dev.83",
277609
277647
  applicationId: this.settings.gprid,
277610
277648
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
277611
277649
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -297011,7 +297049,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
297011
297049
  /***/ ((module) => {
297012
297050
 
297013
297051
  "use strict";
297014
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.81","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","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 ES2020 --outDir lib/esm","clean":"rimraf 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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/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:^4.0.0-dev.81","@itwin/core-bentley":"workspace:^4.0.0-dev.81","@itwin/core-common":"workspace:^4.0.0-dev.81","@itwin/core-geometry":"workspace:^4.0.0-dev.81","@itwin/core-orbitgt":"workspace:^4.0.0-dev.81","@itwin/core-quantity":"workspace:^4.0.0-dev.81"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"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","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
297052
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.83","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","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 ES2020 --outDir lib/esm","clean":"rimraf 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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/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:^4.0.0-dev.83","@itwin/core-bentley":"workspace:^4.0.0-dev.83","@itwin/core-common":"workspace:^4.0.0-dev.83","@itwin/core-geometry":"workspace:^4.0.0-dev.83","@itwin/core-orbitgt":"workspace:^4.0.0-dev.83","@itwin/core-quantity":"workspace:^4.0.0-dev.83"},"//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/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"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","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
297015
297053
 
297016
297054
  /***/ }),
297017
297055