@hpcc-js/comms 2.88.1 → 2.90.0

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.
@@ -0,0 +1,101 @@
1
+ export declare function safeAssign(obj: {
2
+ [id: string]: any;
3
+ }, key: string, value: string): void;
4
+ declare enum GRAPH_TYPE {
5
+ UNKNOWN = 0,
6
+ GRAPH = 1,
7
+ SUBGRAPH = 2,
8
+ VERTEX = 3,
9
+ EDGE = 4,
10
+ LAST = 5
11
+ }
12
+ declare enum GRAPH_TYPE_STRING {
13
+ UNKNOWN = "Unknown",
14
+ GRAPH = "Graph",
15
+ SUBGRAPH = "Cluster",
16
+ VERTEX = "Vertex",
17
+ EDGE = "Edge",
18
+ LAST = "Last"
19
+ }
20
+ declare abstract class GraphItem {
21
+ abstract _globalType: "Graph" | "Cluster" | "Vertex" | "Edge";
22
+ __hpcc_graph: QueryGraph;
23
+ __hpcc_parent: Subgraph;
24
+ __widget: any;
25
+ __hpcc_id: string;
26
+ _globalID: string;
27
+ constructor(graph: QueryGraph, id: string);
28
+ getProperties(): {
29
+ [id: string]: any;
30
+ };
31
+ }
32
+ declare class Subgraph extends GraphItem {
33
+ _globalType: "Graph" | "Cluster" | "Vertex" | "Edge";
34
+ __hpcc_subgraphs: any[];
35
+ __hpcc_vertices: any[];
36
+ __hpcc_edges: any[];
37
+ id: string;
38
+ constructor(graph: QueryGraph, id: string);
39
+ addSubgraph(subgraph: any): void;
40
+ addVertex(vertex: any): void;
41
+ removeVertex(vertex: any): void;
42
+ addEdge(edge: any): void;
43
+ removeEdge(edge: any): void;
44
+ remove(): void;
45
+ walkSubgraphs(visitor: {
46
+ subgraphVisited: (arg0: Subgraph) => boolean;
47
+ }): void;
48
+ walkVertices(visitor: {
49
+ vertexVisited: (arg0: Vertex) => void;
50
+ }): void;
51
+ }
52
+ declare class Vertex extends GraphItem {
53
+ _globalType: "Graph" | "Cluster" | "Vertex" | "Edge";
54
+ _isSpill: boolean;
55
+ constructor(graph: QueryGraph, id: string);
56
+ isSpill(): boolean;
57
+ remove(): void;
58
+ getInVertices(): Vertex[];
59
+ getInEdges(): Edge[];
60
+ getOutVertices(): Vertex[];
61
+ getOutEdges(): Edge[];
62
+ }
63
+ declare class Edge extends GraphItem {
64
+ _globalType: "Graph" | "Cluster" | "Vertex" | "Edge";
65
+ _sourceActivity: any;
66
+ source: any;
67
+ _targetActivity: any;
68
+ target: any;
69
+ constructor(graph: QueryGraph, id: string);
70
+ remove(): void;
71
+ getSource(): Vertex;
72
+ setSource(source: Vertex): void;
73
+ getTarget(): Vertex;
74
+ }
75
+ export declare class QueryGraph {
76
+ idx: {
77
+ [id: string]: Subgraph | Vertex | Edge;
78
+ };
79
+ subgraphs: Subgraph[];
80
+ vertices: Vertex[];
81
+ edges: Edge[];
82
+ xgmml: string;
83
+ constructor();
84
+ clear(): void;
85
+ load(xgmml: string): void;
86
+ merge(xgmml: string): void;
87
+ isSubgraph(item: GraphItem): item is Subgraph;
88
+ isVertex(item: GraphItem): item is Vertex;
89
+ isEdge(item: GraphItem): item is Edge;
90
+ getGlobalType(item: QueryGraph | Subgraph | Vertex | Edge): GRAPH_TYPE;
91
+ getGlobalTypeString(item: QueryGraph | Subgraph | Vertex | Edge): GRAPH_TYPE_STRING;
92
+ getItem(docNode: HTMLElement, id: string): Subgraph | Vertex | Edge;
93
+ removeItem(item: Subgraph | Vertex | Edge): void;
94
+ getChildByTagName(docNode: HTMLElement, tagName: string): HTMLElement | null;
95
+ walkDocument(docNode: HTMLElement, id: string): Subgraph | Vertex | Edge;
96
+ removeSubgraphs(): void;
97
+ removeSpillVertices(): void;
98
+ getLocalisedXGMML(items: GraphItem[], localisationDepth: number, localisationDistance: number, noSpills: boolean): string;
99
+ }
100
+ export {};
101
+ //# sourceMappingURL=queryGraph.d.ts.map
@@ -9,7 +9,9 @@ import { Result } from "./result";
9
9
  import { BaseScope, Scope } from "./scope";
10
10
  import { SourceFile } from "./sourceFile";
11
11
  import { Timer } from "./timer";
12
- interface PropertyValue {
12
+ export declare const PropertyType: string[];
13
+ export declare const RelatedProperty: string[];
14
+ export interface IPropertyValue {
13
15
  Key: string;
14
16
  Value?: string;
15
17
  Avg?: string;
@@ -29,7 +31,7 @@ export interface IScope {
29
31
  [key: string]: any;
30
32
  };
31
33
  __groupedProps: {
32
- [key: string]: PropertyValue;
34
+ [key: string]: IPropertyValue;
33
35
  };
34
36
  id: string;
35
37
  name: string;
@@ -38,6 +40,12 @@ export interface IScope {
38
40
  Label: string;
39
41
  [key: string]: any;
40
42
  }
43
+ export interface ISplitMetric {
44
+ measure: string;
45
+ ext: string;
46
+ label: string;
47
+ }
48
+ export declare function splitMetric(key: string): ISplitMetric;
41
49
  export declare class WorkunitCache extends Cache<{
42
50
  BaseUrl: string;
43
51
  Wuid: string;
@@ -205,6 +213,13 @@ export declare class Workunit extends StateObject<UWorkunitState, IWorkunitState
205
213
  fetchServiceNames(): Promise<string[]>;
206
214
  fetchDetailsMeta(request?: Partial<WsWorkunits.WUDetailsMeta.Request>): Promise<WsWorkunits.WUDetailsMeta.Response>;
207
215
  fetchDetailsRaw(request?: Partial<WsWorkunits.WUDetails.Request>): Promise<WsWorkunits.WUDetails.Scope[]>;
216
+ normalizeDetails(meta: WsWorkunits.WUDetailsMeta.Response, scopes: WsWorkunits.WUDetails.Scope[]): {
217
+ meta: WsWorkunits.WUDetailsMeta.Response;
218
+ columns: {
219
+ [id: string]: any;
220
+ };
221
+ data: IScope[];
222
+ };
208
223
  fetchDetailsNormalized(request?: Partial<WsWorkunits.WUDetails.Request>): Promise<{
209
224
  meta: WsWorkunits.WUDetailsMeta.Response;
210
225
  columns: {
@@ -252,5 +267,4 @@ export interface IECLDefintion {
252
267
  line: number;
253
268
  column: number;
254
269
  }
255
- export {};
256
270
  //# sourceMappingURL=workunit.d.ts.map