@itwin/presentation-backend 4.0.0-dev.52 → 4.0.0-dev.55
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/cjs/presentation-backend/BackendLoggerCategory.d.ts +41 -41
- package/lib/cjs/presentation-backend/BackendLoggerCategory.js +50 -50
- package/lib/cjs/presentation-backend/Constants.d.ts +8 -8
- package/lib/cjs/presentation-backend/Constants.js +40 -36
- package/lib/cjs/presentation-backend/Constants.js.map +1 -1
- package/lib/cjs/presentation-backend/ElementPropertiesHelper.d.ts +11 -11
- package/lib/cjs/presentation-backend/ElementPropertiesHelper.js +260 -260
- package/lib/cjs/presentation-backend/NativePlatform.d.ts +87 -87
- package/lib/cjs/presentation-backend/NativePlatform.js +140 -140
- package/lib/cjs/presentation-backend/NativePlatform.js.map +1 -1
- package/lib/cjs/presentation-backend/Presentation.d.ts +106 -106
- package/lib/cjs/presentation-backend/Presentation.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/Presentation.js +148 -148
- package/lib/cjs/presentation-backend/Presentation.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationIpcHandler.d.ts +12 -12
- package/lib/cjs/presentation-backend/PresentationIpcHandler.js +41 -41
- package/lib/cjs/presentation-backend/PresentationManager.d.ts +456 -456
- package/lib/cjs/presentation-backend/PresentationManager.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/PresentationManager.js +309 -309
- package/lib/cjs/presentation-backend/PresentationManagerDetail.d.ts +61 -61
- package/lib/cjs/presentation-backend/PresentationManagerDetail.js +430 -426
- package/lib/cjs/presentation-backend/PresentationManagerDetail.js.map +1 -1
- package/lib/cjs/presentation-backend/PresentationRpcImpl.d.ts +62 -62
- package/lib/cjs/presentation-backend/PresentationRpcImpl.js +388 -388
- package/lib/cjs/presentation-backend/RulesetEmbedder.d.ts +102 -102
- package/lib/cjs/presentation-backend/RulesetEmbedder.js +283 -279
- package/lib/cjs/presentation-backend/RulesetEmbedder.js.map +1 -1
- package/lib/cjs/presentation-backend/RulesetManager.d.ts +53 -53
- package/lib/cjs/presentation-backend/RulesetManager.js +73 -73
- package/lib/cjs/presentation-backend/RulesetVariablesManager.d.ts +140 -140
- package/lib/cjs/presentation-backend/RulesetVariablesManager.js +129 -129
- package/lib/cjs/presentation-backend/SelectionScopesHelper.d.ts +28 -28
- package/lib/cjs/presentation-backend/SelectionScopesHelper.js +210 -210
- package/lib/cjs/presentation-backend/TemporaryStorage.d.ts +123 -123
- package/lib/cjs/presentation-backend/TemporaryStorage.js +151 -151
- package/lib/cjs/presentation-backend/UpdatesTracker.d.ts +27 -27
- package/lib/cjs/presentation-backend/UpdatesTracker.js +54 -54
- package/lib/cjs/presentation-backend/Utils.d.ts +49 -49
- package/lib/cjs/presentation-backend/Utils.d.ts.map +1 -1
- package/lib/cjs/presentation-backend/Utils.js +107 -107
- package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.d.ts +16 -16
- package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js +55 -51
- package/lib/cjs/presentation-backend/domain/PresentationRulesDomain.js.map +1 -1
- package/lib/cjs/presentation-backend/domain/RulesetElements.d.ts +21 -21
- package/lib/cjs/presentation-backend/domain/RulesetElements.js +38 -38
- package/lib/cjs/presentation-backend.d.ts +19 -19
- package/lib/cjs/presentation-backend.js +39 -35
- package/lib/cjs/presentation-backend.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { IModelDb } from "@itwin/core-backend";
|
|
2
|
-
import { BeEvent, IDisposable } from "@itwin/core-bentley";
|
|
3
|
-
import { UnitSystemKey } from "@itwin/core-quantity";
|
|
4
|
-
import { Content, ContentDescriptorRequestOptions, ContentRequestOptions, ContentSourcesRequestOptions, Descriptor, DescriptorOverrides, DisplayLabelRequestOptions, DisplayLabelsRequestOptions, DisplayValueGroup, DistinctValuesRequestOptions, ElementProperties, FilterByInstancePathsHierarchyRequestOptions, FilterByTextHierarchyRequestOptions, HierarchyLevelDescriptorRequestOptions, HierarchyRequestOptions, InstanceKey, KeySet, LabelDefinition, NodeKey, NodePathElement, Paged, PagedResponse, Prioritized, Ruleset, RulesetVariable, SelectClassInfo, SingleElementPropertiesRequestOptions, WithCancelEvent } from "@itwin/presentation-common";
|
|
5
|
-
import { NativePlatformDefinition, NativePresentationKeySetJSON } from "./NativePlatform";
|
|
6
|
-
import { PresentationManagerProps } from "./PresentationManager";
|
|
7
|
-
import { RulesetManager } from "./RulesetManager";
|
|
8
|
-
import { BackendDiagnosticsAttribute, BackendDiagnosticsOptions } from "./Utils";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare class PresentationManagerDetail implements IDisposable {
|
|
11
|
-
private _disposed;
|
|
12
|
-
private _nativePlatform;
|
|
13
|
-
private _updatesTracker;
|
|
14
|
-
private _onManagerUsed;
|
|
15
|
-
private _diagnosticsOptions;
|
|
16
|
-
rulesets: RulesetManager;
|
|
17
|
-
activeUnitSystem: UnitSystemKey | undefined;
|
|
18
|
-
constructor(params: PresentationManagerProps);
|
|
19
|
-
dispose(): void;
|
|
20
|
-
getNativePlatform(): NativePlatformDefinition;
|
|
21
|
-
setOnManagerUsedHandler(handler: () => void): void;
|
|
22
|
-
getNodes(requestOptions: WithCancelEvent<Prioritized<Paged<HierarchyRequestOptions<IModelDb, NodeKey, RulesetVariable>>>> & BackendDiagnosticsAttribute): Promise<string>;
|
|
23
|
-
getNodesCount(requestOptions: WithCancelEvent<Prioritized<HierarchyRequestOptions<IModelDb, NodeKey, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<number>;
|
|
24
|
-
getNodesDescriptor(requestOptions: WithCancelEvent<Prioritized<HierarchyLevelDescriptorRequestOptions<IModelDb, NodeKey, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<string>;
|
|
25
|
-
getNodePaths(requestOptions: WithCancelEvent<Prioritized<FilterByInstancePathsHierarchyRequestOptions<IModelDb, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<NodePathElement[]>;
|
|
26
|
-
getFilteredNodePaths(requestOptions: WithCancelEvent<Prioritized<FilterByTextHierarchyRequestOptions<IModelDb, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<NodePathElement[]>;
|
|
27
|
-
getContentDescriptor(requestOptions: WithCancelEvent<Prioritized<ContentDescriptorRequestOptions<IModelDb, KeySet>>>): Promise<string>;
|
|
28
|
-
getContentSources(requestOptions: WithCancelEvent<Prioritized<ContentSourcesRequestOptions<IModelDb>>> & BackendDiagnosticsAttribute): Promise<SelectClassInfo[]>;
|
|
29
|
-
getContentSetSize(requestOptions: WithCancelEvent<Prioritized<ContentRequestOptions<IModelDb, Descriptor | DescriptorOverrides, KeySet, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<number>;
|
|
30
|
-
getContent(requestOptions: WithCancelEvent<Prioritized<Paged<ContentRequestOptions<IModelDb, Descriptor | DescriptorOverrides, KeySet, RulesetVariable>>>> & BackendDiagnosticsAttribute): Promise<Content | undefined>;
|
|
31
|
-
getPagedDistinctValues(requestOptions: WithCancelEvent<Prioritized<DistinctValuesRequestOptions<IModelDb, Descriptor | DescriptorOverrides, KeySet, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<PagedResponse<DisplayValueGroup>>;
|
|
32
|
-
getDisplayLabelDefinition(requestOptions: WithCancelEvent<Prioritized<DisplayLabelRequestOptions<IModelDb, InstanceKey>>> & BackendDiagnosticsAttribute): Promise<LabelDefinition>;
|
|
33
|
-
getDisplayLabelDefinitions(requestOptions: WithCancelEvent<Prioritized<Paged<DisplayLabelsRequestOptions<IModelDb, InstanceKey>>>> & BackendDiagnosticsAttribute): Promise<LabelDefinition[]>;
|
|
34
|
-
getElementProperties(requestOptions: WithCancelEvent<Prioritized<SingleElementPropertiesRequestOptions<IModelDb>>> & BackendDiagnosticsAttribute): Promise<ElementProperties | undefined>;
|
|
35
|
-
/** Registers given ruleset and replaces the ruleset with its ID in the resulting object */
|
|
36
|
-
registerRuleset(rulesetOrId: Ruleset | string): string;
|
|
37
|
-
/** @internal */
|
|
38
|
-
getRulesetId(rulesetOrId: Ruleset | string): string;
|
|
39
|
-
request(params: RequestParams): Promise<string>;
|
|
40
|
-
}
|
|
41
|
-
interface RequestParams {
|
|
42
|
-
diagnostics?: BackendDiagnosticsOptions;
|
|
43
|
-
requestId: string;
|
|
44
|
-
imodel: IModelDb;
|
|
45
|
-
unitSystem?: UnitSystemKey;
|
|
46
|
-
cancelEvent?: BeEvent<() => void>;
|
|
47
|
-
}
|
|
48
|
-
interface RulesetIdObject {
|
|
49
|
-
uniqueId: string;
|
|
50
|
-
parts: {
|
|
51
|
-
id: string;
|
|
52
|
-
hash?: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/** @internal */
|
|
56
|
-
export declare function getRulesetIdObject(rulesetOrId: Ruleset | string): RulesetIdObject;
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare function getKeysForContentRequest(keys: Readonly<KeySet>, classInstanceKeysProcessor?: (keys: Map<string, Set<string>>) => void): NativePresentationKeySetJSON;
|
|
59
|
-
/** @internal */
|
|
60
|
-
export declare function bisElementInstanceKeysProcessor(imodel: IModelDb, classInstancesMap: Map<string, Set<string>>): void;
|
|
61
|
-
export {};
|
|
1
|
+
import { IModelDb } from "@itwin/core-backend";
|
|
2
|
+
import { BeEvent, IDisposable } from "@itwin/core-bentley";
|
|
3
|
+
import { UnitSystemKey } from "@itwin/core-quantity";
|
|
4
|
+
import { Content, ContentDescriptorRequestOptions, ContentRequestOptions, ContentSourcesRequestOptions, Descriptor, DescriptorOverrides, DisplayLabelRequestOptions, DisplayLabelsRequestOptions, DisplayValueGroup, DistinctValuesRequestOptions, ElementProperties, FilterByInstancePathsHierarchyRequestOptions, FilterByTextHierarchyRequestOptions, HierarchyLevelDescriptorRequestOptions, HierarchyRequestOptions, InstanceKey, KeySet, LabelDefinition, NodeKey, NodePathElement, Paged, PagedResponse, Prioritized, Ruleset, RulesetVariable, SelectClassInfo, SingleElementPropertiesRequestOptions, WithCancelEvent } from "@itwin/presentation-common";
|
|
5
|
+
import { NativePlatformDefinition, NativePresentationKeySetJSON } from "./NativePlatform";
|
|
6
|
+
import { PresentationManagerProps } from "./PresentationManager";
|
|
7
|
+
import { RulesetManager } from "./RulesetManager";
|
|
8
|
+
import { BackendDiagnosticsAttribute, BackendDiagnosticsOptions } from "./Utils";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare class PresentationManagerDetail implements IDisposable {
|
|
11
|
+
private _disposed;
|
|
12
|
+
private _nativePlatform;
|
|
13
|
+
private _updatesTracker;
|
|
14
|
+
private _onManagerUsed;
|
|
15
|
+
private _diagnosticsOptions;
|
|
16
|
+
rulesets: RulesetManager;
|
|
17
|
+
activeUnitSystem: UnitSystemKey | undefined;
|
|
18
|
+
constructor(params: PresentationManagerProps);
|
|
19
|
+
dispose(): void;
|
|
20
|
+
getNativePlatform(): NativePlatformDefinition;
|
|
21
|
+
setOnManagerUsedHandler(handler: () => void): void;
|
|
22
|
+
getNodes(requestOptions: WithCancelEvent<Prioritized<Paged<HierarchyRequestOptions<IModelDb, NodeKey, RulesetVariable>>>> & BackendDiagnosticsAttribute): Promise<string>;
|
|
23
|
+
getNodesCount(requestOptions: WithCancelEvent<Prioritized<HierarchyRequestOptions<IModelDb, NodeKey, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<number>;
|
|
24
|
+
getNodesDescriptor(requestOptions: WithCancelEvent<Prioritized<HierarchyLevelDescriptorRequestOptions<IModelDb, NodeKey, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<string>;
|
|
25
|
+
getNodePaths(requestOptions: WithCancelEvent<Prioritized<FilterByInstancePathsHierarchyRequestOptions<IModelDb, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<NodePathElement[]>;
|
|
26
|
+
getFilteredNodePaths(requestOptions: WithCancelEvent<Prioritized<FilterByTextHierarchyRequestOptions<IModelDb, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<NodePathElement[]>;
|
|
27
|
+
getContentDescriptor(requestOptions: WithCancelEvent<Prioritized<ContentDescriptorRequestOptions<IModelDb, KeySet>>>): Promise<string>;
|
|
28
|
+
getContentSources(requestOptions: WithCancelEvent<Prioritized<ContentSourcesRequestOptions<IModelDb>>> & BackendDiagnosticsAttribute): Promise<SelectClassInfo[]>;
|
|
29
|
+
getContentSetSize(requestOptions: WithCancelEvent<Prioritized<ContentRequestOptions<IModelDb, Descriptor | DescriptorOverrides, KeySet, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<number>;
|
|
30
|
+
getContent(requestOptions: WithCancelEvent<Prioritized<Paged<ContentRequestOptions<IModelDb, Descriptor | DescriptorOverrides, KeySet, RulesetVariable>>>> & BackendDiagnosticsAttribute): Promise<Content | undefined>;
|
|
31
|
+
getPagedDistinctValues(requestOptions: WithCancelEvent<Prioritized<DistinctValuesRequestOptions<IModelDb, Descriptor | DescriptorOverrides, KeySet, RulesetVariable>>> & BackendDiagnosticsAttribute): Promise<PagedResponse<DisplayValueGroup>>;
|
|
32
|
+
getDisplayLabelDefinition(requestOptions: WithCancelEvent<Prioritized<DisplayLabelRequestOptions<IModelDb, InstanceKey>>> & BackendDiagnosticsAttribute): Promise<LabelDefinition>;
|
|
33
|
+
getDisplayLabelDefinitions(requestOptions: WithCancelEvent<Prioritized<Paged<DisplayLabelsRequestOptions<IModelDb, InstanceKey>>>> & BackendDiagnosticsAttribute): Promise<LabelDefinition[]>;
|
|
34
|
+
getElementProperties(requestOptions: WithCancelEvent<Prioritized<SingleElementPropertiesRequestOptions<IModelDb>>> & BackendDiagnosticsAttribute): Promise<ElementProperties | undefined>;
|
|
35
|
+
/** Registers given ruleset and replaces the ruleset with its ID in the resulting object */
|
|
36
|
+
registerRuleset(rulesetOrId: Ruleset | string): string;
|
|
37
|
+
/** @internal */
|
|
38
|
+
getRulesetId(rulesetOrId: Ruleset | string): string;
|
|
39
|
+
request(params: RequestParams): Promise<string>;
|
|
40
|
+
}
|
|
41
|
+
interface RequestParams {
|
|
42
|
+
diagnostics?: BackendDiagnosticsOptions;
|
|
43
|
+
requestId: string;
|
|
44
|
+
imodel: IModelDb;
|
|
45
|
+
unitSystem?: UnitSystemKey;
|
|
46
|
+
cancelEvent?: BeEvent<() => void>;
|
|
47
|
+
}
|
|
48
|
+
interface RulesetIdObject {
|
|
49
|
+
uniqueId: string;
|
|
50
|
+
parts: {
|
|
51
|
+
id: string;
|
|
52
|
+
hash?: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare function getRulesetIdObject(rulesetOrId: Ruleset | string): RulesetIdObject;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare function getKeysForContentRequest(keys: Readonly<KeySet>, classInstanceKeysProcessor?: (keys: Map<string, Set<string>>) => void): NativePresentationKeySetJSON;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare function bisElementInstanceKeysProcessor(imodel: IModelDb, classInstancesMap: Map<string, Set<string>>): void;
|
|
61
|
+
export {};
|
|
62
62
|
//# sourceMappingURL=PresentationManagerDetail.d.ts.map
|