@deephaven/jsapi-types 0.29.1-jsapi-module.6
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/LICENSE +176 -0
- package/README.md +17 -0
- package/dist/dh.types.d.ts +829 -0
- package/dist/dh.types.d.ts.map +1 -0
- package/dist/dh.types.js +28 -0
- package/dist/dh.types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +33 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @deephaven/jsapi-types
|
|
2
|
+
|
|
3
|
+
Manually created type definitions of the Deephaven JS API.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @deephaven/jsapi-types
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import { Column } from '@deephaven/jsapi-types'
|
|
15
|
+
|
|
16
|
+
...
|
|
17
|
+
```
|
|
@@ -0,0 +1,829 @@
|
|
|
1
|
+
export default dh;
|
|
2
|
+
export interface dh {
|
|
3
|
+
IdeConnection: IdeConnectionConstructor;
|
|
4
|
+
Session: IdeSession;
|
|
5
|
+
VariableType: typeof VariableType;
|
|
6
|
+
i18n: {
|
|
7
|
+
DateTimeFormat: DateTimeFormat;
|
|
8
|
+
NumberFormat: NumberFormat;
|
|
9
|
+
TimeZone: i18nTimeZone;
|
|
10
|
+
};
|
|
11
|
+
DateWrapper: DateWrapper;
|
|
12
|
+
LongWrapper: LongWrapper;
|
|
13
|
+
FilterCondition: FilterConditionStatic;
|
|
14
|
+
FilterValue: FilterValueStatic;
|
|
15
|
+
plot: Plot;
|
|
16
|
+
Axis: Axis;
|
|
17
|
+
Table: TableStatic;
|
|
18
|
+
Client: ClientStatic;
|
|
19
|
+
TreeTable: TreeTableStatic;
|
|
20
|
+
Column: Column;
|
|
21
|
+
SearchDisplayMode?: SearchDisplayModeStatic;
|
|
22
|
+
RangeSet: RangeSet;
|
|
23
|
+
IdeSession: IdeSessionStatic;
|
|
24
|
+
calendar: CalendarStatic;
|
|
25
|
+
CoreClient: CoreClientContructor;
|
|
26
|
+
storage: {
|
|
27
|
+
FileContents: FileContentsStatic;
|
|
28
|
+
};
|
|
29
|
+
ValueType: typeof ValueType;
|
|
30
|
+
}
|
|
31
|
+
declare const VariableType: {
|
|
32
|
+
readonly FIGURE: "Figure";
|
|
33
|
+
readonly OTHERWIDGET: "OtherWidget";
|
|
34
|
+
readonly PANDAS: "Pandas";
|
|
35
|
+
readonly TABLE: "Table";
|
|
36
|
+
readonly TABLEMAP: "TableMap";
|
|
37
|
+
readonly TREETABLE: "TreeTable";
|
|
38
|
+
readonly HIERARCHICALTABLE: "HierarchicalTable";
|
|
39
|
+
readonly PARTITIONEDTABLE: "PartitionedTable";
|
|
40
|
+
};
|
|
41
|
+
declare const ValueType: {
|
|
42
|
+
readonly STRING: "String";
|
|
43
|
+
readonly NUMBER: "Number";
|
|
44
|
+
readonly DOUBLE: "Double";
|
|
45
|
+
readonly LONG: "Long";
|
|
46
|
+
readonly DATETIME: "Datetime";
|
|
47
|
+
readonly BOOLEAN: "Boolean";
|
|
48
|
+
};
|
|
49
|
+
export type ValueTypeUnion = typeof ValueType[keyof typeof ValueType];
|
|
50
|
+
export interface CalendarStatic {
|
|
51
|
+
DayOfWeek: {
|
|
52
|
+
values: () => string[];
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export type VariableTypeUnion = typeof VariableType[keyof typeof VariableType];
|
|
56
|
+
export interface VariableDefinition<T extends VariableTypeUnion = VariableTypeUnion> {
|
|
57
|
+
type: T;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated
|
|
60
|
+
*/
|
|
61
|
+
name?: string;
|
|
62
|
+
title?: string;
|
|
63
|
+
id?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface LogItem {
|
|
66
|
+
micros: number;
|
|
67
|
+
logLevel: string;
|
|
68
|
+
message: string;
|
|
69
|
+
}
|
|
70
|
+
export interface VariableChanges {
|
|
71
|
+
created: VariableDefinition[];
|
|
72
|
+
updated: VariableDefinition[];
|
|
73
|
+
removed: VariableDefinition[];
|
|
74
|
+
}
|
|
75
|
+
export interface CommandResult {
|
|
76
|
+
changes: VariableChanges;
|
|
77
|
+
error: string;
|
|
78
|
+
}
|
|
79
|
+
export interface Position {
|
|
80
|
+
line: number;
|
|
81
|
+
character: number;
|
|
82
|
+
}
|
|
83
|
+
export interface DocumentRange {
|
|
84
|
+
start: Position;
|
|
85
|
+
end: Position;
|
|
86
|
+
}
|
|
87
|
+
export interface TextEdit {
|
|
88
|
+
text: string;
|
|
89
|
+
range: DocumentRange;
|
|
90
|
+
}
|
|
91
|
+
export interface CompletionItem {
|
|
92
|
+
label: string;
|
|
93
|
+
kind: number;
|
|
94
|
+
detail: string;
|
|
95
|
+
documentation: string;
|
|
96
|
+
sortText: string;
|
|
97
|
+
filterText: string;
|
|
98
|
+
textEdit: TextEdit;
|
|
99
|
+
insertTextFormat: number;
|
|
100
|
+
}
|
|
101
|
+
export interface IdeSessionStatic {
|
|
102
|
+
EVENT_COMMANDSTARTED: 'commandstarted';
|
|
103
|
+
}
|
|
104
|
+
export interface WorkerConnection {
|
|
105
|
+
subscribeToFieldUpdates(param: (changes: VariableChanges) => void): () => void;
|
|
106
|
+
}
|
|
107
|
+
export interface IdeSession extends Evented {
|
|
108
|
+
subscribeToFieldUpdates(param: (changes: VariableChanges) => void): () => void;
|
|
109
|
+
getTable(name: string): Promise<Table>;
|
|
110
|
+
getFigure(name: string): Promise<Figure>;
|
|
111
|
+
getTreeTable(name: string): Promise<TreeTable>;
|
|
112
|
+
getObject(definition: VariableDefinition<typeof VariableType.TABLE>): Promise<Table>;
|
|
113
|
+
getObject(definition: VariableDefinition<typeof VariableType.FIGURE>): Promise<Figure>;
|
|
114
|
+
getObject(definition: VariableDefinition<typeof VariableType.TREETABLE>): Promise<TreeTable>;
|
|
115
|
+
getObject(definition: VariableDefinition<typeof VariableType.HIERARCHICALTABLE>): Promise<TreeTable>;
|
|
116
|
+
getObject(definition: VariableDefinition): Promise<unknown>;
|
|
117
|
+
onLogMessage(logHandler: (logItem: LogItem) => void): () => void;
|
|
118
|
+
runCode(code: string): Promise<CommandResult>;
|
|
119
|
+
bindTableToVariable(table: Table, variableName: string): Promise<void>;
|
|
120
|
+
mergeTables(tables: Table[]): Promise<Table>;
|
|
121
|
+
newTable(columnNames: string[], columnTypes: string[], data: string[][], userTimeZone: string): Promise<Table>;
|
|
122
|
+
getCompletionItems(params: unknown): Promise<CompletionItem[]>;
|
|
123
|
+
closeDocument(params: unknown): void;
|
|
124
|
+
openDocument(params: unknown): void;
|
|
125
|
+
changeDocument(params: unknown): void;
|
|
126
|
+
close(): void;
|
|
127
|
+
}
|
|
128
|
+
export interface Evented {
|
|
129
|
+
addEventListener(eventType: string, listener: EventListener): RemoverFn;
|
|
130
|
+
nextEvent(eventType: string, timeoutInMillis?: number): Promise<CustomEvent>;
|
|
131
|
+
hasListeners(eventType: string): boolean;
|
|
132
|
+
removeEventListener(eventType: string, listener: EventListener): boolean;
|
|
133
|
+
}
|
|
134
|
+
export interface Plot {
|
|
135
|
+
Figure: Figure;
|
|
136
|
+
SourceType: SourceType;
|
|
137
|
+
SeriesPlotStyle: SeriesPlotStyle;
|
|
138
|
+
ChartType: ChartType;
|
|
139
|
+
AxisType: AxisType;
|
|
140
|
+
AxisPosition: AxisPosition;
|
|
141
|
+
AxisFormatType: AxisFormatType;
|
|
142
|
+
FigureDescriptor: FigureDescriptor;
|
|
143
|
+
ChartDescriptor: ChartDescriptor;
|
|
144
|
+
SeriesDescriptor: SeriesDescriptor;
|
|
145
|
+
SourceDescriptor: SourceDescriptor;
|
|
146
|
+
DownsampleOptions: DownsampleOptions;
|
|
147
|
+
}
|
|
148
|
+
export interface RemoverFn {
|
|
149
|
+
(): void;
|
|
150
|
+
}
|
|
151
|
+
export interface EventListener {
|
|
152
|
+
(event: CustomEvent): void;
|
|
153
|
+
}
|
|
154
|
+
export interface FigureDescriptor {
|
|
155
|
+
title: string;
|
|
156
|
+
titleFont?: string;
|
|
157
|
+
titleColor?: string;
|
|
158
|
+
isResizable?: boolean;
|
|
159
|
+
isDefaultTheme?: boolean;
|
|
160
|
+
updateInterval?: number;
|
|
161
|
+
rows?: number;
|
|
162
|
+
cols?: number;
|
|
163
|
+
charts: Partial<ChartDescriptor>[];
|
|
164
|
+
}
|
|
165
|
+
export interface ChartDescriptor {
|
|
166
|
+
rowspan?: number;
|
|
167
|
+
colspan?: number;
|
|
168
|
+
series: Partial<SeriesDescriptor>[];
|
|
169
|
+
axes: Partial<AxisDescriptor>[];
|
|
170
|
+
chartType: string;
|
|
171
|
+
title?: string;
|
|
172
|
+
titleFont?: string;
|
|
173
|
+
titleColor?: string;
|
|
174
|
+
showLegend?: boolean;
|
|
175
|
+
legendFont?: string;
|
|
176
|
+
legendColor?: string;
|
|
177
|
+
is3d?: boolean;
|
|
178
|
+
}
|
|
179
|
+
export interface SeriesDescriptor {
|
|
180
|
+
plotStyle: string;
|
|
181
|
+
name: string;
|
|
182
|
+
linesVisible?: boolean;
|
|
183
|
+
shapesVisible?: boolean;
|
|
184
|
+
gradientVisible?: boolean;
|
|
185
|
+
lineColor?: string;
|
|
186
|
+
pointLabelFormat?: string;
|
|
187
|
+
xToolTipPattern?: string;
|
|
188
|
+
yToolTipPattern?: string;
|
|
189
|
+
shapeLabel?: string;
|
|
190
|
+
shapeSize?: number;
|
|
191
|
+
shapeColor?: string;
|
|
192
|
+
shape?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface SourceDescriptor {
|
|
195
|
+
axis?: AxisDescriptor;
|
|
196
|
+
table: Table;
|
|
197
|
+
columnName: string;
|
|
198
|
+
columnType: string;
|
|
199
|
+
}
|
|
200
|
+
export interface AxisDescriptor {
|
|
201
|
+
formatType: string;
|
|
202
|
+
type: string;
|
|
203
|
+
position: string;
|
|
204
|
+
log?: boolean;
|
|
205
|
+
label?: string;
|
|
206
|
+
labelFont?: string;
|
|
207
|
+
ticksFont?: string;
|
|
208
|
+
formatPattern?: string;
|
|
209
|
+
color?: string;
|
|
210
|
+
minRange?: number;
|
|
211
|
+
maxRange?: number;
|
|
212
|
+
minorTicksVisible?: boolean;
|
|
213
|
+
majorTicksVisible?: boolean;
|
|
214
|
+
minorTickCount?: number;
|
|
215
|
+
gapBetweenMajorTicks?: number;
|
|
216
|
+
tickLabelAngle?: number;
|
|
217
|
+
invert?: boolean;
|
|
218
|
+
isTimeAxis?: boolean;
|
|
219
|
+
}
|
|
220
|
+
export interface Figure extends Evented {
|
|
221
|
+
readonly EVENT_UPDATED: string;
|
|
222
|
+
readonly EVENT_DISCONNECT: string;
|
|
223
|
+
readonly EVENT_RECONNECT: string;
|
|
224
|
+
readonly EVENT_RECONNECTFAILED: string;
|
|
225
|
+
readonly EVENT_DOWNSAMPLESTARTED: string;
|
|
226
|
+
readonly EVENT_DOWNSAMPLEFINISHED: string;
|
|
227
|
+
readonly EVENT_DOWNSAMPLEFAILED: string;
|
|
228
|
+
readonly EVENT_DOWNSAMPLENEEDED: string;
|
|
229
|
+
readonly EVENT_SERIES_ADDED: string;
|
|
230
|
+
/** Given a client-created figure descriptor, generate a figure that can be subscribed to */
|
|
231
|
+
create(figure: Partial<FigureDescriptor>): Figure;
|
|
232
|
+
readonly title: string;
|
|
233
|
+
readonly titleFont: string;
|
|
234
|
+
readonly titleColor: string;
|
|
235
|
+
readonly isResizable: boolean;
|
|
236
|
+
readonly isDefaultTheme: boolean;
|
|
237
|
+
readonly updateInterval: number;
|
|
238
|
+
readonly cols: number;
|
|
239
|
+
readonly rows: number;
|
|
240
|
+
readonly charts: Chart[];
|
|
241
|
+
/**
|
|
242
|
+
* Subscribes to all series in this figure.
|
|
243
|
+
* @param forceDisableDownsample optional, can be specified to force downsampling to be disabled
|
|
244
|
+
*/
|
|
245
|
+
subscribe(forceDisableDownsample?: DownsampleOptions): void;
|
|
246
|
+
/**
|
|
247
|
+
* Unsubscribes to all series in this figure.
|
|
248
|
+
*/
|
|
249
|
+
unsubscribe(): void;
|
|
250
|
+
close(): void;
|
|
251
|
+
}
|
|
252
|
+
export interface FigureDataUpdatedEvent {
|
|
253
|
+
/**
|
|
254
|
+
* The series instances which were affected by this event and need to be updated.
|
|
255
|
+
*/
|
|
256
|
+
readonly series: Series[];
|
|
257
|
+
/**
|
|
258
|
+
* Reads data out for this series from the event which just occurred for the given series.
|
|
259
|
+
* The array returned by this method will be cached and reused to minimize the garbage
|
|
260
|
+
* created, and to reduce processing time in handling updates.
|
|
261
|
+
*
|
|
262
|
+
* The pattern when using this is to iterate over the series which this event affects, and
|
|
263
|
+
* for each series, iterate over each source. For each series+source, pass them in, along
|
|
264
|
+
* with the optional mapping function, and get back the array of data across the entire plot.
|
|
265
|
+
*
|
|
266
|
+
* @param series
|
|
267
|
+
* @param sourceType
|
|
268
|
+
* @param mapFn
|
|
269
|
+
*/
|
|
270
|
+
getArray<I, O>(series: Series, sourceType: SourceType, mapFn?: MapFn<I, O>): O[];
|
|
271
|
+
}
|
|
272
|
+
export interface MapFn<I, O> {
|
|
273
|
+
(input: I): O;
|
|
274
|
+
}
|
|
275
|
+
export interface DownsampleOptions {
|
|
276
|
+
readonly DEFAULT: DownsampleOptions;
|
|
277
|
+
readonly DISABLE: DownsampleOptions;
|
|
278
|
+
}
|
|
279
|
+
export interface SourceType {
|
|
280
|
+
readonly X: SourceType;
|
|
281
|
+
readonly Y: SourceType;
|
|
282
|
+
readonly Z: SourceType;
|
|
283
|
+
readonly X_LOW: SourceType;
|
|
284
|
+
readonly X_HIGH: SourceType;
|
|
285
|
+
readonly Y_LOW: SourceType;
|
|
286
|
+
readonly Y_HIGH: SourceType;
|
|
287
|
+
readonly TIME: SourceType;
|
|
288
|
+
readonly OPEN: SourceType;
|
|
289
|
+
readonly HIGH: SourceType;
|
|
290
|
+
readonly LOW: SourceType;
|
|
291
|
+
readonly CLOSE: SourceType;
|
|
292
|
+
readonly SHAPE: SourceType;
|
|
293
|
+
readonly SIZE: SourceType;
|
|
294
|
+
readonly LABEL: SourceType;
|
|
295
|
+
readonly COLOR: SourceType;
|
|
296
|
+
readonly PARENT: SourceType;
|
|
297
|
+
readonly HOVER_TEXT: SourceType;
|
|
298
|
+
readonly TEXT: SourceType;
|
|
299
|
+
}
|
|
300
|
+
export interface ChartType {
|
|
301
|
+
readonly XY: ChartType;
|
|
302
|
+
readonly PIE: ChartType;
|
|
303
|
+
readonly OHLC: ChartType;
|
|
304
|
+
readonly CATEGORY: ChartType;
|
|
305
|
+
readonly XYZ: ChartType;
|
|
306
|
+
readonly CATEGORY_3D: ChartType;
|
|
307
|
+
}
|
|
308
|
+
export interface SeriesPlotStyle {
|
|
309
|
+
readonly BAR: SeriesPlotStyle;
|
|
310
|
+
readonly STACKED_BAR: SeriesPlotStyle;
|
|
311
|
+
readonly LINE: SeriesPlotStyle;
|
|
312
|
+
readonly AREA: SeriesPlotStyle;
|
|
313
|
+
readonly STACKED_AREA: SeriesPlotStyle;
|
|
314
|
+
readonly PIE: SeriesPlotStyle;
|
|
315
|
+
readonly HISTOGRAM: SeriesPlotStyle;
|
|
316
|
+
readonly OHLC: SeriesPlotStyle;
|
|
317
|
+
readonly SCATTER: SeriesPlotStyle;
|
|
318
|
+
readonly STEP: SeriesPlotStyle;
|
|
319
|
+
readonly ERROR_BAR: SeriesPlotStyle;
|
|
320
|
+
readonly TREEMAP: SeriesPlotStyle;
|
|
321
|
+
}
|
|
322
|
+
export interface AxisFormatType {
|
|
323
|
+
readonly CATEGORY: AxisFormatType;
|
|
324
|
+
readonly NUMBER: AxisFormatType;
|
|
325
|
+
}
|
|
326
|
+
export interface AxisType {
|
|
327
|
+
readonly X: AxisType;
|
|
328
|
+
readonly Y: AxisType;
|
|
329
|
+
readonly Z: AxisType;
|
|
330
|
+
readonly SHAPE: AxisType;
|
|
331
|
+
readonly SIZE: AxisType;
|
|
332
|
+
readonly LABEL: AxisType;
|
|
333
|
+
readonly COLOR: AxisType;
|
|
334
|
+
}
|
|
335
|
+
export interface AxisPosition {
|
|
336
|
+
readonly TOP: AxisPosition;
|
|
337
|
+
readonly BOTTOM: AxisPosition;
|
|
338
|
+
readonly LEFT: AxisPosition;
|
|
339
|
+
readonly RIGHT: AxisPosition;
|
|
340
|
+
readonly NONE: AxisPosition;
|
|
341
|
+
}
|
|
342
|
+
export interface Chart extends Evented {
|
|
343
|
+
readonly EVENT_SERIES_ADDED: string;
|
|
344
|
+
readonly row: number;
|
|
345
|
+
readonly column: number;
|
|
346
|
+
readonly colspan: number;
|
|
347
|
+
readonly rowspan: number;
|
|
348
|
+
readonly chartType: ChartType;
|
|
349
|
+
readonly title: string;
|
|
350
|
+
readonly titleFont: string;
|
|
351
|
+
readonly titleColor: string;
|
|
352
|
+
readonly showLegend: boolean;
|
|
353
|
+
readonly legendFont: string;
|
|
354
|
+
readonly legendColor: string;
|
|
355
|
+
readonly is3d: boolean;
|
|
356
|
+
readonly series: Series[];
|
|
357
|
+
readonly multiSeries: MultiSeries[];
|
|
358
|
+
readonly axes: Axis[];
|
|
359
|
+
}
|
|
360
|
+
export interface Series {
|
|
361
|
+
readonly plotStyle: SeriesPlotStyle;
|
|
362
|
+
readonly name: string;
|
|
363
|
+
readonly isLinesVisible: boolean | null;
|
|
364
|
+
readonly isShapesVisible: boolean | null;
|
|
365
|
+
readonly isGradientVisible: boolean;
|
|
366
|
+
readonly lineColor: string;
|
|
367
|
+
readonly pointLabelFormat: string;
|
|
368
|
+
readonly xToolTipPattern: string;
|
|
369
|
+
readonly yToolTipPattern: string;
|
|
370
|
+
readonly shapeLabel: string;
|
|
371
|
+
readonly shapeSize: number;
|
|
372
|
+
readonly shape: string;
|
|
373
|
+
readonly shapeColor: string;
|
|
374
|
+
readonly sources: SeriesDataSource[];
|
|
375
|
+
readonly multiSeries: MultiSeries;
|
|
376
|
+
readonly oneClick: OneClick;
|
|
377
|
+
subscribe(downsampleOptions?: DownsampleOptions): void;
|
|
378
|
+
unsubscribe(): void;
|
|
379
|
+
}
|
|
380
|
+
export interface MultiSeries {
|
|
381
|
+
readonly plotStyle: SeriesPlotStyle;
|
|
382
|
+
readonly name: string;
|
|
383
|
+
}
|
|
384
|
+
export interface BusinessPeriod {
|
|
385
|
+
open: string;
|
|
386
|
+
close: string;
|
|
387
|
+
}
|
|
388
|
+
export interface LocalDateWrapper {
|
|
389
|
+
toString: () => string;
|
|
390
|
+
}
|
|
391
|
+
export interface Holiday {
|
|
392
|
+
date: LocalDateWrapper;
|
|
393
|
+
businessPeriods: BusinessPeriod[];
|
|
394
|
+
}
|
|
395
|
+
export interface BusinessCalendar {
|
|
396
|
+
getName: () => string;
|
|
397
|
+
timeZone: TimeZone;
|
|
398
|
+
businessPeriods: BusinessPeriod[];
|
|
399
|
+
businessDays: string[];
|
|
400
|
+
holidays: Holiday[];
|
|
401
|
+
}
|
|
402
|
+
export interface Axis {
|
|
403
|
+
readonly id: string;
|
|
404
|
+
readonly formatType: AxisFormatType;
|
|
405
|
+
readonly type: AxisType;
|
|
406
|
+
readonly position: AxisPosition;
|
|
407
|
+
readonly log: boolean;
|
|
408
|
+
readonly label: string;
|
|
409
|
+
readonly labelFont: string;
|
|
410
|
+
readonly ticksFont: string;
|
|
411
|
+
readonly formatPattern: string;
|
|
412
|
+
readonly minRange: number;
|
|
413
|
+
readonly maxRange: number;
|
|
414
|
+
readonly isMinorTicksVisible: boolean;
|
|
415
|
+
readonly isMajorTicksVisible: boolean;
|
|
416
|
+
readonly minorTickCount: number;
|
|
417
|
+
readonly gapBetweenMajorTicks: number;
|
|
418
|
+
readonly majorTickLocations: number[];
|
|
419
|
+
readonly tickLabelAngle: number;
|
|
420
|
+
readonly isInvert: boolean;
|
|
421
|
+
readonly isTimeAxis: boolean;
|
|
422
|
+
readonly FORMAT_TYPE_NUMBER: unknown;
|
|
423
|
+
readonly businessCalendar: BusinessCalendar;
|
|
424
|
+
/**
|
|
425
|
+
* Indicate the density and range of data that the UI needs for this axis, across any series which
|
|
426
|
+
* draws on this axis. Ignored for non-time series data, for non-line series.
|
|
427
|
+
* @param pixelCount the approx number of pixels wide
|
|
428
|
+
* @param min the optional minimum value visible on this axis - even if specified, smaller values may
|
|
429
|
+
* be returned, to ensure that lines drawn off the screen.
|
|
430
|
+
* @param max the optional max value visible on this axis. If min is specified, max is also expected.
|
|
431
|
+
*/
|
|
432
|
+
range(pixelCount?: number, min?: any, max?: any): void;
|
|
433
|
+
}
|
|
434
|
+
export interface SeriesDataSource {
|
|
435
|
+
readonly axis: Axis;
|
|
436
|
+
readonly type: SourceType;
|
|
437
|
+
readonly columnType: string;
|
|
438
|
+
}
|
|
439
|
+
export interface OneClick {
|
|
440
|
+
readonly columns: {
|
|
441
|
+
name: string;
|
|
442
|
+
type: string;
|
|
443
|
+
}[];
|
|
444
|
+
readonly requireAllFiltersToDisplay: boolean;
|
|
445
|
+
setValueForColumn(columnName: string, value: any): void;
|
|
446
|
+
getValueForColumn(columnName: string): any;
|
|
447
|
+
}
|
|
448
|
+
export interface Column {
|
|
449
|
+
/**
|
|
450
|
+
* @deprecated
|
|
451
|
+
*/
|
|
452
|
+
readonly index: number;
|
|
453
|
+
readonly type: string;
|
|
454
|
+
readonly name: string;
|
|
455
|
+
readonly description: string;
|
|
456
|
+
readonly constituentType: string;
|
|
457
|
+
readonly isPartitionColumn: boolean;
|
|
458
|
+
filter(): FilterValue;
|
|
459
|
+
sort(): Sort;
|
|
460
|
+
formatColor(expression: string): CustomColumn;
|
|
461
|
+
formatRowColor(expression: string): CustomColumn;
|
|
462
|
+
}
|
|
463
|
+
export interface CustomColumn {
|
|
464
|
+
readonly type: string;
|
|
465
|
+
readonly name: string;
|
|
466
|
+
readonly expression: string;
|
|
467
|
+
}
|
|
468
|
+
export interface FilterValueStatic {
|
|
469
|
+
ofString(input: unknown): FilterValue;
|
|
470
|
+
ofNumber(input: unknown): FilterValue;
|
|
471
|
+
ofBoolean(input: unknown): FilterValue;
|
|
472
|
+
}
|
|
473
|
+
export interface FilterValue {
|
|
474
|
+
eq(value: FilterValue): FilterCondition;
|
|
475
|
+
eqIgnoreCase(value: FilterValue): FilterCondition;
|
|
476
|
+
notEq(value: FilterValue): FilterCondition;
|
|
477
|
+
notEqIgnoreCase(value: FilterValue): FilterCondition;
|
|
478
|
+
greaterThan(value: FilterValue): FilterCondition;
|
|
479
|
+
lessThan(value: FilterValue): FilterCondition;
|
|
480
|
+
greaterThanOrEqualTo(value: FilterValue): FilterCondition;
|
|
481
|
+
lessThanOrEqualTo(value: FilterValue): FilterCondition;
|
|
482
|
+
in(values: FilterValue[]): FilterCondition;
|
|
483
|
+
inIgnoreCase(values: FilterValue[]): FilterCondition;
|
|
484
|
+
notIn(values: FilterValue[]): FilterCondition;
|
|
485
|
+
notInIgnoreCase(values: FilterValue[]): FilterCondition;
|
|
486
|
+
contains(value: FilterValue): FilterCondition;
|
|
487
|
+
isFalse(): FilterCondition;
|
|
488
|
+
isTrue(): FilterCondition;
|
|
489
|
+
isNull(): FilterCondition;
|
|
490
|
+
invoke(method: string, ...args: FilterValue[]): FilterCondition;
|
|
491
|
+
}
|
|
492
|
+
export interface FilterConditionStatic {
|
|
493
|
+
invoke(method: string, ...args: FilterValue[]): FilterCondition;
|
|
494
|
+
search(value: FilterValue, columns?: FilterValue[]): FilterCondition;
|
|
495
|
+
}
|
|
496
|
+
export interface FilterCondition {
|
|
497
|
+
not(): FilterCondition;
|
|
498
|
+
and(first: FilterCondition, ...rest: FilterCondition[]): FilterCondition;
|
|
499
|
+
or(first: FilterCondition, ...rest: FilterCondition[]): FilterCondition;
|
|
500
|
+
toString(): string;
|
|
501
|
+
}
|
|
502
|
+
export interface Sort {
|
|
503
|
+
reverse(): Sort;
|
|
504
|
+
readonly column: Column;
|
|
505
|
+
readonly direction: 'ASC' | 'DESC' | 'REVERSE' | null;
|
|
506
|
+
readonly isAbs: boolean;
|
|
507
|
+
asc(): Sort;
|
|
508
|
+
desc(): Sort;
|
|
509
|
+
abs(): Sort;
|
|
510
|
+
}
|
|
511
|
+
export interface InputTable {
|
|
512
|
+
keys: string[];
|
|
513
|
+
keyColumns: Column[];
|
|
514
|
+
values: string[];
|
|
515
|
+
valueColumns: Column[];
|
|
516
|
+
addRow(row: Record<string, unknown>, userTimeZone?: string): Promise<InputTable>;
|
|
517
|
+
addRows(rows: Record<string, unknown>[], userTimeZone?: string): Promise<InputTable>;
|
|
518
|
+
addTable(table: Table): Promise<InputTable>;
|
|
519
|
+
addTables(tables: Table[]): Promise<InputTable>;
|
|
520
|
+
deleteTable(table: Table): Promise<InputTable>;
|
|
521
|
+
deleteTables(tables: Table[]): Promise<InputTable>;
|
|
522
|
+
table: Table;
|
|
523
|
+
}
|
|
524
|
+
export interface ColumnGroup {
|
|
525
|
+
name: string;
|
|
526
|
+
children: string[];
|
|
527
|
+
color?: string;
|
|
528
|
+
}
|
|
529
|
+
export interface LayoutHints {
|
|
530
|
+
areSavedLayoutsAllowed?: boolean;
|
|
531
|
+
frontColumns?: string[];
|
|
532
|
+
backColumns?: string[];
|
|
533
|
+
hiddenColumns?: string[];
|
|
534
|
+
frozenColumns?: string[];
|
|
535
|
+
columnGroups?: ColumnGroup[];
|
|
536
|
+
searchDisplayMode?: keyof SearchDisplayModeStatic;
|
|
537
|
+
}
|
|
538
|
+
export interface SearchDisplayModeStatic {
|
|
539
|
+
SEARCH_DISPLAY_DEFAULT: 'Default';
|
|
540
|
+
SEARCH_DISPLAY_HIDE: 'Hide';
|
|
541
|
+
SEARCH_DISPLAY_SHOW: 'Show';
|
|
542
|
+
}
|
|
543
|
+
export interface TableStatic {
|
|
544
|
+
readonly EVENT_SIZECHANGED: string;
|
|
545
|
+
readonly EVENT_UPDATED: string;
|
|
546
|
+
readonly EVENT_ROWADDED: string;
|
|
547
|
+
readonly EVENT_ROWREMOVED: string;
|
|
548
|
+
readonly EVENT_ROWUPDATED: string;
|
|
549
|
+
readonly EVENT_SORTCHANGED: string;
|
|
550
|
+
readonly EVENT_FILTERCHANGED: string;
|
|
551
|
+
readonly EVENT_CUSTOMCOLUMNSCHANGED: string;
|
|
552
|
+
readonly EVENT_DISCONNECT: string;
|
|
553
|
+
readonly EVENT_RECONNECT: string;
|
|
554
|
+
readonly EVENT_RECONNECTFAILED: string;
|
|
555
|
+
readonly SIZE_UNCOALESCED: number;
|
|
556
|
+
reverse(): Sort;
|
|
557
|
+
}
|
|
558
|
+
export interface ClientStatic {
|
|
559
|
+
readonly EVENT_REQUEST_FAILED: 'requestfailed';
|
|
560
|
+
readonly EVENT_REQUEST_STARTED: 'requeststarted';
|
|
561
|
+
readonly EVENT_REQUEST_SUCCEEDED: 'requestsucceeded';
|
|
562
|
+
}
|
|
563
|
+
export interface Table extends TableTemplate<Table>, TableStatic {
|
|
564
|
+
readonly totalSize: number;
|
|
565
|
+
readonly description: string;
|
|
566
|
+
customColumns: string[];
|
|
567
|
+
readonly layoutHints: LayoutHints;
|
|
568
|
+
readonly isUncoalesced: boolean;
|
|
569
|
+
readonly hasInputTable: boolean;
|
|
570
|
+
readonly isClosed: boolean;
|
|
571
|
+
readonly pluginName: string;
|
|
572
|
+
applyCustomColumns(columns: (CustomColumn | string)[]): string[];
|
|
573
|
+
getViewportData(): Promise<TableData>;
|
|
574
|
+
subscribe(columns: Column[]): TableSubscription;
|
|
575
|
+
selectDistinct(columns: Column[]): Promise<Table>;
|
|
576
|
+
copy(): Promise<Table>;
|
|
577
|
+
rollup(config: RollupConfig): Promise<TreeTable>;
|
|
578
|
+
treeTable(config: TreeTableConfig): Promise<TreeTable>;
|
|
579
|
+
inputTable(): Promise<InputTable>;
|
|
580
|
+
freeze(): Promise<Table>;
|
|
581
|
+
snapshot(rightHandSide: Table, doInitialSnapshot?: boolean, stampColumns?: string[]): Promise<Table>;
|
|
582
|
+
getColumnStatistics(column: Column): Promise<ColumnStatistics>;
|
|
583
|
+
join(joinType: string, rightTable: Table, columnsToMatch: string[], columnsToAdd?: string[]): Promise<Table>;
|
|
584
|
+
byExternal(keys: string[], dropKeys?: boolean): Promise<TableMap>;
|
|
585
|
+
fireViewportUpdate(): void;
|
|
586
|
+
seekRow(startRow: number, column: Column, valueType: ValueTypeUnion, value: unknown, insensitive?: boolean, contains?: boolean, isBackwards?: boolean): Promise<number>;
|
|
587
|
+
}
|
|
588
|
+
export interface TableViewportSubscription extends Evented {
|
|
589
|
+
setViewport(firstRow: number, lastRow: number, columns?: Column[]): void;
|
|
590
|
+
getViewportData(): Promise<TableData>;
|
|
591
|
+
snapshot(rows: RangeSet, columns: readonly Column[]): Promise<TableData>;
|
|
592
|
+
close(): void;
|
|
593
|
+
}
|
|
594
|
+
export interface ViewportData {
|
|
595
|
+
offset: number;
|
|
596
|
+
rows: Row[];
|
|
597
|
+
columns: Column[];
|
|
598
|
+
}
|
|
599
|
+
export interface TableSubscription extends Evented {
|
|
600
|
+
readonly EVENT_UPDATED: string;
|
|
601
|
+
readonly columns: Column[];
|
|
602
|
+
close(): void;
|
|
603
|
+
}
|
|
604
|
+
export interface RangeSet {
|
|
605
|
+
ofRange(first: number, last: number): RangeSet;
|
|
606
|
+
ofItems(rows: number[]): RangeSet;
|
|
607
|
+
ofRanges(ranges: RangeSet[]): RangeSet;
|
|
608
|
+
readonly size: number;
|
|
609
|
+
iterator(): JsIterator<LongWrapper>;
|
|
610
|
+
}
|
|
611
|
+
export interface JsIterator<T> {
|
|
612
|
+
hasNext(): boolean;
|
|
613
|
+
next(): IteratorResult<T>;
|
|
614
|
+
}
|
|
615
|
+
export interface LongWrapper {
|
|
616
|
+
asNumber(): number;
|
|
617
|
+
valueOf(): string;
|
|
618
|
+
toString(): string;
|
|
619
|
+
ofString(str: string): LongWrapper;
|
|
620
|
+
}
|
|
621
|
+
export interface DateWrapper extends LongWrapper {
|
|
622
|
+
ofJsDate(date: Date): DateWrapper;
|
|
623
|
+
asDate(): Date;
|
|
624
|
+
}
|
|
625
|
+
export interface TimeZone {
|
|
626
|
+
adjustments: number[];
|
|
627
|
+
standardOffset: number;
|
|
628
|
+
timeZoneID: string;
|
|
629
|
+
id: string;
|
|
630
|
+
transitionPoints: number[];
|
|
631
|
+
tzNames: string[];
|
|
632
|
+
}
|
|
633
|
+
export interface i18nTimeZone {
|
|
634
|
+
getTimeZone(tzCode: string): TimeZone;
|
|
635
|
+
}
|
|
636
|
+
export interface DateTimeFormat {
|
|
637
|
+
format(pattern: string, date: DateWrapper | Date | number, timeZone?: TimeZone): string;
|
|
638
|
+
parse(pattern: string, text: string, timeZone?: TimeZone): DateWrapper;
|
|
639
|
+
parseAsDate(pattern: string, text: string): Date;
|
|
640
|
+
}
|
|
641
|
+
export interface NumberFormat {
|
|
642
|
+
format(pattern: string, number: number): string;
|
|
643
|
+
parse(pattern: string, text: string): number;
|
|
644
|
+
}
|
|
645
|
+
export interface TableData {
|
|
646
|
+
readonly columns: Column[];
|
|
647
|
+
readonly rows: Row[];
|
|
648
|
+
get(index: number): Row;
|
|
649
|
+
get(index: LongWrapper): Row;
|
|
650
|
+
getData(index: number, column: Column): any;
|
|
651
|
+
getData(index: LongWrapper, column: Column): any;
|
|
652
|
+
getFormat(index: number, column: Column): Format;
|
|
653
|
+
getFormat(index: LongWrapper, column: Column): Format;
|
|
654
|
+
}
|
|
655
|
+
export interface UpdateEventData extends TableData {
|
|
656
|
+
readonly added: RangeSet;
|
|
657
|
+
readonly removed: RangeSet;
|
|
658
|
+
readonly modified: RangeSet;
|
|
659
|
+
readonly fullIndex: RangeSet;
|
|
660
|
+
}
|
|
661
|
+
export interface Row {
|
|
662
|
+
readonly index: LongWrapper;
|
|
663
|
+
get(column: Column): any;
|
|
664
|
+
getFormat(column: Column): Format;
|
|
665
|
+
}
|
|
666
|
+
export interface Format {
|
|
667
|
+
readonly color: string;
|
|
668
|
+
readonly backgroundColor: string;
|
|
669
|
+
readonly formatString: string;
|
|
670
|
+
}
|
|
671
|
+
export interface ColumnStatistics {
|
|
672
|
+
readonly statisticsMap: Map<string, number>;
|
|
673
|
+
readonly uniqueValues: Map<string, number>;
|
|
674
|
+
getType(name: string): string;
|
|
675
|
+
}
|
|
676
|
+
export interface TreeTableStatic {
|
|
677
|
+
readonly EVENT_UPDATED: string;
|
|
678
|
+
readonly EVENT_DISCONNECT: string;
|
|
679
|
+
readonly EVENT_RECONNECT: string;
|
|
680
|
+
readonly EVENT_RECONNECTFAILED: string;
|
|
681
|
+
}
|
|
682
|
+
export interface TableTemplate<T = Table> extends Evented {
|
|
683
|
+
readonly size: number;
|
|
684
|
+
readonly columns: Column[];
|
|
685
|
+
readonly sort: Sort[];
|
|
686
|
+
readonly filter: FilterCondition[];
|
|
687
|
+
readonly totalsTableConfig: TotalsTableConfig;
|
|
688
|
+
findColumn(name: string): Column;
|
|
689
|
+
findColumns(names: string[]): Column[];
|
|
690
|
+
applySort(sorts: Sort[]): Sort[];
|
|
691
|
+
applyFilter(filters: FilterCondition[]): FilterCondition[];
|
|
692
|
+
selectDistinct(columns: Column[]): Promise<Table>;
|
|
693
|
+
getTotalsTable(config?: TotalsTableConfig): Promise<TotalsTable>;
|
|
694
|
+
getGrandTotalsTable(config?: TotalsTableConfig): Promise<TotalsTable>;
|
|
695
|
+
setViewport(firstRow: number, lastRow: number, columns?: Column[], updateIntervalMs?: number): TableViewportSubscription;
|
|
696
|
+
copy(): Promise<T>;
|
|
697
|
+
close(): void;
|
|
698
|
+
}
|
|
699
|
+
export interface TreeTable extends TableTemplate<TreeTable>, TreeTableStatic {
|
|
700
|
+
readonly isIncludeConstituents: boolean;
|
|
701
|
+
readonly groupedColumns: Column[];
|
|
702
|
+
expand(row: number): void;
|
|
703
|
+
expand(row: TreeRow): void;
|
|
704
|
+
collapse(row: number): void;
|
|
705
|
+
collapse(row: TreeRow): void;
|
|
706
|
+
setExpanded(row: number, isExpanded: boolean, expandDescendants?: boolean): void;
|
|
707
|
+
setExpanded(row: TreeRow, isExpanded: boolean, expandDescendants?: boolean): void;
|
|
708
|
+
expandAll?(): void;
|
|
709
|
+
collapseAll?(): void;
|
|
710
|
+
isExpanded(row: number): boolean;
|
|
711
|
+
isExpanded(row: TreeRow): boolean;
|
|
712
|
+
getViewportData(): Promise<TreeTableData>;
|
|
713
|
+
saveExpandedState(): string;
|
|
714
|
+
restoreExpandedState(nodesToRestore: string): void;
|
|
715
|
+
}
|
|
716
|
+
export interface TreeTableData extends TableData {
|
|
717
|
+
readonly rows: TreeRow[];
|
|
718
|
+
}
|
|
719
|
+
export interface TreeRow extends Row {
|
|
720
|
+
readonly isExpanded: boolean;
|
|
721
|
+
readonly hasChildren: boolean;
|
|
722
|
+
readonly depth: number;
|
|
723
|
+
}
|
|
724
|
+
export interface RollupConfig {
|
|
725
|
+
groupingColumns: string[] | null;
|
|
726
|
+
aggregations: Record<string, readonly string[]> | null;
|
|
727
|
+
includeConstituents: boolean;
|
|
728
|
+
includeOriginalColumns?: boolean;
|
|
729
|
+
includeDescriptions: boolean;
|
|
730
|
+
}
|
|
731
|
+
export interface TreeTableConfig {
|
|
732
|
+
}
|
|
733
|
+
export interface TotalsTableConfig {
|
|
734
|
+
showTotalsByDefault?: boolean;
|
|
735
|
+
showGrandTotalsByDefault?: boolean;
|
|
736
|
+
defaultOperation?: string;
|
|
737
|
+
groupBy?: readonly string[];
|
|
738
|
+
operationMap: Record<string, readonly string[]>;
|
|
739
|
+
}
|
|
740
|
+
export interface TotalsTable extends Evented {
|
|
741
|
+
readonly size: number;
|
|
742
|
+
readonly columns: Column[];
|
|
743
|
+
readonly sort: Sort[];
|
|
744
|
+
readonly filter: FilterCondition[];
|
|
745
|
+
customColumns: string[];
|
|
746
|
+
readonly totalsTableConfig: TotalsTableConfig;
|
|
747
|
+
applySort(sorts: Sort[]): Sort[];
|
|
748
|
+
applyFilter(filters: FilterCondition[]): FilterCondition[];
|
|
749
|
+
applyCustomColumns(columns: string[]): string[];
|
|
750
|
+
setViewport(firstRow: number, lastRow: number, columns?: Column[], updateIntervalMs?: number): void;
|
|
751
|
+
getViewportData(): Promise<TableData>;
|
|
752
|
+
close(): void;
|
|
753
|
+
}
|
|
754
|
+
export interface TableMap extends Evented {
|
|
755
|
+
readonly size: number;
|
|
756
|
+
close(): void;
|
|
757
|
+
getKeys(): Promise<Set<object>>;
|
|
758
|
+
getTable(key: object): Promise<Table>;
|
|
759
|
+
}
|
|
760
|
+
export interface WorkerHeapInfo {
|
|
761
|
+
readonly maximumHeapSize: number;
|
|
762
|
+
readonly freeMemory: number;
|
|
763
|
+
readonly totalHeapSize: number;
|
|
764
|
+
}
|
|
765
|
+
export interface QueryConnectable extends Evented {
|
|
766
|
+
getWorkerHeapInfo(): Promise<WorkerHeapInfo>;
|
|
767
|
+
getConsoleTypes(): Promise<string[]>;
|
|
768
|
+
startSession(type: string): Promise<IdeSession>;
|
|
769
|
+
}
|
|
770
|
+
export interface IdeConnectionOptions {
|
|
771
|
+
authoToken?: string;
|
|
772
|
+
serviceId?: string;
|
|
773
|
+
}
|
|
774
|
+
export interface IdeConnectionConstructor {
|
|
775
|
+
HACK_CONNECTION_FAILURE: string;
|
|
776
|
+
new (serverUrl: string, options?: IdeConnectionOptions): IdeConnection;
|
|
777
|
+
}
|
|
778
|
+
export interface IdeConnection extends QueryConnectable, IdeConnectionConstructor {
|
|
779
|
+
close(): void;
|
|
780
|
+
running(): Promise<IdeConnection>;
|
|
781
|
+
disconnected(): void;
|
|
782
|
+
getObject(definition: VariableDefinition<typeof VariableType.TABLE>): Promise<Table>;
|
|
783
|
+
getObject(definition: VariableDefinition<typeof VariableType.FIGURE>): Promise<Figure>;
|
|
784
|
+
getObject(definition: VariableDefinition<typeof VariableType.TREETABLE>): Promise<TreeTable>;
|
|
785
|
+
getObject(definition: VariableDefinition<typeof VariableType.HIERARCHICALTABLE>): Promise<TreeTable>;
|
|
786
|
+
getObject(definition: VariableDefinition): Promise<unknown>;
|
|
787
|
+
subscribeToFieldUpdates(param: (changes: VariableChanges) => void): () => void;
|
|
788
|
+
}
|
|
789
|
+
export interface ItemDetails {
|
|
790
|
+
filename: string;
|
|
791
|
+
basename: string;
|
|
792
|
+
dirname: string;
|
|
793
|
+
type: 'directory' | 'file';
|
|
794
|
+
size: number;
|
|
795
|
+
etag?: string;
|
|
796
|
+
}
|
|
797
|
+
export interface FileContentsStatic {
|
|
798
|
+
blob(blob: Blob): FileContents;
|
|
799
|
+
text(...text: string[]): FileContents;
|
|
800
|
+
arrayBuffers(...buffers: ArrayBuffer[]): FileContents;
|
|
801
|
+
}
|
|
802
|
+
export interface FileContents {
|
|
803
|
+
text(): Promise<string>;
|
|
804
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
805
|
+
etag?: string;
|
|
806
|
+
}
|
|
807
|
+
export interface LoginOptions {
|
|
808
|
+
type: string;
|
|
809
|
+
token?: string;
|
|
810
|
+
}
|
|
811
|
+
export interface StorageService {
|
|
812
|
+
listItems(path: string, glob?: string): Promise<ItemDetails[]>;
|
|
813
|
+
loadFile(path: string, etag?: string): Promise<FileContents>;
|
|
814
|
+
deleteItem(path: string): Promise<void>;
|
|
815
|
+
saveFile(path: string, contents: FileContents, allowOverwrite?: boolean): Promise<void>;
|
|
816
|
+
moveItem(path: string, newPath: string, newFile?: boolean): Promise<void>;
|
|
817
|
+
createDirectory(path: string): Promise<void>;
|
|
818
|
+
}
|
|
819
|
+
export interface CoreClientContructor {
|
|
820
|
+
LOGIN_TYPE_ANONYMOUS: string;
|
|
821
|
+
new (serverUrl: string): CoreClient;
|
|
822
|
+
}
|
|
823
|
+
export interface CoreClient extends CoreClientContructor {
|
|
824
|
+
login(options: LoginOptions): Promise<void>;
|
|
825
|
+
getAsIdeConnection(): Promise<IdeConnection>;
|
|
826
|
+
getStorageService(): StorageService;
|
|
827
|
+
getServerConfigValues(): [string, string][];
|
|
828
|
+
}
|
|
829
|
+
//# sourceMappingURL=dh.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dh.types.d.ts","sourceRoot":"","sources":["../src/dh.types.ts"],"names":[],"mappings":"AAOA,eAAe,EAAE,CAAC;AAElB,MAAM,WAAW,EAAE;IACjB,aAAa,EAAE,wBAAwB,CAAC;IACxC,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,IAAI,EAAE;QACJ,cAAc,EAAE,cAAc,CAAC;QAC/B,YAAY,EAAE,YAAY,CAAC;QAC3B,QAAQ,EAAE,YAAY,CAAC;KACxB,CAAC;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,qBAAqB,CAAC;IACvC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,IAAI,EAAE,IAAI,CAAC;IAC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2
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
/* eslint-disable lines-between-class-members */
|
|
6
|
+
|
|
7
|
+
/* eslint-disable max-classes-per-file */
|
|
8
|
+
|
|
9
|
+
var VariableType = {
|
|
10
|
+
FIGURE: 'Figure',
|
|
11
|
+
OTHERWIDGET: 'OtherWidget',
|
|
12
|
+
PANDAS: 'Pandas',
|
|
13
|
+
TABLE: 'Table',
|
|
14
|
+
TABLEMAP: 'TableMap',
|
|
15
|
+
TREETABLE: 'TreeTable',
|
|
16
|
+
HIERARCHICALTABLE: 'HierarchicalTable',
|
|
17
|
+
PARTITIONEDTABLE: 'PartitionedTable'
|
|
18
|
+
};
|
|
19
|
+
var ValueType = {
|
|
20
|
+
STRING: 'String',
|
|
21
|
+
NUMBER: 'Number',
|
|
22
|
+
DOUBLE: 'Double',
|
|
23
|
+
LONG: 'Long',
|
|
24
|
+
DATETIME: 'Datetime',
|
|
25
|
+
BOOLEAN: 'Boolean'
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=dh.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dh.types.js","names":["VariableType","FIGURE","OTHERWIDGET","PANDAS","TABLE","TABLEMAP","TREETABLE","HIERARCHICALTABLE","PARTITIONEDTABLE","ValueType","STRING","NUMBER","DOUBLE","LONG","DATETIME","BOOLEAN"],"sources":["../src/dh.types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-empty-interface */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable lines-between-class-members */\n\n/* eslint-disable max-classes-per-file */\nexport default dh;\n\nexport interface dh {\n IdeConnection: IdeConnectionConstructor;\n Session: IdeSession;\n VariableType: typeof VariableType;\n i18n: {\n DateTimeFormat: DateTimeFormat;\n NumberFormat: NumberFormat;\n TimeZone: i18nTimeZone;\n };\n DateWrapper: DateWrapper;\n LongWrapper: LongWrapper;\n FilterCondition: FilterConditionStatic;\n FilterValue: FilterValueStatic;\n plot: Plot;\n Axis: Axis;\n Table: TableStatic;\n Client: ClientStatic;\n TreeTable: TreeTableStatic;\n Column: Column;\n SearchDisplayMode?: SearchDisplayModeStatic;\n RangeSet: RangeSet;\n IdeSession: IdeSessionStatic;\n calendar: CalendarStatic;\n CoreClient: CoreClientContructor;\n storage: {\n FileContents: FileContentsStatic;\n };\n ValueType: typeof ValueType;\n}\n\nconst VariableType = {\n FIGURE: 'Figure',\n OTHERWIDGET: 'OtherWidget',\n PANDAS: 'Pandas',\n TABLE: 'Table',\n TABLEMAP: 'TableMap',\n TREETABLE: 'TreeTable',\n HIERARCHICALTABLE: 'HierarchicalTable',\n PARTITIONEDTABLE: 'PartitionedTable',\n} as const;\n\nconst ValueType = {\n STRING: 'String',\n NUMBER: 'Number',\n DOUBLE: 'Double',\n LONG: 'Long',\n DATETIME: 'Datetime',\n BOOLEAN: 'Boolean',\n} as const;\n\nexport type ValueTypeUnion = typeof ValueType[keyof typeof ValueType];\n\nexport interface CalendarStatic {\n DayOfWeek: { values: () => string[] };\n}\n\nexport type VariableTypeUnion = typeof VariableType[keyof typeof VariableType];\n\nexport interface VariableDefinition<\n T extends VariableTypeUnion = VariableTypeUnion\n> {\n type: T;\n\n /**\n * @deprecated\n */\n name?: string;\n\n title?: string;\n\n id?: string;\n}\n\nexport interface LogItem {\n micros: number;\n logLevel: string;\n message: string;\n}\n\nexport interface VariableChanges {\n created: VariableDefinition[];\n updated: VariableDefinition[];\n removed: VariableDefinition[];\n}\n\nexport interface CommandResult {\n changes: VariableChanges;\n error: string;\n}\n\nexport interface Position {\n line: number;\n character: number;\n}\n\nexport interface DocumentRange {\n start: Position;\n end: Position;\n}\n\nexport interface TextEdit {\n text: string;\n range: DocumentRange;\n}\n\nexport interface CompletionItem {\n label: string;\n kind: number;\n detail: string;\n documentation: string;\n sortText: string;\n filterText: string;\n textEdit: TextEdit;\n insertTextFormat: number;\n}\n\nexport interface IdeSessionStatic {\n EVENT_COMMANDSTARTED: 'commandstarted';\n}\n\nexport interface WorkerConnection {\n subscribeToFieldUpdates(\n param: (changes: VariableChanges) => void\n ): () => void;\n}\n\nexport interface IdeSession extends Evented {\n subscribeToFieldUpdates(\n param: (changes: VariableChanges) => void\n ): () => void;\n getTable(name: string): Promise<Table>;\n getFigure(name: string): Promise<Figure>;\n getTreeTable(name: string): Promise<TreeTable>;\n getObject(\n definition: VariableDefinition<typeof VariableType.TABLE>\n ): Promise<Table>;\n getObject(\n definition: VariableDefinition<typeof VariableType.FIGURE>\n ): Promise<Figure>;\n getObject(\n definition: VariableDefinition<typeof VariableType.TREETABLE>\n ): Promise<TreeTable>;\n getObject(\n definition: VariableDefinition<typeof VariableType.HIERARCHICALTABLE>\n ): Promise<TreeTable>;\n getObject(definition: VariableDefinition): Promise<unknown>;\n onLogMessage(logHandler: (logItem: LogItem) => void): () => void;\n runCode(code: string): Promise<CommandResult>;\n bindTableToVariable(table: Table, variableName: string): Promise<void>;\n mergeTables(tables: Table[]): Promise<Table>;\n newTable(\n columnNames: string[],\n columnTypes: string[],\n data: string[][],\n userTimeZone: string\n ): Promise<Table>;\n getCompletionItems(params: unknown): Promise<CompletionItem[]>;\n closeDocument(params: unknown): void;\n openDocument(params: unknown): void;\n changeDocument(params: unknown): void;\n close(): void;\n}\n\nexport interface Evented {\n addEventListener(eventType: string, listener: EventListener): RemoverFn;\n nextEvent(eventType: string, timeoutInMillis?: number): Promise<CustomEvent>;\n\n hasListeners(eventType: string): boolean;\n removeEventListener(eventType: string, listener: EventListener): boolean;\n}\n\nexport interface Plot {\n Figure: Figure;\n\n SourceType: SourceType;\n SeriesPlotStyle: SeriesPlotStyle;\n ChartType: ChartType;\n AxisType: AxisType;\n AxisPosition: AxisPosition;\n AxisFormatType: AxisFormatType;\n\n FigureDescriptor: FigureDescriptor;\n ChartDescriptor: ChartDescriptor;\n SeriesDescriptor: SeriesDescriptor;\n SourceDescriptor: SourceDescriptor;\n DownsampleOptions: DownsampleOptions;\n}\n\nexport interface RemoverFn {\n (): void;\n}\n\nexport interface EventListener {\n (event: CustomEvent): void;\n}\n\nexport interface FigureDescriptor {\n title: string;\n titleFont?: string;\n titleColor?: string;\n isResizable?: boolean;\n isDefaultTheme?: boolean;\n updateInterval?: number;\n rows?: number;\n cols?: number;\n charts: Partial<ChartDescriptor>[];\n}\nexport interface ChartDescriptor {\n rowspan?: number;\n colspan?: number;\n series: Partial<SeriesDescriptor>[];\n axes: Partial<AxisDescriptor>[];\n chartType: string;\n title?: string;\n titleFont?: string;\n titleColor?: string;\n showLegend?: boolean;\n legendFont?: string;\n legendColor?: string;\n is3d?: boolean;\n}\nexport interface SeriesDescriptor {\n plotStyle: string;\n name: string;\n linesVisible?: boolean;\n shapesVisible?: boolean;\n gradientVisible?: boolean;\n lineColor?: string;\n pointLabelFormat?: string;\n xToolTipPattern?: string;\n yToolTipPattern?: string;\n shapeLabel?: string;\n shapeSize?: number;\n shapeColor?: string;\n shape?: string;\n}\nexport interface SourceDescriptor {\n axis?: AxisDescriptor;\n table: Table;\n columnName: string;\n columnType: string;\n}\nexport interface AxisDescriptor {\n formatType: string;\n type: string;\n position: string;\n log?: boolean;\n label?: string;\n labelFont?: string;\n ticksFont?: string;\n formatPattern?: string;\n color?: string;\n minRange?: number;\n maxRange?: number;\n minorTicksVisible?: boolean;\n majorTicksVisible?: boolean;\n minorTickCount?: number;\n gapBetweenMajorTicks?: number;\n tickLabelAngle?: number;\n invert?: boolean;\n isTimeAxis?: boolean;\n}\nexport interface Figure extends Evented {\n readonly EVENT_UPDATED: string;\n readonly EVENT_DISCONNECT: string;\n readonly EVENT_RECONNECT: string;\n readonly EVENT_RECONNECTFAILED: string;\n readonly EVENT_DOWNSAMPLESTARTED: string;\n readonly EVENT_DOWNSAMPLEFINISHED: string;\n readonly EVENT_DOWNSAMPLEFAILED: string;\n readonly EVENT_DOWNSAMPLENEEDED: string;\n readonly EVENT_SERIES_ADDED: string;\n\n /** Given a client-created figure descriptor, generate a figure that can be subscribed to */\n create(figure: Partial<FigureDescriptor>): Figure;\n\n readonly title: string;\n readonly titleFont: string;\n readonly titleColor: string;\n readonly isResizable: boolean;\n readonly isDefaultTheme: boolean;\n readonly updateInterval: number;\n readonly cols: number;\n readonly rows: number;\n readonly charts: Chart[];\n\n /**\n * Subscribes to all series in this figure.\n * @param forceDisableDownsample optional, can be specified to force downsampling to be disabled\n */\n subscribe(forceDisableDownsample?: DownsampleOptions): void;\n\n /**\n * Unsubscribes to all series in this figure.\n */\n unsubscribe(): void;\n\n close(): void;\n}\n\nexport interface FigureDataUpdatedEvent {\n /**\n * The series instances which were affected by this event and need to be updated.\n */\n readonly series: Series[];\n\n /**\n * Reads data out for this series from the event which just occurred for the given series.\n * The array returned by this method will be cached and reused to minimize the garbage\n * created, and to reduce processing time in handling updates.\n *\n * The pattern when using this is to iterate over the series which this event affects, and\n * for each series, iterate over each source. For each series+source, pass them in, along\n * with the optional mapping function, and get back the array of data across the entire plot.\n *\n * @param series\n * @param sourceType\n * @param mapFn\n */\n getArray<I, O>(\n series: Series,\n sourceType: SourceType,\n mapFn?: MapFn<I, O>\n ): O[];\n}\n\nexport interface MapFn<I, O> {\n (input: I): O;\n}\n\nexport interface DownsampleOptions {\n readonly DEFAULT: DownsampleOptions;\n readonly DISABLE: DownsampleOptions;\n}\n\nexport interface SourceType {\n readonly X: SourceType;\n readonly Y: SourceType;\n readonly Z: SourceType;\n readonly X_LOW: SourceType;\n readonly X_HIGH: SourceType;\n readonly Y_LOW: SourceType;\n readonly Y_HIGH: SourceType;\n readonly TIME: SourceType;\n readonly OPEN: SourceType;\n readonly HIGH: SourceType;\n readonly LOW: SourceType;\n readonly CLOSE: SourceType;\n readonly SHAPE: SourceType;\n readonly SIZE: SourceType;\n readonly LABEL: SourceType;\n readonly COLOR: SourceType;\n readonly PARENT: SourceType;\n readonly HOVER_TEXT: SourceType;\n readonly TEXT: SourceType;\n}\nexport interface ChartType {\n readonly XY: ChartType;\n readonly PIE: ChartType;\n readonly OHLC: ChartType;\n readonly CATEGORY: ChartType;\n readonly XYZ: ChartType;\n readonly CATEGORY_3D: ChartType;\n}\nexport interface SeriesPlotStyle {\n readonly BAR: SeriesPlotStyle;\n readonly STACKED_BAR: SeriesPlotStyle;\n readonly LINE: SeriesPlotStyle;\n readonly AREA: SeriesPlotStyle;\n readonly STACKED_AREA: SeriesPlotStyle;\n readonly PIE: SeriesPlotStyle;\n readonly HISTOGRAM: SeriesPlotStyle;\n readonly OHLC: SeriesPlotStyle;\n readonly SCATTER: SeriesPlotStyle;\n readonly STEP: SeriesPlotStyle;\n readonly ERROR_BAR: SeriesPlotStyle;\n readonly TREEMAP: SeriesPlotStyle;\n}\nexport interface AxisFormatType {\n readonly CATEGORY: AxisFormatType;\n readonly NUMBER: AxisFormatType;\n}\nexport interface AxisType {\n readonly X: AxisType;\n readonly Y: AxisType;\n readonly Z: AxisType;\n readonly SHAPE: AxisType;\n readonly SIZE: AxisType;\n readonly LABEL: AxisType;\n readonly COLOR: AxisType;\n}\nexport interface AxisPosition {\n readonly TOP: AxisPosition;\n readonly BOTTOM: AxisPosition;\n readonly LEFT: AxisPosition;\n readonly RIGHT: AxisPosition;\n readonly NONE: AxisPosition;\n}\n\nexport interface Chart extends Evented {\n readonly EVENT_SERIES_ADDED: string;\n\n readonly row: number;\n readonly column: number;\n readonly colspan: number;\n readonly rowspan: number;\n readonly chartType: ChartType;\n readonly title: string;\n readonly titleFont: string;\n readonly titleColor: string;\n readonly showLegend: boolean;\n readonly legendFont: string;\n readonly legendColor: string;\n readonly is3d: boolean;\n readonly series: Series[];\n readonly multiSeries: MultiSeries[];\n readonly axes: Axis[];\n}\n\nexport interface Series {\n readonly plotStyle: SeriesPlotStyle;\n readonly name: string;\n readonly isLinesVisible: boolean | null;\n readonly isShapesVisible: boolean | null;\n readonly isGradientVisible: boolean;\n readonly lineColor: string;\n readonly pointLabelFormat: string;\n readonly xToolTipPattern: string;\n readonly yToolTipPattern: string;\n readonly shapeLabel: string;\n readonly shapeSize: number;\n readonly shape: string;\n readonly shapeColor: string;\n readonly sources: SeriesDataSource[];\n readonly multiSeries: MultiSeries;\n readonly oneClick: OneClick;\n\n subscribe(downsampleOptions?: DownsampleOptions): void;\n unsubscribe(): void;\n}\n\nexport interface MultiSeries {\n readonly plotStyle: SeriesPlotStyle;\n readonly name: string;\n}\n\nexport interface BusinessPeriod {\n open: string;\n close: string;\n}\n\nexport interface LocalDateWrapper {\n toString: () => string;\n}\nexport interface Holiday {\n date: LocalDateWrapper;\n businessPeriods: BusinessPeriod[];\n}\n\nexport interface BusinessCalendar {\n getName: () => string;\n timeZone: TimeZone;\n businessPeriods: BusinessPeriod[];\n businessDays: string[];\n holidays: Holiday[];\n}\n\nexport interface Axis {\n readonly id: string;\n readonly formatType: AxisFormatType;\n readonly type: AxisType;\n readonly position: AxisPosition;\n readonly log: boolean;\n readonly label: string;\n readonly labelFont: string;\n readonly ticksFont: string;\n readonly formatPattern: string;\n readonly minRange: number;\n readonly maxRange: number;\n readonly isMinorTicksVisible: boolean;\n readonly isMajorTicksVisible: boolean;\n readonly minorTickCount: number;\n readonly gapBetweenMajorTicks: number;\n readonly majorTickLocations: number[];\n readonly tickLabelAngle: number;\n readonly isInvert: boolean;\n readonly isTimeAxis: boolean;\n\n readonly FORMAT_TYPE_NUMBER: unknown;\n readonly businessCalendar: BusinessCalendar;\n\n /**\n * Indicate the density and range of data that the UI needs for this axis, across any series which\n * draws on this axis. Ignored for non-time series data, for non-line series.\n * @param pixelCount the approx number of pixels wide\n * @param min the optional minimum value visible on this axis - even if specified, smaller values may\n * be returned, to ensure that lines drawn off the screen.\n * @param max the optional max value visible on this axis. If min is specified, max is also expected.\n */\n range(pixelCount?: number, min?: any, max?: any): void;\n}\n\nexport interface SeriesDataSource {\n readonly axis: Axis;\n readonly type: SourceType;\n readonly columnType: string;\n}\n\nexport interface OneClick {\n readonly columns: { name: string; type: string }[];\n readonly requireAllFiltersToDisplay: boolean;\n\n setValueForColumn(columnName: string, value: any): void;\n getValueForColumn(columnName: string): any;\n}\n\nexport interface Column {\n /**\n * @deprecated\n */\n readonly index: number;\n\n readonly type: string;\n readonly name: string;\n readonly description: string;\n readonly constituentType: string;\n\n readonly isPartitionColumn: boolean;\n\n filter(): FilterValue;\n sort(): Sort;\n\n formatColor(expression: string): CustomColumn;\n formatRowColor(expression: string): CustomColumn;\n}\n\nexport interface CustomColumn {\n readonly type: string;\n readonly name: string;\n readonly expression: string;\n}\n\nexport interface FilterValueStatic {\n ofString(input: unknown): FilterValue;\n ofNumber(input: unknown): FilterValue;\n ofBoolean(input: unknown): FilterValue;\n}\nexport interface FilterValue {\n eq(value: FilterValue): FilterCondition;\n eqIgnoreCase(value: FilterValue): FilterCondition;\n notEq(value: FilterValue): FilterCondition;\n notEqIgnoreCase(value: FilterValue): FilterCondition;\n greaterThan(value: FilterValue): FilterCondition;\n lessThan(value: FilterValue): FilterCondition;\n greaterThanOrEqualTo(value: FilterValue): FilterCondition;\n lessThanOrEqualTo(value: FilterValue): FilterCondition;\n in(values: FilterValue[]): FilterCondition;\n inIgnoreCase(values: FilterValue[]): FilterCondition;\n notIn(values: FilterValue[]): FilterCondition;\n notInIgnoreCase(values: FilterValue[]): FilterCondition;\n contains(value: FilterValue): FilterCondition;\n isFalse(): FilterCondition;\n isTrue(): FilterCondition;\n isNull(): FilterCondition;\n invoke(method: string, ...args: FilterValue[]): FilterCondition;\n}\n\nexport interface FilterConditionStatic {\n invoke(method: string, ...args: FilterValue[]): FilterCondition;\n search(value: FilterValue, columns?: FilterValue[]): FilterCondition;\n}\nexport interface FilterCondition {\n not(): FilterCondition;\n and(first: FilterCondition, ...rest: FilterCondition[]): FilterCondition;\n or(first: FilterCondition, ...rest: FilterCondition[]): FilterCondition;\n\n toString(): string;\n}\nexport interface Sort {\n reverse(): Sort;\n\n readonly column: Column;\n readonly direction: 'ASC' | 'DESC' | 'REVERSE' | null;\n\n readonly isAbs: boolean;\n\n asc(): Sort;\n desc(): Sort;\n abs(): Sort;\n}\n\nexport interface InputTable {\n keys: string[];\n keyColumns: Column[];\n values: string[];\n valueColumns: Column[];\n addRow(\n row: Record<string, unknown>,\n userTimeZone?: string\n ): Promise<InputTable>;\n addRows(\n rows: Record<string, unknown>[],\n userTimeZone?: string\n ): Promise<InputTable>;\n addTable(table: Table): Promise<InputTable>;\n addTables(tables: Table[]): Promise<InputTable>;\n deleteTable(table: Table): Promise<InputTable>;\n deleteTables(tables: Table[]): Promise<InputTable>;\n table: Table;\n}\nexport interface ColumnGroup {\n name: string;\n children: string[];\n color?: string;\n}\n\nexport interface LayoutHints {\n areSavedLayoutsAllowed?: boolean;\n frontColumns?: string[];\n backColumns?: string[];\n hiddenColumns?: string[];\n frozenColumns?: string[];\n columnGroups?: ColumnGroup[];\n searchDisplayMode?: keyof SearchDisplayModeStatic;\n}\n\nexport interface SearchDisplayModeStatic {\n SEARCH_DISPLAY_DEFAULT: 'Default';\n SEARCH_DISPLAY_HIDE: 'Hide';\n SEARCH_DISPLAY_SHOW: 'Show';\n}\n\nexport interface TableStatic {\n readonly EVENT_SIZECHANGED: string;\n readonly EVENT_UPDATED: string;\n readonly EVENT_ROWADDED: string;\n readonly EVENT_ROWREMOVED: string;\n readonly EVENT_ROWUPDATED: string;\n readonly EVENT_SORTCHANGED: string;\n readonly EVENT_FILTERCHANGED: string;\n readonly EVENT_CUSTOMCOLUMNSCHANGED: string;\n readonly EVENT_DISCONNECT: string;\n readonly EVENT_RECONNECT: string;\n readonly EVENT_RECONNECTFAILED: string;\n readonly SIZE_UNCOALESCED: number;\n reverse(): Sort;\n}\n\nexport interface ClientStatic {\n readonly EVENT_REQUEST_FAILED: 'requestfailed';\n readonly EVENT_REQUEST_STARTED: 'requeststarted';\n readonly EVENT_REQUEST_SUCCEEDED: 'requestsucceeded';\n}\nexport interface Table extends TableTemplate<Table>, TableStatic {\n readonly totalSize: number;\n\n readonly description: string;\n\n customColumns: string[];\n\n readonly layoutHints: LayoutHints;\n\n readonly isUncoalesced: boolean;\n readonly hasInputTable: boolean;\n\n readonly isClosed: boolean;\n readonly pluginName: string;\n\n applyCustomColumns(columns: (CustomColumn | string)[]): string[];\n\n getViewportData(): Promise<TableData>;\n\n subscribe(columns: Column[]): TableSubscription;\n\n selectDistinct(columns: Column[]): Promise<Table>;\n copy(): Promise<Table>;\n\n rollup(config: RollupConfig): Promise<TreeTable>;\n treeTable(config: TreeTableConfig): Promise<TreeTable>;\n\n inputTable(): Promise<InputTable>;\n\n freeze(): Promise<Table>;\n\n snapshot(\n rightHandSide: Table,\n doInitialSnapshot?: boolean,\n stampColumns?: string[]\n ): Promise<Table>;\n\n getColumnStatistics(column: Column): Promise<ColumnStatistics>;\n\n join(\n joinType: string,\n rightTable: Table,\n columnsToMatch: string[],\n columnsToAdd?: string[]\n ): Promise<Table>;\n byExternal(keys: string[], dropKeys?: boolean): Promise<TableMap>;\n\n fireViewportUpdate(): void;\n\n seekRow(\n startRow: number,\n column: Column,\n valueType: ValueTypeUnion,\n value: unknown,\n insensitive?: boolean,\n contains?: boolean,\n isBackwards?: boolean\n ): Promise<number>;\n}\n\nexport interface TableViewportSubscription extends Evented {\n setViewport(firstRow: number, lastRow: number, columns?: Column[]): void;\n getViewportData(): Promise<TableData>;\n snapshot(rows: RangeSet, columns: readonly Column[]): Promise<TableData>;\n close(): void;\n}\n\nexport interface ViewportData {\n offset: number;\n rows: Row[];\n columns: Column[];\n}\n\nexport interface TableSubscription extends Evented {\n readonly EVENT_UPDATED: string;\n\n readonly columns: Column[];\n close(): void;\n}\n\nexport interface RangeSet {\n ofRange(first: number, last: number): RangeSet;\n ofItems(rows: number[]): RangeSet;\n ofRanges(ranges: RangeSet[]): RangeSet;\n\n readonly size: number;\n iterator(): JsIterator<LongWrapper>;\n}\n\nexport interface JsIterator<T> {\n hasNext(): boolean;\n next(): IteratorResult<T>;\n}\n\nexport interface LongWrapper {\n asNumber(): number;\n valueOf(): string;\n toString(): string;\n ofString(str: string): LongWrapper;\n}\nexport interface DateWrapper extends LongWrapper {\n ofJsDate(date: Date): DateWrapper;\n asDate(): Date;\n}\n\nexport interface TimeZone {\n adjustments: number[];\n standardOffset: number;\n timeZoneID: string;\n id: string;\n transitionPoints: number[];\n tzNames: string[];\n}\n\nexport interface i18nTimeZone {\n getTimeZone(tzCode: string): TimeZone;\n}\n\nexport interface DateTimeFormat {\n format(\n pattern: string,\n date: DateWrapper | Date | number,\n timeZone?: TimeZone\n ): string;\n parse(pattern: string, text: string, timeZone?: TimeZone): DateWrapper;\n parseAsDate(pattern: string, text: string): Date;\n}\n\nexport interface NumberFormat {\n format(pattern: string, number: number): string;\n parse(pattern: string, text: string): number;\n}\n\nexport interface TableData {\n readonly columns: Column[];\n readonly rows: Row[];\n\n get(index: number): Row;\n get(index: LongWrapper): Row;\n\n getData(index: number, column: Column): any;\n getData(index: LongWrapper, column: Column): any;\n\n getFormat(index: number, column: Column): Format;\n getFormat(index: LongWrapper, column: Column): Format;\n}\n\nexport interface UpdateEventData extends TableData {\n readonly added: RangeSet;\n readonly removed: RangeSet;\n readonly modified: RangeSet;\n readonly fullIndex: RangeSet;\n}\n\nexport interface Row {\n readonly index: LongWrapper;\n\n get(column: Column): any;\n\n getFormat(column: Column): Format;\n}\n\nexport interface Format {\n readonly color: string;\n readonly backgroundColor: string;\n readonly formatString: string;\n}\n\nexport interface ColumnStatistics {\n readonly statisticsMap: Map<string, number>;\n readonly uniqueValues: Map<string, number>;\n\n getType(name: string): string;\n}\n\nexport interface TreeTableStatic {\n readonly EVENT_UPDATED: string;\n readonly EVENT_DISCONNECT: string;\n readonly EVENT_RECONNECT: string;\n readonly EVENT_RECONNECTFAILED: string;\n}\n\nexport interface TableTemplate<T = Table> extends Evented {\n readonly size: number;\n readonly columns: Column[];\n readonly sort: Sort[];\n readonly filter: FilterCondition[];\n readonly totalsTableConfig: TotalsTableConfig;\n\n findColumn(name: string): Column;\n findColumns(names: string[]): Column[];\n\n applySort(sorts: Sort[]): Sort[];\n applyFilter(filters: FilterCondition[]): FilterCondition[];\n selectDistinct(columns: Column[]): Promise<Table>;\n\n getTotalsTable(config?: TotalsTableConfig): Promise<TotalsTable>;\n getGrandTotalsTable(config?: TotalsTableConfig): Promise<TotalsTable>;\n\n setViewport(\n firstRow: number,\n lastRow: number,\n columns?: Column[],\n updateIntervalMs?: number\n ): TableViewportSubscription;\n\n copy(): Promise<T>;\n close(): void;\n}\n\nexport interface TreeTable extends TableTemplate<TreeTable>, TreeTableStatic {\n readonly isIncludeConstituents: boolean;\n readonly groupedColumns: Column[];\n\n expand(row: number): void;\n expand(row: TreeRow): void;\n collapse(row: number): void;\n collapse(row: TreeRow): void;\n setExpanded(\n row: number,\n isExpanded: boolean,\n expandDescendants?: boolean\n ): void;\n setExpanded(\n row: TreeRow,\n isExpanded: boolean,\n expandDescendants?: boolean\n ): void;\n expandAll?(): void;\n collapseAll?(): void;\n isExpanded(row: number): boolean;\n isExpanded(row: TreeRow): boolean;\n\n getViewportData(): Promise<TreeTableData>;\n\n saveExpandedState(): string;\n restoreExpandedState(nodesToRestore: string): void;\n}\nexport interface TreeTableData extends TableData {\n readonly rows: TreeRow[];\n}\nexport interface TreeRow extends Row {\n readonly isExpanded: boolean;\n readonly hasChildren: boolean;\n readonly depth: number;\n}\n\nexport interface RollupConfig {\n groupingColumns: string[] | null;\n aggregations: Record<string, readonly string[]> | null;\n includeConstituents: boolean;\n includeOriginalColumns?: boolean;\n includeDescriptions: boolean;\n}\n\nexport interface TreeTableConfig {}\n\nexport interface TotalsTableConfig {\n showTotalsByDefault?: boolean;\n showGrandTotalsByDefault?: boolean;\n defaultOperation?: string;\n groupBy?: readonly string[];\n operationMap: Record<string, readonly string[]>;\n}\n\nexport interface TotalsTable extends Evented {\n readonly size: number;\n readonly columns: Column[];\n\n readonly sort: Sort[];\n readonly filter: FilterCondition[];\n customColumns: string[];\n\n readonly totalsTableConfig: TotalsTableConfig;\n\n applySort(sorts: Sort[]): Sort[];\n applyFilter(filters: FilterCondition[]): FilterCondition[];\n applyCustomColumns(columns: string[]): string[];\n\n setViewport(\n firstRow: number,\n lastRow: number,\n columns?: Column[],\n updateIntervalMs?: number\n ): void;\n getViewportData(): Promise<TableData>;\n\n close(): void;\n}\n\nexport interface TableMap extends Evented {\n readonly size: number;\n close(): void;\n getKeys(): Promise<Set<object>>;\n getTable(key: object): Promise<Table>;\n}\n\nexport interface WorkerHeapInfo {\n readonly maximumHeapSize: number;\n readonly freeMemory: number;\n readonly totalHeapSize: number;\n}\n\nexport interface QueryConnectable extends Evented {\n getWorkerHeapInfo(): Promise<WorkerHeapInfo>;\n getConsoleTypes(): Promise<string[]>;\n startSession(type: string): Promise<IdeSession>;\n}\n\nexport interface IdeConnectionOptions {\n authoToken?: string;\n serviceId?: string;\n}\n\nexport interface IdeConnectionConstructor {\n HACK_CONNECTION_FAILURE: string;\n new (serverUrl: string, options?: IdeConnectionOptions): IdeConnection;\n}\n\nexport interface IdeConnection\n extends QueryConnectable,\n IdeConnectionConstructor {\n close(): void;\n running(): Promise<IdeConnection>;\n disconnected(): void;\n getObject(\n definition: VariableDefinition<typeof VariableType.TABLE>\n ): Promise<Table>;\n getObject(\n definition: VariableDefinition<typeof VariableType.FIGURE>\n ): Promise<Figure>;\n getObject(\n definition: VariableDefinition<typeof VariableType.TREETABLE>\n ): Promise<TreeTable>;\n getObject(\n definition: VariableDefinition<typeof VariableType.HIERARCHICALTABLE>\n ): Promise<TreeTable>;\n getObject(definition: VariableDefinition): Promise<unknown>;\n subscribeToFieldUpdates(\n param: (changes: VariableChanges) => void\n ): () => void;\n}\n\nexport interface ItemDetails {\n filename: string;\n basename: string;\n dirname: string;\n type: 'directory' | 'file';\n size: number;\n etag?: string;\n}\n\nexport interface FileContentsStatic {\n blob(blob: Blob): FileContents;\n text(...text: string[]): FileContents;\n arrayBuffers(...buffers: ArrayBuffer[]): FileContents;\n}\n\nexport interface FileContents {\n text(): Promise<string>;\n arrayBuffer(): Promise<ArrayBuffer>;\n etag?: string;\n}\n\nexport interface LoginOptions {\n type: string;\n token?: string;\n}\n\nexport interface StorageService {\n listItems(path: string, glob?: string): Promise<ItemDetails[]>;\n loadFile(path: string, etag?: string): Promise<FileContents>;\n deleteItem(path: string): Promise<void>;\n saveFile(\n path: string,\n contents: FileContents,\n allowOverwrite?: boolean\n ): Promise<void>;\n moveItem(path: string, newPath: string, newFile?: boolean): Promise<void>;\n createDirectory(path: string): Promise<void>;\n}\n\nexport interface CoreClientContructor {\n LOGIN_TYPE_ANONYMOUS: string;\n new (serverUrl: string): CoreClient;\n}\n\nexport interface CoreClient extends CoreClientContructor {\n login(options: LoginOptions): Promise<void>;\n getAsIdeConnection(): Promise<IdeConnection>;\n getStorageService(): StorageService;\n getServerConfigValues(): [string, string][];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;;AAiCA,IAAMA,YAAY,GAAG;EACnBC,MAAM,EAAE,QAAQ;EAChBC,WAAW,EAAE,aAAa;EAC1BC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,QAAQ,EAAE,UAAU;EACpBC,SAAS,EAAE,WAAW;EACtBC,iBAAiB,EAAE,mBAAmB;EACtCC,gBAAgB,EAAE;AACpB,CAAU;AAEV,IAAMC,SAAS,GAAG;EAChBC,MAAM,EAAE,QAAQ;EAChBC,MAAM,EAAE,QAAQ;EAChBC,MAAM,EAAE,QAAQ;EAChBC,IAAI,EAAE,MAAM;EACZC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE;AACX,CAAU;AAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,cAAc,YAAY,CAAC;AAC3B,eAAe,EAAE,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type dh from './dh.types';\n\nexport * from './dh.types';\nexport default dh;\n"],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deephaven/jsapi-types",
|
|
3
|
+
"version": "0.29.1-jsapi-module.6+a77fbc2",
|
|
4
|
+
"description": "Deephaven JSAPI Types",
|
|
5
|
+
"author": "Deephaven Data Labs LLC",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/deephaven/web-client-ui.git",
|
|
11
|
+
"directory": "packages/jsapi-types"
|
|
12
|
+
},
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"source": "src/index.ts",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=16"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "cross-env NODE_ENV=production run-p build:*",
|
|
21
|
+
"build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@deephaven/tsconfig": "^0.29.1-jsapi-module.6+a77fbc2"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"gitHead": "a77fbc2394762d405ea033603c7120f71f68cc3e"
|
|
33
|
+
}
|