@itwin/ecschema-rpcinterface-tests 3.6.0 → 3.6.2
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.d.ts +1 -1
- package/lib/backend/BackendInit.js +27 -27
- package/lib/backend/BackendInit.js.map +1 -1
- package/lib/common/Settings.d.ts +39 -39
- package/lib/common/Settings.js +106 -106
- package/lib/common/Settings.js.map +1 -1
- package/lib/common/SideChannels.d.ts +3 -3
- package/lib/common/SideChannels.js +19 -19
- package/lib/common/SideChannels.js.map +1 -1
- package/lib/dist/{_07c5.bundled-tests.js → _d48c.bundled-tests.js} +3 -3
- package/lib/dist/_d48c.bundled-tests.js.map +1 -0
- package/lib/dist/bundled-tests.js +869 -784
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/{vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984.bundled-tests.js → vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.bundled-tests.js} +206 -458
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41.bundled-tests.js.map +1 -0
- package/lib/frontend/SchemaRpcInterface.test.d.ts +1 -1
- package/lib/frontend/SchemaRpcInterface.test.js +31 -31
- package/lib/frontend/SchemaRpcInterface.test.js.map +1 -1
- package/lib/frontend/setup/IModelSession.d.ts +13 -13
- package/lib/frontend/setup/IModelSession.js +78 -78
- package/lib/frontend/setup/IModelSession.js.map +1 -1
- package/lib/frontend/setup/TestContext.d.ts +15 -15
- package/lib/frontend/setup/TestContext.js +68 -68
- package/lib/frontend/setup/TestContext.js.map +1 -1
- package/package.json +17 -17
- package/lib/dist/_07c5.bundled-tests.js.map +0 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_13_node_modules_loaders_gl_draco_d-e0d984.bundled-tests.js.map +0 -1
|
@@ -21,53 +21,53 @@
|
|
|
21
21
|
|
|
22
22
|
/***/ }),
|
|
23
23
|
|
|
24
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.5.
|
|
24
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.5.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js":
|
|
25
25
|
/*!********************************************************************************************************************!*\
|
|
26
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.5.
|
|
26
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+certa@3.5.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js ***!
|
|
27
27
|
\********************************************************************************************************************/
|
|
28
28
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
29
29
|
|
|
30
30
|
"use strict";
|
|
31
|
-
|
|
32
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
33
|
-
exports.executeBackendCallback = exports.registerBackendCallback = exports.executeRegisteredCallback = exports.getCallbacksRegisteredOnBackend = void 0;
|
|
34
|
-
const isFrontend = (typeof (window) !== "undefined");
|
|
35
|
-
/** @internal */
|
|
36
|
-
function getCallbacksRegisteredOnBackend() {
|
|
37
|
-
if (isFrontend)
|
|
38
|
-
throw new Error("This should only be called on the backend!");
|
|
39
|
-
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
40
|
-
return __webpack_require__.g._CertaRegisteredCallbacks;
|
|
41
|
-
}
|
|
42
|
-
exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
|
|
43
|
-
/** @internal */
|
|
44
|
-
function executeRegisteredCallback(name, args) {
|
|
45
|
-
const registeredCallbacks = getCallbacksRegisteredOnBackend();
|
|
46
|
-
if (!(name in registeredCallbacks))
|
|
47
|
-
throw new Error(`Unknown certa backend callback "${name}"`);
|
|
48
|
-
return registeredCallbacks[name](...args);
|
|
49
|
-
}
|
|
50
|
-
exports.executeRegisteredCallback = executeRegisteredCallback;
|
|
51
|
-
function registerBackendCallback(name, cb) {
|
|
52
|
-
if (isFrontend)
|
|
53
|
-
throw new Error("This should only be called on the backend!");
|
|
54
|
-
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
55
|
-
__webpack_require__.g._CertaRegisteredCallbacks[name] = cb;
|
|
56
|
-
}
|
|
57
|
-
exports.registerBackendCallback = registerBackendCallback;
|
|
58
|
-
async function executeBackendCallback(name, ...args) {
|
|
59
|
-
if (!isFrontend)
|
|
60
|
-
return executeRegisteredCallback(name, args);
|
|
61
|
-
return window._CertaSendToBackend(name, args);
|
|
62
|
-
}
|
|
63
|
-
exports.executeBackendCallback = executeBackendCallback;
|
|
31
|
+
|
|
32
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
33
|
+
exports.executeBackendCallback = exports.registerBackendCallback = exports.executeRegisteredCallback = exports.getCallbacksRegisteredOnBackend = void 0;
|
|
34
|
+
const isFrontend = (typeof (window) !== "undefined");
|
|
35
|
+
/** @internal */
|
|
36
|
+
function getCallbacksRegisteredOnBackend() {
|
|
37
|
+
if (isFrontend)
|
|
38
|
+
throw new Error("This should only be called on the backend!");
|
|
39
|
+
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
40
|
+
return __webpack_require__.g._CertaRegisteredCallbacks;
|
|
41
|
+
}
|
|
42
|
+
exports.getCallbacksRegisteredOnBackend = getCallbacksRegisteredOnBackend;
|
|
43
|
+
/** @internal */
|
|
44
|
+
function executeRegisteredCallback(name, args) {
|
|
45
|
+
const registeredCallbacks = getCallbacksRegisteredOnBackend();
|
|
46
|
+
if (!(name in registeredCallbacks))
|
|
47
|
+
throw new Error(`Unknown certa backend callback "${name}"`);
|
|
48
|
+
return registeredCallbacks[name](...args);
|
|
49
|
+
}
|
|
50
|
+
exports.executeRegisteredCallback = executeRegisteredCallback;
|
|
51
|
+
function registerBackendCallback(name, cb) {
|
|
52
|
+
if (isFrontend)
|
|
53
|
+
throw new Error("This should only be called on the backend!");
|
|
54
|
+
__webpack_require__.g._CertaRegisteredCallbacks = __webpack_require__.g._CertaRegisteredCallbacks || {};
|
|
55
|
+
__webpack_require__.g._CertaRegisteredCallbacks[name] = cb;
|
|
56
|
+
}
|
|
57
|
+
exports.registerBackendCallback = registerBackendCallback;
|
|
58
|
+
async function executeBackendCallback(name, ...args) {
|
|
59
|
+
if (!isFrontend)
|
|
60
|
+
return executeRegisteredCallback(name, args);
|
|
61
|
+
return window._CertaSendToBackend(name, args);
|
|
62
|
+
}
|
|
63
|
+
exports.executeBackendCallback = executeBackendCallback;
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
/***/ }),
|
|
67
67
|
|
|
68
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
68
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/FrontendIModelsAccess.js":
|
|
69
69
|
/*!**************************************************************************************************************************************************************!*\
|
|
70
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
70
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/FrontendIModelsAccess.js ***!
|
|
71
71
|
\**************************************************************************************************************************************************************/
|
|
72
72
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
73
73
|
|
|
@@ -79,8 +79,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79
79
|
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
80
80
|
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
81
81
|
/* harmony import */ var _itwin_core_frontend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
82
|
-
/* harmony import */ var _itwin_imodels_client_management__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
83
|
-
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
82
|
+
/* harmony import */ var _itwin_imodels_client_management__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
|
|
83
|
+
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js");
|
|
84
84
|
/*---------------------------------------------------------------------------------------------
|
|
85
85
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
86
86
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -186,9 +186,9 @@ class FrontendIModelsAccess {
|
|
|
186
186
|
|
|
187
187
|
/***/ }),
|
|
188
188
|
|
|
189
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
189
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js":
|
|
190
190
|
/*!**********************************************************************************************************************************************!*\
|
|
191
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
191
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js ***!
|
|
192
192
|
\**********************************************************************************************************************************************/
|
|
193
193
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
194
194
|
|
|
@@ -198,8 +198,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
198
198
|
/* harmony export */ "AccessTokenAdapter": () => (/* reexport safe */ _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_0__.AccessTokenAdapter),
|
|
199
199
|
/* harmony export */ "FrontendIModelsAccess": () => (/* reexport safe */ _FrontendIModelsAccess__WEBPACK_IMPORTED_MODULE_1__.FrontendIModelsAccess)
|
|
200
200
|
/* harmony export */ });
|
|
201
|
-
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
202
|
-
/* harmony import */ var _FrontendIModelsAccess__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FrontendIModelsAccess */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
201
|
+
/* harmony import */ var _interface_adapters_AccessTokenAdapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface-adapters/AccessTokenAdapter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js");
|
|
202
|
+
/* harmony import */ var _FrontendIModelsAccess__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FrontendIModelsAccess */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/FrontendIModelsAccess.js");
|
|
203
203
|
/*---------------------------------------------------------------------------------------------
|
|
204
204
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
205
205
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -210,9 +210,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
210
210
|
|
|
211
211
|
/***/ }),
|
|
212
212
|
|
|
213
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
213
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js":
|
|
214
214
|
/*!******************************************************************************************************************************************************************************!*\
|
|
215
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
215
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/interface-adapters/AccessTokenAdapter.js ***!
|
|
216
216
|
\******************************************************************************************************************************************************************************/
|
|
217
217
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
218
218
|
|
|
@@ -248,9 +248,9 @@ class AccessTokenAdapter {
|
|
|
248
248
|
|
|
249
249
|
/***/ }),
|
|
250
250
|
|
|
251
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
251
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/Constants.js":
|
|
252
252
|
/*!******************************************************************************************************************************************************!*\
|
|
253
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
253
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/Constants.js ***!
|
|
254
254
|
\******************************************************************************************************************************************************/
|
|
255
255
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
256
256
|
|
|
@@ -283,9 +283,9 @@ Constants.time = {
|
|
|
283
283
|
|
|
284
284
|
/***/ }),
|
|
285
285
|
|
|
286
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
286
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/IModelsClient.js":
|
|
287
287
|
/*!**********************************************************************************************************************************************************!*\
|
|
288
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
288
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/IModelsClient.js ***!
|
|
289
289
|
\**********************************************************************************************************************************************************/
|
|
290
290
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
291
291
|
|
|
@@ -294,11 +294,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
294
294
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
295
295
|
/* harmony export */ "IModelsClient": () => (/* binding */ IModelsClient)
|
|
296
296
|
/* harmony export */ });
|
|
297
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
298
|
-
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
299
|
-
/* harmony import */ var _operations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
300
|
-
/* harmony import */ var _operations_checkpoint_CheckpointOperations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operations/checkpoint/CheckpointOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
301
|
-
/* harmony import */ var _operations_IModelsApiUrlFormatter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operations/IModelsApiUrlFormatter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
297
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
298
|
+
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/Constants.js");
|
|
299
|
+
/* harmony import */ var _operations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/index.js");
|
|
300
|
+
/* harmony import */ var _operations_checkpoint_CheckpointOperations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operations/checkpoint/CheckpointOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperations.js");
|
|
301
|
+
/* harmony import */ var _operations_IModelsApiUrlFormatter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operations/IModelsApiUrlFormatter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/IModelsApiUrlFormatter.js");
|
|
302
302
|
/*---------------------------------------------------------------------------------------------
|
|
303
303
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
304
304
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -327,7 +327,7 @@ class IModelsClient {
|
|
|
327
327
|
}
|
|
328
328
|
/** iModel operations. See {@link iModelOperations}. */
|
|
329
329
|
get iModels() {
|
|
330
|
-
return new _operations__WEBPACK_IMPORTED_MODULE_2__.IModelOperations(this._operationsOptions);
|
|
330
|
+
return new _operations__WEBPACK_IMPORTED_MODULE_2__.IModelOperations(this._operationsOptions, this);
|
|
331
331
|
}
|
|
332
332
|
/** Briefcase operations. See {@link BriefcaseOperations}. */
|
|
333
333
|
get briefcases() {
|
|
@@ -376,9 +376,9 @@ class IModelsClient {
|
|
|
376
376
|
|
|
377
377
|
/***/ }),
|
|
378
378
|
|
|
379
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
379
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/ApiResponseInterfaces.js":
|
|
380
380
|
/*!********************************************************************************************************************************************************************************!*\
|
|
381
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
381
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/ApiResponseInterfaces.js ***!
|
|
382
382
|
\********************************************************************************************************************************************************************************/
|
|
383
383
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
384
384
|
|
|
@@ -389,9 +389,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
389
389
|
|
|
390
390
|
/***/ }),
|
|
391
391
|
|
|
392
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
392
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/AxiosRestClient.js":
|
|
393
393
|
/*!**************************************************************************************************************************************************************************!*\
|
|
394
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
394
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/AxiosRestClient.js ***!
|
|
395
395
|
\**************************************************************************************************************************************************************************/
|
|
396
396
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
397
397
|
|
|
@@ -402,7 +402,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
402
402
|
/* harmony export */ });
|
|
403
403
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "../../common/temp/node_modules/.pnpm/axios@0.21.4/node_modules/axios/index.js");
|
|
404
404
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
|
|
405
|
-
/* harmony import */ var _types_RestClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types/RestClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
405
|
+
/* harmony import */ var _types_RestClient__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types/RestClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/RestClient.js");
|
|
406
406
|
/*---------------------------------------------------------------------------------------------
|
|
407
407
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
408
408
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -452,14 +452,14 @@ class AxiosRestClient {
|
|
|
452
452
|
return this.executeRequest(async () => axios__WEBPACK_IMPORTED_MODULE_0___default()["delete"](params.url, requestConfig));
|
|
453
453
|
}
|
|
454
454
|
async executeRequest(requestFunc) {
|
|
455
|
-
var _a;
|
|
455
|
+
var _a, _b;
|
|
456
456
|
try {
|
|
457
457
|
const response = await requestFunc();
|
|
458
458
|
return response.data;
|
|
459
459
|
}
|
|
460
460
|
catch (error) {
|
|
461
461
|
if (axios__WEBPACK_IMPORTED_MODULE_0___default().isAxiosError(error)) {
|
|
462
|
-
const parsedError = this._parseErrorFunc({
|
|
462
|
+
const parsedError = this._parseErrorFunc({ statusCode: (_a = error.response) === null || _a === void 0 ? void 0 : _a.status, body: (_b = error.response) === null || _b === void 0 ? void 0 : _b.data });
|
|
463
463
|
throw parsedError;
|
|
464
464
|
}
|
|
465
465
|
throw new Error("AxiosRestClient: unknown error occurred.");
|
|
@@ -470,9 +470,9 @@ class AxiosRestClient {
|
|
|
470
470
|
|
|
471
471
|
/***/ }),
|
|
472
472
|
|
|
473
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
473
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/IModelsErrorParser.js":
|
|
474
474
|
/*!*****************************************************************************************************************************************************************************!*\
|
|
475
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
475
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/IModelsErrorParser.js ***!
|
|
476
476
|
\*****************************************************************************************************************************************************************************/
|
|
477
477
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
478
478
|
|
|
@@ -483,7 +483,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
483
483
|
/* harmony export */ "IModelsErrorImpl": () => (/* binding */ IModelsErrorImpl),
|
|
484
484
|
/* harmony export */ "IModelsErrorParser": () => (/* binding */ IModelsErrorParser)
|
|
485
485
|
/* harmony export */ });
|
|
486
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
486
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
487
487
|
/*---------------------------------------------------------------------------------------------
|
|
488
488
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
489
489
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -508,6 +508,11 @@ class IModelsErrorParser {
|
|
|
508
508
|
if (!response.body)
|
|
509
509
|
return new IModelsErrorImpl(IModelsErrorParser._unknownErrorProperties);
|
|
510
510
|
const errorFromApi = response.body;
|
|
511
|
+
if (response.statusCode === 401)
|
|
512
|
+
return new IModelsErrorImpl({
|
|
513
|
+
code: _types__WEBPACK_IMPORTED_MODULE_0__.IModelsErrorCode.Unauthorized,
|
|
514
|
+
message: IModelsErrorParser.resolveUnauthorizedMessage(response.body)
|
|
515
|
+
});
|
|
511
516
|
const errorCode = IModelsErrorParser.parseCode((_a = errorFromApi === null || errorFromApi === void 0 ? void 0 : errorFromApi.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
512
517
|
const errorDetails = IModelsErrorParser.parseDetails((_b = errorFromApi.error) === null || _b === void 0 ? void 0 : _b.details);
|
|
513
518
|
const errorMessage = IModelsErrorParser.parseAndFormatMessage((_c = errorFromApi === null || errorFromApi === void 0 ? void 0 : errorFromApi.error) === null || _c === void 0 ? void 0 : _c.message, errorDetails);
|
|
@@ -549,16 +554,21 @@ class IModelsErrorParser {
|
|
|
549
554
|
}
|
|
550
555
|
return result;
|
|
551
556
|
}
|
|
557
|
+
static resolveUnauthorizedMessage(responseBody) {
|
|
558
|
+
var _a, _b, _c, _d, _e;
|
|
559
|
+
return (_e = (_c = (_b = (_a = responseBody) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : (_d = responseBody) === null || _d === void 0 ? void 0 : _d.message) !== null && _e !== void 0 ? _e : IModelsErrorParser._defaultUnauthorizedMessage;
|
|
560
|
+
}
|
|
552
561
|
}
|
|
553
562
|
IModelsErrorParser._defaultErrorMessage = "Unknown error occurred";
|
|
563
|
+
IModelsErrorParser._defaultUnauthorizedMessage = "Authorization failed";
|
|
554
564
|
IModelsErrorParser._unknownErrorProperties = { code: _types__WEBPACK_IMPORTED_MODULE_0__.IModelsErrorCode.Unknown, message: IModelsErrorParser._defaultErrorMessage };
|
|
555
565
|
|
|
556
566
|
|
|
557
567
|
/***/ }),
|
|
558
568
|
|
|
559
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
569
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/OperationsBase.js":
|
|
560
570
|
/*!*************************************************************************************************************************************************************************!*\
|
|
561
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
571
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/OperationsBase.js ***!
|
|
562
572
|
\*************************************************************************************************************************************************************************/
|
|
563
573
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
564
574
|
|
|
@@ -567,8 +577,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
567
577
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
568
578
|
/* harmony export */ "OperationsBase": () => (/* binding */ OperationsBase)
|
|
569
579
|
/* harmony export */ });
|
|
570
|
-
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Constants */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
571
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
580
|
+
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Constants */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/Constants.js");
|
|
581
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
572
582
|
/*---------------------------------------------------------------------------------------------
|
|
573
583
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
574
584
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -656,9 +666,9 @@ class OperationsBase {
|
|
|
656
666
|
|
|
657
667
|
/***/ }),
|
|
658
668
|
|
|
659
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
669
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/UtilityFunctions.js":
|
|
660
670
|
/*!***************************************************************************************************************************************************************************!*\
|
|
661
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
671
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/UtilityFunctions.js ***!
|
|
662
672
|
\***************************************************************************************************************************************************************************/
|
|
663
673
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
664
674
|
|
|
@@ -668,7 +678,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
668
678
|
/* harmony export */ "sleep": () => (/* binding */ sleep),
|
|
669
679
|
/* harmony export */ "waitForCondition": () => (/* binding */ waitForCondition)
|
|
670
680
|
/* harmony export */ });
|
|
671
|
-
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Constants */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
681
|
+
/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Constants */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/Constants.js");
|
|
672
682
|
/*---------------------------------------------------------------------------------------------
|
|
673
683
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
674
684
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -694,9 +704,9 @@ async function waitForCondition(params) {
|
|
|
694
704
|
|
|
695
705
|
/***/ }),
|
|
696
706
|
|
|
697
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
707
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/UtilityTypes.js":
|
|
698
708
|
/*!***********************************************************************************************************************************************************************!*\
|
|
699
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
709
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/UtilityTypes.js ***!
|
|
700
710
|
\***********************************************************************************************************************************************************************/
|
|
701
711
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
702
712
|
|
|
@@ -711,9 +721,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
711
721
|
|
|
712
722
|
/***/ }),
|
|
713
723
|
|
|
714
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
724
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js":
|
|
715
725
|
/*!****************************************************************************************************************************************************************!*\
|
|
716
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
726
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js ***!
|
|
717
727
|
\****************************************************************************************************************************************************************/
|
|
718
728
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
719
729
|
|
|
@@ -730,14 +740,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
730
740
|
/* harmony export */ "sleep": () => (/* reexport safe */ _UtilityFunctions__WEBPACK_IMPORTED_MODULE_7__.sleep),
|
|
731
741
|
/* harmony export */ "waitForCondition": () => (/* reexport safe */ _UtilityFunctions__WEBPACK_IMPORTED_MODULE_7__.waitForCondition)
|
|
732
742
|
/* harmony export */ });
|
|
733
|
-
/* harmony import */ var _iterators_EntityListIteratorImpl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iterators/EntityListIteratorImpl */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
734
|
-
/* harmony import */ var _iterators_EntityPageListIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterators/EntityPageListIterator */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
735
|
-
/* harmony import */ var _ApiResponseInterfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ApiResponseInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
736
|
-
/* harmony import */ var _AxiosRestClient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AxiosRestClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
737
|
-
/* harmony import */ var _IModelsErrorParser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IModelsErrorParser */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
738
|
-
/* harmony import */ var _OperationsBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./OperationsBase */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
739
|
-
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./UtilityTypes */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
740
|
-
/* harmony import */ var _UtilityFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./UtilityFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
743
|
+
/* harmony import */ var _iterators_EntityListIteratorImpl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./iterators/EntityListIteratorImpl */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityListIteratorImpl.js");
|
|
744
|
+
/* harmony import */ var _iterators_EntityPageListIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterators/EntityPageListIterator */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityPageListIterator.js");
|
|
745
|
+
/* harmony import */ var _ApiResponseInterfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ApiResponseInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/ApiResponseInterfaces.js");
|
|
746
|
+
/* harmony import */ var _AxiosRestClient__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AxiosRestClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/AxiosRestClient.js");
|
|
747
|
+
/* harmony import */ var _IModelsErrorParser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IModelsErrorParser */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/IModelsErrorParser.js");
|
|
748
|
+
/* harmony import */ var _OperationsBase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./OperationsBase */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/OperationsBase.js");
|
|
749
|
+
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./UtilityTypes */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/UtilityTypes.js");
|
|
750
|
+
/* harmony import */ var _UtilityFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./UtilityFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/UtilityFunctions.js");
|
|
741
751
|
/*---------------------------------------------------------------------------------------------
|
|
742
752
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
743
753
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -754,9 +764,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
754
764
|
|
|
755
765
|
/***/ }),
|
|
756
766
|
|
|
757
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
767
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityListIteratorImpl.js":
|
|
758
768
|
/*!*******************************************************************************************************************************************************************************************!*\
|
|
759
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
769
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityListIteratorImpl.js ***!
|
|
760
770
|
\*******************************************************************************************************************************************************************************************/
|
|
761
771
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
762
772
|
|
|
@@ -765,8 +775,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
765
775
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
766
776
|
/* harmony export */ "EntityListIteratorImpl": () => (/* binding */ EntityListIteratorImpl)
|
|
767
777
|
/* harmony export */ });
|
|
768
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
769
|
-
/* harmony import */ var _EntityPageListIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EntityPageListIterator */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
778
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
779
|
+
/* harmony import */ var _EntityPageListIterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EntityPageListIterator */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityPageListIterator.js");
|
|
770
780
|
/*---------------------------------------------------------------------------------------------
|
|
771
781
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
772
782
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -792,9 +802,9 @@ class EntityListIteratorImpl {
|
|
|
792
802
|
|
|
793
803
|
/***/ }),
|
|
794
804
|
|
|
795
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
805
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityPageListIterator.js":
|
|
796
806
|
/*!*******************************************************************************************************************************************************************************************!*\
|
|
797
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
807
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/iterators/EntityPageListIterator.js ***!
|
|
798
808
|
\*******************************************************************************************************************************************************************************************/
|
|
799
809
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
800
810
|
|
|
@@ -826,9 +836,9 @@ class EntityPageListIterator {
|
|
|
826
836
|
|
|
827
837
|
/***/ }),
|
|
828
838
|
|
|
829
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
839
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/CommonInterfaces.js":
|
|
830
840
|
/*!************************************************************************************************************************************************************************!*\
|
|
831
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
841
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/CommonInterfaces.js ***!
|
|
832
842
|
\************************************************************************************************************************************************************************/
|
|
833
843
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
834
844
|
|
|
@@ -865,9 +875,9 @@ var PreferReturn;
|
|
|
865
875
|
|
|
866
876
|
/***/ }),
|
|
867
877
|
|
|
868
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
878
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/IModelsErrorInterfaces.js":
|
|
869
879
|
/*!******************************************************************************************************************************************************************************!*\
|
|
870
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
880
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/IModelsErrorInterfaces.js ***!
|
|
871
881
|
\******************************************************************************************************************************************************************************/
|
|
872
882
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
873
883
|
|
|
@@ -935,9 +945,9 @@ function isIModelsApiError(error) {
|
|
|
935
945
|
|
|
936
946
|
/***/ }),
|
|
937
947
|
|
|
938
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
948
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/RestClient.js":
|
|
939
949
|
/*!******************************************************************************************************************************************************************!*\
|
|
940
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
950
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/RestClient.js ***!
|
|
941
951
|
\******************************************************************************************************************************************************************/
|
|
942
952
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
943
953
|
|
|
@@ -959,9 +969,9 @@ var ContentType;
|
|
|
959
969
|
|
|
960
970
|
/***/ }),
|
|
961
971
|
|
|
962
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
972
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/UtilityTypes.js":
|
|
963
973
|
/*!********************************************************************************************************************************************************************!*\
|
|
964
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
974
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/UtilityTypes.js ***!
|
|
965
975
|
\********************************************************************************************************************************************************************/
|
|
966
976
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
967
977
|
|
|
@@ -976,9 +986,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
976
986
|
|
|
977
987
|
/***/ }),
|
|
978
988
|
|
|
979
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
989
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/BriefcaseInterfaces.js":
|
|
980
990
|
/*!***************************************************************************************************************************************************************************************!*\
|
|
981
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
991
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/BriefcaseInterfaces.js ***!
|
|
982
992
|
\***************************************************************************************************************************************************************************************/
|
|
983
993
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
984
994
|
|
|
@@ -989,9 +999,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
989
999
|
|
|
990
1000
|
/***/ }),
|
|
991
1001
|
|
|
992
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1002
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/ChangesetInterfaces.js":
|
|
993
1003
|
/*!***************************************************************************************************************************************************************************************!*\
|
|
994
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1004
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/ChangesetInterfaces.js ***!
|
|
995
1005
|
\***************************************************************************************************************************************************************************************/
|
|
996
1006
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
997
1007
|
|
|
@@ -1024,9 +1034,9 @@ var ContainingChanges;
|
|
|
1024
1034
|
|
|
1025
1035
|
/***/ }),
|
|
1026
1036
|
|
|
1027
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1037
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/CheckpointInterfaces.js":
|
|
1028
1038
|
/*!****************************************************************************************************************************************************************************************!*\
|
|
1029
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1039
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/CheckpointInterfaces.js ***!
|
|
1030
1040
|
\****************************************************************************************************************************************************************************************/
|
|
1031
1041
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1032
1042
|
|
|
@@ -1051,9 +1061,9 @@ var CheckpointState;
|
|
|
1051
1061
|
|
|
1052
1062
|
/***/ }),
|
|
1053
1063
|
|
|
1054
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1064
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/IModelInterfaces.js":
|
|
1055
1065
|
/*!************************************************************************************************************************************************************************************!*\
|
|
1056
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1066
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/IModelInterfaces.js ***!
|
|
1057
1067
|
\************************************************************************************************************************************************************************************/
|
|
1058
1068
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1059
1069
|
|
|
@@ -1077,9 +1087,9 @@ var IModelState;
|
|
|
1077
1087
|
|
|
1078
1088
|
/***/ }),
|
|
1079
1089
|
|
|
1080
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1090
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/NamedVersionInterfaces.js":
|
|
1081
1091
|
/*!******************************************************************************************************************************************************************************************!*\
|
|
1082
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1092
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/NamedVersionInterfaces.js ***!
|
|
1083
1093
|
\******************************************************************************************************************************************************************************************/
|
|
1084
1094
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1085
1095
|
|
|
@@ -1100,9 +1110,9 @@ var NamedVersionState;
|
|
|
1100
1110
|
|
|
1101
1111
|
/***/ }),
|
|
1102
1112
|
|
|
1103
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1113
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/ThumbnailInterfaces.js":
|
|
1104
1114
|
/*!***************************************************************************************************************************************************************************************!*\
|
|
1105
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1115
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/ThumbnailInterfaces.js ***!
|
|
1106
1116
|
\***************************************************************************************************************************************************************************************/
|
|
1107
1117
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1108
1118
|
|
|
@@ -1123,9 +1133,9 @@ var ThumbnailSize;
|
|
|
1123
1133
|
|
|
1124
1134
|
/***/ }),
|
|
1125
1135
|
|
|
1126
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1136
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/UserInterfaces.js":
|
|
1127
1137
|
/*!**********************************************************************************************************************************************************************************!*\
|
|
1128
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1138
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/UserInterfaces.js ***!
|
|
1129
1139
|
\**********************************************************************************************************************************************************************************/
|
|
1130
1140
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1131
1141
|
|
|
@@ -1136,9 +1146,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1136
1146
|
|
|
1137
1147
|
/***/ }),
|
|
1138
1148
|
|
|
1139
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1149
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/UserPermissionInterfaces.js":
|
|
1140
1150
|
/*!********************************************************************************************************************************************************************************************!*\
|
|
1141
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1151
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/UserPermissionInterfaces.js ***!
|
|
1142
1152
|
\********************************************************************************************************************************************************************************************/
|
|
1143
1153
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1144
1154
|
|
|
@@ -1181,9 +1191,9 @@ var IModelPermission;
|
|
|
1181
1191
|
|
|
1182
1192
|
/***/ }),
|
|
1183
1193
|
|
|
1184
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1194
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js":
|
|
1185
1195
|
/*!*************************************************************************************************************************************************************!*\
|
|
1186
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1196
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js ***!
|
|
1187
1197
|
\*************************************************************************************************************************************************************/
|
|
1188
1198
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1189
1199
|
|
|
@@ -1207,20 +1217,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1207
1217
|
/* harmony export */ "take": () => (/* reexport safe */ _iterators_IteratorUtilFunctions__WEBPACK_IMPORTED_MODULE_9__.take),
|
|
1208
1218
|
/* harmony export */ "toArray": () => (/* reexport safe */ _iterators_IteratorUtilFunctions__WEBPACK_IMPORTED_MODULE_9__.toArray)
|
|
1209
1219
|
/* harmony export */ });
|
|
1210
|
-
/* harmony import */ var _apiEntities_IModelInterfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./apiEntities/IModelInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1211
|
-
/* harmony import */ var _apiEntities_BriefcaseInterfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apiEntities/BriefcaseInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1212
|
-
/* harmony import */ var _apiEntities_ChangesetInterfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiEntities/ChangesetInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1213
|
-
/* harmony import */ var _apiEntities_NamedVersionInterfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiEntities/NamedVersionInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1214
|
-
/* harmony import */ var _apiEntities_CheckpointInterfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apiEntities/CheckpointInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1215
|
-
/* harmony import */ var _apiEntities_ThumbnailInterfaces__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apiEntities/ThumbnailInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1216
|
-
/* harmony import */ var _apiEntities_UserInterfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./apiEntities/UserInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1217
|
-
/* harmony import */ var _apiEntities_UserPermissionInterfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./apiEntities/UserPermissionInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1218
|
-
/* harmony import */ var _iterators_EntityListIterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./iterators/EntityListIterator */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1219
|
-
/* harmony import */ var _iterators_IteratorUtilFunctions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./iterators/IteratorUtilFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1220
|
-
/* harmony import */ var _RestClient__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./RestClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1221
|
-
/* harmony import */ var _CommonInterfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CommonInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1222
|
-
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./UtilityTypes */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1223
|
-
/* harmony import */ var _IModelsErrorInterfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./IModelsErrorInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1220
|
+
/* harmony import */ var _apiEntities_IModelInterfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./apiEntities/IModelInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/IModelInterfaces.js");
|
|
1221
|
+
/* harmony import */ var _apiEntities_BriefcaseInterfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apiEntities/BriefcaseInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/BriefcaseInterfaces.js");
|
|
1222
|
+
/* harmony import */ var _apiEntities_ChangesetInterfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apiEntities/ChangesetInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/ChangesetInterfaces.js");
|
|
1223
|
+
/* harmony import */ var _apiEntities_NamedVersionInterfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apiEntities/NamedVersionInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/NamedVersionInterfaces.js");
|
|
1224
|
+
/* harmony import */ var _apiEntities_CheckpointInterfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apiEntities/CheckpointInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/CheckpointInterfaces.js");
|
|
1225
|
+
/* harmony import */ var _apiEntities_ThumbnailInterfaces__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apiEntities/ThumbnailInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/ThumbnailInterfaces.js");
|
|
1226
|
+
/* harmony import */ var _apiEntities_UserInterfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./apiEntities/UserInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/UserInterfaces.js");
|
|
1227
|
+
/* harmony import */ var _apiEntities_UserPermissionInterfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./apiEntities/UserPermissionInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/apiEntities/UserPermissionInterfaces.js");
|
|
1228
|
+
/* harmony import */ var _iterators_EntityListIterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./iterators/EntityListIterator */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/iterators/EntityListIterator.js");
|
|
1229
|
+
/* harmony import */ var _iterators_IteratorUtilFunctions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./iterators/IteratorUtilFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/iterators/IteratorUtilFunctions.js");
|
|
1230
|
+
/* harmony import */ var _RestClient__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./RestClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/RestClient.js");
|
|
1231
|
+
/* harmony import */ var _CommonInterfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CommonInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/CommonInterfaces.js");
|
|
1232
|
+
/* harmony import */ var _UtilityTypes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./UtilityTypes */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/UtilityTypes.js");
|
|
1233
|
+
/* harmony import */ var _IModelsErrorInterfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./IModelsErrorInterfaces */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/IModelsErrorInterfaces.js");
|
|
1224
1234
|
/*---------------------------------------------------------------------------------------------
|
|
1225
1235
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1226
1236
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1243,9 +1253,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1243
1253
|
|
|
1244
1254
|
/***/ }),
|
|
1245
1255
|
|
|
1246
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1256
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/iterators/EntityListIterator.js":
|
|
1247
1257
|
/*!************************************************************************************************************************************************************************************!*\
|
|
1248
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1258
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/iterators/EntityListIterator.js ***!
|
|
1249
1259
|
\************************************************************************************************************************************************************************************/
|
|
1250
1260
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1251
1261
|
|
|
@@ -1260,9 +1270,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1260
1270
|
|
|
1261
1271
|
/***/ }),
|
|
1262
1272
|
|
|
1263
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1273
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/iterators/IteratorUtilFunctions.js":
|
|
1264
1274
|
/*!***************************************************************************************************************************************************************************************!*\
|
|
1265
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1275
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/iterators/IteratorUtilFunctions.js ***!
|
|
1266
1276
|
\***************************************************************************************************************************************************************************************/
|
|
1267
1277
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1268
1278
|
|
|
@@ -1330,9 +1340,9 @@ async function take(iterator, entityCount) {
|
|
|
1330
1340
|
|
|
1331
1341
|
/***/ }),
|
|
1332
1342
|
|
|
1333
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1343
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js":
|
|
1334
1344
|
/*!**************************************************************************************************************************************************!*\
|
|
1335
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1345
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js ***!
|
|
1336
1346
|
\**************************************************************************************************************************************************/
|
|
1337
1347
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1338
1348
|
|
|
@@ -1361,9 +1371,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1361
1371
|
/* harmony export */ "take": () => (/* reexport safe */ _base_types__WEBPACK_IMPORTED_MODULE_0__.take),
|
|
1362
1372
|
/* harmony export */ "toArray": () => (/* reexport safe */ _base_types__WEBPACK_IMPORTED_MODULE_0__.toArray)
|
|
1363
1373
|
/* harmony export */ });
|
|
1364
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1365
|
-
/* harmony import */ var _operations_OperationParamExports__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./operations/OperationParamExports */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1366
|
-
/* harmony import */ var _IModelsClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IModelsClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1374
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
1375
|
+
/* harmony import */ var _operations_OperationParamExports__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./operations/OperationParamExports */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationParamExports.js");
|
|
1376
|
+
/* harmony import */ var _IModelsClient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IModelsClient */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/IModelsClient.js");
|
|
1367
1377
|
/*---------------------------------------------------------------------------------------------
|
|
1368
1378
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1369
1379
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1375,9 +1385,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1375
1385
|
|
|
1376
1386
|
/***/ }),
|
|
1377
1387
|
|
|
1378
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1388
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/IModelsApiUrlFormatter.js":
|
|
1379
1389
|
/*!******************************************************************************************************************************************************************************!*\
|
|
1380
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1390
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/IModelsApiUrlFormatter.js ***!
|
|
1381
1391
|
\******************************************************************************************************************************************************************************/
|
|
1382
1392
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1383
1393
|
|
|
@@ -1532,9 +1542,9 @@ class IModelsApiUrlFormatter {
|
|
|
1532
1542
|
|
|
1533
1543
|
/***/ }),
|
|
1534
1544
|
|
|
1535
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1545
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationExports.js":
|
|
1536
1546
|
/*!************************************************************************************************************************************************************************!*\
|
|
1537
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1547
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationExports.js ***!
|
|
1538
1548
|
\************************************************************************************************************************************************************************/
|
|
1539
1549
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1540
1550
|
|
|
@@ -1550,14 +1560,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1550
1560
|
/* harmony export */ "UserOperations": () => (/* reexport safe */ _user_UserOperations__WEBPACK_IMPORTED_MODULE_6__.UserOperations),
|
|
1551
1561
|
/* harmony export */ "UserPermissionOperations": () => (/* reexport safe */ _user_permission_UserPermissionOperations__WEBPACK_IMPORTED_MODULE_7__.UserPermissionOperations)
|
|
1552
1562
|
/* harmony export */ });
|
|
1553
|
-
/* harmony import */ var _imodel_IModelOperations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./imodel/IModelOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1554
|
-
/* harmony import */ var _briefcase_BriefcaseOperations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./briefcase/BriefcaseOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1555
|
-
/* harmony import */ var _changeset_ChangesetOperations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./changeset/ChangesetOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1556
|
-
/* harmony import */ var _named_version_NamedVersionOperations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./named-version/NamedVersionOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1557
|
-
/* harmony import */ var _checkpoint_CheckpointOperations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./checkpoint/CheckpointOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1558
|
-
/* harmony import */ var _thumbnail_ThumbnailOperations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./thumbnail/ThumbnailOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1559
|
-
/* harmony import */ var _user_UserOperations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./user/UserOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1560
|
-
/* harmony import */ var _user_permission_UserPermissionOperations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./user-permission/UserPermissionOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1563
|
+
/* harmony import */ var _imodel_IModelOperations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./imodel/IModelOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/imodel/IModelOperations.js");
|
|
1564
|
+
/* harmony import */ var _briefcase_BriefcaseOperations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./briefcase/BriefcaseOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/briefcase/BriefcaseOperations.js");
|
|
1565
|
+
/* harmony import */ var _changeset_ChangesetOperations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./changeset/ChangesetOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/changeset/ChangesetOperations.js");
|
|
1566
|
+
/* harmony import */ var _named_version_NamedVersionOperations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./named-version/NamedVersionOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/named-version/NamedVersionOperations.js");
|
|
1567
|
+
/* harmony import */ var _checkpoint_CheckpointOperations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./checkpoint/CheckpointOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperations.js");
|
|
1568
|
+
/* harmony import */ var _thumbnail_ThumbnailOperations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./thumbnail/ThumbnailOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/thumbnail/ThumbnailOperations.js");
|
|
1569
|
+
/* harmony import */ var _user_UserOperations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./user/UserOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user/UserOperations.js");
|
|
1570
|
+
/* harmony import */ var _user_permission_UserPermissionOperations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./user-permission/UserPermissionOperations */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user-permission/UserPermissionOperations.js");
|
|
1561
1571
|
/*---------------------------------------------------------------------------------------------
|
|
1562
1572
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1563
1573
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1574,9 +1584,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1574
1584
|
|
|
1575
1585
|
/***/ }),
|
|
1576
1586
|
|
|
1577
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1587
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationOptions.js":
|
|
1578
1588
|
/*!************************************************************************************************************************************************************************!*\
|
|
1579
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1589
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationOptions.js ***!
|
|
1580
1590
|
\************************************************************************************************************************************************************************/
|
|
1581
1591
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1582
1592
|
|
|
@@ -1587,9 +1597,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1587
1597
|
|
|
1588
1598
|
/***/ }),
|
|
1589
1599
|
|
|
1590
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1600
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationParamExports.js":
|
|
1591
1601
|
/*!*****************************************************************************************************************************************************************************!*\
|
|
1592
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1602
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationParamExports.js ***!
|
|
1593
1603
|
\*****************************************************************************************************************************************************************************/
|
|
1594
1604
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1595
1605
|
|
|
@@ -1601,14 +1611,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1601
1611
|
/* harmony export */ "NamedVersionOrderByProperty": () => (/* reexport safe */ _named_version_NamedVersionOperationParams__WEBPACK_IMPORTED_MODULE_3__.NamedVersionOrderByProperty),
|
|
1602
1612
|
/* harmony export */ "SPECIAL_VALUES_ME": () => (/* reexport safe */ _briefcase_BriefcaseOperationParams__WEBPACK_IMPORTED_MODULE_1__.SPECIAL_VALUES_ME)
|
|
1603
1613
|
/* harmony export */ });
|
|
1604
|
-
/* harmony import */ var _imodel_IModelOperationParams__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./imodel/IModelOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1605
|
-
/* harmony import */ var _briefcase_BriefcaseOperationParams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./briefcase/BriefcaseOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1606
|
-
/* harmony import */ var _changeset_ChangesetOperationParams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./changeset/ChangesetOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1607
|
-
/* harmony import */ var _named_version_NamedVersionOperationParams__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./named-version/NamedVersionOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1608
|
-
/* harmony import */ var _checkpoint_CheckpointOperationParams__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./checkpoint/CheckpointOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1609
|
-
/* harmony import */ var _thumbnail_ThumbnailOperationParams__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./thumbnail/ThumbnailOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1610
|
-
/* harmony import */ var _user_UserOperationParams__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./user/UserOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1611
|
-
/* harmony import */ var _user_permission_UserPermissionOperationParams__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./user-permission/UserPermissionOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1614
|
+
/* harmony import */ var _imodel_IModelOperationParams__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./imodel/IModelOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/imodel/IModelOperationParams.js");
|
|
1615
|
+
/* harmony import */ var _briefcase_BriefcaseOperationParams__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./briefcase/BriefcaseOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/briefcase/BriefcaseOperationParams.js");
|
|
1616
|
+
/* harmony import */ var _changeset_ChangesetOperationParams__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./changeset/ChangesetOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/changeset/ChangesetOperationParams.js");
|
|
1617
|
+
/* harmony import */ var _named_version_NamedVersionOperationParams__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./named-version/NamedVersionOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/named-version/NamedVersionOperationParams.js");
|
|
1618
|
+
/* harmony import */ var _checkpoint_CheckpointOperationParams__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./checkpoint/CheckpointOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperationParams.js");
|
|
1619
|
+
/* harmony import */ var _thumbnail_ThumbnailOperationParams__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./thumbnail/ThumbnailOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/thumbnail/ThumbnailOperationParams.js");
|
|
1620
|
+
/* harmony import */ var _user_UserOperationParams__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./user/UserOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user/UserOperationParams.js");
|
|
1621
|
+
/* harmony import */ var _user_permission_UserPermissionOperationParams__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./user-permission/UserPermissionOperationParams */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user-permission/UserPermissionOperationParams.js");
|
|
1612
1622
|
/*---------------------------------------------------------------------------------------------
|
|
1613
1623
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1614
1624
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1625,9 +1635,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1625
1635
|
|
|
1626
1636
|
/***/ }),
|
|
1627
1637
|
|
|
1628
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1638
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/SharedFunctions.js":
|
|
1629
1639
|
/*!***********************************************************************************************************************************************************************!*\
|
|
1630
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1640
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/SharedFunctions.js ***!
|
|
1631
1641
|
\***********************************************************************************************************************************************************************/
|
|
1632
1642
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1633
1643
|
|
|
@@ -1650,9 +1660,9 @@ async function getUser(authorization, userOperations, urlFormatter, userLink) {
|
|
|
1650
1660
|
|
|
1651
1661
|
/***/ }),
|
|
1652
1662
|
|
|
1653
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1663
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/briefcase/BriefcaseOperationParams.js":
|
|
1654
1664
|
/*!******************************************************************************************************************************************************************************************!*\
|
|
1655
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1665
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/briefcase/BriefcaseOperationParams.js ***!
|
|
1656
1666
|
\******************************************************************************************************************************************************************************************/
|
|
1657
1667
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1658
1668
|
|
|
@@ -1667,9 +1677,9 @@ const SPECIAL_VALUES_ME = "me";
|
|
|
1667
1677
|
|
|
1668
1678
|
/***/ }),
|
|
1669
1679
|
|
|
1670
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1680
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/briefcase/BriefcaseOperations.js":
|
|
1671
1681
|
/*!*************************************************************************************************************************************************************************************!*\
|
|
1672
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1682
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/briefcase/BriefcaseOperations.js ***!
|
|
1673
1683
|
\*************************************************************************************************************************************************************************************/
|
|
1674
1684
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1675
1685
|
|
|
@@ -1678,9 +1688,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1678
1688
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1679
1689
|
/* harmony export */ "BriefcaseOperations": () => (/* binding */ BriefcaseOperations)
|
|
1680
1690
|
/* harmony export */ });
|
|
1681
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1682
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1683
|
-
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1691
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
1692
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
1693
|
+
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/SharedFunctions.js");
|
|
1684
1694
|
/*---------------------------------------------------------------------------------------------
|
|
1685
1695
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1686
1696
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1762,9 +1772,9 @@ class BriefcaseOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Op
|
|
|
1762
1772
|
|
|
1763
1773
|
/***/ }),
|
|
1764
1774
|
|
|
1765
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1775
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/changeset/ChangesetOperationParams.js":
|
|
1766
1776
|
/*!******************************************************************************************************************************************************************************************!*\
|
|
1767
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1777
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/changeset/ChangesetOperationParams.js ***!
|
|
1768
1778
|
\******************************************************************************************************************************************************************************************/
|
|
1769
1779
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1770
1780
|
|
|
@@ -1785,9 +1795,9 @@ var ChangesetOrderByProperty;
|
|
|
1785
1795
|
|
|
1786
1796
|
/***/ }),
|
|
1787
1797
|
|
|
1788
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1798
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/changeset/ChangesetOperations.js":
|
|
1789
1799
|
/*!*************************************************************************************************************************************************************************************!*\
|
|
1790
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1800
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/changeset/ChangesetOperations.js ***!
|
|
1791
1801
|
\*************************************************************************************************************************************************************************************/
|
|
1792
1802
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1793
1803
|
|
|
@@ -1796,9 +1806,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1796
1806
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1797
1807
|
/* harmony export */ "ChangesetOperations": () => (/* binding */ ChangesetOperations)
|
|
1798
1808
|
/* harmony export */ });
|
|
1799
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1800
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1801
|
-
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1809
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
1810
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
1811
|
+
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/SharedFunctions.js");
|
|
1802
1812
|
/*---------------------------------------------------------------------------------------------
|
|
1803
1813
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1804
1814
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1921,9 +1931,9 @@ class ChangesetOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Op
|
|
|
1921
1931
|
|
|
1922
1932
|
/***/ }),
|
|
1923
1933
|
|
|
1924
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1934
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperationParams.js":
|
|
1925
1935
|
/*!********************************************************************************************************************************************************************************************!*\
|
|
1926
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1936
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperationParams.js ***!
|
|
1927
1937
|
\********************************************************************************************************************************************************************************************/
|
|
1928
1938
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1929
1939
|
|
|
@@ -1934,9 +1944,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1934
1944
|
|
|
1935
1945
|
/***/ }),
|
|
1936
1946
|
|
|
1937
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1947
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperations.js":
|
|
1938
1948
|
/*!***************************************************************************************************************************************************************************************!*\
|
|
1939
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1949
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/checkpoint/CheckpointOperations.js ***!
|
|
1940
1950
|
\***************************************************************************************************************************************************************************************/
|
|
1941
1951
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1942
1952
|
|
|
@@ -1945,7 +1955,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1945
1955
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1946
1956
|
/* harmony export */ "CheckpointOperations": () => (/* binding */ CheckpointOperations)
|
|
1947
1957
|
/* harmony export */ });
|
|
1948
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1958
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
1949
1959
|
/*---------------------------------------------------------------------------------------------
|
|
1950
1960
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
1951
1961
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -1974,9 +1984,9 @@ class CheckpointOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.O
|
|
|
1974
1984
|
|
|
1975
1985
|
/***/ }),
|
|
1976
1986
|
|
|
1977
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1987
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/imodel/IModelOperationParams.js":
|
|
1978
1988
|
/*!************************************************************************************************************************************************************************************!*\
|
|
1979
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
1989
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/imodel/IModelOperationParams.js ***!
|
|
1980
1990
|
\************************************************************************************************************************************************************************************/
|
|
1981
1991
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1982
1992
|
|
|
@@ -1997,9 +2007,9 @@ var IModelOrderByProperty;
|
|
|
1997
2007
|
|
|
1998
2008
|
/***/ }),
|
|
1999
2009
|
|
|
2000
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2010
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/imodel/IModelOperations.js":
|
|
2001
2011
|
/*!*******************************************************************************************************************************************************************************!*\
|
|
2002
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2012
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/imodel/IModelOperations.js ***!
|
|
2003
2013
|
\*******************************************************************************************************************************************************************************/
|
|
2004
2014
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2005
2015
|
|
|
@@ -2008,8 +2018,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2008
2018
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2009
2019
|
/* harmony export */ "IModelOperations": () => (/* binding */ IModelOperations)
|
|
2010
2020
|
/* harmony export */ });
|
|
2011
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2012
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2021
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
2022
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
2013
2023
|
/*---------------------------------------------------------------------------------------------
|
|
2014
2024
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2015
2025
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -2017,6 +2027,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2017
2027
|
|
|
2018
2028
|
|
|
2019
2029
|
class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.OperationsBase {
|
|
2030
|
+
constructor(options, _iModelsClient) {
|
|
2031
|
+
super(options);
|
|
2032
|
+
this._iModelsClient = _iModelsClient;
|
|
2033
|
+
}
|
|
2020
2034
|
/**
|
|
2021
2035
|
* Gets iModels for a specific project. This method returns iModels in their minimal representation. The returned iterator
|
|
2022
2036
|
* internally queries entities in pages. Wraps the {@link https://developer.bentley.com/apis/imodels/operations/get-project-imodels/ Get Project iModels}
|
|
@@ -2040,11 +2054,16 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2040
2054
|
* @returns {EntityListIterator<iModel>} iterator for iModel list. See {@link EntityListIterator}, {@link iModel}.
|
|
2041
2055
|
*/
|
|
2042
2056
|
getRepresentationList(params) {
|
|
2057
|
+
const entityCollectionAccessor = (response) => {
|
|
2058
|
+
const iModels = response.iModels;
|
|
2059
|
+
const mappedIModels = iModels.map((iModel) => this.appendRelatedEntityCallbacks(params.authorization, iModel));
|
|
2060
|
+
return mappedIModels;
|
|
2061
|
+
};
|
|
2043
2062
|
return new _base_internal__WEBPACK_IMPORTED_MODULE_0__.EntityListIteratorImpl(async () => this.getEntityCollectionPage({
|
|
2044
2063
|
authorization: params.authorization,
|
|
2045
2064
|
url: this._options.urlFormatter.getIModelListUrl({ urlParams: params.urlParams }),
|
|
2046
2065
|
preferReturn: _base_types__WEBPACK_IMPORTED_MODULE_1__.PreferReturn.Representation,
|
|
2047
|
-
entityCollectionAccessor
|
|
2066
|
+
entityCollectionAccessor
|
|
2048
2067
|
}));
|
|
2049
2068
|
}
|
|
2050
2069
|
/**
|
|
@@ -2058,7 +2077,8 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2058
2077
|
authorization: params.authorization,
|
|
2059
2078
|
url: this._options.urlFormatter.getSingleIModelUrl({ iModelId: params.iModelId })
|
|
2060
2079
|
});
|
|
2061
|
-
|
|
2080
|
+
const result = this.appendRelatedEntityCallbacks(params.authorization, response.iModel);
|
|
2081
|
+
return result;
|
|
2062
2082
|
}
|
|
2063
2083
|
/**
|
|
2064
2084
|
* Creates an empty iModel with specified properties. Wraps the
|
|
@@ -2068,7 +2088,9 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2068
2088
|
*/
|
|
2069
2089
|
async createEmpty(params) {
|
|
2070
2090
|
const createIModelBody = this.getCreateEmptyIModelRequestBody(params.iModelProperties);
|
|
2071
|
-
|
|
2091
|
+
const createdIModel = await this.sendIModelPostRequest(params.authorization, createIModelBody);
|
|
2092
|
+
const result = this.appendRelatedEntityCallbacks(params.authorization, createdIModel);
|
|
2093
|
+
return result;
|
|
2072
2094
|
}
|
|
2073
2095
|
/**
|
|
2074
2096
|
* Creates an iModel from a template. Wraps the
|
|
@@ -2107,7 +2129,8 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2107
2129
|
url: this._options.urlFormatter.getSingleIModelUrl({ iModelId: params.iModelId }),
|
|
2108
2130
|
body: updateIModelBody
|
|
2109
2131
|
});
|
|
2110
|
-
|
|
2132
|
+
const result = this.appendRelatedEntityCallbacks(params.authorization, updateIModelResponse.iModel);
|
|
2133
|
+
return result;
|
|
2111
2134
|
}
|
|
2112
2135
|
/**
|
|
2113
2136
|
* Deletes an iModel with specified id. Wraps the {@link https://developer.bentley.com/apis/imodels/operations/delete-imodel/ Delete iModel}
|
|
@@ -2121,6 +2144,14 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2121
2144
|
url: this._options.urlFormatter.getSingleIModelUrl({ iModelId: params.iModelId })
|
|
2122
2145
|
});
|
|
2123
2146
|
}
|
|
2147
|
+
appendRelatedEntityCallbacks(authorization, iModel) {
|
|
2148
|
+
const getCreator = async () => { var _a; return this.getCreator(authorization, (_a = iModel._links.creator) === null || _a === void 0 ? void 0 : _a.href); };
|
|
2149
|
+
const result = {
|
|
2150
|
+
...iModel,
|
|
2151
|
+
getCreator
|
|
2152
|
+
};
|
|
2153
|
+
return result;
|
|
2154
|
+
}
|
|
2124
2155
|
getCreateEmptyIModelRequestBody(iModelProperties) {
|
|
2125
2156
|
return {
|
|
2126
2157
|
projectId: iModelProperties.projectId,
|
|
@@ -2137,6 +2168,16 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2137
2168
|
});
|
|
2138
2169
|
return createIModelResponse.iModel;
|
|
2139
2170
|
}
|
|
2171
|
+
async getCreator(authorization, creatorLink) {
|
|
2172
|
+
if (!creatorLink)
|
|
2173
|
+
return undefined;
|
|
2174
|
+
const { iModelId, userId } = this._options.urlFormatter.parseUserUrl(creatorLink);
|
|
2175
|
+
return this._iModelsClient.users.getSingle({
|
|
2176
|
+
authorization,
|
|
2177
|
+
iModelId,
|
|
2178
|
+
userId
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2140
2181
|
getCreateIModelFromTemplateRequestBody(iModelProperties) {
|
|
2141
2182
|
return {
|
|
2142
2183
|
...this.getCreateEmptyIModelRequestBody(iModelProperties),
|
|
@@ -2175,9 +2216,9 @@ class IModelOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Opera
|
|
|
2175
2216
|
|
|
2176
2217
|
/***/ }),
|
|
2177
2218
|
|
|
2178
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2219
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/index.js":
|
|
2179
2220
|
/*!*************************************************************************************************************************************************************!*\
|
|
2180
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2221
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/index.js ***!
|
|
2181
2222
|
\*************************************************************************************************************************************************************/
|
|
2182
2223
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2183
2224
|
|
|
@@ -2199,11 +2240,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2199
2240
|
/* harmony export */ "UserPermissionOperations": () => (/* reexport safe */ _OperationExports__WEBPACK_IMPORTED_MODULE_0__.UserPermissionOperations),
|
|
2200
2241
|
/* harmony export */ "getUser": () => (/* reexport safe */ _SharedFunctions__WEBPACK_IMPORTED_MODULE_4__.getUser)
|
|
2201
2242
|
/* harmony export */ });
|
|
2202
|
-
/* harmony import */ var _OperationExports__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OperationExports */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2203
|
-
/* harmony import */ var _OperationParamExports__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperationParamExports */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2204
|
-
/* harmony import */ var _OperationOptions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperationOptions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2205
|
-
/* harmony import */ var _IModelsApiUrlFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IModelsApiUrlFormatter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2206
|
-
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2243
|
+
/* harmony import */ var _OperationExports__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OperationExports */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationExports.js");
|
|
2244
|
+
/* harmony import */ var _OperationParamExports__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperationParamExports */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationParamExports.js");
|
|
2245
|
+
/* harmony import */ var _OperationOptions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OperationOptions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/OperationOptions.js");
|
|
2246
|
+
/* harmony import */ var _IModelsApiUrlFormatter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IModelsApiUrlFormatter */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/IModelsApiUrlFormatter.js");
|
|
2247
|
+
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/SharedFunctions.js");
|
|
2207
2248
|
/*---------------------------------------------------------------------------------------------
|
|
2208
2249
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2209
2250
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -2217,9 +2258,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2217
2258
|
|
|
2218
2259
|
/***/ }),
|
|
2219
2260
|
|
|
2220
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2261
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/named-version/NamedVersionOperationParams.js":
|
|
2221
2262
|
/*!*************************************************************************************************************************************************************************************************!*\
|
|
2222
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2263
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/named-version/NamedVersionOperationParams.js ***!
|
|
2223
2264
|
\*************************************************************************************************************************************************************************************************/
|
|
2224
2265
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2225
2266
|
|
|
@@ -2240,9 +2281,9 @@ var NamedVersionOrderByProperty;
|
|
|
2240
2281
|
|
|
2241
2282
|
/***/ }),
|
|
2242
2283
|
|
|
2243
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2284
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/named-version/NamedVersionOperations.js":
|
|
2244
2285
|
/*!********************************************************************************************************************************************************************************************!*\
|
|
2245
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2286
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/named-version/NamedVersionOperations.js ***!
|
|
2246
2287
|
\********************************************************************************************************************************************************************************************/
|
|
2247
2288
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2248
2289
|
|
|
@@ -2251,9 +2292,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2251
2292
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2252
2293
|
/* harmony export */ "NamedVersionOperations": () => (/* binding */ NamedVersionOperations)
|
|
2253
2294
|
/* harmony export */ });
|
|
2254
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2255
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2256
|
-
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2295
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
2296
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
2297
|
+
/* harmony import */ var _SharedFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SharedFunctions */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/SharedFunctions.js");
|
|
2257
2298
|
/*---------------------------------------------------------------------------------------------
|
|
2258
2299
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2259
2300
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -2395,9 +2436,9 @@ class NamedVersionOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__
|
|
|
2395
2436
|
|
|
2396
2437
|
/***/ }),
|
|
2397
2438
|
|
|
2398
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2439
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/thumbnail/ThumbnailOperationParams.js":
|
|
2399
2440
|
/*!******************************************************************************************************************************************************************************************!*\
|
|
2400
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2441
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/thumbnail/ThumbnailOperationParams.js ***!
|
|
2401
2442
|
\******************************************************************************************************************************************************************************************/
|
|
2402
2443
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2403
2444
|
|
|
@@ -2408,9 +2449,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2408
2449
|
|
|
2409
2450
|
/***/ }),
|
|
2410
2451
|
|
|
2411
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2452
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/thumbnail/ThumbnailOperations.js":
|
|
2412
2453
|
/*!*************************************************************************************************************************************************************************************!*\
|
|
2413
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2454
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/thumbnail/ThumbnailOperations.js ***!
|
|
2414
2455
|
\*************************************************************************************************************************************************************************************/
|
|
2415
2456
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2416
2457
|
|
|
@@ -2419,8 +2460,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2419
2460
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2420
2461
|
/* harmony export */ "ThumbnailOperations": () => (/* binding */ ThumbnailOperations)
|
|
2421
2462
|
/* harmony export */ });
|
|
2422
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2423
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2463
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
2464
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
2424
2465
|
/*---------------------------------------------------------------------------------------------
|
|
2425
2466
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2426
2467
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -2484,9 +2525,9 @@ class ThumbnailOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0__.Op
|
|
|
2484
2525
|
|
|
2485
2526
|
/***/ }),
|
|
2486
2527
|
|
|
2487
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2528
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user-permission/UserPermissionOperationParams.js":
|
|
2488
2529
|
/*!*****************************************************************************************************************************************************************************************************!*\
|
|
2489
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2530
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user-permission/UserPermissionOperationParams.js ***!
|
|
2490
2531
|
\*****************************************************************************************************************************************************************************************************/
|
|
2491
2532
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2492
2533
|
|
|
@@ -2497,9 +2538,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2497
2538
|
|
|
2498
2539
|
/***/ }),
|
|
2499
2540
|
|
|
2500
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2541
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user-permission/UserPermissionOperations.js":
|
|
2501
2542
|
/*!************************************************************************************************************************************************************************************************!*\
|
|
2502
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2543
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user-permission/UserPermissionOperations.js ***!
|
|
2503
2544
|
\************************************************************************************************************************************************************************************************/
|
|
2504
2545
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2505
2546
|
|
|
@@ -2508,7 +2549,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2508
2549
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2509
2550
|
/* harmony export */ "UserPermissionOperations": () => (/* binding */ UserPermissionOperations)
|
|
2510
2551
|
/* harmony export */ });
|
|
2511
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2552
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
2512
2553
|
/*---------------------------------------------------------------------------------------------
|
|
2513
2554
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2514
2555
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -2537,9 +2578,9 @@ class UserPermissionOperations extends _base_internal__WEBPACK_IMPORTED_MODULE_0
|
|
|
2537
2578
|
|
|
2538
2579
|
/***/ }),
|
|
2539
2580
|
|
|
2540
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2581
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user/UserOperationParams.js":
|
|
2541
2582
|
/*!********************************************************************************************************************************************************************************!*\
|
|
2542
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2583
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user/UserOperationParams.js ***!
|
|
2543
2584
|
\********************************************************************************************************************************************************************************/
|
|
2544
2585
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2545
2586
|
|
|
@@ -2550,9 +2591,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2550
2591
|
|
|
2551
2592
|
/***/ }),
|
|
2552
2593
|
|
|
2553
|
-
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2594
|
+
/***/ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user/UserOperations.js":
|
|
2554
2595
|
/*!***************************************************************************************************************************************************************************!*\
|
|
2555
|
-
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2596
|
+
!*** ../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/operations/user/UserOperations.js ***!
|
|
2556
2597
|
\***************************************************************************************************************************************************************************/
|
|
2557
2598
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2558
2599
|
|
|
@@ -2561,8 +2602,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2561
2602
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2562
2603
|
/* harmony export */ "UserOperations": () => (/* binding */ UserOperations)
|
|
2563
2604
|
/* harmony export */ });
|
|
2564
|
-
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2565
|
-
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
2605
|
+
/* harmony import */ var _base_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/internal */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/internal/index.js");
|
|
2606
|
+
/* harmony import */ var _base_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../base/types */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/base/types/index.js");
|
|
2566
2607
|
/*---------------------------------------------------------------------------------------------
|
|
2567
2608
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2568
2609
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -2772,7 +2813,7 @@ exports.getAccessTokenFromBackend = exports.getTokenCallbackName = void 0;
|
|
|
2772
2813
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
2773
2814
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
2774
2815
|
*--------------------------------------------------------------------------------------------*/
|
|
2775
|
-
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.5.
|
|
2816
|
+
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../common/temp/node_modules/.pnpm/@itwin+certa@3.5.6/node_modules/@itwin/certa/lib/utils/CallbackUtils.js");
|
|
2776
2817
|
// Shared by both the frontend and backend side of the tests
|
|
2777
2818
|
exports.getTokenCallbackName = "getToken";
|
|
2778
2819
|
async function getAccessTokenFromBackend(user, oidcConfig) {
|
|
@@ -19212,8 +19253,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19212
19253
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19213
19254
|
/* harmony export */ "default": () => (/* binding */ Browser)
|
|
19214
19255
|
/* harmony export */ });
|
|
19215
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
19216
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
19256
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
19257
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
19217
19258
|
|
|
19218
19259
|
|
|
19219
19260
|
|
|
@@ -50867,6 +50908,12 @@ class ReadonlySortedArray {
|
|
|
50867
50908
|
for (let i = 0; i < this.length; i++)
|
|
50868
50909
|
func(this._array[i]);
|
|
50869
50910
|
}
|
|
50911
|
+
/** The equivalent of [Array.slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice). */
|
|
50912
|
+
slice(start, end) {
|
|
50913
|
+
const slice = new ReadonlySortedArray(this._compare, this._duplicatePolicy, this._clone);
|
|
50914
|
+
slice._array = this._array.slice(start, end);
|
|
50915
|
+
return slice;
|
|
50916
|
+
}
|
|
50870
50917
|
/**
|
|
50871
50918
|
* Computes the position at which the specified value should be inserted to maintain sorted order.
|
|
50872
50919
|
* @param value The value whose position is to be computed.
|
|
@@ -50997,6 +51044,12 @@ class SortedArray extends ReadonlySortedArray {
|
|
|
50997
51044
|
* @returns the index of the deleted value, or -1 if no such element exists.
|
|
50998
51045
|
*/
|
|
50999
51046
|
remove(value) { return this._remove(value); }
|
|
51047
|
+
/** The equivalent of [Array.slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice). */
|
|
51048
|
+
slice(start, end) {
|
|
51049
|
+
const slice = new SortedArray(this._compare, this._duplicatePolicy, this._clone);
|
|
51050
|
+
slice._array = this._array.slice(start, end);
|
|
51051
|
+
return slice;
|
|
51052
|
+
}
|
|
51000
51053
|
}
|
|
51001
51054
|
|
|
51002
51055
|
|
|
@@ -101423,6 +101476,8 @@ class ElementPicker {
|
|
|
101423
101476
|
const testPointView = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d(Math.floor(pickPointView.x + 0.5), Math.floor(pickPointView.y + 0.5));
|
|
101424
101477
|
let pixelRadius = Math.floor(pickRadiusView + 0.5);
|
|
101425
101478
|
const rect = new _ViewRect__WEBPACK_IMPORTED_MODULE_6__.ViewRect(testPointView.x - pixelRadius, testPointView.y - pixelRadius, testPointView.x + pixelRadius, testPointView.y + pixelRadius);
|
|
101479
|
+
if (rect.isNull)
|
|
101480
|
+
return 0;
|
|
101426
101481
|
let result = 0;
|
|
101427
101482
|
vp.readPixels(rect, _render_Pixel__WEBPACK_IMPORTED_MODULE_4__.Pixel.Selector.All, (pixels) => {
|
|
101428
101483
|
if (undefined === pixels)
|
|
@@ -103070,163 +103125,173 @@ class FuzzySearchResultsIterator {
|
|
|
103070
103125
|
"use strict";
|
|
103071
103126
|
__webpack_require__.r(__webpack_exports__);
|
|
103072
103127
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
103128
|
+
/* harmony export */ "CoordinateConverter": () => (/* binding */ CoordinateConverter),
|
|
103073
103129
|
/* harmony export */ "GeoConverter": () => (/* binding */ GeoConverter),
|
|
103074
103130
|
/* harmony export */ "GeoServices": () => (/* binding */ GeoServices)
|
|
103075
103131
|
/* harmony export */ });
|
|
103076
|
-
/* harmony import */ var
|
|
103132
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
103133
|
+
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
103134
|
+
/* harmony import */ var _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FrontendLoggerCategory */ "../../core/frontend/lib/esm/FrontendLoggerCategory.js");
|
|
103135
|
+
/*---------------------------------------------------------------------------------------------
|
|
103136
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
103137
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
103138
|
+
*--------------------------------------------------------------------------------------------*/
|
|
103139
|
+
// cspell:ignore GCRS
|
|
103077
103140
|
|
|
103078
|
-
|
|
103079
|
-
|
|
103080
|
-
|
|
103081
|
-
|
|
103082
|
-
|
|
103083
|
-
|
|
103084
|
-
}
|
|
103085
|
-
|
|
103086
|
-
|
|
103087
|
-
|
|
103088
|
-
|
|
103089
|
-
|
|
103090
|
-
|
|
103091
|
-
|
|
103092
|
-
|
|
103093
|
-
|
|
103094
|
-
|
|
103095
|
-
|
|
103096
|
-
|
|
103097
|
-
|
|
103141
|
+
|
|
103142
|
+
|
|
103143
|
+
function compareXYAndZ(lhs, rhs) {
|
|
103144
|
+
return lhs.x - rhs.x || lhs.y - rhs.y || lhs.z - rhs.z;
|
|
103145
|
+
}
|
|
103146
|
+
function cloneXYAndZ(xyz) {
|
|
103147
|
+
return { x: xyz.x, y: xyz.y, z: xyz.z };
|
|
103148
|
+
}
|
|
103149
|
+
/** Performs conversion of coordinates from one coordinate system to another.
|
|
103150
|
+
* A [[GeoConverter]] has a pair of these for converting between iModel coordinates and geographic coordinates.
|
|
103151
|
+
* Uses a cache to avoid repeatedly requesting the same points, and a batching strategy to avoid making frequent small requests.
|
|
103152
|
+
* The cache stores every point that was ever converted by [[convert]]. It is currently permitted to grow to unbounded size.
|
|
103153
|
+
* The batching works as follows:
|
|
103154
|
+
* When a conversion is requested via [[convert]], if all the requested points are in the cache, they are returned immediately.
|
|
103155
|
+
* Otherwise, any points not in the cache and not in the current in-flight request (if any) are placed onto the queue of pending requests.
|
|
103156
|
+
* A pending request is scheduled if one hasn't already been scheduled, via requestAnimationFrame.
|
|
103157
|
+
* In the animation frame callback, the pending requests are split into batches of no more than options.maxPointsPerRequest and dispatched to the backend.
|
|
103158
|
+
* Once the response is received, the results are loaded into and returned from the cache.
|
|
103159
|
+
* If more calls to convert occurred while the request was in flight, another request is dispatched.
|
|
103160
|
+
* @internal exported strictly for tests.
|
|
103161
|
+
*/
|
|
103162
|
+
class CoordinateConverter {
|
|
103163
|
+
constructor(opts) {
|
|
103164
|
+
var _a;
|
|
103165
|
+
this._state = "idle";
|
|
103166
|
+
// An event fired when the next request completes.
|
|
103167
|
+
this._onCompleted = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
103168
|
+
// Used for creating cache keys (XYAndZ) from XYZProps without having to allocate temporary objects.
|
|
103169
|
+
this._scratchXYZ = { x: 0, y: 0, z: 0 };
|
|
103170
|
+
this._maxPointsPerRequest = Math.max(1, (_a = opts.maxPointsPerRequest) !== null && _a !== void 0 ? _a : 300);
|
|
103171
|
+
this._iModel = opts.iModel;
|
|
103172
|
+
this._requestPoints = opts.requestPoints;
|
|
103173
|
+
this._cache = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Dictionary(compareXYAndZ, cloneXYAndZ);
|
|
103174
|
+
this._pending = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.SortedArray(compareXYAndZ, false, cloneXYAndZ);
|
|
103175
|
+
this._inflight = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.SortedArray(compareXYAndZ, false, cloneXYAndZ);
|
|
103176
|
+
}
|
|
103177
|
+
toXYAndZ(input, output) {
|
|
103178
|
+
var _a, _b, _c, _d, _e, _f;
|
|
103179
|
+
if (Array.isArray(input)) {
|
|
103180
|
+
output.x = (_a = input[0]) !== null && _a !== void 0 ? _a : 0;
|
|
103181
|
+
output.y = (_b = input[1]) !== null && _b !== void 0 ? _b : 0;
|
|
103182
|
+
output.z = (_c = input[2]) !== null && _c !== void 0 ? _c : 0;
|
|
103098
103183
|
}
|
|
103099
|
-
|
|
103184
|
+
else {
|
|
103185
|
+
output.x = (_d = input.x) !== null && _d !== void 0 ? _d : 0;
|
|
103186
|
+
output.y = (_e = input.y) !== null && _e !== void 0 ? _e : 0;
|
|
103187
|
+
output.z = (_f = input.z) !== null && _f !== void 0 ? _f : 0;
|
|
103188
|
+
}
|
|
103189
|
+
return output;
|
|
103100
103190
|
}
|
|
103101
|
-
async
|
|
103102
|
-
|
|
103103
|
-
|
|
103104
|
-
|
|
103105
|
-
|
|
103106
|
-
|
|
103107
|
-
const thisGeoCoord = request.geoCoords[iPoint];
|
|
103108
|
-
// we use the JSON string as the key into our cache of previously returned results.
|
|
103109
|
-
const thisCacheKey = JSON.stringify(thisGeoCoord);
|
|
103110
|
-
// put something in each output that corresponds to the input.
|
|
103111
|
-
if (this._cache[thisCacheKey]) {
|
|
103112
|
-
response.iModelCoords.push(this._cache[thisCacheKey]);
|
|
103113
|
-
}
|
|
103114
|
-
else {
|
|
103115
|
-
if (undefined === missing)
|
|
103116
|
-
missing = [];
|
|
103117
|
-
// add this geoCoord to the request we are going to send.
|
|
103118
|
-
missing.push(thisGeoCoord);
|
|
103119
|
-
// keep track of the original position of this point.
|
|
103120
|
-
if (originalPositions.hasOwnProperty(thisCacheKey)) {
|
|
103121
|
-
// it is a duplicate of an earlier point (or points)
|
|
103122
|
-
if (Array.isArray(originalPositions[thisCacheKey])) {
|
|
103123
|
-
originalPositions[thisCacheKey].push(iPoint);
|
|
103124
|
-
}
|
|
103125
|
-
else {
|
|
103126
|
-
const list = [originalPositions[thisCacheKey], iPoint];
|
|
103127
|
-
originalPositions[thisCacheKey] = list;
|
|
103128
|
-
}
|
|
103129
|
-
}
|
|
103130
|
-
else {
|
|
103131
|
-
originalPositions[thisCacheKey] = iPoint;
|
|
103132
|
-
}
|
|
103133
|
-
// mark the response as pending.
|
|
103134
|
-
response.iModelCoords.push({ p: [0, 0, 0], s: _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.GeoCoordStatus.Pending });
|
|
103135
|
-
}
|
|
103191
|
+
async dispatch() {
|
|
103192
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this._state === "scheduled");
|
|
103193
|
+
if (this._iModel.isClosed || this._pending.isEmpty) {
|
|
103194
|
+
this._state = "idle";
|
|
103195
|
+
this._onCompleted.raiseEvent();
|
|
103196
|
+
return;
|
|
103136
103197
|
}
|
|
103137
|
-
|
|
103138
|
-
|
|
103139
|
-
|
|
103198
|
+
this._state = "in-flight";
|
|
103199
|
+
// Ensure subsequently-enqueued requests listen for the *next* response to be received.
|
|
103200
|
+
const onCompleted = this._onCompleted;
|
|
103201
|
+
this._onCompleted = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
103202
|
+
// Pending requests are now in flight. Start a new list of pending requests. It's cheaper to swap than to allocate new objects.
|
|
103203
|
+
const inflight = this._pending;
|
|
103204
|
+
this._pending = this._inflight;
|
|
103205
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this._pending.isEmpty);
|
|
103206
|
+
this._inflight = inflight;
|
|
103207
|
+
// Split requests if necessary to avoid requesting more than the maximum allowed number of points.
|
|
103208
|
+
const promises = [];
|
|
103209
|
+
for (let i = 0; i < inflight.length; i += this._maxPointsPerRequest) {
|
|
103210
|
+
const requests = inflight.slice(i, i + this._maxPointsPerRequest).extractArray();
|
|
103211
|
+
const promise = this._requestPoints(requests).then((results) => {
|
|
103212
|
+
if (this._iModel.isClosed)
|
|
103213
|
+
return;
|
|
103214
|
+
if (results.length !== requests.length)
|
|
103215
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logError(`${_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory.Package}.geoservices`, `requested conversion of ${requests.length} points, but received ${results.length} points`);
|
|
103216
|
+
for (let j = 0; j < results.length; j++) {
|
|
103217
|
+
if (j < requests.length)
|
|
103218
|
+
this._cache.set(requests[j], results[j]);
|
|
103219
|
+
}
|
|
103220
|
+
}).catch((err) => {
|
|
103221
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Logger.logException(`${_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_2__.FrontendLoggerCategory.Package}.geoservices`, err);
|
|
103222
|
+
});
|
|
103223
|
+
promises.push(promise);
|
|
103140
103224
|
}
|
|
103141
|
-
|
|
103142
|
-
|
|
103143
|
-
|
|
103144
|
-
|
|
103145
|
-
|
|
103146
|
-
|
|
103147
|
-
|
|
103148
|
-
|
|
103149
|
-
|
|
103150
|
-
|
|
103151
|
-
|
|
103152
|
-
|
|
103153
|
-
|
|
103154
|
-
|
|
103155
|
-
|
|
103156
|
-
|
|
103157
|
-
|
|
103158
|
-
|
|
103159
|
-
|
|
103160
|
-
|
|
103161
|
-
|
|
103162
|
-
|
|
103163
|
-
|
|
103164
|
-
|
|
103165
|
-
|
|
103166
|
-
|
|
103167
|
-
|
|
103168
|
-
|
|
103169
|
-
|
|
103170
|
-
|
|
103171
|
-
|
|
103225
|
+
await Promise.all(promises);
|
|
103226
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(this._state === "in-flight");
|
|
103227
|
+
this._state = "idle";
|
|
103228
|
+
this._inflight.clear();
|
|
103229
|
+
// If any more pending conversions arrived while awaiting this request, schedule another request.
|
|
103230
|
+
if (!this._pending.isEmpty)
|
|
103231
|
+
this.scheduleDispatch(); // eslint-disable-line @typescript-eslint/no-floating-promises
|
|
103232
|
+
// Resolve promises of all callers who were awaiting this request.
|
|
103233
|
+
onCompleted.raiseEvent();
|
|
103234
|
+
}
|
|
103235
|
+
// Add any points not present in cache to pending request list.
|
|
103236
|
+
// Return the number of points present in cache.
|
|
103237
|
+
enqueue(points) {
|
|
103238
|
+
let numInCache = 0;
|
|
103239
|
+
for (const point of points) {
|
|
103240
|
+
const xyz = this.toXYAndZ(point, this._scratchXYZ);
|
|
103241
|
+
if (this._cache.get(xyz))
|
|
103242
|
+
++numInCache;
|
|
103243
|
+
else if (!this._inflight.contains(xyz))
|
|
103244
|
+
this._pending.insert(xyz);
|
|
103245
|
+
}
|
|
103246
|
+
return numInCache;
|
|
103247
|
+
}
|
|
103248
|
+
// Obtain converted points from the cache. The assumption is that every point in `inputs` is already present in the cache.
|
|
103249
|
+
// Any point not present will be returned unconverted with an error status.
|
|
103250
|
+
getFromCache(inputs) {
|
|
103251
|
+
const outputs = [];
|
|
103252
|
+
for (const input of inputs) {
|
|
103253
|
+
const xyz = this.toXYAndZ(input, this._scratchXYZ);
|
|
103254
|
+
let output = this._cache.get(xyz);
|
|
103255
|
+
if (!output)
|
|
103256
|
+
output = { p: { ...xyz }, s: _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.GeoCoordStatus.CSMapError };
|
|
103257
|
+
outputs.push(output);
|
|
103258
|
+
}
|
|
103259
|
+
return outputs;
|
|
103260
|
+
}
|
|
103261
|
+
async scheduleDispatch() {
|
|
103262
|
+
if ("idle" === this._state) {
|
|
103263
|
+
this._state = "scheduled";
|
|
103264
|
+
requestAnimationFrame(() => {
|
|
103265
|
+
this.dispatch(); // eslint-disable-line @typescript-eslint/no-floating-promises
|
|
103266
|
+
});
|
|
103172
103267
|
}
|
|
103173
|
-
return
|
|
103268
|
+
return new Promise((resolve) => {
|
|
103269
|
+
this._onCompleted.addOnce(() => resolve());
|
|
103270
|
+
});
|
|
103174
103271
|
}
|
|
103175
|
-
|
|
103176
|
-
|
|
103177
|
-
|
|
103178
|
-
|
|
103179
|
-
|
|
103180
|
-
|
|
103181
|
-
this.
|
|
103272
|
+
async convert(inputs) {
|
|
103273
|
+
const fromCache = this.enqueue(inputs);
|
|
103274
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(fromCache >= 0);
|
|
103275
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(fromCache <= inputs.length);
|
|
103276
|
+
if (fromCache === inputs.length)
|
|
103277
|
+
return { points: this.getFromCache(inputs), fromCache };
|
|
103278
|
+
await this.scheduleDispatch();
|
|
103279
|
+
return { points: this.getFromCache(inputs), fromCache };
|
|
103182
103280
|
}
|
|
103183
|
-
|
|
103184
|
-
|
|
103185
|
-
|
|
103186
|
-
|
|
103187
|
-
|
|
103188
|
-
|
|
103189
|
-
|
|
103190
|
-
|
|
103191
|
-
|
|
103192
|
-
|
|
103193
|
-
|
|
103194
|
-
response.geoCoords.push(this._cache[thisCacheKey]);
|
|
103195
|
-
}
|
|
103196
|
-
else {
|
|
103197
|
-
if (!remainingRequest)
|
|
103198
|
-
remainingRequest = { target: this._target, iModelCoords: [] };
|
|
103199
|
-
// add this geoCoord to the request we are going to send.
|
|
103200
|
-
remainingRequest.iModelCoords.push(thisIModelCoord);
|
|
103201
|
-
// keep track of the original position of this point.
|
|
103202
|
-
originalPositions.push(iPoint);
|
|
103203
|
-
// mark the response as pending.
|
|
103204
|
-
response.geoCoords.push({ p: [0, 0, 0], s: _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.GeoCoordStatus.Pending });
|
|
103205
|
-
missing = true;
|
|
103206
|
-
}
|
|
103207
|
-
}
|
|
103208
|
-
// if none are missing from the cache, resolve the promise immediately
|
|
103209
|
-
if (!missing) {
|
|
103210
|
-
response.fromCache = request.iModelCoords.length;
|
|
103211
|
-
return response;
|
|
103212
|
-
}
|
|
103213
|
-
else {
|
|
103214
|
-
// keep track of how many came from the cache (mostly for tests).
|
|
103215
|
-
response.fromCache = request.iModelCoords.length - originalPositions.length;
|
|
103216
|
-
const remainingResponse = await _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__.IModelReadRpcInterface.getClientForRouting(this._iModel.routingContext.token).getGeoCoordinatesFromIModelCoordinates(this._iModel.getRpcProps(), remainingRequest);
|
|
103217
|
-
// put the responses into the cache, and fill in the output response for each
|
|
103218
|
-
for (let iResponse = 0; iResponse < remainingResponse.geoCoords.length; ++iResponse) {
|
|
103219
|
-
const thisPoint = remainingResponse.geoCoords[iResponse];
|
|
103220
|
-
// transfer the answer stored in remainingResponse to the correct position in the overall response.
|
|
103221
|
-
const responseIndex = originalPositions[iResponse];
|
|
103222
|
-
response.geoCoords[responseIndex] = thisPoint;
|
|
103223
|
-
// put the answer in the cache.
|
|
103224
|
-
const thisIModelCoord = remainingRequest.iModelCoords[iResponse];
|
|
103225
|
-
const thisCacheKey = JSON.stringify(thisIModelCoord);
|
|
103226
|
-
this._cache[thisCacheKey] = thisPoint;
|
|
103281
|
+
findCached(inputs) {
|
|
103282
|
+
const result = [];
|
|
103283
|
+
let missing;
|
|
103284
|
+
for (const input of inputs) {
|
|
103285
|
+
const key = this.toXYAndZ(input, this._scratchXYZ);
|
|
103286
|
+
const output = this._cache.get(key);
|
|
103287
|
+
result.push(output);
|
|
103288
|
+
if (!output) {
|
|
103289
|
+
if (!missing)
|
|
103290
|
+
missing = [];
|
|
103291
|
+
missing.push(input);
|
|
103227
103292
|
}
|
|
103228
|
-
return response;
|
|
103229
103293
|
}
|
|
103294
|
+
return { result, missing };
|
|
103230
103295
|
}
|
|
103231
103296
|
}
|
|
103232
103297
|
/** The GeoConverter class communicates with the backend to convert longitude/latitude coordinates to iModel coordinates and vice-versa
|
|
@@ -103234,23 +103299,42 @@ class IMCtoGCResultCache {
|
|
|
103234
103299
|
*/
|
|
103235
103300
|
class GeoConverter {
|
|
103236
103301
|
constructor(iModel, datumOrGCRS) {
|
|
103237
|
-
|
|
103238
|
-
|
|
103239
|
-
|
|
103240
|
-
|
|
103241
|
-
|
|
103242
|
-
|
|
103302
|
+
const datum = typeof datumOrGCRS === "object" ? JSON.stringify(datumOrGCRS) : datumOrGCRS;
|
|
103303
|
+
this._geoToIModel = new CoordinateConverter({
|
|
103304
|
+
iModel,
|
|
103305
|
+
requestPoints: async (geoCoords) => {
|
|
103306
|
+
const request = { source: datum, geoCoords };
|
|
103307
|
+
const rpc = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(iModel.routingContext.token);
|
|
103308
|
+
const response = await rpc.getIModelCoordinatesFromGeoCoordinates(iModel.getRpcProps(), request);
|
|
103309
|
+
return response.iModelCoords;
|
|
103310
|
+
},
|
|
103311
|
+
});
|
|
103312
|
+
this._iModelToGeo = new CoordinateConverter({
|
|
103313
|
+
iModel,
|
|
103314
|
+
requestPoints: async (iModelCoords) => {
|
|
103315
|
+
const request = { target: datum, iModelCoords };
|
|
103316
|
+
const rpc = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(iModel.routingContext.token);
|
|
103317
|
+
const response = await rpc.getGeoCoordinatesFromIModelCoordinates(iModel.getRpcProps(), request);
|
|
103318
|
+
return response.geoCoords;
|
|
103319
|
+
},
|
|
103320
|
+
});
|
|
103243
103321
|
}
|
|
103244
103322
|
async getIModelCoordinatesFromGeoCoordinates(geoPoints) {
|
|
103245
|
-
const
|
|
103246
|
-
return
|
|
103247
|
-
|
|
103248
|
-
|
|
103249
|
-
|
|
103323
|
+
const result = await this._geoToIModel.convert(geoPoints);
|
|
103324
|
+
return {
|
|
103325
|
+
iModelCoords: result.points,
|
|
103326
|
+
fromCache: result.fromCache,
|
|
103327
|
+
};
|
|
103250
103328
|
}
|
|
103251
103329
|
async getGeoCoordinatesFromIModelCoordinates(iModelPoints) {
|
|
103252
|
-
const
|
|
103253
|
-
return
|
|
103330
|
+
const result = await this._iModelToGeo.convert(iModelPoints);
|
|
103331
|
+
return {
|
|
103332
|
+
geoCoords: result.points,
|
|
103333
|
+
fromCache: result.fromCache,
|
|
103334
|
+
};
|
|
103335
|
+
}
|
|
103336
|
+
getCachedIModelCoordinatesFromGeoCoordinates(geoPoints) {
|
|
103337
|
+
return this._geoToIModel.findCached(geoPoints);
|
|
103254
103338
|
}
|
|
103255
103339
|
}
|
|
103256
103340
|
/** The Geographic Services available for an [[IModelConnection]].
|
|
@@ -113466,7 +113550,7 @@ class ViewRect {
|
|
|
113466
113550
|
/** The bottommost side of this ViewRect. */
|
|
113467
113551
|
get bottom() { return this._bottom; }
|
|
113468
113552
|
set bottom(val) { this._set("_bottom", val); }
|
|
113469
|
-
/** True if this ViewRect has an area
|
|
113553
|
+
/** True if this ViewRect has an area <= 0. */
|
|
113470
113554
|
get isNull() { return this.right <= this.left || this.bottom <= this.top; }
|
|
113471
113555
|
/** True if `!isNull` */
|
|
113472
113556
|
get isValid() { return !this.isNull; }
|
|
@@ -117994,7 +118078,7 @@ class Viewport {
|
|
|
117994
118078
|
*/
|
|
117995
118079
|
readPixels(rect, selector, receiver, excludeNonLocatable = false) {
|
|
117996
118080
|
const viewRect = this.viewRect;
|
|
117997
|
-
if (this.isDisposed || !rect.isContained(viewRect))
|
|
118081
|
+
if (this.isDisposed || rect.isNull || !rect.isContained(viewRect))
|
|
117998
118082
|
receiver(undefined);
|
|
117999
118083
|
else
|
|
118000
118084
|
this.target.readPixels(rect, selector, receiver, excludeNonLocatable);
|
|
@@ -119228,6 +119312,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
119228
119312
|
/* harmony export */ "ContextShareProvider": () => (/* reexport safe */ _tile_internal__WEBPACK_IMPORTED_MODULE_104__.ContextShareProvider),
|
|
119229
119313
|
/* harmony export */ "CoordSource": () => (/* reexport safe */ _tools_Tool__WEBPACK_IMPORTED_MODULE_114__.CoordSource),
|
|
119230
119314
|
/* harmony export */ "CoordSystem": () => (/* reexport safe */ _CoordSystem__WEBPACK_IMPORTED_MODULE_10__.CoordSystem),
|
|
119315
|
+
/* harmony export */ "CoordinateConverter": () => (/* reexport safe */ _GeoServices__WEBPACK_IMPORTED_MODULE_26__.CoordinateConverter),
|
|
119231
119316
|
/* harmony export */ "CoordinateLockOverrides": () => (/* reexport safe */ _tools_Tool__WEBPACK_IMPORTED_MODULE_114__.CoordinateLockOverrides),
|
|
119232
119317
|
/* harmony export */ "CoreTools": () => (/* reexport safe */ _tools_Tool__WEBPACK_IMPORTED_MODULE_114__.CoreTools),
|
|
119233
119318
|
/* harmony export */ "CurrentInputState": () => (/* reexport safe */ _tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_116__.CurrentInputState),
|
|
@@ -160842,7 +160927,7 @@ class GltfReader {
|
|
|
160842
160927
|
if (dracoMeshes.length === 0)
|
|
160843
160928
|
return;
|
|
160844
160929
|
try {
|
|
160845
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
160930
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41"), __webpack_require__.e("_d48c")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.3.1/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
160846
160931
|
await Promise.all(dracoMeshes.map(async (x) => this.decodeDracoMesh(x, dracoLoader)));
|
|
160847
160932
|
}
|
|
160848
160933
|
catch (err) {
|
|
@@ -164050,7 +164135,7 @@ function readPnts(stream, dataOffset, pnts) {
|
|
|
164050
164135
|
async function decodeDracoPointCloud(buf) {
|
|
164051
164136
|
var _a, _b, _c, _d, _e, _f;
|
|
164052
164137
|
try {
|
|
164053
|
-
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-
|
|
164138
|
+
const dracoLoader = (await Promise.all(/*! import() */[__webpack_require__.e("vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_1_node_modules_loaders_gl_draco_di-d3af41"), __webpack_require__.e("_d48c")]).then(__webpack_require__.bind(__webpack_require__, /*! @loaders.gl/draco */ "../../common/temp/node_modules/.pnpm/@loaders.gl+draco@3.3.1/node_modules/@loaders.gl/draco/dist/esm/index.js"))).DracoLoader;
|
|
164054
164139
|
const mesh = await dracoLoader.parse(buf, {});
|
|
164055
164140
|
if (mesh.topology !== "point-list")
|
|
164056
164141
|
return undefined;
|
|
@@ -292518,112 +292603,112 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
292518
292603
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
292519
292604
|
|
|
292520
292605
|
"use strict";
|
|
292521
|
-
|
|
292522
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292523
|
-
exports.Settings = exports.getRpcInterfaces = void 0;
|
|
292524
|
-
/*---------------------------------------------------------------------------------------------
|
|
292525
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292526
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292527
|
-
*--------------------------------------------------------------------------------------------*/
|
|
292528
|
-
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
292529
|
-
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
292530
|
-
const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
|
|
292531
|
-
function getRpcInterfaces() {
|
|
292532
|
-
const rpcInterfaces = [];
|
|
292533
|
-
rpcInterfaces.push(core_common_1.IModelReadRpcInterface);
|
|
292534
|
-
rpcInterfaces.push(ecschema_rpcinterface_common_1.ECSchemaRpcInterface);
|
|
292535
|
-
return rpcInterfaces;
|
|
292536
|
-
}
|
|
292537
|
-
exports.getRpcInterfaces = getRpcInterfaces;
|
|
292538
|
-
class Settings {
|
|
292539
|
-
constructor(env) {
|
|
292540
|
-
this._backend = {};
|
|
292541
|
-
this.users = [];
|
|
292542
|
-
this.iModel = {};
|
|
292543
|
-
const isFrontend = (typeof (process) === "undefined");
|
|
292544
|
-
if (!isFrontend && undefined === env.TF_BUILD) {
|
|
292545
|
-
const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
292546
|
-
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
292547
|
-
const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
292548
|
-
// First check in process.cwd() for the config
|
|
292549
|
-
let result = dotenv.config();
|
|
292550
|
-
if (result.error) {
|
|
292551
|
-
const potential = path.resolve(process.cwd(), "..", "..", "..", "imodeljs-config", ".env");
|
|
292552
|
-
result = dotenv.config({ path: potential });
|
|
292553
|
-
if (result.error)
|
|
292554
|
-
throw result.error;
|
|
292555
|
-
}
|
|
292556
|
-
dotenvExpand(result);
|
|
292557
|
-
}
|
|
292558
|
-
if (isFrontend)
|
|
292559
|
-
globalThis.process = { browser: true, env };
|
|
292560
|
-
// Loads the config out of the environment.
|
|
292561
|
-
this.load();
|
|
292562
|
-
}
|
|
292563
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
292564
|
-
get Backend() { return this._backend; }
|
|
292565
|
-
get user() { return this.users[0]; }
|
|
292566
|
-
/** Loads the necessary variables from `process.env`.
|
|
292567
|
-
*/
|
|
292568
|
-
load() {
|
|
292569
|
-
// Parse OIDC
|
|
292570
|
-
if (undefined === process.env.OIDC_CLIENT_ID)
|
|
292571
|
-
throw new Error("Missing the 'OIDC_CLIENT_ID' setting.");
|
|
292572
|
-
this.oidcClientId = process.env.OIDC_CLIENT_ID;
|
|
292573
|
-
if (undefined === process.env.OIDC_SCOPES)
|
|
292574
|
-
throw new Error("Missing the 'OIDC_SCOPES' setting");
|
|
292575
|
-
this.oidcScopes = process.env.OIDC_SCOPES;
|
|
292576
|
-
if (process.env.OIDC_AUTHORITY)
|
|
292577
|
-
this.oidcAuthority = process.env.OIDC_AUTHORITY;
|
|
292578
|
-
this.oidcRedirect = (undefined === process.env.OIDC_REDIRECT) ? "http://localhost:5000" : process.env.OIDC_REDIRECT;
|
|
292579
|
-
// Parse GPRId
|
|
292580
|
-
if (undefined !== process.env.GPRID)
|
|
292581
|
-
this.gprid = process.env.GPRID;
|
|
292582
|
-
// Parse the iModel variables
|
|
292583
|
-
if (!process.env.IMODEL_PROJECTID && !process.env.IMODEL_PROJECTNAME)
|
|
292584
|
-
throw new Error("Missing the 'IMODEL_PROJECTID' or 'IMODEL_PROJECTNAME' setting.");
|
|
292585
|
-
if (!process.env.IMODEL_IMODELID && !process.env.IMODEL_IMODELNAME)
|
|
292586
|
-
throw new Error("Missing the 'IMODEL_IMODELID' or 'IMODEL_IMODELNAME' setting.");
|
|
292587
|
-
this.iModel = {
|
|
292588
|
-
useName: !process.env.IMODEL_IMODELID,
|
|
292589
|
-
id: process.env.IMODEL_IMODELID,
|
|
292590
|
-
name: process.env.IMODEL_IMODELNAME,
|
|
292591
|
-
useITwinName: !process.env.IMODEL_PROJECTID,
|
|
292592
|
-
iTwinId: process.env.IMODEL_PROJECTID,
|
|
292593
|
-
iTwinName: process.env.IMODEL_PROJECTNAME,
|
|
292594
|
-
changesetId: process.env.IMODEL_CHANGESETID,
|
|
292595
|
-
};
|
|
292596
|
-
// Parse logging level
|
|
292597
|
-
if (undefined !== process.env.LOG_LEVEL) {
|
|
292598
|
-
const level = parseInt(process.env.LOG_LEVEL, 10);
|
|
292599
|
-
if (!isNaN(level) && undefined !== core_bentley_1.LogLevel[level])
|
|
292600
|
-
this.logLevel = level;
|
|
292601
|
-
}
|
|
292602
|
-
// Get backend data
|
|
292603
|
-
if (undefined === process.env.BACKEND_LOCATION)
|
|
292604
|
-
throw new Error("Missing the 'BACKEND_LOCATION' setting.");
|
|
292605
|
-
this._backend.location = process.env.BACKEND_LOCATION;
|
|
292606
|
-
if (undefined === process.env.BACKEND_VERSION)
|
|
292607
|
-
throw new Error("Missing the 'BACKEND_VERSION' setting.");
|
|
292608
|
-
this._backend.version = process.env.BACKEND_VERSION;
|
|
292609
|
-
if (undefined === process.env.BACKEND_NAME)
|
|
292610
|
-
throw new Error("Missing the 'BACKEND_NAME' setting.");
|
|
292611
|
-
this._backend.name = process.env.BACKEND_NAME;
|
|
292612
|
-
// Get users
|
|
292613
|
-
this.users.push({
|
|
292614
|
-
email: process.env.USER_WITH_ACCESS_USERNAME || "",
|
|
292615
|
-
password: process.env.USER_WITH_ACCESS_PASSWORD || "",
|
|
292616
|
-
});
|
|
292617
|
-
}
|
|
292618
|
-
toString() {
|
|
292619
|
-
return `Configurations:
|
|
292620
|
-
oidc client id: ${this.oidcClientId},
|
|
292621
|
-
oidc scopes: ${this.oidcScopes},
|
|
292622
|
-
applicationId: ${this.gprid},
|
|
292623
|
-
log level: ${this.logLevel}`;
|
|
292624
|
-
}
|
|
292625
|
-
}
|
|
292626
|
-
exports.Settings = Settings;
|
|
292606
|
+
|
|
292607
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292608
|
+
exports.Settings = exports.getRpcInterfaces = void 0;
|
|
292609
|
+
/*---------------------------------------------------------------------------------------------
|
|
292610
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292611
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292612
|
+
*--------------------------------------------------------------------------------------------*/
|
|
292613
|
+
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
292614
|
+
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
292615
|
+
const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
|
|
292616
|
+
function getRpcInterfaces() {
|
|
292617
|
+
const rpcInterfaces = [];
|
|
292618
|
+
rpcInterfaces.push(core_common_1.IModelReadRpcInterface);
|
|
292619
|
+
rpcInterfaces.push(ecschema_rpcinterface_common_1.ECSchemaRpcInterface);
|
|
292620
|
+
return rpcInterfaces;
|
|
292621
|
+
}
|
|
292622
|
+
exports.getRpcInterfaces = getRpcInterfaces;
|
|
292623
|
+
class Settings {
|
|
292624
|
+
constructor(env) {
|
|
292625
|
+
this._backend = {};
|
|
292626
|
+
this.users = [];
|
|
292627
|
+
this.iModel = {};
|
|
292628
|
+
const isFrontend = (typeof (process) === "undefined");
|
|
292629
|
+
if (!isFrontend && undefined === env.TF_BUILD) {
|
|
292630
|
+
const path = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
292631
|
+
const dotenv = __webpack_require__(/*! dotenv */ "../../common/temp/node_modules/.pnpm/dotenv@10.0.0/node_modules/dotenv/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
292632
|
+
const dotenvExpand = __webpack_require__(/*! dotenv-expand */ "../../common/temp/node_modules/.pnpm/dotenv-expand@5.1.0/node_modules/dotenv-expand/lib/main.js"); // eslint-disable-line @typescript-eslint/no-var-requires
|
|
292633
|
+
// First check in process.cwd() for the config
|
|
292634
|
+
let result = dotenv.config();
|
|
292635
|
+
if (result.error) {
|
|
292636
|
+
const potential = path.resolve(process.cwd(), "..", "..", "..", "imodeljs-config", ".env");
|
|
292637
|
+
result = dotenv.config({ path: potential });
|
|
292638
|
+
if (result.error)
|
|
292639
|
+
throw result.error;
|
|
292640
|
+
}
|
|
292641
|
+
dotenvExpand(result);
|
|
292642
|
+
}
|
|
292643
|
+
if (isFrontend)
|
|
292644
|
+
globalThis.process = { browser: true, env };
|
|
292645
|
+
// Loads the config out of the environment.
|
|
292646
|
+
this.load();
|
|
292647
|
+
}
|
|
292648
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
292649
|
+
get Backend() { return this._backend; }
|
|
292650
|
+
get user() { return this.users[0]; }
|
|
292651
|
+
/** Loads the necessary variables from `process.env`.
|
|
292652
|
+
*/
|
|
292653
|
+
load() {
|
|
292654
|
+
// Parse OIDC
|
|
292655
|
+
if (undefined === process.env.OIDC_CLIENT_ID)
|
|
292656
|
+
throw new Error("Missing the 'OIDC_CLIENT_ID' setting.");
|
|
292657
|
+
this.oidcClientId = process.env.OIDC_CLIENT_ID;
|
|
292658
|
+
if (undefined === process.env.OIDC_SCOPES)
|
|
292659
|
+
throw new Error("Missing the 'OIDC_SCOPES' setting");
|
|
292660
|
+
this.oidcScopes = process.env.OIDC_SCOPES;
|
|
292661
|
+
if (process.env.OIDC_AUTHORITY)
|
|
292662
|
+
this.oidcAuthority = process.env.OIDC_AUTHORITY;
|
|
292663
|
+
this.oidcRedirect = (undefined === process.env.OIDC_REDIRECT) ? "http://localhost:5000" : process.env.OIDC_REDIRECT;
|
|
292664
|
+
// Parse GPRId
|
|
292665
|
+
if (undefined !== process.env.GPRID)
|
|
292666
|
+
this.gprid = process.env.GPRID;
|
|
292667
|
+
// Parse the iModel variables
|
|
292668
|
+
if (!process.env.IMODEL_PROJECTID && !process.env.IMODEL_PROJECTNAME)
|
|
292669
|
+
throw new Error("Missing the 'IMODEL_PROJECTID' or 'IMODEL_PROJECTNAME' setting.");
|
|
292670
|
+
if (!process.env.IMODEL_IMODELID && !process.env.IMODEL_IMODELNAME)
|
|
292671
|
+
throw new Error("Missing the 'IMODEL_IMODELID' or 'IMODEL_IMODELNAME' setting.");
|
|
292672
|
+
this.iModel = {
|
|
292673
|
+
useName: !process.env.IMODEL_IMODELID,
|
|
292674
|
+
id: process.env.IMODEL_IMODELID,
|
|
292675
|
+
name: process.env.IMODEL_IMODELNAME,
|
|
292676
|
+
useITwinName: !process.env.IMODEL_PROJECTID,
|
|
292677
|
+
iTwinId: process.env.IMODEL_PROJECTID,
|
|
292678
|
+
iTwinName: process.env.IMODEL_PROJECTNAME,
|
|
292679
|
+
changesetId: process.env.IMODEL_CHANGESETID,
|
|
292680
|
+
};
|
|
292681
|
+
// Parse logging level
|
|
292682
|
+
if (undefined !== process.env.LOG_LEVEL) {
|
|
292683
|
+
const level = parseInt(process.env.LOG_LEVEL, 10);
|
|
292684
|
+
if (!isNaN(level) && undefined !== core_bentley_1.LogLevel[level])
|
|
292685
|
+
this.logLevel = level;
|
|
292686
|
+
}
|
|
292687
|
+
// Get backend data
|
|
292688
|
+
if (undefined === process.env.BACKEND_LOCATION)
|
|
292689
|
+
throw new Error("Missing the 'BACKEND_LOCATION' setting.");
|
|
292690
|
+
this._backend.location = process.env.BACKEND_LOCATION;
|
|
292691
|
+
if (undefined === process.env.BACKEND_VERSION)
|
|
292692
|
+
throw new Error("Missing the 'BACKEND_VERSION' setting.");
|
|
292693
|
+
this._backend.version = process.env.BACKEND_VERSION;
|
|
292694
|
+
if (undefined === process.env.BACKEND_NAME)
|
|
292695
|
+
throw new Error("Missing the 'BACKEND_NAME' setting.");
|
|
292696
|
+
this._backend.name = process.env.BACKEND_NAME;
|
|
292697
|
+
// Get users
|
|
292698
|
+
this.users.push({
|
|
292699
|
+
email: process.env.USER_WITH_ACCESS_USERNAME || "",
|
|
292700
|
+
password: process.env.USER_WITH_ACCESS_PASSWORD || "",
|
|
292701
|
+
});
|
|
292702
|
+
}
|
|
292703
|
+
toString() {
|
|
292704
|
+
return `Configurations:
|
|
292705
|
+
oidc client id: ${this.oidcClientId},
|
|
292706
|
+
oidc scopes: ${this.oidcScopes},
|
|
292707
|
+
applicationId: ${this.gprid},
|
|
292708
|
+
log level: ${this.logLevel}`;
|
|
292709
|
+
}
|
|
292710
|
+
}
|
|
292711
|
+
exports.Settings = Settings;
|
|
292627
292712
|
|
|
292628
292713
|
|
|
292629
292714
|
/***/ }),
|
|
@@ -292635,25 +292720,25 @@ exports.Settings = Settings;
|
|
|
292635
292720
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
292636
292721
|
|
|
292637
292722
|
"use strict";
|
|
292638
|
-
|
|
292639
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292640
|
-
exports.getProcessEnvFromBackend = exports.exposeBackendCallbacks = void 0;
|
|
292641
|
-
/*---------------------------------------------------------------------------------------------
|
|
292642
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292643
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292644
|
-
*--------------------------------------------------------------------------------------------*/
|
|
292645
|
-
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../tools/certa/lib/utils/CallbackUtils.js");
|
|
292646
|
-
const getEnvCallbackName = "getEnv";
|
|
292647
|
-
function exposeBackendCallbacks() {
|
|
292648
|
-
(0, CallbackUtils_1.registerBackendCallback)(getEnvCallbackName, () => {
|
|
292649
|
-
return JSON.stringify(process.env);
|
|
292650
|
-
});
|
|
292651
|
-
}
|
|
292652
|
-
exports.exposeBackendCallbacks = exposeBackendCallbacks;
|
|
292653
|
-
async function getProcessEnvFromBackend() {
|
|
292654
|
-
return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
|
|
292655
|
-
}
|
|
292656
|
-
exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
292723
|
+
|
|
292724
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292725
|
+
exports.getProcessEnvFromBackend = exports.exposeBackendCallbacks = void 0;
|
|
292726
|
+
/*---------------------------------------------------------------------------------------------
|
|
292727
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292728
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292729
|
+
*--------------------------------------------------------------------------------------------*/
|
|
292730
|
+
const CallbackUtils_1 = __webpack_require__(/*! @itwin/certa/lib/utils/CallbackUtils */ "../../tools/certa/lib/utils/CallbackUtils.js");
|
|
292731
|
+
const getEnvCallbackName = "getEnv";
|
|
292732
|
+
function exposeBackendCallbacks() {
|
|
292733
|
+
(0, CallbackUtils_1.registerBackendCallback)(getEnvCallbackName, () => {
|
|
292734
|
+
return JSON.stringify(process.env);
|
|
292735
|
+
});
|
|
292736
|
+
}
|
|
292737
|
+
exports.exposeBackendCallbacks = exposeBackendCallbacks;
|
|
292738
|
+
async function getProcessEnvFromBackend() {
|
|
292739
|
+
return JSON.parse(await (0, CallbackUtils_1.executeBackendCallback)(getEnvCallbackName));
|
|
292740
|
+
}
|
|
292741
|
+
exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
292657
292742
|
|
|
292658
292743
|
|
|
292659
292744
|
/***/ }),
|
|
@@ -292665,84 +292750,84 @@ exports.getProcessEnvFromBackend = getProcessEnvFromBackend;
|
|
|
292665
292750
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
292666
292751
|
|
|
292667
292752
|
"use strict";
|
|
292668
|
-
|
|
292669
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292670
|
-
exports.IModelSession = void 0;
|
|
292671
|
-
/*---------------------------------------------------------------------------------------------
|
|
292672
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292673
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292674
|
-
*--------------------------------------------------------------------------------------------*/
|
|
292675
|
-
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
292676
|
-
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
292677
|
-
const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
292678
|
-
const projects_client_1 = __webpack_require__(/*! @itwin/projects-client */ "../../common/temp/node_modules/.pnpm/@itwin+projects-client@0.6.0/node_modules/@itwin/projects-client/lib/esm/projects-client.js");
|
|
292679
|
-
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
292680
|
-
class IModelSession {
|
|
292681
|
-
constructor(iModelId, iTwinId, changesetId) {
|
|
292682
|
-
this.iTwinId = iTwinId;
|
|
292683
|
-
this.iModelId = iModelId;
|
|
292684
|
-
this.changesetId = changesetId;
|
|
292685
|
-
}
|
|
292686
|
-
static async create(accessToken, iModelData) {
|
|
292687
|
-
var _a;
|
|
292688
|
-
let iTwinId;
|
|
292689
|
-
let imodelId;
|
|
292690
|
-
// Turn the iTwin name into an id
|
|
292691
|
-
if (iModelData.useITwinName && iModelData.iTwinName) {
|
|
292692
|
-
const client = new projects_client_1.ProjectsAccessClient();
|
|
292693
|
-
const iTwinList = await client.getAll(accessToken, {
|
|
292694
|
-
search: {
|
|
292695
|
-
searchString: iModelData.iTwinName,
|
|
292696
|
-
propertyName: projects_client_1.ProjectsSearchableProperty.Name,
|
|
292697
|
-
exactMatch: true,
|
|
292698
|
-
},
|
|
292699
|
-
});
|
|
292700
|
-
if (iTwinList.length === 0)
|
|
292701
|
-
throw new Error(`ITwin ${iModelData.iTwinName} was not found for the user.`);
|
|
292702
|
-
else if (iTwinList.length > 1)
|
|
292703
|
-
throw new Error(`Multiple iTwins named ${iModelData.iTwinName} were found for the user.`);
|
|
292704
|
-
iTwinId = iTwinList[0].id;
|
|
292705
|
-
}
|
|
292706
|
-
else
|
|
292707
|
-
iTwinId = iModelData.iTwinId;
|
|
292708
|
-
if (iModelData.useName) {
|
|
292709
|
-
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` } });
|
|
292710
|
-
const iModels = imodelClient.iModels.getRepresentationList({
|
|
292711
|
-
authorization: imodels_access_frontend_1.AccessTokenAdapter.toAuthorizationCallback(accessToken),
|
|
292712
|
-
urlParams: {
|
|
292713
|
-
projectId: iTwinId,
|
|
292714
|
-
name: iModelData.name,
|
|
292715
|
-
},
|
|
292716
|
-
});
|
|
292717
|
-
for await (const iModel of iModels) {
|
|
292718
|
-
imodelId = iModel.id;
|
|
292719
|
-
break;
|
|
292720
|
-
}
|
|
292721
|
-
if (!imodelId)
|
|
292722
|
-
throw new Error(`The iModel ${iModelData.name} does not exist in iTwin ${iTwinId}.`);
|
|
292723
|
-
}
|
|
292724
|
-
else
|
|
292725
|
-
imodelId = iModelData.id;
|
|
292726
|
-
console.log(`Using iModel { name:${iModelData.name}, id:${imodelId}, iTwinId:${iTwinId}, changesetId:${iModelData.changesetId} }`); // eslint-disable-line no-console
|
|
292727
|
-
return new IModelSession(imodelId, iTwinId, iModelData.changesetId);
|
|
292728
|
-
}
|
|
292729
|
-
async getConnection() {
|
|
292730
|
-
return undefined === this._iModel ? this.open() : this._iModel;
|
|
292731
|
-
}
|
|
292732
|
-
async open() {
|
|
292733
|
-
try {
|
|
292734
|
-
// eslint-disable-next-line no-console
|
|
292735
|
-
console.log(`Environment: ${process.env.IMJS_URL_PREFIX}`);
|
|
292736
|
-
this._iModel = await core_frontend_1.CheckpointConnection.openRemote(this.iTwinId, this.iModelId);
|
|
292737
|
-
(0, chai_1.expect)(this._iModel).to.exist;
|
|
292738
|
-
}
|
|
292739
|
-
catch (e) {
|
|
292740
|
-
throw new Error(`Failed to open test iModel. Error: ${e.message}`);
|
|
292741
|
-
}
|
|
292742
|
-
return this._iModel;
|
|
292743
|
-
}
|
|
292744
|
-
}
|
|
292745
|
-
exports.IModelSession = IModelSession;
|
|
292753
|
+
|
|
292754
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292755
|
+
exports.IModelSession = void 0;
|
|
292756
|
+
/*---------------------------------------------------------------------------------------------
|
|
292757
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292758
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292759
|
+
*--------------------------------------------------------------------------------------------*/
|
|
292760
|
+
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
292761
|
+
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
292762
|
+
const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
|
|
292763
|
+
const projects_client_1 = __webpack_require__(/*! @itwin/projects-client */ "../../common/temp/node_modules/.pnpm/@itwin+projects-client@0.6.0/node_modules/@itwin/projects-client/lib/esm/projects-client.js");
|
|
292764
|
+
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
|
|
292765
|
+
class IModelSession {
|
|
292766
|
+
constructor(iModelId, iTwinId, changesetId) {
|
|
292767
|
+
this.iTwinId = iTwinId;
|
|
292768
|
+
this.iModelId = iModelId;
|
|
292769
|
+
this.changesetId = changesetId;
|
|
292770
|
+
}
|
|
292771
|
+
static async create(accessToken, iModelData) {
|
|
292772
|
+
var _a;
|
|
292773
|
+
let iTwinId;
|
|
292774
|
+
let imodelId;
|
|
292775
|
+
// Turn the iTwin name into an id
|
|
292776
|
+
if (iModelData.useITwinName && iModelData.iTwinName) {
|
|
292777
|
+
const client = new projects_client_1.ProjectsAccessClient();
|
|
292778
|
+
const iTwinList = await client.getAll(accessToken, {
|
|
292779
|
+
search: {
|
|
292780
|
+
searchString: iModelData.iTwinName,
|
|
292781
|
+
propertyName: projects_client_1.ProjectsSearchableProperty.Name,
|
|
292782
|
+
exactMatch: true,
|
|
292783
|
+
},
|
|
292784
|
+
});
|
|
292785
|
+
if (iTwinList.length === 0)
|
|
292786
|
+
throw new Error(`ITwin ${iModelData.iTwinName} was not found for the user.`);
|
|
292787
|
+
else if (iTwinList.length > 1)
|
|
292788
|
+
throw new Error(`Multiple iTwins named ${iModelData.iTwinName} were found for the user.`);
|
|
292789
|
+
iTwinId = iTwinList[0].id;
|
|
292790
|
+
}
|
|
292791
|
+
else
|
|
292792
|
+
iTwinId = iModelData.iTwinId;
|
|
292793
|
+
if (iModelData.useName) {
|
|
292794
|
+
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` } });
|
|
292795
|
+
const iModels = imodelClient.iModels.getRepresentationList({
|
|
292796
|
+
authorization: imodels_access_frontend_1.AccessTokenAdapter.toAuthorizationCallback(accessToken),
|
|
292797
|
+
urlParams: {
|
|
292798
|
+
projectId: iTwinId,
|
|
292799
|
+
name: iModelData.name,
|
|
292800
|
+
},
|
|
292801
|
+
});
|
|
292802
|
+
for await (const iModel of iModels) {
|
|
292803
|
+
imodelId = iModel.id;
|
|
292804
|
+
break;
|
|
292805
|
+
}
|
|
292806
|
+
if (!imodelId)
|
|
292807
|
+
throw new Error(`The iModel ${iModelData.name} does not exist in iTwin ${iTwinId}.`);
|
|
292808
|
+
}
|
|
292809
|
+
else
|
|
292810
|
+
imodelId = iModelData.id;
|
|
292811
|
+
console.log(`Using iModel { name:${iModelData.name}, id:${imodelId}, iTwinId:${iTwinId}, changesetId:${iModelData.changesetId} }`); // eslint-disable-line no-console
|
|
292812
|
+
return new IModelSession(imodelId, iTwinId, iModelData.changesetId);
|
|
292813
|
+
}
|
|
292814
|
+
async getConnection() {
|
|
292815
|
+
return undefined === this._iModel ? this.open() : this._iModel;
|
|
292816
|
+
}
|
|
292817
|
+
async open() {
|
|
292818
|
+
try {
|
|
292819
|
+
// eslint-disable-next-line no-console
|
|
292820
|
+
console.log(`Environment: ${process.env.IMJS_URL_PREFIX}`);
|
|
292821
|
+
this._iModel = await core_frontend_1.CheckpointConnection.openRemote(this.iTwinId, this.iModelId);
|
|
292822
|
+
(0, chai_1.expect)(this._iModel).to.exist;
|
|
292823
|
+
}
|
|
292824
|
+
catch (e) {
|
|
292825
|
+
throw new Error(`Failed to open test iModel. Error: ${e.message}`);
|
|
292826
|
+
}
|
|
292827
|
+
return this._iModel;
|
|
292828
|
+
}
|
|
292829
|
+
}
|
|
292830
|
+
exports.IModelSession = IModelSession;
|
|
292746
292831
|
|
|
292747
292832
|
|
|
292748
292833
|
/***/ }),
|
|
@@ -292754,74 +292839,74 @@ exports.IModelSession = IModelSession;
|
|
|
292754
292839
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
292755
292840
|
|
|
292756
292841
|
"use strict";
|
|
292757
|
-
|
|
292758
|
-
/*---------------------------------------------------------------------------------------------
|
|
292759
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292760
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292761
|
-
*--------------------------------------------------------------------------------------------*/
|
|
292762
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292763
|
-
exports.TestContext = void 0;
|
|
292764
|
-
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
292765
|
-
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
292766
|
-
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
292767
|
-
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
|
|
292768
|
-
const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/common/Settings.js");
|
|
292769
|
-
const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
|
|
292770
|
-
const IModelSession_1 = __webpack_require__(/*! ./IModelSession */ "./lib/frontend/setup/IModelSession.js");
|
|
292771
|
-
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
292772
|
-
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.
|
|
292773
|
-
const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.
|
|
292774
|
-
class TestContext {
|
|
292775
|
-
constructor(env) {
|
|
292776
|
-
this.settings = new Settings_1.Settings(env);
|
|
292777
|
-
}
|
|
292778
|
-
static async instance() {
|
|
292779
|
-
if (this._instance === undefined) {
|
|
292780
|
-
this._instance = new TestContext(await (0, SideChannels_1.getProcessEnvFromBackend)());
|
|
292781
|
-
await this._instance.initialize();
|
|
292782
|
-
}
|
|
292783
|
-
return this._instance;
|
|
292784
|
-
}
|
|
292785
|
-
/** Initialize configuration for the rpc interfaces used by the application. */
|
|
292786
|
-
initializeRpcInterfaces(info) {
|
|
292787
|
-
// Url without trailing slash
|
|
292788
|
-
const uriPrefix = this.settings.Backend.location.replace(/\/$/, "");
|
|
292789
|
-
core_common_1.BentleyCloudRpcManager.initializeClient({ info, uriPrefix }, (0, Settings_1.getRpcInterfaces)());
|
|
292790
|
-
}
|
|
292791
|
-
async initialize() {
|
|
292792
|
-
var _a;
|
|
292793
|
-
(0, chai_1.expect)(this.settings.users.length).to.be.gte(1, `Unexpected number of users found in settings - got ${this.settings.users.length}, expected at least 2`);
|
|
292794
|
-
// Print out the configuration
|
|
292795
|
-
console.log(this.settings.toString()); // eslint-disable-line
|
|
292796
|
-
// Configure iTwin.js frontend logging to go to the console
|
|
292797
|
-
core_bentley_1.Logger.initializeToConsole();
|
|
292798
|
-
core_bentley_1.Logger.setLevelDefault(this.settings.logLevel === undefined ? core_bentley_1.LogLevel.Warning : this.settings.logLevel);
|
|
292799
|
-
if (undefined !== this.settings.oidcClientId) {
|
|
292800
|
-
this.adminUserAccessToken = await (0, frontend_1.getAccessTokenFromBackend)({
|
|
292801
|
-
email: this.settings.users[0].email,
|
|
292802
|
-
password: this.settings.users[0].password,
|
|
292803
|
-
}, {
|
|
292804
|
-
clientId: this.settings.oidcClientId,
|
|
292805
|
-
redirectUri: this.settings.oidcRedirect,
|
|
292806
|
-
scope: this.settings.oidcScopes,
|
|
292807
|
-
authority: this.settings.oidcAuthority,
|
|
292808
|
-
});
|
|
292809
|
-
}
|
|
292810
|
-
const iModelData = this.settings.iModel;
|
|
292811
|
-
this.iModelWithChangesets = await IModelSession_1.IModelSession.create(this.adminUserAccessToken, iModelData);
|
|
292812
|
-
this.iTwinId = this.iModelWithChangesets.iTwinId;
|
|
292813
|
-
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
292814
|
-
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` } });
|
|
292815
|
-
await core_frontend_1.NoRenderApp.startup({
|
|
292816
|
-
applicationId: this.settings.gprid,
|
|
292817
|
-
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
292818
|
-
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
292819
|
-
});
|
|
292820
|
-
console.log("TestSetup: Done"); // eslint-disable-line
|
|
292821
|
-
}
|
|
292822
|
-
}
|
|
292823
|
-
exports.TestContext = TestContext;
|
|
292824
|
-
TestContext._instance = undefined;
|
|
292842
|
+
|
|
292843
|
+
/*---------------------------------------------------------------------------------------------
|
|
292844
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
292845
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
292846
|
+
*--------------------------------------------------------------------------------------------*/
|
|
292847
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
292848
|
+
exports.TestContext = void 0;
|
|
292849
|
+
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
292850
|
+
const core_bentley_1 = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
292851
|
+
const core_frontend_1 = __webpack_require__(/*! @itwin/core-frontend */ "../../core/frontend/lib/esm/core-frontend.js");
|
|
292852
|
+
const frontend_1 = __webpack_require__(/*! @itwin/oidc-signin-tool/lib/cjs/frontend */ "../../common/temp/node_modules/.pnpm/@itwin+oidc-signin-tool@3.6.1/node_modules/@itwin/oidc-signin-tool/lib/cjs/frontend.js");
|
|
292853
|
+
const Settings_1 = __webpack_require__(/*! ../../common/Settings */ "./lib/common/Settings.js");
|
|
292854
|
+
const SideChannels_1 = __webpack_require__(/*! ../../common/SideChannels */ "./lib/common/SideChannels.js");
|
|
292855
|
+
const IModelSession_1 = __webpack_require__(/*! ./IModelSession */ "./lib/frontend/setup/IModelSession.js");
|
|
292856
|
+
const core_common_1 = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
292857
|
+
const imodels_access_frontend_1 = __webpack_require__(/*! @itwin/imodels-access-frontend */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-access-frontend@2.3.0/node_modules/@itwin/imodels-access-frontend/lib/esm/index.js");
|
|
292858
|
+
const imodels_client_management_1 = __webpack_require__(/*! @itwin/imodels-client-management */ "../../common/temp/node_modules/.pnpm/@itwin+imodels-client-management@2.3.0/node_modules/@itwin/imodels-client-management/lib/esm/index.js");
|
|
292859
|
+
class TestContext {
|
|
292860
|
+
constructor(env) {
|
|
292861
|
+
this.settings = new Settings_1.Settings(env);
|
|
292862
|
+
}
|
|
292863
|
+
static async instance() {
|
|
292864
|
+
if (this._instance === undefined) {
|
|
292865
|
+
this._instance = new TestContext(await (0, SideChannels_1.getProcessEnvFromBackend)());
|
|
292866
|
+
await this._instance.initialize();
|
|
292867
|
+
}
|
|
292868
|
+
return this._instance;
|
|
292869
|
+
}
|
|
292870
|
+
/** Initialize configuration for the rpc interfaces used by the application. */
|
|
292871
|
+
initializeRpcInterfaces(info) {
|
|
292872
|
+
// Url without trailing slash
|
|
292873
|
+
const uriPrefix = this.settings.Backend.location.replace(/\/$/, "");
|
|
292874
|
+
core_common_1.BentleyCloudRpcManager.initializeClient({ info, uriPrefix }, (0, Settings_1.getRpcInterfaces)());
|
|
292875
|
+
}
|
|
292876
|
+
async initialize() {
|
|
292877
|
+
var _a;
|
|
292878
|
+
(0, chai_1.expect)(this.settings.users.length).to.be.gte(1, `Unexpected number of users found in settings - got ${this.settings.users.length}, expected at least 2`);
|
|
292879
|
+
// Print out the configuration
|
|
292880
|
+
console.log(this.settings.toString()); // eslint-disable-line
|
|
292881
|
+
// Configure iTwin.js frontend logging to go to the console
|
|
292882
|
+
core_bentley_1.Logger.initializeToConsole();
|
|
292883
|
+
core_bentley_1.Logger.setLevelDefault(this.settings.logLevel === undefined ? core_bentley_1.LogLevel.Warning : this.settings.logLevel);
|
|
292884
|
+
if (undefined !== this.settings.oidcClientId) {
|
|
292885
|
+
this.adminUserAccessToken = await (0, frontend_1.getAccessTokenFromBackend)({
|
|
292886
|
+
email: this.settings.users[0].email,
|
|
292887
|
+
password: this.settings.users[0].password,
|
|
292888
|
+
}, {
|
|
292889
|
+
clientId: this.settings.oidcClientId,
|
|
292890
|
+
redirectUri: this.settings.oidcRedirect,
|
|
292891
|
+
scope: this.settings.oidcScopes,
|
|
292892
|
+
authority: this.settings.oidcAuthority,
|
|
292893
|
+
});
|
|
292894
|
+
}
|
|
292895
|
+
const iModelData = this.settings.iModel;
|
|
292896
|
+
this.iModelWithChangesets = await IModelSession_1.IModelSession.create(this.adminUserAccessToken, iModelData);
|
|
292897
|
+
this.iTwinId = this.iModelWithChangesets.iTwinId;
|
|
292898
|
+
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
292899
|
+
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` } });
|
|
292900
|
+
await core_frontend_1.NoRenderApp.startup({
|
|
292901
|
+
applicationId: this.settings.gprid,
|
|
292902
|
+
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
292903
|
+
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
292904
|
+
});
|
|
292905
|
+
console.log("TestSetup: Done"); // eslint-disable-line
|
|
292906
|
+
}
|
|
292907
|
+
}
|
|
292908
|
+
exports.TestContext = TestContext;
|
|
292909
|
+
TestContext._instance = undefined;
|
|
292825
292910
|
|
|
292826
292911
|
|
|
292827
292912
|
/***/ }),
|
|
@@ -299503,10 +299588,10 @@ const gBase64 = {
|
|
|
299503
299588
|
|
|
299504
299589
|
/***/ }),
|
|
299505
299590
|
|
|
299506
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299507
|
-
|
|
299508
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299509
|
-
|
|
299591
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
299592
|
+
/*!******************************************************************************************************************************!*\
|
|
299593
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
299594
|
+
\******************************************************************************************************************************/
|
|
299510
299595
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299511
299596
|
|
|
299512
299597
|
"use strict";
|
|
@@ -299522,10 +299607,10 @@ function _arrayLikeToArray(arr, len) {
|
|
|
299522
299607
|
|
|
299523
299608
|
/***/ }),
|
|
299524
299609
|
|
|
299525
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299526
|
-
|
|
299527
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299528
|
-
|
|
299610
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
299611
|
+
/*!****************************************************************************************************************************!*\
|
|
299612
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
299613
|
+
\****************************************************************************************************************************/
|
|
299529
299614
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299530
299615
|
|
|
299531
299616
|
"use strict";
|
|
@@ -299539,10 +299624,10 @@ function _arrayWithHoles(arr) {
|
|
|
299539
299624
|
|
|
299540
299625
|
/***/ }),
|
|
299541
299626
|
|
|
299542
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299543
|
-
|
|
299544
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299545
|
-
|
|
299627
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js":
|
|
299628
|
+
/*!***********************************************************************************************************************************!*\
|
|
299629
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***!
|
|
299630
|
+
\***********************************************************************************************************************************/
|
|
299546
299631
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299547
299632
|
|
|
299548
299633
|
"use strict";
|
|
@@ -299559,10 +299644,10 @@ function _assertThisInitialized(self) {
|
|
|
299559
299644
|
|
|
299560
299645
|
/***/ }),
|
|
299561
299646
|
|
|
299562
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299563
|
-
|
|
299564
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299565
|
-
|
|
299647
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js":
|
|
299648
|
+
/*!****************************************************************************************************************************!*\
|
|
299649
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***!
|
|
299650
|
+
\****************************************************************************************************************************/
|
|
299566
299651
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299567
299652
|
|
|
299568
299653
|
"use strict";
|
|
@@ -299578,10 +299663,10 @@ function _classCallCheck(instance, Constructor) {
|
|
|
299578
299663
|
|
|
299579
299664
|
/***/ }),
|
|
299580
299665
|
|
|
299581
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299582
|
-
|
|
299583
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299584
|
-
|
|
299666
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/createClass.js":
|
|
299667
|
+
/*!*************************************************************************************************************************!*\
|
|
299668
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
|
299669
|
+
\*************************************************************************************************************************/
|
|
299585
299670
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299586
299671
|
|
|
299587
299672
|
"use strict";
|
|
@@ -299589,7 +299674,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299589
299674
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299590
299675
|
/* harmony export */ "default": () => (/* binding */ _createClass)
|
|
299591
299676
|
/* harmony export */ });
|
|
299592
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299677
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
|
|
299593
299678
|
|
|
299594
299679
|
function _defineProperties(target, props) {
|
|
299595
299680
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -299611,10 +299696,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
299611
299696
|
|
|
299612
299697
|
/***/ }),
|
|
299613
299698
|
|
|
299614
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299615
|
-
|
|
299616
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299617
|
-
|
|
299699
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
299700
|
+
/*!****************************************************************************************************************************!*\
|
|
299701
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
299702
|
+
\****************************************************************************************************************************/
|
|
299618
299703
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299619
299704
|
|
|
299620
299705
|
"use strict";
|
|
@@ -299622,7 +299707,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299622
299707
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299623
299708
|
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
|
299624
299709
|
/* harmony export */ });
|
|
299625
|
-
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299710
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
|
|
299626
299711
|
|
|
299627
299712
|
function _defineProperty(obj, key, value) {
|
|
299628
299713
|
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
|
@@ -299641,10 +299726,10 @@ function _defineProperty(obj, key, value) {
|
|
|
299641
299726
|
|
|
299642
299727
|
/***/ }),
|
|
299643
299728
|
|
|
299644
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299645
|
-
|
|
299646
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299647
|
-
|
|
299729
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js":
|
|
299730
|
+
/*!****************************************************************************************************************************!*\
|
|
299731
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***!
|
|
299732
|
+
\****************************************************************************************************************************/
|
|
299648
299733
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299649
299734
|
|
|
299650
299735
|
"use strict";
|
|
@@ -299661,10 +299746,10 @@ function _getPrototypeOf(o) {
|
|
|
299661
299746
|
|
|
299662
299747
|
/***/ }),
|
|
299663
299748
|
|
|
299664
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299665
|
-
|
|
299666
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299667
|
-
|
|
299749
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/inherits.js":
|
|
299750
|
+
/*!**********************************************************************************************************************!*\
|
|
299751
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/inherits.js ***!
|
|
299752
|
+
\**********************************************************************************************************************/
|
|
299668
299753
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299669
299754
|
|
|
299670
299755
|
"use strict";
|
|
@@ -299672,7 +299757,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299672
299757
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299673
299758
|
/* harmony export */ "default": () => (/* binding */ _inherits)
|
|
299674
299759
|
/* harmony export */ });
|
|
299675
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299760
|
+
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
299676
299761
|
|
|
299677
299762
|
function _inherits(subClass, superClass) {
|
|
299678
299763
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -299693,10 +299778,10 @@ function _inherits(subClass, superClass) {
|
|
|
299693
299778
|
|
|
299694
299779
|
/***/ }),
|
|
299695
299780
|
|
|
299696
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299697
|
-
|
|
299698
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299699
|
-
|
|
299781
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js":
|
|
299782
|
+
/*!*****************************************************************************************************************************!*\
|
|
299783
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***!
|
|
299784
|
+
\*****************************************************************************************************************************/
|
|
299700
299785
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299701
299786
|
|
|
299702
299787
|
"use strict";
|
|
@@ -299710,10 +299795,10 @@ function _iterableToArray(iter) {
|
|
|
299710
299795
|
|
|
299711
299796
|
/***/ }),
|
|
299712
299797
|
|
|
299713
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299714
|
-
|
|
299715
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299716
|
-
|
|
299798
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
299799
|
+
/*!*****************************************************************************************************************************!*\
|
|
299800
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
299801
|
+
\*****************************************************************************************************************************/
|
|
299717
299802
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299718
299803
|
|
|
299719
299804
|
"use strict";
|
|
@@ -299727,10 +299812,10 @@ function _nonIterableRest() {
|
|
|
299727
299812
|
|
|
299728
299813
|
/***/ }),
|
|
299729
299814
|
|
|
299730
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299731
|
-
|
|
299732
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299733
|
-
|
|
299815
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js":
|
|
299816
|
+
/*!***************************************************************************************************************************************!*\
|
|
299817
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***!
|
|
299818
|
+
\***************************************************************************************************************************************/
|
|
299734
299819
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299735
299820
|
|
|
299736
299821
|
"use strict";
|
|
@@ -299738,8 +299823,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299738
299823
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299739
299824
|
/* harmony export */ "default": () => (/* binding */ _possibleConstructorReturn)
|
|
299740
299825
|
/* harmony export */ });
|
|
299741
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299742
|
-
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299826
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
299827
|
+
/* harmony import */ var _assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
299743
299828
|
|
|
299744
299829
|
|
|
299745
299830
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -299753,10 +299838,10 @@ function _possibleConstructorReturn(self, call) {
|
|
|
299753
299838
|
|
|
299754
299839
|
/***/ }),
|
|
299755
299840
|
|
|
299756
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299757
|
-
|
|
299758
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299759
|
-
|
|
299841
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":
|
|
299842
|
+
/*!****************************************************************************************************************************!*\
|
|
299843
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***!
|
|
299844
|
+
\****************************************************************************************************************************/
|
|
299760
299845
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299761
299846
|
|
|
299762
299847
|
"use strict";
|
|
@@ -299774,10 +299859,10 @@ function _setPrototypeOf(o, p) {
|
|
|
299774
299859
|
|
|
299775
299860
|
/***/ }),
|
|
299776
299861
|
|
|
299777
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299778
|
-
|
|
299779
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299780
|
-
|
|
299862
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toArray.js":
|
|
299863
|
+
/*!*********************************************************************************************************************!*\
|
|
299864
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toArray.js ***!
|
|
299865
|
+
\*********************************************************************************************************************/
|
|
299781
299866
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299782
299867
|
|
|
299783
299868
|
"use strict";
|
|
@@ -299785,10 +299870,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299785
299870
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299786
299871
|
/* harmony export */ "default": () => (/* binding */ _toArray)
|
|
299787
299872
|
/* harmony export */ });
|
|
299788
|
-
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299789
|
-
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299790
|
-
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299791
|
-
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299873
|
+
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
299874
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/iterableToArray.js");
|
|
299875
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
299876
|
+
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
299792
299877
|
|
|
299793
299878
|
|
|
299794
299879
|
|
|
@@ -299799,10 +299884,10 @@ function _toArray(arr) {
|
|
|
299799
299884
|
|
|
299800
299885
|
/***/ }),
|
|
299801
299886
|
|
|
299802
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299803
|
-
|
|
299804
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299805
|
-
|
|
299887
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
|
|
299888
|
+
/*!*************************************************************************************************************************!*\
|
|
299889
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
|
|
299890
|
+
\*************************************************************************************************************************/
|
|
299806
299891
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299807
299892
|
|
|
299808
299893
|
"use strict";
|
|
@@ -299810,7 +299895,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299810
299895
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299811
299896
|
/* harmony export */ "default": () => (/* binding */ _toPrimitive)
|
|
299812
299897
|
/* harmony export */ });
|
|
299813
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299898
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
299814
299899
|
|
|
299815
299900
|
function _toPrimitive(input, hint) {
|
|
299816
299901
|
if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input;
|
|
@@ -299825,10 +299910,10 @@ function _toPrimitive(input, hint) {
|
|
|
299825
299910
|
|
|
299826
299911
|
/***/ }),
|
|
299827
299912
|
|
|
299828
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299829
|
-
|
|
299830
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299831
|
-
|
|
299913
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
|
|
299914
|
+
/*!***************************************************************************************************************************!*\
|
|
299915
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
|
|
299916
|
+
\***************************************************************************************************************************/
|
|
299832
299917
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299833
299918
|
|
|
299834
299919
|
"use strict";
|
|
@@ -299836,8 +299921,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299836
299921
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299837
299922
|
/* harmony export */ "default": () => (/* binding */ _toPropertyKey)
|
|
299838
299923
|
/* harmony export */ });
|
|
299839
|
-
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299840
|
-
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299924
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
299925
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
|
|
299841
299926
|
|
|
299842
299927
|
|
|
299843
299928
|
function _toPropertyKey(arg) {
|
|
@@ -299847,10 +299932,10 @@ function _toPropertyKey(arg) {
|
|
|
299847
299932
|
|
|
299848
299933
|
/***/ }),
|
|
299849
299934
|
|
|
299850
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299851
|
-
|
|
299852
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299853
|
-
|
|
299935
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
299936
|
+
/*!********************************************************************************************************************!*\
|
|
299937
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
299938
|
+
\********************************************************************************************************************/
|
|
299854
299939
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299855
299940
|
|
|
299856
299941
|
"use strict";
|
|
@@ -299870,10 +299955,10 @@ function _typeof(obj) {
|
|
|
299870
299955
|
|
|
299871
299956
|
/***/ }),
|
|
299872
299957
|
|
|
299873
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299874
|
-
|
|
299875
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299876
|
-
|
|
299958
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
299959
|
+
/*!****************************************************************************************************************************************!*\
|
|
299960
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
299961
|
+
\****************************************************************************************************************************************/
|
|
299877
299962
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
299878
299963
|
|
|
299879
299964
|
"use strict";
|
|
@@ -299881,7 +299966,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
299881
299966
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
299882
299967
|
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
|
299883
299968
|
/* harmony export */ });
|
|
299884
|
-
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
299969
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
299885
299970
|
|
|
299886
299971
|
function _unsupportedIterableToArray(o, minLen) {
|
|
299887
299972
|
if (!o) return;
|
|
@@ -300315,15 +300400,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300315
300400
|
/* harmony export */ "t": () => (/* binding */ t),
|
|
300316
300401
|
/* harmony export */ "use": () => (/* binding */ use)
|
|
300317
300402
|
/* harmony export */ });
|
|
300318
|
-
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300319
|
-
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300320
|
-
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300321
|
-
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300322
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300323
|
-
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300324
|
-
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300325
|
-
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300326
|
-
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
300403
|
+
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
300404
|
+
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
300405
|
+
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
300406
|
+
/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");
|
|
300407
|
+
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/inherits.js");
|
|
300408
|
+
/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js");
|
|
300409
|
+
/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");
|
|
300410
|
+
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
300411
|
+
/* harmony import */ var _babel_runtime_helpers_esm_toArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/esm/toArray.js");
|
|
300327
300412
|
|
|
300328
300413
|
|
|
300329
300414
|
|
|
@@ -303203,7 +303288,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
303203
303288
|
/***/ ((module) => {
|
|
303204
303289
|
|
|
303205
303290
|
"use strict";
|
|
303206
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.
|
|
303291
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.2","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":"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 \\"../../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.6.2","@itwin/core-bentley":"workspace:^3.6.2","@itwin/core-common":"workspace:^3.6.2","@itwin/core-geometry":"workspace:^3.6.2","@itwin/core-orbitgt":"workspace:^3.6.2","@itwin/core-quantity":"workspace:^3.6.2","@itwin/webgl-compatibility":"workspace:^3.6.2"},"//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.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@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":"^7.11.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":"~4.4.0","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.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@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.3","semver":"^7.3.5","superagent":"^7.1.5","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"}}]}}');
|
|
303207
303292
|
|
|
303208
303293
|
/***/ })
|
|
303209
303294
|
|
|
@@ -303370,7 +303455,7 @@ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0","d
|
|
|
303370
303455
|
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
303371
303456
|
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
303372
303457
|
/******/ if(prev) return prev(event);
|
|
303373
|
-
/******/ }
|
|
303458
|
+
/******/ }
|
|
303374
303459
|
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
303375
303460
|
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
303376
303461
|
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
@@ -303405,7 +303490,7 @@ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0","d
|
|
|
303405
303490
|
/******/ var document = __webpack_require__.g.document;
|
|
303406
303491
|
/******/ if (!scriptUrl && document) {
|
|
303407
303492
|
/******/ if (document.currentScript)
|
|
303408
|
-
/******/ scriptUrl = document.currentScript.src
|
|
303493
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
303409
303494
|
/******/ if (!scriptUrl) {
|
|
303410
303495
|
/******/ var scripts = document.getElementsByTagName("script");
|
|
303411
303496
|
/******/ if(scripts.length) scriptUrl = scripts[scripts.length - 1].src
|
|
@@ -303517,37 +303602,37 @@ var exports = __webpack_exports__;
|
|
|
303517
303602
|
/*!*************************************************!*\
|
|
303518
303603
|
!*** ./lib/frontend/SchemaRpcInterface.test.js ***!
|
|
303519
303604
|
\*************************************************/
|
|
303520
|
-
|
|
303521
|
-
/*---------------------------------------------------------------------------------------------
|
|
303522
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
303523
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
303524
|
-
*--------------------------------------------------------------------------------------------*/
|
|
303525
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
303526
|
-
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
303527
|
-
const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
|
|
303528
|
-
const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
|
|
303529
|
-
const ecschema_metadata_1 = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/cjs/ecschema-metadata.js");
|
|
303530
|
-
describe("Schema RPC Interface", () => {
|
|
303531
|
-
let iModel;
|
|
303532
|
-
let testContext;
|
|
303533
|
-
before(async () => {
|
|
303534
|
-
testContext = await TestContext_1.TestContext.instance();
|
|
303535
|
-
iModel = await testContext.iModelWithChangesets.getConnection();
|
|
303536
|
-
});
|
|
303537
|
-
it("should get schema keys", async () => {
|
|
303538
|
-
const schemaKeys = [];
|
|
303539
|
-
const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
|
|
303540
|
-
props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
|
|
303541
|
-
(0, chai_1.expect)(schemaKeys).to.not.be.undefined;
|
|
303542
|
-
});
|
|
303543
|
-
it("should get schema JSON", async () => {
|
|
303544
|
-
const schemaKeys = [];
|
|
303545
|
-
const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
|
|
303546
|
-
props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
|
|
303547
|
-
const schemaJSON = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), schemaKeys[0].name);
|
|
303548
|
-
(0, chai_1.expect)(schemaJSON).to.not.be.undefined;
|
|
303549
|
-
});
|
|
303550
|
-
});
|
|
303605
|
+
|
|
303606
|
+
/*---------------------------------------------------------------------------------------------
|
|
303607
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
303608
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
303609
|
+
*--------------------------------------------------------------------------------------------*/
|
|
303610
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
303611
|
+
const chai_1 = __webpack_require__(/*! chai */ "../../common/temp/node_modules/.pnpm/chai@4.3.7/node_modules/chai/index.js");
|
|
303612
|
+
const ecschema_rpcinterface_common_1 = __webpack_require__(/*! @itwin/ecschema-rpcinterface-common */ "../../core/ecschema-rpc/common/lib/cjs/ecschema-rpc-interface.js");
|
|
303613
|
+
const TestContext_1 = __webpack_require__(/*! ./setup/TestContext */ "./lib/frontend/setup/TestContext.js");
|
|
303614
|
+
const ecschema_metadata_1 = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/cjs/ecschema-metadata.js");
|
|
303615
|
+
describe("Schema RPC Interface", () => {
|
|
303616
|
+
let iModel;
|
|
303617
|
+
let testContext;
|
|
303618
|
+
before(async () => {
|
|
303619
|
+
testContext = await TestContext_1.TestContext.instance();
|
|
303620
|
+
iModel = await testContext.iModelWithChangesets.getConnection();
|
|
303621
|
+
});
|
|
303622
|
+
it("should get schema keys", async () => {
|
|
303623
|
+
const schemaKeys = [];
|
|
303624
|
+
const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
|
|
303625
|
+
props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
|
|
303626
|
+
(0, chai_1.expect)(schemaKeys).to.not.be.undefined;
|
|
303627
|
+
});
|
|
303628
|
+
it("should get schema JSON", async () => {
|
|
303629
|
+
const schemaKeys = [];
|
|
303630
|
+
const props = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaKeys(iModel.getRpcProps());
|
|
303631
|
+
props.forEach((prop) => schemaKeys.push(ecschema_metadata_1.SchemaKey.fromJSON(prop)));
|
|
303632
|
+
const schemaJSON = await ecschema_rpcinterface_common_1.ECSchemaRpcInterface.getClient().getSchemaJSON(iModel.getRpcProps(), schemaKeys[0].name);
|
|
303633
|
+
(0, chai_1.expect)(schemaJSON).to.not.be.undefined;
|
|
303634
|
+
});
|
|
303635
|
+
});
|
|
303551
303636
|
|
|
303552
303637
|
})();
|
|
303553
303638
|
|