@itwin/rpcinterface-full-stack-tests 3.2.0-dev.46 → 3.2.0-dev.49
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 +121 -18
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -534,9 +534,9 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
534
534
|
|
|
535
535
|
/***/ }),
|
|
536
536
|
|
|
537
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.1.
|
|
537
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.1.3/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
|
|
538
538
|
/*!*******************************************************************************************************************************!*\
|
|
539
|
-
!*** D:/vsts_a/1147/s/common/temp/node_modules/.pnpm/@itwin+certa@3.1.
|
|
539
|
+
!*** D:/vsts_a/1147/s/common/temp/node_modules/.pnpm/@itwin+certa@3.1.3/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
|
|
540
540
|
\*******************************************************************************************************************************/
|
|
541
541
|
/*! no static exports found */
|
|
542
542
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -2546,7 +2546,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
|
|
|
2546
2546
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2547
2547
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
2548
2548
|
*--------------------------------------------------------------------------------------------*/
|
|
2549
|
-
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.1.
|
|
2549
|
+
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.1.3/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
|
|
2550
2550
|
// Shared by both the frontend and backend side of the tests
|
|
2551
2551
|
exports.getTokenCallbackName = "getToken";
|
|
2552
2552
|
async function getAccessTokenFromBackend(user, oidcConfig) {
|
|
@@ -95894,7 +95894,7 @@ class ViewState3d extends ViewState {
|
|
|
95894
95894
|
return 0;
|
|
95895
95895
|
if (location !== undefined && location.area !== undefined)
|
|
95896
95896
|
eyeHeight = Object(_ViewGlobalLocation__WEBPACK_IMPORTED_MODULE_12__["areaToEyeHeight"])(this, location.area, location.center.height);
|
|
95897
|
-
const origEyePoint = eyePoint !== undefined ? eyePoint.clone() : this.
|
|
95897
|
+
const origEyePoint = eyePoint !== undefined ? eyePoint.clone() : this.getEyeOrOrthographicViewPoint().clone();
|
|
95898
95898
|
let targetPoint = origEyePoint;
|
|
95899
95899
|
const targetPointCartographic = location !== undefined ? location.center.clone() : this.rootToCartographic(targetPoint);
|
|
95900
95900
|
targetPointCartographic.height = 0.0;
|
|
@@ -168348,7 +168348,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
168348
168348
|
/*! exports provided: name, version, description, main, module, typings, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
168349
168349
|
/***/ (function(module) {
|
|
168350
168350
|
|
|
168351
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.
|
|
168351
|
+
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.49\",\"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\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"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 \\\"../../tools/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/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.2.0-dev.49\",\"@itwin/core-bentley\":\"workspace:^3.2.0-dev.49\",\"@itwin/core-common\":\"workspace:^3.2.0-dev.49\",\"@itwin/core-geometry\":\"workspace:^3.2.0-dev.49\",\"@itwin/core-orbitgt\":\"workspace:^3.2.0-dev.49\",\"@itwin/core-quantity\":\"workspace:^3.2.0-dev.49\",\"@itwin/webgl-compatibility\":\"workspace:^3.2.0-dev.49\"},\"//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\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"14.14.31\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^8.3.2\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.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/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"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\",\"**/test/**/*.tsx\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
|
|
168352
168352
|
|
|
168353
168353
|
/***/ }),
|
|
168354
168354
|
|
|
@@ -267010,7 +267010,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
267010
267010
|
/*!***************************************************************************!*\
|
|
267011
267011
|
!*** D:/vsts_a/1147/s/presentation/common/lib/esm/presentation-common.js ***!
|
|
267012
267012
|
\***************************************************************************/
|
|
267013
|
-
/*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
|
|
267013
|
+
/*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, NavigationPropertyInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
|
|
267014
267014
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
267015
267015
|
|
|
267016
267016
|
"use strict";
|
|
@@ -267026,6 +267026,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
267026
267026
|
|
|
267027
267027
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClassInfo", function() { return _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__["ClassInfo"]; });
|
|
267028
267028
|
|
|
267029
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NavigationPropertyInfo", function() { return _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__["NavigationPropertyInfo"]; });
|
|
267030
|
+
|
|
267029
267031
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyInfo", function() { return _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__["PropertyInfo"]; });
|
|
267030
267032
|
|
|
267031
267033
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RelatedClassInfo", function() { return _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__["RelatedClassInfo"]; });
|
|
@@ -267407,6 +267409,37 @@ class AsyncTasksTracker {
|
|
|
267407
267409
|
}
|
|
267408
267410
|
|
|
267409
267411
|
|
|
267412
|
+
/***/ }),
|
|
267413
|
+
|
|
267414
|
+
/***/ "../../presentation/common/lib/esm/presentation-common/CommonLoggerCategory.js":
|
|
267415
|
+
/*!************************************************************************************************!*\
|
|
267416
|
+
!*** D:/vsts_a/1147/s/presentation/common/lib/esm/presentation-common/CommonLoggerCategory.js ***!
|
|
267417
|
+
\************************************************************************************************/
|
|
267418
|
+
/*! exports provided: PresentationCommonLoggerCategory */
|
|
267419
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
267420
|
+
|
|
267421
|
+
"use strict";
|
|
267422
|
+
__webpack_require__.r(__webpack_exports__);
|
|
267423
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PresentationCommonLoggerCategory", function() { return PresentationCommonLoggerCategory; });
|
|
267424
|
+
/*---------------------------------------------------------------------------------------------
|
|
267425
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
267426
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
267427
|
+
*--------------------------------------------------------------------------------------------*/
|
|
267428
|
+
/** @packageDocumentation
|
|
267429
|
+
* @module Core
|
|
267430
|
+
*/
|
|
267431
|
+
/**
|
|
267432
|
+
* Logger categories used by this package
|
|
267433
|
+
* @note All logger categories in this package start with the `presentation-common` prefix.
|
|
267434
|
+
* @see [Logger]($bentley)
|
|
267435
|
+
* @public
|
|
267436
|
+
*/
|
|
267437
|
+
var PresentationCommonLoggerCategory;
|
|
267438
|
+
(function (PresentationCommonLoggerCategory) {
|
|
267439
|
+
PresentationCommonLoggerCategory["Package"] = "presentation-common";
|
|
267440
|
+
})(PresentationCommonLoggerCategory || (PresentationCommonLoggerCategory = {}));
|
|
267441
|
+
|
|
267442
|
+
|
|
267410
267443
|
/***/ }),
|
|
267411
267444
|
|
|
267412
267445
|
/***/ "../../presentation/common/lib/esm/presentation-common/Diagnostics.js":
|
|
@@ -267446,13 +267479,14 @@ var DiagnosticsLogEntry;
|
|
|
267446
267479
|
/*!******************************************************************************!*\
|
|
267447
267480
|
!*** D:/vsts_a/1147/s/presentation/common/lib/esm/presentation-common/EC.js ***!
|
|
267448
267481
|
\******************************************************************************/
|
|
267449
|
-
/*! exports provided: InstanceKey, ClassInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath */
|
|
267482
|
+
/*! exports provided: InstanceKey, ClassInfo, NavigationPropertyInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath */
|
|
267450
267483
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
267451
267484
|
|
|
267452
267485
|
"use strict";
|
|
267453
267486
|
__webpack_require__.r(__webpack_exports__);
|
|
267454
267487
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InstanceKey", function() { return InstanceKey; });
|
|
267455
267488
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassInfo", function() { return ClassInfo; });
|
|
267489
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationPropertyInfo", function() { return NavigationPropertyInfo; });
|
|
267456
267490
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyInfo", function() { return PropertyInfo; });
|
|
267457
267491
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatedClassInfo", function() { return RelatedClassInfo; });
|
|
267458
267492
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatedClassInfoWithOptionalRelationship", function() { return RelatedClassInfoWithOptionalRelationship; });
|
|
@@ -267502,27 +267536,61 @@ var ClassInfo;
|
|
|
267502
267536
|
}
|
|
267503
267537
|
ClassInfo.fromJSON = fromJSON;
|
|
267504
267538
|
})(ClassInfo || (ClassInfo = {}));
|
|
267539
|
+
/** @beta */
|
|
267540
|
+
var NavigationPropertyInfo;
|
|
267541
|
+
(function (NavigationPropertyInfo) {
|
|
267542
|
+
/** Serialize [[NavigationPropertyInfo]] to JSON */
|
|
267543
|
+
function toJSON(info) {
|
|
267544
|
+
return { ...info, classInfo: ClassInfo.toJSON(info.classInfo) };
|
|
267545
|
+
}
|
|
267546
|
+
NavigationPropertyInfo.toJSON = toJSON;
|
|
267547
|
+
/** Serialize [[NavigationPropertyInfo]] to compressed JSON */
|
|
267548
|
+
function toCompressedJSON(navigationPropertyInfo, classesMap) {
|
|
267549
|
+
const { id, ...leftOverInfo } = navigationPropertyInfo.classInfo;
|
|
267550
|
+
classesMap[id] = leftOverInfo;
|
|
267551
|
+
return {
|
|
267552
|
+
...navigationPropertyInfo,
|
|
267553
|
+
classInfo: navigationPropertyInfo.classInfo.id,
|
|
267554
|
+
};
|
|
267555
|
+
}
|
|
267556
|
+
NavigationPropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
267557
|
+
/** Deserialize [[NavigationPropertyInfo]] from JSON */
|
|
267558
|
+
function fromJSON(json) {
|
|
267559
|
+
return { ...json, classInfo: ClassInfo.fromJSON(json.classInfo) };
|
|
267560
|
+
}
|
|
267561
|
+
NavigationPropertyInfo.fromJSON = fromJSON;
|
|
267562
|
+
})(NavigationPropertyInfo || (NavigationPropertyInfo = {}));
|
|
267505
267563
|
/** @public */
|
|
267506
267564
|
var PropertyInfo;
|
|
267507
267565
|
(function (PropertyInfo) {
|
|
267508
267566
|
/** Serialize [[PropertyInfo]] to JSON */
|
|
267509
267567
|
function toJSON(info) {
|
|
267510
|
-
return {
|
|
267568
|
+
return {
|
|
267569
|
+
...info,
|
|
267570
|
+
classInfo: ClassInfo.toJSON(info.classInfo),
|
|
267571
|
+
...(info.navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toJSON(info.navigationPropertyInfo) } : undefined),
|
|
267572
|
+
};
|
|
267511
267573
|
}
|
|
267512
267574
|
PropertyInfo.toJSON = toJSON;
|
|
267513
267575
|
/** Serialize [[PropertyInfo]] to compressed JSON */
|
|
267514
267576
|
function toCompressedJSON(propertyInfo, classesMap) {
|
|
267577
|
+
const { navigationPropertyInfo, ...leftOverPropertyInfo } = propertyInfo;
|
|
267515
267578
|
const { id, ...leftOverInfo } = propertyInfo.classInfo;
|
|
267516
267579
|
classesMap[id] = leftOverInfo;
|
|
267517
267580
|
return {
|
|
267518
|
-
...
|
|
267581
|
+
...leftOverPropertyInfo,
|
|
267519
267582
|
classInfo: propertyInfo.classInfo.id,
|
|
267583
|
+
...(navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.toCompressedJSON(navigationPropertyInfo, classesMap) } : undefined),
|
|
267520
267584
|
};
|
|
267521
267585
|
}
|
|
267522
267586
|
PropertyInfo.toCompressedJSON = toCompressedJSON;
|
|
267523
267587
|
/** Deserialize [[PropertyInfo]] from JSON */
|
|
267524
267588
|
function fromJSON(json) {
|
|
267525
|
-
return {
|
|
267589
|
+
return {
|
|
267590
|
+
...json,
|
|
267591
|
+
classInfo: ClassInfo.fromJSON(json.classInfo),
|
|
267592
|
+
...(json.navigationPropertyInfo ? { navigationPropertyInfo: NavigationPropertyInfo.fromJSON(json.navigationPropertyInfo) } : undefined),
|
|
267593
|
+
};
|
|
267526
267594
|
}
|
|
267527
267595
|
PropertyInfo.fromJSON = fromJSON;
|
|
267528
267596
|
})(PropertyInfo || (PropertyInfo = {}));
|
|
@@ -268472,8 +268540,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
268472
268540
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RpcRequestsHandler", function() { return RpcRequestsHandler; });
|
|
268473
268541
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
268474
268542
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
268475
|
-
/* harmony import */ var
|
|
268476
|
-
/* harmony import */ var
|
|
268543
|
+
/* harmony import */ var _CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CommonLoggerCategory */ "../../presentation/common/lib/esm/presentation-common/CommonLoggerCategory.js");
|
|
268544
|
+
/* harmony import */ var _Error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Error */ "../../presentation/common/lib/esm/presentation-common/Error.js");
|
|
268545
|
+
/* harmony import */ var _PresentationRpcInterface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PresentationRpcInterface */ "../../presentation/common/lib/esm/presentation-common/PresentationRpcInterface.js");
|
|
268477
268546
|
/*---------------------------------------------------------------------------------------------
|
|
268478
268547
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
268479
268548
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -268485,6 +268554,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
268485
268554
|
|
|
268486
268555
|
|
|
268487
268556
|
|
|
268557
|
+
|
|
268488
268558
|
/**
|
|
268489
268559
|
* RPC requests handler that wraps [[PresentationRpcInterface]] and
|
|
268490
268560
|
* adds handling for cases when backend needs to be synced with client
|
|
@@ -268500,7 +268570,7 @@ class RpcRequestsHandler {
|
|
|
268500
268570
|
dispose() {
|
|
268501
268571
|
}
|
|
268502
268572
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
268503
|
-
get rpcClient() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__["RpcManager"].getClientForInterface(
|
|
268573
|
+
get rpcClient() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__["RpcManager"].getClientForInterface(_PresentationRpcInterface__WEBPACK_IMPORTED_MODULE_4__["PresentationRpcInterface"]); }
|
|
268504
268574
|
async requestRepeatedly(func, diagnosticsHandler, repeatCount = 1) {
|
|
268505
268575
|
let diagnostics;
|
|
268506
268576
|
let error;
|
|
@@ -268508,12 +268578,12 @@ class RpcRequestsHandler {
|
|
|
268508
268578
|
try {
|
|
268509
268579
|
const response = await func();
|
|
268510
268580
|
diagnostics = response.diagnostics;
|
|
268511
|
-
if (response.statusCode ===
|
|
268581
|
+
if (response.statusCode === _Error__WEBPACK_IMPORTED_MODULE_3__["PresentationStatus"].Success)
|
|
268512
268582
|
return response.result;
|
|
268513
|
-
if (response.statusCode ===
|
|
268583
|
+
if (response.statusCode === _Error__WEBPACK_IMPORTED_MODULE_3__["PresentationStatus"].BackendTimeout && repeatCount < this.maxRequestRepeatCount)
|
|
268514
268584
|
shouldRepeat = true;
|
|
268515
268585
|
else
|
|
268516
|
-
error = new
|
|
268586
|
+
error = new _Error__WEBPACK_IMPORTED_MODULE_3__["PresentationError"](response.statusCode, response.errorMessage);
|
|
268517
268587
|
}
|
|
268518
268588
|
catch (e) {
|
|
268519
268589
|
error = e;
|
|
@@ -268542,6 +268612,8 @@ class RpcRequestsHandler {
|
|
|
268542
268612
|
async request(func, options, ...additionalOptions) {
|
|
268543
268613
|
const { imodel, diagnostics, ...optionsNoIModel } = options;
|
|
268544
268614
|
const { handler: diagnosticsHandler, ...diagnosticsOptions } = diagnostics !== null && diagnostics !== void 0 ? diagnostics : {};
|
|
268615
|
+
if (isOptionsWithRuleset(optionsNoIModel))
|
|
268616
|
+
optionsNoIModel.rulesetOrId = cleanupRuleset(optionsNoIModel.rulesetOrId);
|
|
268545
268617
|
const rpcOptions = {
|
|
268546
268618
|
...optionsNoIModel,
|
|
268547
268619
|
clientId: this.clientId,
|
|
@@ -268600,6 +268672,29 @@ class RpcRequestsHandler {
|
|
|
268600
268672
|
return this.request(this.rpcClient.computeSelection.bind(this.rpcClient), options, ids, scopeId);
|
|
268601
268673
|
}
|
|
268602
268674
|
}
|
|
268675
|
+
function isOptionsWithRuleset(options) {
|
|
268676
|
+
return (typeof options.rulesetOrId === "object");
|
|
268677
|
+
}
|
|
268678
|
+
const RULESET_SUPPORTED_PROPERTIES_OBJ = {
|
|
268679
|
+
id: true,
|
|
268680
|
+
rules: true,
|
|
268681
|
+
version: true,
|
|
268682
|
+
requiredSchemas: true,
|
|
268683
|
+
supplementationInfo: true,
|
|
268684
|
+
vars: true,
|
|
268685
|
+
};
|
|
268686
|
+
function cleanupRuleset(ruleset) {
|
|
268687
|
+
const cleanedUpRuleset = { ...ruleset };
|
|
268688
|
+
for (const propertyKey of Object.keys(cleanedUpRuleset)) {
|
|
268689
|
+
if (!RULESET_SUPPORTED_PROPERTIES_OBJ.hasOwnProperty(propertyKey)) {
|
|
268690
|
+
if (propertyKey === "$schema")
|
|
268691
|
+
delete cleanedUpRuleset[propertyKey];
|
|
268692
|
+
else
|
|
268693
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["Logger"].logWarning(_CommonLoggerCategory__WEBPACK_IMPORTED_MODULE_2__["PresentationCommonLoggerCategory"].Package, `Provided ruleset contains unrecognized attribute '${propertyKey}'. It either doesn't exist or may be no longer supported.`);
|
|
268694
|
+
}
|
|
268695
|
+
}
|
|
268696
|
+
return cleanedUpRuleset;
|
|
268697
|
+
}
|
|
268603
268698
|
|
|
268604
268699
|
|
|
268605
268700
|
/***/ }),
|
|
@@ -270414,9 +270509,17 @@ function fromCompressedPropertyJSON(compressedPropertyJSON, classesMap) {
|
|
|
270414
270509
|
}
|
|
270415
270510
|
function fromCompressedPropertyInfoJSON(compressedPropertyJSON, classesMap) {
|
|
270416
270511
|
Object(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["assert"])(classesMap.hasOwnProperty(compressedPropertyJSON.classInfo));
|
|
270512
|
+
const { navigationPropertyInfo, ...leftOverPropertyJSON } = compressedPropertyJSON;
|
|
270417
270513
|
return {
|
|
270418
|
-
...
|
|
270514
|
+
...leftOverPropertyJSON,
|
|
270419
270515
|
classInfo: { id: compressedPropertyJSON.classInfo, ...classesMap[compressedPropertyJSON.classInfo] },
|
|
270516
|
+
...(navigationPropertyInfo ? { navigationPropertyInfo: fromCompressedNavigationPropertyInfoJSON(navigationPropertyInfo, classesMap) } : undefined),
|
|
270517
|
+
};
|
|
270518
|
+
}
|
|
270519
|
+
function fromCompressedNavigationPropertyInfoJSON(compressedNavigationPropertyInfoJSON, classesMap) {
|
|
270520
|
+
return {
|
|
270521
|
+
...compressedNavigationPropertyInfoJSON,
|
|
270522
|
+
classInfo: { id: compressedNavigationPropertyInfoJSON.classInfo, ...classesMap[compressedNavigationPropertyInfoJSON.classInfo] },
|
|
270420
270523
|
};
|
|
270421
270524
|
}
|
|
270422
270525
|
|
|
@@ -281695,7 +281798,7 @@ class TestContext {
|
|
|
281695
281798
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
281696
281799
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
281697
281800
|
await core_frontend_1.NoRenderApp.startup({
|
|
281698
|
-
applicationVersion: "3.2.0-dev.
|
|
281801
|
+
applicationVersion: "3.2.0-dev.49",
|
|
281699
281802
|
applicationId: this.settings.gprid,
|
|
281700
281803
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
281701
281804
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|