@itwin/presentation-backend 5.0.0-dev.1 → 5.0.0-dev.100
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/CHANGELOG.md +73 -1
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts +31 -4
- package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +161 -56
- package/lib/cjs/presentation-backend/ElementPropertiesHelper.js.map +1 -1
- package/lib/cjs/presentation-backend/InternalSymbols.d.ts +5 -0
- package/lib/cjs/presentation-backend/InternalSymbols.d.ts.map +1 -0
- package/lib/cjs/presentation-backend/InternalSymbols.js +16 -0
- package/lib/cjs/presentation-backend/InternalSymbols.js.map +1 -0
- package/lib/cjs/presentation-backend/NativePlatform.d.ts +2 -2
- package/lib/cjs/presentation-backend/NativePlatform.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/NativePlatform.js +5 -3
- package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
- package/lib/cjs/presentation-backend/Presentation.d.ts +2 -7
- package/lib/cjs/presentation-backend/Presentation.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/Presentation.js +40 -29
- package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts +3 -3
- package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationIpcHandler.js +5 -7
- package/lib/cjs/presentation-backend/PresentationIpcHandler.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManager.d.ts +13 -90
- package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManager.js +79 -130
- package/lib/cjs/presentation-backend/PresentationManager.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts +19 -10
- package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManagerDetail.js +83 -76
- package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts +11 -11
- package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationRpcImpl.js +111 -118
- package/lib/cjs/presentation-backend/PresentationRpcImpl.js.map +1 -1
- package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/RulesetEmbedder.js +23 -24
- package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
- package/lib/cjs/presentation-backend/RulesetManager.d.ts +1 -1
- package/lib/cjs/presentation-backend/RulesetManager.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/RulesetManager.js +2 -1
- package/lib/cjs/presentation-backend/RulesetManager.js.map +1 -1
- package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts +1 -1
- package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/RulesetVariablesManager.js +2 -0
- package/lib/cjs/presentation-backend/RulesetVariablesManager.js.map +1 -1
- package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts +2 -4
- package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/SelectionScopesHelper.js +70 -83
- package/lib/cjs/presentation-backend/SelectionScopesHelper.js.map +1 -1
- package/lib/cjs/presentation-backend/TemporaryStorage.d.ts +2 -3
- package/lib/cjs/presentation-backend/TemporaryStorage.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/TemporaryStorage.js +30 -28
- package/lib/cjs/presentation-backend/TemporaryStorage.js.map +1 -1
- package/lib/cjs/presentation-backend/Utils.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/Utils.js +15 -21
- package/lib/cjs/presentation-backend/Utils.js.map +1 -1
- package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js +2 -2
- package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
- package/lib/cjs/presentation-backend/domain/RulesetElements.js +4 -4
- package/lib/cjs/presentation-backend/domain/RulesetElements.js.map +1 -1
- package/lib/cjs/presentation-backend-internal.d.ts +2 -0
- package/lib/cjs/presentation-backend-internal.d.ts.map +1 -0
- package/lib/cjs/presentation-backend-internal.js +12 -0
- package/lib/cjs/presentation-backend-internal.js.map +1 -0
- package/lib/cjs/presentation-backend.d.ts +7 -7
- package/lib/cjs/presentation-backend.d.ts.map +1 -1
- package/lib/cjs/presentation-backend.js +11 -21
- package/lib/cjs/presentation-backend.js.map +1 -1
- package/lib/esm/presentation-backend/BackendLoggerCategory.d.ts +62 -0
- package/lib/esm/presentation-backend/BackendLoggerCategory.d.ts.map +1 -0
- package/lib/esm/presentation-backend/BackendLoggerCategory.js +69 -0
- package/lib/esm/presentation-backend/BackendLoggerCategory.js.map +1 -0
- package/lib/esm/presentation-backend/ElementPropertiesHelper.d.ts +45 -0
- package/lib/esm/presentation-backend/ElementPropertiesHelper.d.ts.map +1 -0
- package/lib/esm/presentation-backend/ElementPropertiesHelper.js +187 -0
- package/lib/esm/presentation-backend/ElementPropertiesHelper.js.map +1 -0
- package/lib/esm/presentation-backend/InternalSymbols.d.ts +5 -0
- package/lib/esm/presentation-backend/InternalSymbols.d.ts.map +1 -0
- package/lib/esm/presentation-backend/InternalSymbols.js +13 -0
- package/lib/esm/presentation-backend/InternalSymbols.js.map +1 -0
- package/lib/esm/presentation-backend/NativePlatform.d.ts +89 -0
- package/lib/esm/presentation-backend/NativePlatform.d.ts.map +1 -0
- package/lib/esm/presentation-backend/NativePlatform.js +156 -0
- package/lib/esm/presentation-backend/NativePlatform.js.map +1 -0
- package/lib/esm/presentation-backend/Presentation.d.ts +97 -0
- package/lib/esm/presentation-backend/Presentation.d.ts.map +1 -0
- package/lib/esm/presentation-backend/Presentation.js +147 -0
- package/lib/esm/presentation-backend/Presentation.js.map +1 -0
- package/lib/esm/presentation-backend/PresentationIpcHandler.d.ts +12 -0
- package/lib/esm/presentation-backend/PresentationIpcHandler.d.ts.map +1 -0
- package/lib/esm/presentation-backend/PresentationIpcHandler.js +25 -0
- package/lib/esm/presentation-backend/PresentationIpcHandler.js.map +1 -0
- package/lib/esm/presentation-backend/PresentationManager.d.ts +387 -0
- package/lib/esm/presentation-backend/PresentationManager.d.ts.map +1 -0
- package/lib/esm/presentation-backend/PresentationManager.js +352 -0
- package/lib/esm/presentation-backend/PresentationManager.js.map +1 -0
- package/lib/esm/presentation-backend/PresentationManagerDetail.d.ts +74 -0
- package/lib/esm/presentation-backend/PresentationManagerDetail.d.ts.map +1 -0
- package/lib/esm/presentation-backend/PresentationManagerDetail.js +446 -0
- package/lib/esm/presentation-backend/PresentationManagerDetail.js.map +1 -0
- package/lib/esm/presentation-backend/PresentationRpcImpl.d.ts +63 -0
- package/lib/esm/presentation-backend/PresentationRpcImpl.d.ts.map +1 -0
- package/lib/esm/presentation-backend/PresentationRpcImpl.js +409 -0
- package/lib/esm/presentation-backend/PresentationRpcImpl.js.map +1 -0
- package/lib/esm/presentation-backend/RulesetEmbedder.d.ts +109 -0
- package/lib/esm/presentation-backend/RulesetEmbedder.d.ts.map +1 -0
- package/lib/esm/presentation-backend/RulesetEmbedder.js +269 -0
- package/lib/esm/presentation-backend/RulesetEmbedder.js.map +1 -0
- package/lib/esm/presentation-backend/RulesetManager.d.ts +54 -0
- package/lib/esm/presentation-backend/RulesetManager.d.ts.map +1 -0
- package/lib/esm/presentation-backend/RulesetManager.js +74 -0
- package/lib/esm/presentation-backend/RulesetManager.js.map +1 -0
- package/lib/esm/presentation-backend/RulesetVariablesManager.d.ts +141 -0
- package/lib/esm/presentation-backend/RulesetVariablesManager.d.ts.map +1 -0
- package/lib/esm/presentation-backend/RulesetVariablesManager.js +140 -0
- package/lib/esm/presentation-backend/RulesetVariablesManager.js.map +1 -0
- package/lib/esm/presentation-backend/SelectionScopesHelper.d.ts +27 -0
- package/lib/esm/presentation-backend/SelectionScopesHelper.d.ts.map +1 -0
- package/lib/esm/presentation-backend/SelectionScopesHelper.js +227 -0
- package/lib/esm/presentation-backend/SelectionScopesHelper.js.map +1 -0
- package/lib/esm/presentation-backend/TemporaryStorage.d.ts +123 -0
- package/lib/esm/presentation-backend/TemporaryStorage.d.ts.map +1 -0
- package/lib/esm/presentation-backend/TemporaryStorage.js +157 -0
- package/lib/esm/presentation-backend/TemporaryStorage.js.map +1 -0
- package/lib/esm/presentation-backend/Utils.d.ts +50 -0
- package/lib/esm/presentation-backend/Utils.d.ts.map +1 -0
- package/lib/esm/presentation-backend/Utils.js +101 -0
- package/lib/esm/presentation-backend/Utils.js.map +1 -0
- package/lib/esm/presentation-backend/domain/PresentationRulesDomain.d.ts +17 -0
- package/lib/esm/presentation-backend/domain/PresentationRulesDomain.d.ts.map +1 -0
- package/lib/esm/presentation-backend/domain/PresentationRulesDomain.js +31 -0
- package/lib/esm/presentation-backend/domain/PresentationRulesDomain.js.map +1 -0
- package/lib/esm/presentation-backend/domain/RulesetElements.d.ts +22 -0
- package/lib/esm/presentation-backend/domain/RulesetElements.d.ts.map +1 -0
- package/lib/esm/presentation-backend/domain/RulesetElements.js +38 -0
- package/lib/esm/presentation-backend/domain/RulesetElements.js.map +1 -0
- package/lib/esm/presentation-backend/primary-presentation-rules/ElementProperties.PresentationRuleSet.json +14 -0
- package/lib/esm/presentation-backend/supplemental-presentation-rules/BisCore.PresentationRuleSet.json +701 -0
- package/lib/esm/presentation-backend/supplemental-presentation-rules/Functional.PresentationRuleSet.json +139 -0
- package/lib/esm/presentation-backend-internal.d.ts +2 -0
- package/lib/esm/presentation-backend-internal.d.ts.map +1 -0
- package/lib/esm/presentation-backend-internal.js +8 -0
- package/lib/esm/presentation-backend-internal.js.map +1 -0
- package/lib/esm/presentation-backend.d.ts +20 -0
- package/lib/esm/presentation-backend.d.ts.map +1 -0
- package/lib/esm/presentation-backend.js +21 -0
- package/lib/esm/presentation-backend.js.map +1 -0
- package/package.json +43 -36
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
4
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
6
7
|
/** @packageDocumentation
|
|
7
8
|
* @module Core
|
|
8
9
|
*/
|
|
10
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12
|
+
};
|
|
9
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
14
|
exports.getLocalizedStringEN = getLocalizedStringEN;
|
|
11
15
|
exports.getElementKey = getElementKey;
|
|
@@ -13,20 +17,20 @@ exports.normalizeVersion = normalizeVersion;
|
|
|
13
17
|
exports.combineDiagnosticsOptions = combineDiagnosticsOptions;
|
|
14
18
|
exports.reportDiagnostics = reportDiagnostics;
|
|
15
19
|
const semver_1 = require("semver");
|
|
16
|
-
const core_backend_1 = require("@itwin/core-backend");
|
|
17
|
-
const core_bentley_1 = require("@itwin/core-bentley");
|
|
18
20
|
const presentation_common_1 = require("@itwin/presentation-common");
|
|
19
|
-
const
|
|
21
|
+
const internal_1 = require("@itwin/presentation-common/internal");
|
|
22
|
+
// @ts-ignore TS complains about `with` in CJS builds, but not ESM
|
|
23
|
+
const Presentation_json_1 = __importDefault(require("@itwin/presentation-common/locales/en/Presentation.json"));
|
|
20
24
|
/** @internal */
|
|
21
25
|
function getLocalizedStringEN(key) {
|
|
22
|
-
let result =
|
|
26
|
+
let result = Presentation_json_1.default;
|
|
23
27
|
const [namespace, identifier] = key.split(":", 2);
|
|
24
28
|
if (namespace !== "Presentation") {
|
|
25
29
|
return key;
|
|
26
30
|
}
|
|
27
31
|
const keySteps = identifier.split(".");
|
|
28
32
|
for (const keyStep of keySteps) {
|
|
29
|
-
if (keyStep in result === false) {
|
|
33
|
+
if (typeof result !== "object" || keyStep in result === false) {
|
|
30
34
|
return key;
|
|
31
35
|
}
|
|
32
36
|
result = result[keyStep];
|
|
@@ -35,18 +39,8 @@ function getLocalizedStringEN(key) {
|
|
|
35
39
|
}
|
|
36
40
|
/** @internal */
|
|
37
41
|
function getElementKey(imodel, id) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
imodel.withPreparedStatement(query, (stmt) => {
|
|
41
|
-
try {
|
|
42
|
-
stmt.bindId(1, id);
|
|
43
|
-
if (stmt.step() === core_bentley_1.DbResult.BE_SQLITE_ROW) {
|
|
44
|
-
key = { className: stmt.getValue(0).getClassNameForClassId().replace(".", ":"), id };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
catch { }
|
|
48
|
-
});
|
|
49
|
-
return key;
|
|
42
|
+
const className = imodel.elements.tryGetElementProps(id)?.classFullName;
|
|
43
|
+
return className ? { className, id } : undefined;
|
|
50
44
|
}
|
|
51
45
|
/** @internal */
|
|
52
46
|
function normalizeVersion(version) {
|
|
@@ -70,11 +64,11 @@ function combineDiagnosticsOptions(...options) {
|
|
|
70
64
|
(!combinedOptions.perf || (typeof combinedOptions.perf === "object" && d.perf.minimumDuration < combinedOptions.perf.minimumDuration)))) {
|
|
71
65
|
combinedOptions.perf = d.perf;
|
|
72
66
|
}
|
|
73
|
-
const combinedDev = (0,
|
|
67
|
+
const combinedDev = (0, internal_1.combineDiagnosticsSeverities)(d.dev, combinedOptions.dev);
|
|
74
68
|
if (combinedDev) {
|
|
75
69
|
combinedOptions.dev = combinedDev;
|
|
76
70
|
}
|
|
77
|
-
const combinedEditor = (0,
|
|
71
|
+
const combinedEditor = (0, internal_1.combineDiagnosticsSeverities)(d.editor, combinedOptions.editor);
|
|
78
72
|
if (combinedEditor) {
|
|
79
73
|
combinedOptions.editor = combinedEditor;
|
|
80
74
|
}
|
|
@@ -105,8 +99,8 @@ function stripDiagnostics(options, diagnostics) {
|
|
|
105
99
|
}
|
|
106
100
|
}
|
|
107
101
|
else {
|
|
108
|
-
const matchesDevSeverity = entry.severity.dev && (0,
|
|
109
|
-
const matchesEditorSeverity = entry.severity.editor && (0,
|
|
102
|
+
const matchesDevSeverity = entry.severity.dev && (0, internal_1.compareDiagnosticsSeverities)(entry.severity.dev, options.dev) >= 0;
|
|
103
|
+
const matchesEditorSeverity = entry.severity.editor && (0, internal_1.compareDiagnosticsSeverities)(entry.severity.editor, options.editor) >= 0;
|
|
110
104
|
if (matchesDevSeverity || matchesEditorSeverity) {
|
|
111
105
|
stripped.push({ ...entry });
|
|
112
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/presentation-backend/Utils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;AAiBH,oDAcC;AAGD,sCAYC;AAGD,4CAQC;AAwCD,8DAuBC;AAGD,8CAGC;AA5HD,mCAA+C;AAC/C,sDAAwD;AACxD,sDAA2D;AAC3D,oEAOoC;AAEpC,MAAM,YAAY,GAAG,OAAO,CAAC,wEAAwE,CAAC,CAAC,CAAC,4DAA4D;AAEpK,gBAAgB;AAChB,SAAgB,oBAAoB,CAAC,GAAW;IAC9C,IAAI,MAAM,GAAG,YAAY,CAAC;IAC1B,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAClD,IAAI,SAAS,KAAK,cAAc,EAAE,CAAC;QACjC,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACvC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,OAAO,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YAChC,OAAO,GAAG,CAAC;QACb,CAAC;QACD,MAAM,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CAAC,QAAQ,CAAC,MAAM,IAAI,IAAA,kDAA4B,EAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAChI,IAAI,kBAAkB,IAAI,qBAAqB,EAAE,CAAC;gBAChD,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACpD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { parse as parseVersion } from \"semver\";\nimport { Element, IModelDb } from \"@itwin/core-backend\";\nimport { DbResult, Id64String } from \"@itwin/core-bentley\";\nimport {\n combineDiagnosticsSeverities,\n compareDiagnosticsSeverities,\n Diagnostics,\n DiagnosticsLogEntry,\n DiagnosticsOptions,\n InstanceKey,\n} from \"@itwin/presentation-common\";\n\nconst presentation = require(\"@itwin/presentation-common/lib/cjs/assets/locales/en/Presentation.json\"); // eslint-disable-line @typescript-eslint/no-require-imports\n\n/** @internal */\nexport function getLocalizedStringEN(key: string) {\n let result = presentation;\n const [namespace, identifier] = key.split(\":\", 2);\n if (namespace !== \"Presentation\") {\n return key;\n }\n const keySteps = identifier.split(\".\");\n for (const keyStep of keySteps) {\n if (keyStep in result === false) {\n return key;\n }\n result = result[keyStep];\n }\n return typeof result === \"string\" ? result : key;\n}\n\n/** @internal */\nexport function getElementKey(imodel: IModelDb, id: Id64String): InstanceKey | undefined {\n let key: InstanceKey | undefined;\n const query = `SELECT ECClassId FROM ${Element.classFullName} e WHERE ECInstanceId = ?`;\n imodel.withPreparedStatement(query, (stmt) => {\n try {\n stmt.bindId(1, id);\n if (stmt.step() === DbResult.BE_SQLITE_ROW) {\n key = { className: stmt.getValue(0).getClassNameForClassId().replace(\".\", \":\"), id };\n }\n } catch {}\n });\n return key;\n}\n\n/** @internal */\nexport function normalizeVersion(version?: string) {\n if (version) {\n const parsedVersion = parseVersion(version, true);\n if (parsedVersion) {\n return `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}`;\n }\n }\n return \"0.0.0\";\n}\n\n/**\n * A function that received request diagnostics and, optionally, request context.\n * @public\n */\nexport type BackendDiagnosticsHandler<TContext = any> = (logs: Diagnostics, requestContext?: TContext) => void;\n\n/**\n * Data structure for backend diagnostics options.\n * @public\n */\nexport interface BackendDiagnosticsOptions<TContext = any> extends DiagnosticsOptions {\n /**\n * An optional function to supply request context that'll be passed to [[handler]] when\n * it's called after the request is fulfilled.\n */\n requestContextSupplier?: () => TContext;\n\n /**\n * Request diagnostics handler function that is called after the request is fulfilled. The handler\n * receives request diagnostics as the first argument and, optionally, request context as the\n * second (see [[requestContextSupplier]]).\n */\n handler: BackendDiagnosticsHandler<TContext>;\n}\n\n/**\n * Data structure which contains backend diagnostics options.\n * @public\n */\nexport interface BackendDiagnosticsAttribute {\n /**\n * Backend diagnostics options.\n * @public\n */\n diagnostics?: BackendDiagnosticsOptions;\n}\n\n/** @internal */\nexport function combineDiagnosticsOptions(...options: Array<BackendDiagnosticsOptions | undefined>): DiagnosticsOptions | undefined {\n const combinedOptions: DiagnosticsOptions = {};\n options.forEach((d) => {\n if (!d) {\n return;\n }\n if (\n d.perf === true ||\n (typeof d.perf === \"object\" &&\n (!combinedOptions.perf || (typeof combinedOptions.perf === \"object\" && d.perf.minimumDuration < combinedOptions.perf.minimumDuration)))\n ) {\n combinedOptions.perf = d.perf;\n }\n const combinedDev = combineDiagnosticsSeverities(d.dev, combinedOptions.dev);\n if (combinedDev) {\n combinedOptions.dev = combinedDev;\n }\n const combinedEditor = combineDiagnosticsSeverities(d.editor, combinedOptions.editor);\n if (combinedEditor) {\n combinedOptions.editor = combinedEditor;\n }\n });\n return combinedOptions.dev || combinedOptions.editor || combinedOptions.perf ? combinedOptions : undefined;\n}\n\n/** @internal */\nexport function reportDiagnostics<TContext>(diagnostics: Diagnostics, options: BackendDiagnosticsOptions<TContext>, context?: TContext) {\n const stripped = diagnostics.logs ? stripDiagnostics(options, diagnostics.logs) : undefined;\n stripped && options.handler({ logs: stripped }, context);\n}\nfunction stripDiagnostics<TEntry extends DiagnosticsLogEntry>(options: DiagnosticsOptions, diagnostics: TEntry[]) {\n const stripped: TEntry[] = [];\n diagnostics.forEach((entry) => {\n if (DiagnosticsLogEntry.isScope(entry)) {\n const scopeLogs = stripDiagnostics(options, entry.logs ?? []);\n const strippedScope = { ...entry, logs: scopeLogs };\n if (!strippedScope.logs) {\n delete strippedScope.logs;\n }\n if (entry.duration !== undefined && (options.perf === true || (typeof options.perf === \"object\" && entry.duration >= options.perf.minimumDuration))) {\n stripped.push(strippedScope);\n } else if (scopeLogs) {\n delete strippedScope.duration;\n delete strippedScope.scopeCreateTimestamp;\n stripped.push(strippedScope);\n }\n } else {\n const matchesDevSeverity = entry.severity.dev && compareDiagnosticsSeverities(entry.severity.dev, options.dev) >= 0;\n const matchesEditorSeverity = entry.severity.editor && compareDiagnosticsSeverities(entry.severity.editor, options.editor) >= 0;\n if (matchesDevSeverity || matchesEditorSeverity) {\n stripped.push({ ...entry });\n }\n }\n });\n return stripped.length > 0 ? stripped : undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../src/presentation-backend/Utils.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG,sDAAsD;AACtD;;GAEG;;;;;AAmBH,oDAcC;AAGD,sCAGC;AAGD,4CAQC;AAwCD,8DAuBC;AAGD,8CAGC;AArHD,mCAA+C;AAG/C,oEAKoC;AACpC,kEAG6C;AAC7C,kEAAkE;AAClE,gHAAgH;AAEhH,gBAAgB;AAChB,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,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACpH,MAAM,qBAAqB,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,IAAI,IAAA,uCAA4B,EAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAChI,IAAI,kBAAkB,IAAI,qBAAqB,EAAE,CAAC;gBAChD,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACpD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n/** @packageDocumentation\n * @module Core\n */\n\nimport { parse as parseVersion } from \"semver\";\nimport { IModelDb } from \"@itwin/core-backend\";\nimport { Id64String } from \"@itwin/core-bentley\";\nimport {\n Diagnostics,\n DiagnosticsLogEntry,\n DiagnosticsOptions,\n InstanceKey,\n} from \"@itwin/presentation-common\";\nimport {\n combineDiagnosticsSeverities,\n compareDiagnosticsSeverities,\n} from \"@itwin/presentation-common/internal\";\n// @ts-ignore TS complains about `with` in CJS builds, but not ESM\nimport presentationStrings from \"@itwin/presentation-common/locales/en/Presentation.json\" with { type: \"json\" };\n\n/** @internal */\nexport function getLocalizedStringEN(key: string) {\n let result: object | string = presentationStrings;\n const [namespace, identifier] = key.split(\":\", 2);\n if (namespace !== \"Presentation\") {\n return key;\n }\n const keySteps = identifier.split(\".\");\n for (const keyStep of keySteps) {\n if (typeof result !== \"object\" || keyStep in result === false) {\n return key;\n }\n result = result[keyStep as keyof typeof result];\n }\n return typeof result === \"string\" ? result : key;\n}\n\n/** @internal */\nexport function getElementKey(imodel: IModelDb, id: Id64String): InstanceKey | undefined {\n const className = imodel.elements.tryGetElementProps(id)?.classFullName;\n return className ? { className, id } : undefined;\n}\n\n/** @internal */\nexport function normalizeVersion(version?: string) {\n if (version) {\n const parsedVersion = parseVersion(version, true);\n if (parsedVersion) {\n return `${parsedVersion.major}.${parsedVersion.minor}.${parsedVersion.patch}`;\n }\n }\n return \"0.0.0\";\n}\n\n/**\n * A function that received request diagnostics and, optionally, request context.\n * @public\n */\nexport type BackendDiagnosticsHandler<TContext = any> = (logs: Diagnostics, requestContext?: TContext) => void;\n\n/**\n * Data structure for backend diagnostics options.\n * @public\n */\nexport interface BackendDiagnosticsOptions<TContext = any> extends DiagnosticsOptions {\n /**\n * An optional function to supply request context that'll be passed to [[handler]] when\n * it's called after the request is fulfilled.\n */\n requestContextSupplier?: () => TContext;\n\n /**\n * Request diagnostics handler function that is called after the request is fulfilled. The handler\n * receives request diagnostics as the first argument and, optionally, request context as the\n * second (see [[requestContextSupplier]]).\n */\n handler: BackendDiagnosticsHandler<TContext>;\n}\n\n/**\n * Data structure which contains backend diagnostics options.\n * @public\n */\nexport interface BackendDiagnosticsAttribute {\n /**\n * Backend diagnostics options.\n * @public\n */\n diagnostics?: BackendDiagnosticsOptions;\n}\n\n/** @internal */\nexport function combineDiagnosticsOptions(...options: Array<BackendDiagnosticsOptions | undefined>): DiagnosticsOptions | undefined {\n const combinedOptions: DiagnosticsOptions = {};\n options.forEach((d) => {\n if (!d) {\n return;\n }\n if (\n d.perf === true ||\n (typeof d.perf === \"object\" &&\n (!combinedOptions.perf || (typeof combinedOptions.perf === \"object\" && d.perf.minimumDuration < combinedOptions.perf.minimumDuration)))\n ) {\n combinedOptions.perf = d.perf;\n }\n const combinedDev = combineDiagnosticsSeverities(d.dev, combinedOptions.dev);\n if (combinedDev) {\n combinedOptions.dev = combinedDev;\n }\n const combinedEditor = combineDiagnosticsSeverities(d.editor, combinedOptions.editor);\n if (combinedEditor) {\n combinedOptions.editor = combinedEditor;\n }\n });\n return combinedOptions.dev || combinedOptions.editor || combinedOptions.perf ? combinedOptions : undefined;\n}\n\n/** @internal */\nexport function reportDiagnostics<TContext>(diagnostics: Diagnostics, options: BackendDiagnosticsOptions<TContext>, context?: TContext) {\n const stripped = diagnostics.logs ? stripDiagnostics(options, diagnostics.logs) : undefined;\n stripped && options.handler({ logs: stripped }, context);\n}\nfunction stripDiagnostics<TEntry extends DiagnosticsLogEntry>(options: DiagnosticsOptions, diagnostics: TEntry[]) {\n const stripped: TEntry[] = [];\n diagnostics.forEach((entry) => {\n if (DiagnosticsLogEntry.isScope(entry)) {\n const scopeLogs = stripDiagnostics(options, entry.logs ?? []);\n const strippedScope = { ...entry, logs: scopeLogs };\n if (!strippedScope.logs) {\n delete strippedScope.logs;\n }\n if (entry.duration !== undefined && (options.perf === true || (typeof options.perf === \"object\" && entry.duration >= options.perf.minimumDuration))) {\n stripped.push(strippedScope);\n } else if (scopeLogs) {\n delete strippedScope.duration;\n delete strippedScope.scopeCreateTimestamp;\n stripped.push(strippedScope);\n }\n } else {\n const matchesDevSeverity = entry.severity.dev && compareDiagnosticsSeverities(entry.severity.dev, options.dev) >= 0;\n const matchesEditorSeverity = entry.severity.editor && compareDiagnosticsSeverities(entry.severity.editor, options.editor) >= 0;\n if (matchesDevSeverity || matchesEditorSeverity) {\n stripped.push({ ...entry });\n }\n }\n });\n return stripped.length > 0 ? stripped : undefined;\n}\n"]}
|
|
@@ -32,7 +32,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.PresentationRules = void 0;
|
|
34
34
|
const core_backend_1 = require("@itwin/core-backend");
|
|
35
|
-
const RulesetElements = __importStar(require("./RulesetElements"));
|
|
35
|
+
const RulesetElements = __importStar(require("./RulesetElements.js"));
|
|
36
36
|
/** @internal */
|
|
37
37
|
class PresentationRules extends core_backend_1.Schema {
|
|
38
38
|
static get schemaName() {
|
|
@@ -48,7 +48,7 @@ class PresentationRules extends core_backend_1.Schema {
|
|
|
48
48
|
}
|
|
49
49
|
exports.PresentationRules = PresentationRules;
|
|
50
50
|
/** @internal */
|
|
51
|
-
/*
|
|
51
|
+
/* c8 ignore next 5 */
|
|
52
52
|
(function (PresentationRules) {
|
|
53
53
|
let CodeSpec;
|
|
54
54
|
(function (CodeSpec) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresentationRulesDomain.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/PresentationRulesDomain.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sDAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"PresentationRulesDomain.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/PresentationRulesDomain.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,sDAAqE;AACrE,sEAAwD;AAExD,gBAAgB;AAChB,MAAa,iBAAkB,SAAQ,qBAAM;IACpC,MAAM,KAAc,UAAU;QACnC,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,uDAAuD;IAChD,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;YACvE,sBAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;YAC1C,4BAAa,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;CACF;AAZD,8CAYC;AAED,gBAAgB;AAChB,sBAAsB;AACtB,WAAiB,iBAAiB;IAChC,IAAY,QAEX;IAFD,WAAY,QAAQ;QAClB,iDAAqC,CAAA;IACvC,CAAC,EAFW,QAAQ,GAAR,0BAAQ,KAAR,0BAAQ,QAEnB;AACH,CAAC,EAJgB,iBAAiB,iCAAjB,iBAAiB,QAIjC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { ClassRegistry, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as RulesetElements from \"./RulesetElements.js\";\n\n/** @internal */\nexport class PresentationRules extends Schema {\n public static override get schemaName(): string {\n return \"PresentationRules\";\n }\n\n /** Registers this schema and it's elements' classes */\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(PresentationRules.schemaName)) {\n Schemas.registerSchema(PresentationRules);\n ClassRegistry.registerModule(RulesetElements, this);\n }\n }\n}\n\n/** @internal */\n/* c8 ignore next 5 */\nexport namespace PresentationRules {\n export enum CodeSpec {\n Ruleset = \"PresentationRules:Ruleset\",\n }\n}\n"]}
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.Ruleset = void 0;
|
|
11
11
|
const core_backend_1 = require("@itwin/core-backend");
|
|
12
12
|
const core_common_1 = require("@itwin/core-common");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const Utils_js_1 = require("../Utils.js");
|
|
14
|
+
const PresentationRulesDomain_js_1 = require("./PresentationRulesDomain.js");
|
|
15
15
|
/** @internal */
|
|
16
16
|
class Ruleset extends core_backend_1.DefinitionElement {
|
|
17
17
|
/**
|
|
@@ -29,10 +29,10 @@ class Ruleset extends core_backend_1.DefinitionElement {
|
|
|
29
29
|
static createRulesetCode(iModelDb, modelId, ruleset) {
|
|
30
30
|
let codeValue = ruleset.id;
|
|
31
31
|
if (ruleset.version) {
|
|
32
|
-
codeValue += `@${(0,
|
|
32
|
+
codeValue += `@${(0, Utils_js_1.normalizeVersion)(ruleset.version)}`;
|
|
33
33
|
}
|
|
34
34
|
return new core_common_1.Code({
|
|
35
|
-
spec: iModelDb.codeSpecs.getByName(
|
|
35
|
+
spec: iModelDb.codeSpecs.getByName(PresentationRulesDomain_js_1.PresentationRules.CodeSpec.Ruleset).id,
|
|
36
36
|
scope: modelId.toString(),
|
|
37
37
|
value: codeValue,
|
|
38
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesetElements.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/RulesetElements.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,sDAAkE;AAClE,oDAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"RulesetElements.js","sourceRoot":"","sources":["../../../../src/presentation-backend/domain/RulesetElements.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,sDAAkE;AAClE,oDAA0C;AAE1C,0CAA+C;AAC/C,6EAAiE;AAEjE,gBAAgB;AAChB,MAAa,OAAQ,SAAQ,gCAAiB;IAC5C;;OAEG;IACI,MAAM,KAAc,SAAS;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAAC,QAAkB,EAAE,OAAmB,EAAE,OAA4B;QACnG,IAAI,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC;QAC3B,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,SAAS,IAAI,IAAI,IAAA,2BAAgB,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACvD,CAAC;QAED,OAAO,IAAI,kBAAI,CAAC;YACd,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,8CAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;YACzE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE;YACzB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,0BA0BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Core\n */\n\nimport { Id64String } from \"@itwin/core-bentley\";\nimport { DefinitionElement, IModelDb } from \"@itwin/core-backend\";\nimport { Code } from \"@itwin/core-common\";\nimport { Ruleset as PresentationRuleset } from \"@itwin/presentation-common\";\nimport { normalizeVersion } from \"../Utils.js\";\nimport { PresentationRules } from \"./PresentationRulesDomain.js\";\n\n/** @internal */\nexport class Ruleset extends DefinitionElement {\n /**\n * Name of the `Ruleset` element class.\n */\n public static override get className(): string {\n return \"Ruleset\";\n }\n\n /**\n * Generates a unique code for a ruleset\n * @param iModelDb DB the ruleset is supposed to be inserted into\n * @param modelId ID of a the model this ruleset should be created in\n * @param ruleset The ruleset code is being created for\n */\n public static createRulesetCode(iModelDb: IModelDb, modelId: Id64String, ruleset: PresentationRuleset) {\n let codeValue = ruleset.id;\n if (ruleset.version) {\n codeValue += `@${normalizeVersion(ruleset.version)}`;\n }\n\n return new Code({\n spec: iModelDb.codeSpecs.getByName(PresentationRules.CodeSpec.Ruleset).id,\n scope: modelId.toString(),\n value: codeValue,\n });\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-backend-internal.d.ts","sourceRoot":"","sources":["../../src/presentation-backend-internal.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports._presentation_manager_detail = void 0;
|
|
8
|
+
// WARNING: This barrel file exports internal APIs only for use by Presentation packages.
|
|
9
|
+
// They should not be used outside of these packages. These APIs may be broken or removed at any time without notice.
|
|
10
|
+
var InternalSymbols_js_1 = require("./presentation-backend/InternalSymbols.js");
|
|
11
|
+
Object.defineProperty(exports, "_presentation_manager_detail", { enumerable: true, get: function () { return InternalSymbols_js_1._presentation_manager_detail; } });
|
|
12
|
+
//# sourceMappingURL=presentation-backend-internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation-backend-internal.js","sourceRoot":"","sources":["../../src/presentation-backend-internal.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,yFAAyF;AACzF,qHAAqH;AAErH,gFAAyF;AAAhF,kIAAA,4BAA4B,OAAA","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\n// WARNING: This barrel file exports internal APIs only for use by Presentation packages.\n// They should not be used outside of these packages. These APIs may be broken or removed at any time without notice.\n\nexport { _presentation_manager_detail } from \"./presentation-backend/InternalSymbols.js\";\n"]}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* @docs-group-description Core
|
|
5
5
|
* Common types used for retrieving presentation data from iModels.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
7
|
+
export { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from "./presentation-backend/Presentation.js";
|
|
8
|
+
export { HierarchyCacheMode, HierarchyCacheConfig, MemoryHierarchyCacheConfig, DiskHierarchyCacheConfig, HybridCacheConfig, ContentCacheConfig, PresentationManagerCachingConfig, UnitSystemFormat, MultiElementPropertiesResponse, PresentationAssetsRootConfig, PresentationManagerProps, PresentationManager, } from "./presentation-backend/PresentationManager.js";
|
|
9
|
+
export { RulesetManager } from "./presentation-backend/RulesetManager.js";
|
|
10
|
+
export { RulesetVariablesManager } from "./presentation-backend/RulesetVariablesManager.js";
|
|
11
|
+
export { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from "./presentation-backend/RulesetEmbedder.js";
|
|
12
|
+
export { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from "./presentation-backend/Utils.js";
|
|
13
13
|
/**
|
|
14
14
|
* @module Logging
|
|
15
15
|
*
|
|
16
16
|
* @docs-group-description Logging
|
|
17
17
|
* Types related to logging in this package.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from "./presentation-backend/BackendLoggerCategory.js";
|
|
20
20
|
//# sourceMappingURL=presentation-backend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-backend.d.ts","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"presentation-backend.d.ts","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,OAAO,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACxJ,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,gCAAgC,EAChC,gBAAgB,EAChB,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACxH,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAEpI;;;;;GAKG;AACH,OAAO,EAAE,iCAAiC,EAAE,uCAAuC,EAAE,MAAM,iDAAiD,CAAC"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresentationBackendNativeLoggerCategory = exports.PresentationBackendLoggerCategory = exports.RulesetEmbedder = exports.PresentationManager = exports.HierarchyCacheMode = exports.Presentation = void 0;
|
|
17
4
|
/*---------------------------------------------------------------------------------------------
|
|
18
5
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
19
6
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -24,17 +11,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
11
|
* @docs-group-description Core
|
|
25
12
|
* Common types used for retrieving presentation data from iModels.
|
|
26
13
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
var Presentation_js_1 = require("./presentation-backend/Presentation.js");
|
|
15
|
+
Object.defineProperty(exports, "Presentation", { enumerable: true, get: function () { return Presentation_js_1.Presentation; } });
|
|
16
|
+
var PresentationManager_js_1 = require("./presentation-backend/PresentationManager.js");
|
|
17
|
+
Object.defineProperty(exports, "HierarchyCacheMode", { enumerable: true, get: function () { return PresentationManager_js_1.HierarchyCacheMode; } });
|
|
18
|
+
Object.defineProperty(exports, "PresentationManager", { enumerable: true, get: function () { return PresentationManager_js_1.PresentationManager; } });
|
|
19
|
+
var RulesetEmbedder_js_1 = require("./presentation-backend/RulesetEmbedder.js");
|
|
20
|
+
Object.defineProperty(exports, "RulesetEmbedder", { enumerable: true, get: function () { return RulesetEmbedder_js_1.RulesetEmbedder; } });
|
|
33
21
|
/**
|
|
34
22
|
* @module Logging
|
|
35
23
|
*
|
|
36
24
|
* @docs-group-description Logging
|
|
37
25
|
* Types related to logging in this package.
|
|
38
26
|
*/
|
|
39
|
-
|
|
27
|
+
var BackendLoggerCategory_js_1 = require("./presentation-backend/BackendLoggerCategory.js");
|
|
28
|
+
Object.defineProperty(exports, "PresentationBackendLoggerCategory", { enumerable: true, get: function () { return BackendLoggerCategory_js_1.PresentationBackendLoggerCategory; } });
|
|
29
|
+
Object.defineProperty(exports, "PresentationBackendNativeLoggerCategory", { enumerable: true, get: function () { return BackendLoggerCategory_js_1.PresentationBackendNativeLoggerCategory; } });
|
|
40
30
|
//# sourceMappingURL=presentation-backend.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"presentation-backend.js","sourceRoot":"","sources":["../../src/presentation-backend.ts"],"names":[],"mappings":";;;AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,0EAAwJ;AAA7D,+GAAA,YAAY,OAAA;AACvG,wFAauD;AAZrD,4HAAA,kBAAkB,OAAA;AAWlB,6HAAA,mBAAmB,OAAA;AAIrB,gFAAwH;AAAnE,qHAAA,eAAe,OAAA;AAGpE;;;;;GAKG;AACH,4FAA6I;AAApI,6IAAA,iCAAiC,OAAA;AAAE,mJAAA,uCAAuC,OAAA","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used for retrieving presentation data from iModels.\n */\nexport { PresentationProps, MultiManagerPresentationProps, SingleManagerPresentationProps, Presentation } from \"./presentation-backend/Presentation.js\";\nexport {\n HierarchyCacheMode,\n HierarchyCacheConfig,\n MemoryHierarchyCacheConfig,\n DiskHierarchyCacheConfig,\n HybridCacheConfig,\n ContentCacheConfig,\n PresentationManagerCachingConfig,\n UnitSystemFormat,\n MultiElementPropertiesResponse,\n PresentationAssetsRootConfig,\n PresentationManagerProps,\n PresentationManager,\n} from \"./presentation-backend/PresentationManager.js\";\nexport { RulesetManager } from \"./presentation-backend/RulesetManager.js\";\nexport { RulesetVariablesManager } from \"./presentation-backend/RulesetVariablesManager.js\";\nexport { RulesetInsertOptions, RulesetEmbedderProps, RulesetEmbedder } from \"./presentation-backend/RulesetEmbedder.js\";\nexport { BackendDiagnosticsHandler, BackendDiagnosticsOptions, BackendDiagnosticsAttribute } from \"./presentation-backend/Utils.js\";\n\n/**\n * @module Logging\n *\n * @docs-group-description Logging\n * Types related to logging in this package.\n */\nexport { PresentationBackendLoggerCategory, PresentationBackendNativeLoggerCategory } from \"./presentation-backend/BackendLoggerCategory.js\";\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Logging
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Logger categories used by this package
|
|
6
|
+
* @note All logger categories in this package start with the `presentation-backend` prefix.
|
|
7
|
+
* @see [Logger]($bentley)
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare enum PresentationBackendLoggerCategory {
|
|
11
|
+
Package = "presentation-backend",
|
|
12
|
+
/** The logger category used by the [[PresentationManager]] class and other related classes. */
|
|
13
|
+
PresentationManager = "presentation-backend.PresentationManager",
|
|
14
|
+
/** The logger category used by Presentation RPC implementation. */
|
|
15
|
+
Rpc = "presentation-backend.Rpc",
|
|
16
|
+
/** The logger category used by Presentation IPC implementation. */
|
|
17
|
+
Ipc = "presentation-backend.Ipc"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Logger categories used by this package
|
|
21
|
+
* @note Logger categories used by the [[PresentationManager]] native addon.
|
|
22
|
+
* @see [Logger]($bentley)
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare enum PresentationBackendNativeLoggerCategory {
|
|
26
|
+
ECObjects = "ECObjects",
|
|
27
|
+
ECObjects_ECExpressions = "ECObjects.ECExpressions",
|
|
28
|
+
ECObjects_ECExpressions_Parse = "ECObjects.ECExpressions.Parse",
|
|
29
|
+
ECObjects_ECExpressions_Evaluate = "ECObjects.ECExpressions.Evaluate",
|
|
30
|
+
ECPresentation = "ECPresentation",
|
|
31
|
+
ECPresentation_Connections = "ECPresentation.Connections",
|
|
32
|
+
ECPresentation_Tasks = "ECPresentation.Tasks",
|
|
33
|
+
ECPresentation_Hierarchies = "ECPresentation.Navigation",
|
|
34
|
+
ECPresentation_Hierarchies_Cache = "ECPresentation.Navigation.Cache",
|
|
35
|
+
ECPresentation_Content = "ECPresentation.Content",
|
|
36
|
+
ECPresentation_Update = "ECPresentation.Update",
|
|
37
|
+
ECPresentation_Update_Hierarchies = "ECPresentation.Update.Hierarchies",
|
|
38
|
+
ECPresentation_Update_Content = "ECPresentation.Update.Content",
|
|
39
|
+
ECPresentation_Rules = "ECPresentation.Rules",
|
|
40
|
+
ECPresentation_RulesetVariables = "ECPresentation.RulesetVariables",
|
|
41
|
+
ECPresentation_ECExpressions = "ECPresentation.ECExpressions",
|
|
42
|
+
ECPresentation_Serialization = "ECPresentation.Serialization",
|
|
43
|
+
/** @deprecated in 4.0. The logging namespace is not used anymore. */
|
|
44
|
+
ECPresentation_Localization = "ECPresentation.Localization",
|
|
45
|
+
/** @deprecated in 4.0. Use [[ECPresentation]] */
|
|
46
|
+
ECPresentation_RulesEngine = "ECPresentation.RulesEngine",
|
|
47
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Content]] */
|
|
48
|
+
ECPresentation_RulesEngine_Content = "ECPresentation.Content",
|
|
49
|
+
/** @deprecated in 4.0. The logging namespace is not used anymore. */
|
|
50
|
+
ECPresentation_RulesEngine_Localization = "ECPresentation.Localization",
|
|
51
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Hierarchies]] */
|
|
52
|
+
ECPresentation_RulesEngine_Navigation = "ECPresentation.Navigation",
|
|
53
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Hierarchies_Cache]] */
|
|
54
|
+
ECPresentation_RulesEngine_Navigation_Cache = "ECPresentation.Navigation.Cache",
|
|
55
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Tasks]] */
|
|
56
|
+
ECPresentation_RulesEngine_Threads = "ECPresentation.Tasks",
|
|
57
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Update]] */
|
|
58
|
+
ECPresentation_RulesEngine_Update = "ECPresentation.Update",
|
|
59
|
+
/** @deprecated in 4.0. Use [[ECPresentation_RulesetVariables]] */
|
|
60
|
+
ECPresentation_RulesEngine_RulesetVariables = "ECPresentation.RulesetVariables"
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=BackendLoggerCategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackendLoggerCategory.d.ts","sourceRoot":"","sources":["../../../src/presentation-backend/BackendLoggerCategory.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;GAKG;AACH,oBAAY,iCAAiC;IAC3C,OAAO,yBAAyB;IAEhC,+FAA+F;IAC/F,mBAAmB,6CAA6C;IAEhE,mEAAmE;IACnE,GAAG,6BAA6B;IAEhC,mEAAmE;IACnE,GAAG,6BAA6B;CACjC;AAED;;;;;GAKG;AACH,oBAAY,uCAAuC;IACjD,SAAS,cAAc;IACvB,uBAAuB,4BAA4B;IACnD,6BAA6B,kCAAkC;IAC/D,gCAAgC,qCAAqC;IAErE,cAAc,mBAAmB;IACjC,0BAA0B,+BAA+B;IACzD,oBAAoB,yBAAyB;IAC7C,0BAA0B,8BAA8B;IACxD,gCAAgC,oCAAoC;IACpE,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;IAC/C,iCAAiC,sCAAsC;IACvE,6BAA6B,kCAAkC;IAC/D,oBAAoB,yBAAyB;IAC7C,+BAA+B,oCAAoC;IACnE,4BAA4B,iCAAiC;IAC7D,4BAA4B,iCAAiC;IAG7D,qEAAqE;IACrE,2BAA2B,gCAAgC;IAC3D,iDAAiD;IACjD,0BAA0B,+BAA+B;IACzD,yDAAyD;IACzD,kCAAkC,2BAA2B;IAC7D,qEAAqE;IACrE,uCAAuC,gCAAgC;IACvE,6DAA6D;IAC7D,qCAAqC,8BAA8B;IACnE,mEAAmE;IACnE,2CAA2C,oCAAoC;IAC/E,uDAAuD;IACvD,kCAAkC,yBAAyB;IAC3D,wDAAwD;IACxD,iCAAiC,0BAA0B;IAC3D,kEAAkE;IAClE,2CAA2C,oCAAoC;CAChF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Logging
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Logger categories used by this package
|
|
10
|
+
* @note All logger categories in this package start with the `presentation-backend` prefix.
|
|
11
|
+
* @see [Logger]($bentley)
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export var PresentationBackendLoggerCategory;
|
|
15
|
+
(function (PresentationBackendLoggerCategory) {
|
|
16
|
+
PresentationBackendLoggerCategory["Package"] = "presentation-backend";
|
|
17
|
+
/** The logger category used by the [[PresentationManager]] class and other related classes. */
|
|
18
|
+
PresentationBackendLoggerCategory["PresentationManager"] = "presentation-backend.PresentationManager";
|
|
19
|
+
/** The logger category used by Presentation RPC implementation. */
|
|
20
|
+
PresentationBackendLoggerCategory["Rpc"] = "presentation-backend.Rpc";
|
|
21
|
+
/** The logger category used by Presentation IPC implementation. */
|
|
22
|
+
PresentationBackendLoggerCategory["Ipc"] = "presentation-backend.Ipc";
|
|
23
|
+
})(PresentationBackendLoggerCategory || (PresentationBackendLoggerCategory = {}));
|
|
24
|
+
/**
|
|
25
|
+
* Logger categories used by this package
|
|
26
|
+
* @note Logger categories used by the [[PresentationManager]] native addon.
|
|
27
|
+
* @see [Logger]($bentley)
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
export var PresentationBackendNativeLoggerCategory;
|
|
31
|
+
(function (PresentationBackendNativeLoggerCategory) {
|
|
32
|
+
PresentationBackendNativeLoggerCategory["ECObjects"] = "ECObjects";
|
|
33
|
+
PresentationBackendNativeLoggerCategory["ECObjects_ECExpressions"] = "ECObjects.ECExpressions";
|
|
34
|
+
PresentationBackendNativeLoggerCategory["ECObjects_ECExpressions_Parse"] = "ECObjects.ECExpressions.Parse";
|
|
35
|
+
PresentationBackendNativeLoggerCategory["ECObjects_ECExpressions_Evaluate"] = "ECObjects.ECExpressions.Evaluate";
|
|
36
|
+
PresentationBackendNativeLoggerCategory["ECPresentation"] = "ECPresentation";
|
|
37
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Connections"] = "ECPresentation.Connections";
|
|
38
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Tasks"] = "ECPresentation.Tasks";
|
|
39
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Hierarchies"] = "ECPresentation.Navigation";
|
|
40
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Hierarchies_Cache"] = "ECPresentation.Navigation.Cache";
|
|
41
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Content"] = "ECPresentation.Content";
|
|
42
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Update"] = "ECPresentation.Update";
|
|
43
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Update_Hierarchies"] = "ECPresentation.Update.Hierarchies";
|
|
44
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Update_Content"] = "ECPresentation.Update.Content";
|
|
45
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Rules"] = "ECPresentation.Rules";
|
|
46
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesetVariables"] = "ECPresentation.RulesetVariables";
|
|
47
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_ECExpressions"] = "ECPresentation.ECExpressions";
|
|
48
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Serialization"] = "ECPresentation.Serialization";
|
|
49
|
+
/* eslint-disable @typescript-eslint/no-duplicate-enum-values */
|
|
50
|
+
/** @deprecated in 4.0. The logging namespace is not used anymore. */
|
|
51
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_Localization"] = "ECPresentation.Localization";
|
|
52
|
+
/** @deprecated in 4.0. Use [[ECPresentation]] */
|
|
53
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine"] = "ECPresentation.RulesEngine";
|
|
54
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Content]] */
|
|
55
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_Content"] = "ECPresentation.Content";
|
|
56
|
+
/** @deprecated in 4.0. The logging namespace is not used anymore. */
|
|
57
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_Localization"] = "ECPresentation.Localization";
|
|
58
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Hierarchies]] */
|
|
59
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_Navigation"] = "ECPresentation.Navigation";
|
|
60
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Hierarchies_Cache]] */
|
|
61
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_Navigation_Cache"] = "ECPresentation.Navigation.Cache";
|
|
62
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Tasks]] */
|
|
63
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_Threads"] = "ECPresentation.Tasks";
|
|
64
|
+
/** @deprecated in 4.0. Use [[ECPresentation_Update]] */
|
|
65
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_Update"] = "ECPresentation.Update";
|
|
66
|
+
/** @deprecated in 4.0. Use [[ECPresentation_RulesetVariables]] */
|
|
67
|
+
PresentationBackendNativeLoggerCategory["ECPresentation_RulesEngine_RulesetVariables"] = "ECPresentation.RulesetVariables";
|
|
68
|
+
})(PresentationBackendNativeLoggerCategory || (PresentationBackendNativeLoggerCategory = {}));
|
|
69
|
+
//# sourceMappingURL=BackendLoggerCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackendLoggerCategory.js","sourceRoot":"","sources":["../../../src/presentation-backend/BackendLoggerCategory.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,CAAN,IAAY,iCAWX;AAXD,WAAY,iCAAiC;IAC3C,qEAAgC,CAAA;IAEhC,+FAA+F;IAC/F,qGAAgE,CAAA;IAEhE,mEAAmE;IACnE,qEAAgC,CAAA;IAEhC,mEAAmE;IACnE,qEAAgC,CAAA;AAClC,CAAC,EAXW,iCAAiC,KAAjC,iCAAiC,QAW5C;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,uCAuCX;AAvCD,WAAY,uCAAuC;IACjD,kEAAuB,CAAA;IACvB,8FAAmD,CAAA;IACnD,0GAA+D,CAAA;IAC/D,gHAAqE,CAAA;IAErE,4EAAiC,CAAA;IACjC,oGAAyD,CAAA;IACzD,wFAA6C,CAAA;IAC7C,mGAAwD,CAAA;IACxD,+GAAoE,CAAA;IACpE,4FAAiD,CAAA;IACjD,0FAA+C,CAAA;IAC/C,kHAAuE,CAAA;IACvE,0GAA+D,CAAA;IAC/D,wFAA6C,CAAA;IAC7C,8GAAmE,CAAA;IACnE,wGAA6D,CAAA;IAC7D,wGAA6D,CAAA;IAE7D,gEAAgE;IAChE,qEAAqE;IACrE,sGAA2D,CAAA;IAC3D,iDAAiD;IACjD,oGAAyD,CAAA;IACzD,yDAAyD;IACzD,wGAA6D,CAAA;IAC7D,qEAAqE;IACrE,kHAAuE,CAAA;IACvE,6DAA6D;IAC7D,8GAAmE,CAAA;IACnE,mEAAmE;IACnE,0HAA+E,CAAA;IAC/E,uDAAuD;IACvD,sGAA2D,CAAA;IAC3D,wDAAwD;IACxD,sGAA2D,CAAA;IAC3D,kEAAkE;IAClE,0HAA+E,CAAA;AACjF,CAAC,EAvCW,uCAAuC,KAAvC,uCAAuC,QAuClD","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Logging\n */\n\n/**\n * Logger categories used by this package\n * @note All logger categories in this package start with the `presentation-backend` prefix.\n * @see [Logger]($bentley)\n * @public\n */\nexport enum PresentationBackendLoggerCategory {\n Package = \"presentation-backend\",\n\n /** The logger category used by the [[PresentationManager]] class and other related classes. */\n PresentationManager = \"presentation-backend.PresentationManager\",\n\n /** The logger category used by Presentation RPC implementation. */\n Rpc = \"presentation-backend.Rpc\",\n\n /** The logger category used by Presentation IPC implementation. */\n Ipc = \"presentation-backend.Ipc\",\n}\n\n/**\n * Logger categories used by this package\n * @note Logger categories used by the [[PresentationManager]] native addon.\n * @see [Logger]($bentley)\n * @public\n */\nexport enum PresentationBackendNativeLoggerCategory {\n ECObjects = \"ECObjects\",\n ECObjects_ECExpressions = \"ECObjects.ECExpressions\",\n ECObjects_ECExpressions_Parse = \"ECObjects.ECExpressions.Parse\",\n ECObjects_ECExpressions_Evaluate = \"ECObjects.ECExpressions.Evaluate\",\n\n ECPresentation = \"ECPresentation\",\n ECPresentation_Connections = \"ECPresentation.Connections\",\n ECPresentation_Tasks = \"ECPresentation.Tasks\",\n ECPresentation_Hierarchies = \"ECPresentation.Navigation\",\n ECPresentation_Hierarchies_Cache = \"ECPresentation.Navigation.Cache\",\n ECPresentation_Content = \"ECPresentation.Content\",\n ECPresentation_Update = \"ECPresentation.Update\",\n ECPresentation_Update_Hierarchies = \"ECPresentation.Update.Hierarchies\",\n ECPresentation_Update_Content = \"ECPresentation.Update.Content\",\n ECPresentation_Rules = \"ECPresentation.Rules\",\n ECPresentation_RulesetVariables = \"ECPresentation.RulesetVariables\",\n ECPresentation_ECExpressions = \"ECPresentation.ECExpressions\",\n ECPresentation_Serialization = \"ECPresentation.Serialization\",\n\n /* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n /** @deprecated in 4.0. The logging namespace is not used anymore. */\n ECPresentation_Localization = \"ECPresentation.Localization\",\n /** @deprecated in 4.0. Use [[ECPresentation]] */\n ECPresentation_RulesEngine = \"ECPresentation.RulesEngine\",\n /** @deprecated in 4.0. Use [[ECPresentation_Content]] */\n ECPresentation_RulesEngine_Content = \"ECPresentation.Content\",\n /** @deprecated in 4.0. The logging namespace is not used anymore. */\n ECPresentation_RulesEngine_Localization = \"ECPresentation.Localization\",\n /** @deprecated in 4.0. Use [[ECPresentation_Hierarchies]] */\n ECPresentation_RulesEngine_Navigation = \"ECPresentation.Navigation\",\n /** @deprecated in 4.0. Use [[ECPresentation_Hierarchies_Cache]] */\n ECPresentation_RulesEngine_Navigation_Cache = \"ECPresentation.Navigation.Cache\",\n /** @deprecated in 4.0. Use [[ECPresentation_Tasks]] */\n ECPresentation_RulesEngine_Threads = \"ECPresentation.Tasks\",\n /** @deprecated in 4.0. Use [[ECPresentation_Update]] */\n ECPresentation_RulesEngine_Update = \"ECPresentation.Update\",\n /** @deprecated in 4.0. Use [[ECPresentation_RulesetVariables]] */\n ECPresentation_RulesEngine_RulesetVariables = \"ECPresentation.RulesetVariables\",\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Core
|
|
3
|
+
*/
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
import { IModelDb } from "@itwin/core-backend";
|
|
6
|
+
import { Id64String } from "@itwin/core-bentley";
|
|
7
|
+
import { ContentDescriptorRequestOptions, ContentRequestOptions, Descriptor, Item, KeySet, RulesetVariable } from "@itwin/presentation-common";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare function parseFullClassName(fullClassName: string): [string, string];
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare function getContentItemsObservableFromElementIds(imodel: IModelDb, contentDescriptorGetter: (partialProps: Pick<ContentDescriptorRequestOptions<IModelDb, KeySet, RulesetVariable>, "rulesetOrId" | "keys">) => Promise<Descriptor | undefined>, contentSetGetter: (partialProps: Pick<ContentRequestOptions<IModelDb, Descriptor, KeySet, RulesetVariable>, "rulesetOrId" | "keys" | "descriptor">) => Promise<Item[]>, elementIds: Id64String[], classParallelism: number, batchesParallelism: number, batchSize: number): {
|
|
12
|
+
itemBatches: Observable<{
|
|
13
|
+
descriptor: Descriptor;
|
|
14
|
+
items: Item[];
|
|
15
|
+
}>;
|
|
16
|
+
count: Observable<number>;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare function getContentItemsObservableFromClassNames(imodel: IModelDb, contentDescriptorGetter: (partialProps: Pick<ContentDescriptorRequestOptions<IModelDb, KeySet, RulesetVariable>, "rulesetOrId" | "keys">) => Promise<Descriptor | undefined>, contentSetGetter: (partialProps: Pick<ContentRequestOptions<IModelDb, Descriptor, KeySet, RulesetVariable>, "rulesetOrId" | "keys" | "descriptor">) => Promise<Item[]>, elementClasses: string[], classParallelism: number, batchesParallelism: number, batchSize: number): {
|
|
20
|
+
itemBatches: Observable<{
|
|
21
|
+
descriptor: Descriptor;
|
|
22
|
+
items: Item[];
|
|
23
|
+
}>;
|
|
24
|
+
count: Observable<number>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Given a sorted list of ECInstanceIds and a batch size, create a stream of batches. Because the IDs won't necessarily
|
|
28
|
+
* be sequential, a batch is defined a list of from-to pairs.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare function createIdBatches(sortedIds: Id64String[], batchSize: number): Observable<Array<{
|
|
32
|
+
from: Id64String;
|
|
33
|
+
to: Id64String;
|
|
34
|
+
}>>;
|
|
35
|
+
/**
|
|
36
|
+
* Query all ECInstanceIds from given class and stream from-to pairs that batch the items into batches of `batchSize` size.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare function getBatchedClassElementIds(imodel: IModelDb, fullClassName: string, batchSize: number): Observable<Array<{
|
|
40
|
+
from: Id64String;
|
|
41
|
+
to: Id64String;
|
|
42
|
+
}>>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare function getElementsCount(db: IModelDb, classNames: string[]): Promise<any>;
|
|
45
|
+
//# sourceMappingURL=ElementPropertiesHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ElementPropertiesHelper.d.ts","sourceRoot":"","sources":["../../../src/presentation-backend/ElementPropertiesHelper.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAoD,UAAU,EAAsC,MAAM,MAAM,CAAC;AACxH,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAmB,UAAU,EAAuB,MA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