@hpcc-js/api 2.9.1 → 2.10.1

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/src/ITooltip.ts CHANGED
@@ -2,169 +2,163 @@ import { Widget } from "@hpcc-js/common";
2
2
  import { format as d3Format } from "d3-format";
3
3
  import { tip } from "./Tooltip";
4
4
 
5
- // const tip = _tip.tip || _tip.default || _tip;
6
-
7
5
  import "../src/ITooltip.css";
8
6
 
9
7
  declare const event: object;
10
8
 
11
- export abstract class ITooltip extends Widget {
12
- protected _valueFormatter;
13
- layerEnter;
14
- layerUpdate;
15
- layerExit;
16
- tooltip = tip();
17
-
18
- constructor() {
19
- super();
20
-
21
- this._valueFormatter = d3Format(this.tooltipValueFormat() as string);
22
-
23
- if (this.layerEnter) {
24
- const layerEnter = this.layerEnter;
25
- this.layerEnter = function (_base, svgElement, _domElement) {
26
- if (!this._parentOverlay) {
27
- this._parentOverlay = _base._parentOverlay;
28
- }
29
- this.tooltipEnter(svgElement);
30
- layerEnter.apply(this, arguments);
31
- };
32
- const layerUpdate = this.layerUpdate;
33
- this.layerUpdate = function (_base) {
34
- layerUpdate.apply(this, arguments);
35
- this.tooltipUpdate();
36
- };
37
- const layerExit = this.layerExit;
38
- this.layerExit = function (_base) {
39
- this.tooltipExit();
40
- layerExit.apply(this, arguments);
41
- };
42
- } else {
43
- const enter = this.enter;
44
- this.enter = function (_domNode, element) {
45
- this.tooltipEnter(element);
46
- enter.apply(this, arguments);
47
- };
48
- const update = this.update;
49
- this.update = function (_domNode, _element) {
50
- update.apply(this, arguments);
51
- this.tooltipUpdate();
52
- };
53
- const exit = this.exit;
54
- this.exit = function (_domNode, _element) {
55
- this.tooltipExit();
56
- exit.apply(this, arguments);
57
- };
58
- }
59
- }
60
-
61
- abstract target(): any;
62
- abstract target(_: any): this;
9
+ // Use old school class declaration as this is a mixin ---
10
+ export function ITooltip() {
11
+ this.tooltip = tip();
63
12
 
64
- tooltipEnter(element) {
65
- const overlayElement = this.parentOverlay();
66
- if (!overlayElement.empty()) {
67
- this.tooltip.rootElement(overlayElement.node().parentNode);
68
- }
69
- element.call(this.tooltip);
70
- }
13
+ this._valueFormatter = d3Format(this.tooltipValueFormat() as string);
71
14
 
72
- tooltipUpdate() {
73
- this.tooltip.offset(() => {
74
- if (event && this.tooltipFollowMouse()) {
75
- const d3tipElement: HTMLDivElement = document.querySelector(".d3-tip"); // d3Tip offers no reference to the '.d3-tip' element...?
76
- d3tipElement.style.display = "block";
77
- d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + "px";
78
- d3tipElement.style.top = (event as any).clientY + "px";
79
- return [];
15
+ if (this.layerEnter) {
16
+ const layerEnter = this.layerEnter;
17
+ this.layerEnter = function (_base, svgElement, _domElement) {
18
+ if (!this._parentOverlay) {
19
+ this._parentOverlay = _base._parentOverlay;
80
20
  }
81
- switch (this.tooltip.direction()()) {
82
- case "e":
83
- return [0, this.tooltipOffset()];
84
- default:
85
- return [-this.tooltipOffset(), 0];
86
- }
87
- });
88
-
89
- let classed = this.tooltip.attr("class");
90
- if (classed) {
91
- classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
92
- classed = classed.split(" ")
93
- .filter(function (_class) {
94
- return _class.indexOf("ITooltip-tooltipStyle-") !== 0;
95
- })
96
- .join(" ")
97
- ;
98
- classed += " ITooltip-tooltipStyle-" + this.tooltipStyle();
99
- this.tooltip
100
- .attr("class", classed)
101
- ;
102
- }
21
+ this.tooltipEnter(svgElement);
22
+ layerEnter.apply(this, arguments);
23
+ };
24
+ const layerUpdate = this.layerUpdate;
25
+ this.layerUpdate = function (_base) {
26
+ layerUpdate.apply(this, arguments);
27
+ this.tooltipUpdate();
28
+ };
29
+ const layerExit = this.layerExit;
30
+ this.layerExit = function (_base) {
31
+ this.tooltipExit();
32
+ layerExit.apply(this, arguments);
33
+ };
34
+ } else {
35
+ const enter = this.enter;
36
+ this.enter = function (_domNode, element) {
37
+ this.tooltipEnter(element);
38
+ enter.apply(this, arguments);
39
+ };
40
+ const update = this.update;
41
+ this.update = function (_domNode, _element) {
42
+ update.apply(this, arguments);
43
+ this.tooltipUpdate();
44
+ };
45
+ const exit = this.exit;
46
+ this.exit = function (_domNode, _element) {
47
+ this.tooltipExit();
48
+ exit.apply(this, arguments);
49
+ };
103
50
  }
51
+ }
52
+ ITooltip.prototype = Object.create(Widget.prototype);
53
+ ITooltip.prototype.constructor = ITooltip;
104
54
 
105
- tooltipExit() {
106
- if (this.tooltip) {
107
- this.tooltip.destroy();
108
- }
109
- }
55
+ // abstract target(): any;
56
+ // abstract target(_: any): this;
110
57
 
111
- _tooltipHTML(d) {
112
- return d;
113
- }
114
-
115
- tooltipHTML(_) {
116
- return this.tooltip.html(_);
58
+ ITooltip.prototype.tooltipEnter = function (element) {
59
+ const overlayElement = this.parentOverlay();
60
+ if (!overlayElement.empty()) {
61
+ this.tooltip.rootElement(overlayElement.node().parentNode);
117
62
  }
63
+ element.call(this.tooltip);
64
+ };
118
65
 
119
- tooltipFormat(opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {
120
- opts.label = opts.label === undefined ? "" : opts.label;
121
- opts.series = opts.series || "";
122
- if (opts.value instanceof Date) {
123
- opts.value = opts.value || "";
124
- } else {
125
- opts.value = this._valueFormatter(opts.value) || "";
66
+ ITooltip.prototype.tooltipUpdate = function () {
67
+ this.tooltip.offset(() => {
68
+ if (event && this.tooltipFollowMouse()) {
69
+ const d3tipElement: HTMLDivElement = document.querySelector(".d3-tip"); // d3Tip offers no reference to the '.d3-tip' element...?
70
+ d3tipElement.style.display = "block";
71
+ d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + "px";
72
+ d3tipElement.style.top = (event as any).clientY + "px";
73
+ return [];
126
74
  }
127
- switch (this.tooltipStyle()) {
128
- case "none":
129
- break;
130
- case "series-table":
131
- let html = '<table class="ITooltip-series-table">'
132
- + "<thead>"
133
- + '<tr><th colspan="2">' + opts.label + "</th></tr>"
134
- + "</thead>"
135
- + "<tbody>";
136
- opts.arr.forEach(function (row) {
137
- html += "<tr>";
138
- html += "<td>";
139
- html += '<div class="series-table-row-color" style="background-color:' + row.color + '"></div>';
140
- html += '<div class="series-table-row-label">' + row.label + "</div>";
141
- html += "</td>";
142
- html += '<td><div class="series-table-row-value">' + row.value + "</div></td>";
143
- html += "</tr>";
144
- });
145
- html += "</tbody>";
146
- html += "</table>";
147
- return html;
75
+ switch (this.tooltip.direction()()) {
76
+ case "e":
77
+ return [0, this.tooltipOffset()];
148
78
  default:
149
- if (opts.series) {
150
- return "<span style='color:" + this.tooltipSeriesColor() + "'>" + opts.series + "</span> / <span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
151
- }
152
- if (opts.label !== "") {
153
- return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
154
- }
155
- return "<span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
79
+ return [-this.tooltipOffset(), 0];
156
80
  }
81
+ });
82
+
83
+ let classed = this.tooltip.attr("class");
84
+ if (classed) {
85
+ classed = classed.split(" notick").join("") + (this.tooltipTick() ? "" : " notick") + (this.tooltipStyle() === "none" ? " hidden" : "");
86
+ classed = classed.split(" ")
87
+ .filter(function (_class) {
88
+ return _class.indexOf("ITooltip-tooltipStyle-") !== 0;
89
+ })
90
+ .join(" ")
91
+ ;
92
+ classed += " ITooltip-tooltipStyle-" + this.tooltipStyle();
93
+ this.tooltip
94
+ .attr("class", classed)
95
+ ;
96
+ }
97
+ };
98
+
99
+ ITooltip.prototype.tooltipExit = function () {
100
+ if (this.tooltip) {
101
+ this.tooltip.destroy();
157
102
  }
103
+ };
104
+
105
+ ITooltip.prototype._tooltipHTML = function (d) {
106
+ return d;
107
+ };
108
+
109
+ ITooltip.prototype.tooltipHTML = function (_) {
110
+ return this.tooltip.html(_);
111
+ };
158
112
 
159
- tooltipKeyValueFormat(titleKey: string, obj: object): string {
160
- let body = "";
161
- for (const key in obj) {
162
- if (key !== titleKey) {
163
- const value = obj && obj[key] ? obj[key] : "";
164
- body += `<tr><td style="${this.tooltipLabelColor_exists() ? "color:" + this.tooltipLabelColor() : ""}">${key}</td><td style="font-weight:normal">${value}</td></tr>`;
113
+ ITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {
114
+ opts.label = opts.label === undefined ? "" : opts.label;
115
+ opts.series = opts.series || "";
116
+ if (opts.value instanceof Date) {
117
+ opts.value = opts.value || "";
118
+ } else {
119
+ opts.value = this._valueFormatter(opts.value) || "";
120
+ }
121
+ switch (this.tooltipStyle()) {
122
+ case "none":
123
+ break;
124
+ case "series-table":
125
+ let html = '<table class="ITooltip-series-table">'
126
+ + "<thead>"
127
+ + '<tr><th colspan="2">' + opts.label + "</th></tr>"
128
+ + "</thead>"
129
+ + "<tbody>";
130
+ opts.arr.forEach(function (row) {
131
+ html += "<tr>";
132
+ html += "<td>";
133
+ html += '<div class="series-table-row-color" style="background-color:' + row.color + '"></div>';
134
+ html += '<div class="series-table-row-label">' + row.label + "</div>";
135
+ html += "</td>";
136
+ html += '<td><div class="series-table-row-value">' + row.value + "</div></td>";
137
+ html += "</tr>";
138
+ });
139
+ html += "</tbody>";
140
+ html += "</table>";
141
+ return html;
142
+ default:
143
+ if (opts.series) {
144
+ return "<span style='color:" + this.tooltipSeriesColor() + "'>" + opts.series + "</span> / <span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
165
145
  }
146
+ if (opts.label !== "") {
147
+ return "<span style='color:" + this.tooltipLabelColor() + "'>" + opts.label + "</span>: <span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
148
+ }
149
+ return "<span style='color:" + this.tooltipValueColor() + "'>" + opts.value + "</span>";
150
+ }
151
+ };
152
+
153
+ ITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {
154
+ let body = "";
155
+ for (const key in obj) {
156
+ if (key !== titleKey) {
157
+ const value = obj && obj[key] ? obj[key] : "";
158
+ body += `<tr><td style="${this.tooltipLabelColor_exists() ? "color:" + this.tooltipLabelColor() : ""}">${key}</td><td style="font-weight:normal">${value}</td></tr>`;
166
159
  }
167
- return `<table>
160
+ }
161
+ return `<table>
168
162
  <thead>
169
163
  <tr><th colspan="2" style="font-weight:bold;font-size:16px">${obj[titleKey]}</th></tr>
170
164
  </thead>
@@ -172,8 +166,9 @@ export abstract class ITooltip extends Widget {
172
166
  ${body}
173
167
  </tbody>
174
168
  </table>`;
175
- }
169
+ };
176
170
 
171
+ export interface ITooltip {
177
172
  tooltipStyle: { (): "default" | "none" | "series-table"; (_: "default" | "none" | "series-table"): ITooltip; };
178
173
  tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };
179
174
  tooltipValueFormat: (_?) => string | ITooltip;
package/src/ITree.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { Palette } from "@hpcc-js/common";
2
2
 
3
- export class ITree {
4
- _palette;
3
+ // Use old school class declaration as this is a mixin ---
4
+ export function ITree() {
5
+ }
6
+ ITree.prototype.constructor = ITree;
5
7
 
6
- // Events ---
7
- click(row, column, selected) {
8
- console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
9
- }
8
+ // Events ---
9
+ ITree.prototype.click = function (row, column, selected) {
10
+ };
11
+
12
+ ITree.prototype.dblclick = function (row, column, selected) {
13
+ };
10
14
 
11
- dblclick(row, column, selected) {
12
- console.log("Double click: " + JSON.stringify(row) + ", " + column + ", " + selected);
13
- }
14
- }
15
15
  ITree.prototype._palette = Palette.ordinal("default");
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/api";
2
- export const PKG_VERSION = "2.9.1";
3
- export const BUILD_VERSION = "2.102.4";
2
+ export const PKG_VERSION = "2.10.1";
3
+ export const BUILD_VERSION = "2.103.1";
package/types/IInput.d.ts CHANGED
@@ -1,20 +1,8 @@
1
- import { Widget } from "@hpcc-js/common";
2
- export declare abstract class IInput extends Widget {
3
- _inputElement: any;
4
- constructor();
5
- abstract target(): any;
6
- abstract target(_: any): this;
7
- isValid(): boolean;
8
- hasValue(): boolean;
9
- blur(_w: any): void;
10
- keyup(_w: any): void;
11
- focus(_w: any): void;
12
- click(_w: any): void;
13
- dblclick(_w: any): void;
14
- change(_w: any, complete: boolean): void;
15
- resetValue(w: any): void;
16
- disable(disable: any): void;
17
- setFocus(): void;
1
+ export declare function IInput(): void;
2
+ export declare namespace IInput {
3
+ var prototype: any;
4
+ }
5
+ export interface IInput {
18
6
  name: {
19
7
  (): string;
20
8
  (_: string): IInput;
@@ -1 +1 @@
1
- {"version":3,"file":"IInput.d.ts","sourceRoot":"","sources":["../src/IInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,8BAAsB,MAAO,SAAQ,MAAM;IACvC,aAAa,MAAC;;IAMd,QAAQ,CAAC,MAAM,IAAI,GAAG;IACtB,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI;IAG7B,OAAO;IAUP,QAAQ;IAsBR,IAAI,CAAC,EAAE,KAAA;IAEP,KAAK,CAAC,EAAE,KAAA;IAER,KAAK,CAAC,EAAE,KAAA;IAER,KAAK,CAAC,EAAE,KAAA;IAER,QAAQ,CAAC,EAAE,KAAA;IAEX,MAAM,CAAC,EAAE,KAAA,EAAE,QAAQ,EAAE,OAAO;IAG5B,UAAU,CAAC,CAAC,KAAA;IAIZ,OAAO,CAAC,OAAO,KAAA;IAMf,QAAQ;IAMR,IAAI,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,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-js/common";
2
1
  import "../src/ITooltip.css";
3
- export declare abstract class ITooltip extends Widget {
4
- protected _valueFormatter: any;
5
- layerEnter: any;
6
- layerUpdate: any;
7
- layerExit: any;
8
- tooltip: any;
9
- constructor();
10
- abstract target(): any;
11
- abstract target(_: any): this;
12
- tooltipEnter(element: any): void;
13
- tooltipUpdate(): void;
14
- tooltipExit(): void;
15
- _tooltipHTML(d: any): any;
16
- tooltipHTML(_: any): any;
17
- tooltipFormat(opts?: {
18
- label?: string | number;
19
- series?: string | number;
20
- value?: Date | string | number;
21
- arr?: Array<{
22
- color: string;
23
- label: string;
24
- value: string;
25
- }>;
26
- }): string;
27
- tooltipKeyValueFormat(titleKey: string, obj: object): string;
2
+ export declare function ITooltip(): void;
3
+ export declare namespace ITooltip {
4
+ var prototype: any;
5
+ }
6
+ export interface ITooltip {
28
7
  tooltipStyle: {
29
8
  (): "default" | "none" | "series-table";
30
9
  (_: "default" | "none" | "series-table"): ITooltip;
@@ -1 +1 @@
1
- {"version":3,"file":"ITooltip.d.ts","sourceRoot":"","sources":["../src/ITooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAMzC,OAAO,qBAAqB,CAAC;AAI7B,8BAAsB,QAAS,SAAQ,MAAM;IACzC,SAAS,CAAC,eAAe,MAAC;IAC1B,UAAU,MAAC;IACX,WAAW,MAAC;IACZ,SAAS,MAAC;IACV,OAAO,MAAS;;IA6ChB,QAAQ,CAAC,MAAM,IAAI,GAAG;IACtB,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI;IAE7B,YAAY,CAAC,OAAO,KAAA;IAQpB,aAAa;IAiCb,WAAW;IAMX,YAAY,CAAC,CAAC,KAAA;IAId,WAAW,CAAC,CAAC,KAAA;IAIb,aAAa,CAAC,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAG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C,EAAE,MAAM,GAAG,QAAQ,CAAC;KAAE,CAAC;CACjE"}
package/types/ITree.d.ts CHANGED
@@ -1,6 +1,2 @@
1
- export declare class ITree {
2
- _palette: any;
3
- click(row: any, column: any, selected: any): void;
4
- dblclick(row: any, column: any, selected: any): void;
5
- }
1
+ export declare function ITree(): void;
6
2
  //# sourceMappingURL=ITree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITree.d.ts","sourceRoot":"","sources":["../src/ITree.ts"],"names":[],"mappings":"AAEA,qBAAa,KAAK;IACd,QAAQ,MAAC;IAGT,KAAK,CAAC,GAAG,KAAA,EAAE,MAAM,KAAA,EAAE,QAAQ,KAAA;IAI3B,QAAQ,CAAC,GAAG,KAAA,EAAE,MAAM,KAAA,EAAE,QAAQ,KAAA;CAGjC"}
1
+ {"version":3,"file":"ITree.d.ts","sourceRoot":"","sources":["../src/ITree.ts"],"names":[],"mappings":"AAGA,wBAAgB,KAAK,SACpB"}
@@ -1,4 +1,4 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/api";
2
- export declare const PKG_VERSION = "2.9.1";
3
- export declare const BUILD_VERSION = "2.102.4";
2
+ export declare const PKG_VERSION = "2.10.1";
3
+ export declare const BUILD_VERSION = "2.103.1";
4
4
  //# sourceMappingURL=__package__.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"__package__.d.ts","sourceRoot":"","sources":["../src/__package__.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,WAAW,UAAU,CAAC;AACnC,eAAO,MAAM,aAAa,YAAY,CAAC"}
1
+ {"version":3,"file":"__package__.d.ts","sourceRoot":"","sources":["../src/__package__.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC"}
@@ -1,20 +1,8 @@
1
- import { Widget } from "@hpcc-js/common";
2
- export declare abstract class IInput extends Widget {
3
- _inputElement: any;
4
- constructor();
5
- abstract target(): any;
6
- abstract target(_: any): this;
7
- isValid(): boolean;
8
- hasValue(): boolean;
9
- blur(_w: any): void;
10
- keyup(_w: any): void;
11
- focus(_w: any): void;
12
- click(_w: any): void;
13
- dblclick(_w: any): void;
14
- change(_w: any, complete: boolean): void;
15
- resetValue(w: any): void;
16
- disable(disable: any): void;
17
- setFocus(): void;
1
+ export declare function IInput(): void;
2
+ export declare namespace IInput {
3
+ var prototype: any;
4
+ }
5
+ export interface IInput {
18
6
  name: {
19
7
  (): string;
20
8
  (_: string): IInput;
@@ -1,30 +1,9 @@
1
- import { Widget } from "@hpcc-js/common";
2
1
  import "../src/ITooltip.css";
3
- export declare abstract class ITooltip extends Widget {
4
- protected _valueFormatter: any;
5
- layerEnter: any;
6
- layerUpdate: any;
7
- layerExit: any;
8
- tooltip: any;
9
- constructor();
10
- abstract target(): any;
11
- abstract target(_: any): this;
12
- tooltipEnter(element: any): void;
13
- tooltipUpdate(): void;
14
- tooltipExit(): void;
15
- _tooltipHTML(d: any): any;
16
- tooltipHTML(_: any): any;
17
- tooltipFormat(opts?: {
18
- label?: string | number;
19
- series?: string | number;
20
- value?: Date | string | number;
21
- arr?: Array<{
22
- color: string;
23
- label: string;
24
- value: string;
25
- }>;
26
- }): string;
27
- tooltipKeyValueFormat(titleKey: string, obj: object): string;
2
+ export declare function ITooltip(): void;
3
+ export declare namespace ITooltip {
4
+ var prototype: any;
5
+ }
6
+ export interface ITooltip {
28
7
  tooltipStyle: {
29
8
  (): "default" | "none" | "series-table";
30
9
  (_: "default" | "none" | "series-table"): ITooltip;
@@ -1,6 +1,2 @@
1
- export declare class ITree {
2
- _palette: any;
3
- click(row: any, column: any, selected: any): void;
4
- dblclick(row: any, column: any, selected: any): void;
5
- }
1
+ export declare function ITree(): void;
6
2
  //# sourceMappingURL=ITree.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/api";
2
- export declare const PKG_VERSION = "2.9.1";
3
- export declare const BUILD_VERSION = "2.102.4";
2
+ export declare const PKG_VERSION = "2.10.1";
3
+ export declare const BUILD_VERSION = "2.103.1";
4
4
  //# sourceMappingURL=__package__.d.ts.map