alizarin 0.2.1-alpha.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE.txt +661 -0
  2. package/README.md +160 -0
  3. package/dist/_wasm.d.ts +23 -0
  4. package/dist/alizarin.full.js +799 -0
  5. package/dist/alizarin.full.js.map +1 -0
  6. package/dist/alizarin.inline-full.js +4 -0
  7. package/dist/alizarin.inline.js +4 -0
  8. package/dist/alizarin.js +47 -0
  9. package/dist/alizarin.js.map +1 -0
  10. package/dist/alizarin_bg.wasm +0 -0
  11. package/dist/backend.d.ts +74 -0
  12. package/dist/cards.d.ts +21 -0
  13. package/dist/client.d.ts +86 -0
  14. package/dist/collectionMutator.d.ts +155 -0
  15. package/dist/csvModelLoader.d.ts +59 -0
  16. package/dist/full.d.ts +3 -0
  17. package/dist/graphManager.d.ts +259 -0
  18. package/dist/interfaces.d.ts +145 -0
  19. package/dist/main-r-MmUiQf.js +12355 -0
  20. package/dist/main-r-MmUiQf.js.map +1 -0
  21. package/dist/main.d.ts +28 -0
  22. package/dist/nodeConfig.d.ts +61 -0
  23. package/dist/pseudos.d.ts +118 -0
  24. package/dist/rdm.d.ts +68 -0
  25. package/dist/renderers.d.ts +65 -0
  26. package/dist/semantic.d.ts +35 -0
  27. package/dist/static-types.d.ts +172 -0
  28. package/dist/staticStore.d.ts +60 -0
  29. package/dist/tracing/index.d.ts +172 -0
  30. package/dist/utils.d.ts +43 -0
  31. package/dist/validation/index.d.ts +734 -0
  32. package/dist/validation/index.js +1194 -0
  33. package/dist/validation/index.js.map +1 -0
  34. package/dist/validation/validators/graphLoading.d.ts +69 -0
  35. package/dist/validation/validators/index.d.ts +1 -0
  36. package/dist/viewModels/BooleanViewModel.d.ts +17 -0
  37. package/dist/viewModels/ConceptListViewModel.d.ts +15 -0
  38. package/dist/viewModels/ConceptValueViewModel.d.ts +28 -0
  39. package/dist/viewModels/DateViewModel.d.ts +16 -0
  40. package/dist/viewModels/DomainValueListViewModel.d.ts +15 -0
  41. package/dist/viewModels/DomainValueViewModel.d.ts +17 -0
  42. package/dist/viewModels/EDTFViewModel.d.ts +13 -0
  43. package/dist/viewModels/GeoJSONViewModel.d.ts +26 -0
  44. package/dist/viewModels/NodeViewModel.d.ts +15 -0
  45. package/dist/viewModels/NonLocalizedStringViewModel.d.ts +13 -0
  46. package/dist/viewModels/NumberViewModel.d.ts +14 -0
  47. package/dist/viewModels/ResourceInstanceListViewModel.d.ts +25 -0
  48. package/dist/viewModels/ResourceInstanceViewModel.d.ts +62 -0
  49. package/dist/viewModels/StringViewModel.d.ts +17 -0
  50. package/dist/viewModels/UrlViewModel.d.ts +22 -0
  51. package/dist/viewModels/cacheEntries.d.ts +73 -0
  52. package/dist/viewModels/getViewModel.d.ts +4 -0
  53. package/dist/viewModels/index.d.ts +20 -0
  54. package/dist/viewModels/types.d.ts +15 -0
  55. package/dist/viewModels.d.ts +1 -0
  56. package/dist/wasmTiming.d.ts +11 -0
  57. package/package.json +93 -0
@@ -0,0 +1,259 @@
1
+ import { ArchesClient, ArchesClientRemote } from './client';
2
+ import { staticStore } from './staticStore';
3
+ import { CardComponent, Widget } from './cards';
4
+ import { StaticTranslatableString, StaticCollection, StaticConstraint, StaticEdge, StaticTile, StaticGraph, StaticNode, StaticNodegroup, StaticResource, StaticResourceSummary } from "./static-types";
5
+ import { PseudoValue, PseudoUnavailable } from "./pseudos.ts";
6
+ import { SemanticViewModel, NodeViewModel } from "./viewModels.ts";
7
+ import { GetMeta, IRIVM, IStringKeyedObject, IPseudo, IInstanceWrapper, IViewModel, IWKRM, ResourceInstanceViewModelConstructor, PermissionValue } from "./interfaces";
8
+ import { AttrPromise } from "./utils";
9
+ import { recordWasmTiming, printWasmTimings, clearWasmTimings, getWasmTimings } from './wasmTiming';
10
+ export { recordWasmTiming, printWasmTimings, clearWasmTimings, getWasmTimings };
11
+ export type { ConditionalPermission, PermissionValue } from "./interfaces";
12
+ declare class ConfigurationOptions {
13
+ graphs: Array<string> | null | boolean;
14
+ eagerLoadGraphs: boolean;
15
+ defaultAllowAllNodegroups: boolean;
16
+ }
17
+ export declare class ResourceInstanceWrapper<RIVM extends IRIVM<RIVM>> implements IInstanceWrapper<RIVM> {
18
+ wkri: RIVM;
19
+ model: ResourceModelWrapper<RIVM>;
20
+ wasmWrapper: any;
21
+ resource?: StaticResource;
22
+ private _pseudoCache;
23
+ cache: {
24
+ [tileId: string]: {
25
+ [nodeId: string]: IStringKeyedObject;
26
+ };
27
+ } | undefined;
28
+ scopes?: string[];
29
+ metadata?: {
30
+ [key: string]: string;
31
+ };
32
+ private tilesLoaded;
33
+ private pruneTiles;
34
+ constructor(wkri: RIVM, model: ResourceModelWrapper<RIVM>, resource: StaticResource | null | false, // False to disable dynamic resource-loading
35
+ pruneTiles?: boolean, lazy?: boolean, assumeTilesComprehensiveForNodegroup?: boolean);
36
+ ensureTilesLoaded(): Promise<void>;
37
+ pruneResourceTiles(): undefined;
38
+ /**
39
+ * Retrieve pseudo value by alias - queries Rust's pseudo_cache
40
+ * Replaces ValueList.retrieve
41
+ */
42
+ retrievePseudo(key: string, dflt?: any, raiseError?: boolean): Promise<Array<IPseudo> | null>;
43
+ hasPseudo(key: string): Promise<boolean>;
44
+ setPseudo(key: string, value: any): void;
45
+ setDefaultPseudo(key: string, value: any): Promise<any>;
46
+ loadNodes(aliases: Array<string>): Promise<void>;
47
+ getName(update?: boolean): string;
48
+ getDescriptors(update?: boolean): any;
49
+ getValuesAtPath(path: string, filterTileId?: string): PseudoValue<any> | PseudoUnavailable | import("./pseudos.ts").PseudoList;
50
+ addPseudo(childNode: StaticNode, tile: StaticTile | null): IPseudo;
51
+ allEntries(): MapIterator<[string, Array<IPseudo> | false | null]>;
52
+ keys(): Promise<any>;
53
+ values(): Promise<any>;
54
+ entries(): Promise<any>;
55
+ getRootViewModel(): Promise<SemanticViewModel>;
56
+ getOrmAttribute(key: string): AttrPromise<IViewModel>;
57
+ getRoot(): Promise<IPseudo | undefined>;
58
+ setOrmAttribute(key: string, value: any): Promise<void>;
59
+ /**
60
+ * Populate all nodegroups for a resource
61
+ * Uses Rust implementation via WASM - Rust caches all values internally
62
+ */
63
+ populate(lazy: boolean): Promise<void>;
64
+ getValueCache(build?: boolean, getMeta?: GetMeta): Promise<{
65
+ [tileId: string]: {
66
+ [nodeId: string]: IStringKeyedObject;
67
+ };
68
+ } | undefined>;
69
+ buildValueCache(getMeta: GetMeta): Promise<{
70
+ [tileId: string]: {
71
+ [nodeId: string]: IStringKeyedObject;
72
+ };
73
+ }>;
74
+ /**
75
+ * Release WASM memory held by this wrapper.
76
+ * Call this after extracting data from a resource to free memory when processing many resources.
77
+ * This clears tiles, pseudo cache, and other internal state.
78
+ */
79
+ release(): void;
80
+ }
81
+ type GraphMutation = (baseGraph: StaticGraph) => StaticGraph;
82
+ declare class GraphMutator {
83
+ baseGraph: StaticGraph;
84
+ mutations: GraphMutation[];
85
+ autocreateCard: boolean;
86
+ constructor(baseGraph: StaticGraph, options?: {
87
+ autocreateCard?: boolean;
88
+ });
89
+ _generateUuidv5(key: string): string;
90
+ _generateEdge(fromNode: string, toNode: string, ontologyProperty: string, name?: string, description?: string): StaticEdge;
91
+ addSemanticNode(parentAlias: string | null, alias: string, name: string, cardinality: 'n' | '1', ontologyClass: string | string[], parentProperty: string, description?: string, options?: {
92
+ exportable?: boolean;
93
+ fieldname?: string;
94
+ hascustomalias?: boolean;
95
+ is_collector?: boolean;
96
+ isrequired?: boolean;
97
+ issearchable?: boolean;
98
+ istopnode?: boolean;
99
+ sortorder?: number;
100
+ }, config?: {
101
+ [key: string]: any;
102
+ }): this;
103
+ addConceptNode(parentAlias: string | null, alias: string, name: string, collection: StaticCollection, cardinality: 'n' | '1', ontologyClass: string | string[], parentProperty: string, description?: string, options?: {
104
+ is_list?: boolean;
105
+ exportable?: boolean;
106
+ fieldname?: string;
107
+ hascustomalias?: boolean;
108
+ is_collector?: boolean;
109
+ isrequired?: boolean;
110
+ issearchable?: boolean;
111
+ istopnode?: boolean;
112
+ sortorder?: number;
113
+ }, config?: {
114
+ [key: string]: any;
115
+ }): this;
116
+ addCard(nodegroup: string | StaticNodegroup, name: string | StaticTranslatableString, component?: CardComponent, options?: {
117
+ active?: boolean;
118
+ constraints?: Array<StaticConstraint>;
119
+ cssclass?: string | null;
120
+ helpenabled?: boolean;
121
+ helptext?: string | null | StaticTranslatableString;
122
+ helptitle?: string | null | StaticTranslatableString;
123
+ instructions?: string | null | StaticTranslatableString;
124
+ is_editable?: boolean;
125
+ description?: string | null;
126
+ sortorder?: number | null;
127
+ visible?: boolean;
128
+ }, config?: {
129
+ [key: string]: any;
130
+ }): void;
131
+ addStringNode(parentAlias: string | null, alias: string, name: string, cardinality: 'n' | '1', ontologyClass: string | string[], parentProperty: string, description?: string, options?: {
132
+ exportable?: boolean;
133
+ fieldname?: string;
134
+ hascustomalias?: boolean;
135
+ is_collector?: boolean;
136
+ isrequired?: boolean;
137
+ issearchable?: boolean;
138
+ istopnode?: boolean;
139
+ sortorder?: number;
140
+ }, config?: {
141
+ [key: string]: any;
142
+ }): this;
143
+ _addNodegroup(parentAlias: string | null, nodegroupId: string, cardinality: 'n' | '1', name?: StaticTranslatableString): this;
144
+ _addGenericNode(parentAlias: string | null, alias: string, name: string, cardinality: 'n' | '1', datatype: string, ontologyClass: string | string[], parentProperty: string, description?: string, options?: {
145
+ exportable?: boolean;
146
+ fieldname?: string;
147
+ hascustomalias?: boolean;
148
+ is_collector?: boolean;
149
+ isrequired?: boolean;
150
+ issearchable?: boolean;
151
+ istopnode?: boolean;
152
+ sortorder?: number;
153
+ }, config?: {
154
+ [key: string]: any;
155
+ }): this;
156
+ addWidgetToCard(nodeId: string, widget: Widget, name: string, config: {
157
+ [key: string]: any;
158
+ }, options?: {
159
+ sortorder?: number | null;
160
+ silentSkip?: boolean;
161
+ visible?: boolean;
162
+ }): GraphMutator;
163
+ apply(): StaticGraph;
164
+ }
165
+ /**
166
+ * ResourceModelWrapper — graph schema access with backend delegation.
167
+ *
168
+ * Stores a backend wrapper (_backend) that is either a WASMResourceModelWrapper
169
+ * or NapiResourceModelWrapper, and delegates node/edge/nodegroup/permission
170
+ * operations to it. WKRM metadata is stored locally.
171
+ */
172
+ declare class ResourceModelWrapper<RIVM extends IRIVM<RIVM>> {
173
+ private _backend;
174
+ wkrm: IWKRM;
175
+ viewModelClass?: ResourceInstanceViewModelConstructor<RIVM>;
176
+ permittedNodegroups?: Map<string, PermissionValue>;
177
+ pruneTiles: boolean;
178
+ private _nodes;
179
+ private _nodesByAlias;
180
+ private _edges;
181
+ private _nodegroups;
182
+ constructor(wkrm: IWKRM, graph: StaticGraph, viewModelClass?: ResourceInstanceViewModelConstructor<RIVM>, defaultAllow?: boolean);
183
+ get graph(): StaticGraph;
184
+ set graph(g: StaticGraph);
185
+ get nodes(): Map<string, StaticNode> | null;
186
+ get nodesByAlias(): Map<string, StaticNode> | null;
187
+ get edges(): Map<string, string[]> | null;
188
+ get nodegroups(): Map<string, StaticNodegroup> | null;
189
+ private _clearCaches;
190
+ getRootNode(): StaticNode;
191
+ getChildNodes(nodeId: string): Map<string, StaticNode>;
192
+ getChildNodeAliases(nodeId: string): string[];
193
+ getGraphId(): string;
194
+ getNodeObjectFromAlias(alias: string): StaticNode;
195
+ getNodeObjectFromId(id: string): StaticNode;
196
+ getNodeIdFromAlias(alias: string): string;
197
+ getNodegroupIds(): string[];
198
+ getNodegroupName(nodegroupId: string): string;
199
+ createPseudoNode(alias?: string): any;
200
+ createPseudoNodeChild(childNode: string, parent: any): any;
201
+ createPseudoValue(alias: string | undefined, tile: any, parent: any): any;
202
+ getRoot(): NodeViewModel;
203
+ buildNodes(): void;
204
+ getNodeObjects(): Map<string, StaticNode>;
205
+ getNodeObjectsByAlias(): Map<string, StaticNode>;
206
+ getEdges(): Map<string, string[]>;
207
+ getNodegroupObjects(): Map<string, StaticNodegroup>;
208
+ getBranchPublicationIds(accessible?: boolean): string[];
209
+ getCollections(accessible?: boolean): string[];
210
+ pruneGraph(keepFunctions?: string[]): undefined;
211
+ getPruneTiles(pruneTiles?: boolean): boolean;
212
+ all(params?: {
213
+ limit?: number;
214
+ lazy?: boolean;
215
+ pruneTiles?: boolean;
216
+ } | undefined): Promise<Array<RIVM>>;
217
+ resourceGenerator(staticResources: AsyncIterable<StaticResource, RIVM, unknown>, lazy?: boolean, pruneTiles?: boolean): AsyncGenerator<RIVM, void, unknown>;
218
+ iterAll(params: {
219
+ limit?: number;
220
+ lazy?: boolean;
221
+ pruneTiles?: boolean;
222
+ }): AsyncGenerator<RIVM>;
223
+ summaryGenerator(staticSummaries: AsyncIterable<StaticResourceSummary>, lazy?: boolean): AsyncGenerator<RIVM>;
224
+ iterAllSummaries(params: {
225
+ limit?: number;
226
+ }): AsyncGenerator<RIVM>;
227
+ allSummaries(params?: {
228
+ limit?: number;
229
+ } | undefined): Promise<Array<RIVM>>;
230
+ loadFullResource(id: string): Promise<RIVM>;
231
+ findStatic(id: string): Promise<StaticResource>;
232
+ find(id: string, lazy?: boolean, pruneTiles?: boolean): Promise<RIVM>;
233
+ setDefaultAllowAllNodegroups(defaultAllow: boolean): void;
234
+ setPermittedNodegroups(permissions: Map<string, PermissionValue>): void;
235
+ getPermittedNodegroups(): Map<string, PermissionValue>;
236
+ isNodegroupPermitted(nodegroupId: string, _tile: StaticTile | null): boolean;
237
+ makeInstance(id: string, resource: StaticResource | null, pruneTiles?: boolean, lazy?: boolean): RIVM;
238
+ fromStaticResource(resource: StaticResource, lazy?: boolean, pruneTiles?: boolean): Promise<RIVM>;
239
+ asTree(): {
240
+ [key: string]: any;
241
+ };
242
+ }
243
+ declare class GraphManager {
244
+ _initialized: boolean;
245
+ archesClient: ArchesClient;
246
+ graphs: Map<string, ResourceModelWrapper<any>>;
247
+ wkrms: Map<string, IWKRM>;
248
+ defaultAllow: boolean;
249
+ constructor(archesClient: ArchesClient);
250
+ getPruneTiles(pruneTiles?: boolean): boolean;
251
+ initialize(configurationOptions?: ConfigurationOptions | undefined): Promise<void>;
252
+ loadGraph<RIVM extends IRIVM<RIVM>>(modelClass: ResourceInstanceViewModelConstructor<RIVM> | string, defaultAllow?: boolean): Promise<ResourceModelWrapper<RIVM>>;
253
+ get<RIVM extends IRIVM<RIVM>>(modelClass: ResourceInstanceViewModelConstructor<RIVM> | string, defaultAllow?: boolean): Promise<ResourceModelWrapper<RIVM>>;
254
+ getResource<T extends IRIVM<T>>(resourceId: string, lazy?: boolean, pruneTiles?: boolean): Promise<T>;
255
+ getGraph(graphId: string): StaticGraph;
256
+ }
257
+ declare const graphManager: GraphManager;
258
+ export { createWKRM, getWKRMClass } from "./backend";
259
+ export { GraphManager, graphManager, ArchesClientRemote, staticStore, ResourceModelWrapper, GraphMutator };
@@ -0,0 +1,145 @@
1
+ import { StaticResource, StaticTile, StaticGraphMeta, StaticCollection, StaticNode, StaticNodegroup } from "./static-types";
2
+ import { AttrPromise } from "./utils";
3
+ type ResourceInstanceViewModelConstructor<T extends IRIVM<T>> = new (id: string, modelWrapper: IModelWrapper<T> | null, instanceWrapperFactory: ((rivm: T) => IInstanceWrapper<T>) | null, cacheEntry: object | null) => T;
4
+ interface IRIVM<T extends IRIVM<T>> {
5
+ [key: string]: any;
6
+ id: string;
7
+ then: undefined;
8
+ $: IInstanceWrapper<T> | null;
9
+ __: IModelWrapper<T> | null;
10
+ __parentPseudo: IPseudo | undefined;
11
+ }
12
+ interface IStringKeyedObject {
13
+ [key: string | symbol]: any;
14
+ }
15
+ type GetMeta = ((vm: IViewModel) => IStringKeyedObject) | undefined;
16
+ /**
17
+ * Conditional permission rule for filtering tiles by data values.
18
+ * Tiles are permitted if the value at `path` is in the `allowed` set.
19
+ */
20
+ interface ConditionalPermission {
21
+ /** JSON path to evaluate (e.g., ".data.uuid.field.name") */
22
+ path: string;
23
+ /** Set of allowed values - tile is permitted if value at path is in this set */
24
+ allowed: string[];
25
+ }
26
+ /** Permission value: boolean for simple allow/deny, or conditional rule */
27
+ type PermissionValue = boolean | ConditionalPermission;
28
+ interface IViewModel {
29
+ _: IViewModel | undefined | Promise<IViewModel | null>;
30
+ __parentPseudo: IPseudo | undefined;
31
+ forJson(): {
32
+ [key: string]: any;
33
+ } | {
34
+ [key: string]: any;
35
+ }[] | string | number | boolean | null;
36
+ __forJsonCache(getMeta: GetMeta): IStringKeyedObject | null;
37
+ }
38
+ interface IInstanceWrapper<T extends IRIVM<T>> {
39
+ resource: StaticResource | null | false;
40
+ model: IModelWrapper<T>;
41
+ loadNodes(aliases: Array<string>): Promise<void>;
42
+ allEntries(): MapIterator<[string, Array<IPseudo> | false | null]>;
43
+ addPseudo(childNode: StaticNode, tile: StaticTile | null, node: StaticNode): IPseudo;
44
+ setOrmAttribute(key: string, value: any): Promise<void>;
45
+ getOrmAttribute(key: string): Promise<any>;
46
+ getValueCache(build: boolean, getMeta: GetMeta): Promise<{
47
+ [tileId: string]: {
48
+ [nodeId: string]: IStringKeyedObject;
49
+ };
50
+ } | undefined>;
51
+ getRoot(): Promise<IPseudo | undefined>;
52
+ getRootViewModel(): Promise<IStringKeyedObject>;
53
+ populate(lazy: boolean): Promise<void>;
54
+ retrievePseudo(key: string, dflt?: any, raiseError?: boolean): Promise<Array<IPseudo> | null>;
55
+ hasPseudo(key: string): Promise<boolean>;
56
+ setPseudo(key: string, value: any): void;
57
+ setDefaultPseudo(key: string, value: any): Promise<any>;
58
+ }
59
+ declare class INodeConfig {
60
+ }
61
+ interface IWKRM {
62
+ modelName: string;
63
+ modelClassName: string;
64
+ graphId: string;
65
+ meta: StaticGraphMeta;
66
+ }
67
+ /**
68
+ * Backend interface for graph schema operations.
69
+ * Implemented by both WASMResourceModelWrapper and NapiResourceModelWrapper.
70
+ *
71
+ * This is the contract that the TS ResourceModelWrapper delegates to.
72
+ * WASM returns JS Maps from getters; NAPI returns plain objects.
73
+ * The TS layer normalizes to Maps via the ResourceModelWrapper property getters.
74
+ */
75
+ interface IModelWrapperBackend {
76
+ graph: any;
77
+ readonly nodes: Map<string, StaticNode> | Record<string, StaticNode> | null;
78
+ readonly nodesByAlias: Map<string, StaticNode> | Record<string, StaticNode> | null;
79
+ readonly edges: Map<string, string[]> | Record<string, string[]> | null;
80
+ readonly nodegroups: Map<string, StaticNodegroup> | Record<string, StaticNodegroup> | null;
81
+ buildNodes(): void;
82
+ getGraphId(): string;
83
+ getRootNode(): StaticNode;
84
+ getNodeObjects(): Map<string, StaticNode> | Record<string, StaticNode>;
85
+ getNodeObjectsByAlias(): Map<string, StaticNode> | Record<string, StaticNode>;
86
+ getNodeObjectFromAlias(alias: string): StaticNode;
87
+ getNodeObjectFromId(id: string): StaticNode;
88
+ getChildNodes(nodeId: string): Map<string, StaticNode> | Record<string, StaticNode>;
89
+ getChildNodeAliases(nodeId: string): string[];
90
+ getNodeIdFromAlias(alias: string): string;
91
+ getEdges(): Map<string, string[]> | Record<string, string[]>;
92
+ getNodegroupObjects(): Map<string, StaticNodegroup> | Record<string, StaticNodegroup>;
93
+ getNodegroupIds(): string[];
94
+ getNodegroupName(nodegroupId: string): string;
95
+ setPermittedNodegroups(permissions: any): void;
96
+ getPermittedNodegroups(): Map<string, boolean> | Record<string, boolean>;
97
+ isNodegroupPermitted(nodegroupId: string, tile?: StaticTile | null): boolean;
98
+ setDefaultAllowAllNodegroups?(defaultAllow: boolean): void;
99
+ pruneGraph(keepFunctions?: string[]): void;
100
+ createPseudoNode?(alias?: string | null): any;
101
+ createPseudoNodeChild?(childNode: string, parent: any): any;
102
+ createPseudoValue?(alias: string | null | undefined, tile: any, parent: any): any;
103
+ }
104
+ interface IModelWrapper<T extends IRIVM<T>> {
105
+ all(params: {
106
+ limit?: number;
107
+ lazy?: boolean;
108
+ } | undefined): Promise<Array<T>>;
109
+ getPermittedNodegroups(): Map<string | null, PermissionValue>;
110
+ isNodegroupPermitted(nodegroupId: string, tile: StaticTile | null): boolean;
111
+ getChildNodes(nodeId: string): Map<string, StaticNode>;
112
+ getNodeObjectsByAlias(): Map<string, StaticNode>;
113
+ getNodeObjects(): Map<string, StaticNode>;
114
+ getNodegroupObjects(): Map<string, StaticNodegroup>;
115
+ getEdges(): Map<string, string[]>;
116
+ wkrm: IWKRM;
117
+ getNodegroupName(nodegroupId: string): string;
118
+ createPseudoValue(alias: string | null | undefined, tile: any, parent: any): any;
119
+ }
120
+ interface IReferenceDataManager {
121
+ retrieveCollection(id: string): Promise<StaticCollection>;
122
+ }
123
+ interface IPseudo {
124
+ parentValue: IPseudo | null;
125
+ getValue(): AttrPromise<IViewModel | null | Array<IViewModel>>;
126
+ forJson(): {
127
+ [key: string]: any;
128
+ } | {
129
+ [key: string]: any;
130
+ }[] | string | number | boolean | null;
131
+ isIterable(): boolean;
132
+ tile: any;
133
+ node: any;
134
+ describeField: () => string;
135
+ describeFieldGroup: () => string;
136
+ }
137
+ interface ISemantic extends IViewModel {
138
+ update(mapLike: Map<string, any> | {
139
+ [key: string]: any;
140
+ }): void;
141
+ }
142
+ interface IGraphManager {
143
+ getResource<T extends IRIVM<T>>(resourceId: string, lazy: boolean): Promise<T>;
144
+ }
145
+ export type { ConditionalPermission, PermissionValue, ISemantic, ResourceInstanceViewModelConstructor, GetMeta, IInstanceWrapper, IModelWrapper, IModelWrapperBackend, IRIVM, IWKRM, IStringKeyedObject, IReferenceDataManager, IViewModel, IPseudo, INodeConfig, IGraphManager };