@deephaven-enterprise/jsapi-coreplus-types 2026.1.65 → 2026.1.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +232 -232
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -3,41 +3,6 @@ declare module '@deephaven/jsapi-types' {
3
3
  // Generated using com.vertispan.tsdefs.doclet.TsDoclet
4
4
  export namespace dh.coreplus.pivot {
5
5
 
6
- /**
7
- * Options for creating a pivot table. The row and column keys define the two dimensions of the pivot, and the
8
- * aggregations define the values computed for each row/column intersection.
9
- */
10
- export class PivotCreationOptions {
11
- /**
12
- * The table to pivot. Must be a `dh.Table` or `dh.TotalsTable`.
13
- */
14
- source:dh.JoinableTable;
15
- /**
16
- * The names of the columns whose values are grouped to form the rows of the pivot table.
17
- */
18
- rowKeys:string[];
19
- /**
20
- * The names of the columns whose values are grouped to form the columns of the pivot table.
21
- */
22
- columnKeys:string[];
23
- /**
24
- * The aggregations to compute for each row/column intersection, as a map from an operation in
25
- * {@link dh.AggregationOperation} to the names of the columns to apply that operation to.
26
- * <p>
27
- * {@link dh.COUNT} ignores its list of columns and instead adds a single column counting the
28
- * rows in each intersection. {@link dh.SKIP} entries are dropped, and operations that a pivot
29
- * table does not support are ignored with a warning rather than raising an error.
30
- * <p>
31
- * When a column is aggregated by more than one operation, or is also used as a row or column key, each of its
32
- * aggregated columns is named `<column>_<operation>` so that the resulting names stay unique.
33
- */
34
- aggregations:{ [key: string]: Array<string>; };
35
-
36
- protected constructor();
37
-
38
- toString():string;
39
- }
40
-
41
6
  /**
42
7
  * Tool to request the server pivot a table and return the results. Obtain an instance with
43
8
  * {@link getInstance}, then call {@link createPivotTable} to pivot a table.
@@ -65,203 +30,6 @@ export namespace dh.coreplus.pivot {
65
30
  removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
66
31
  }
67
32
 
68
- /**
69
- * This type is an analog of {@link dh.Sort}, with a few differences:
70
- * <ul>
71
- * <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
72
- * <li>Reverse is not supported</li>
73
- * </ul>
74
- *
75
- * A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
76
- */
77
- export class PivotSort {
78
- static readonly ASCENDING:string;
79
- static readonly DESCENDING:string;
80
-
81
- protected constructor();
82
-
83
- /**
84
- * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
85
- * @return {@link dh.coreplus.pivot.PivotSort}
86
- */
87
- asc():PivotSort;
88
- /**
89
- * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
90
- * @return {@link dh.coreplus.pivot.PivotSort}
91
- */
92
- desc():PivotSort;
93
- /**
94
- * Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
95
- * @return {@link dh.coreplus.pivot.PivotSort}
96
- */
97
- abs():PivotSort;
98
- toString():string;
99
- /**
100
- * Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
101
- * @return boolean
102
- */
103
- get isAbs():boolean;
104
- /**
105
- * The column which is sorted.
106
- * @return {@link dh.Column}
107
- */
108
- get column():dh.Column;
109
- /**
110
- * The name of the column which is sorted.
111
- * @return String
112
- */
113
- get name():string;
114
- /**
115
- * The direction of this sort, either `ASC` or `DESC`.
116
- * @return String
117
- */
118
- get direction():string;
119
- }
120
-
121
- /**
122
- * For either the row or column dimension, this class provides access to dimension-specific metadata and data made
123
- * available by the viewport subscription.
124
- */
125
- export class DimensionData {
126
- protected constructor();
127
-
128
- /**
129
- * Given a position in this dimension, returns `true` if the item can be expanded to show children.
130
- * @param position - the position in the dimension
131
- * @return `true` if the item can be expanded
132
- */
133
- hasChildren(position:number):boolean;
134
- /**
135
- * Given a position in this dimension, returns `true` if the item is already expanded. Any item that
136
- * cannot be expanded will return `false`.
137
- * @param position - the position in the dimension
138
- * @return `true` if the item is expanded
139
- */
140
- isExpanded(position:number):boolean;
141
- /**
142
- * Given a position in this dimension, returns the depth of the item in the hierarchy. The root level is 1, all
143
- * items at the top level are then at depth 2, and so on.
144
- * @param position - the position in the dimension
145
- * @return the depth of the item in the hierarchy
146
- */
147
- getDepth(position:number):number;
148
- /**
149
- * Given a position in this dimension, returns the keys for that item. The keys are the values of the grouping
150
- * columns, and the values then represent the aggregated values for the underlying table.
151
- * <p>
152
- * Types of the keys are provided by
153
- * {@link PivotTable.getColDim}/{@link PivotTable.getRowDim}.
154
- * @param position - the position in the dimension
155
- * @return an array of key values for the item at the given position
156
- */
157
- getKeys(position:number):any[];
158
- /**
159
- * Given a position in this dimension, returns the total for the item in the dimension at that position.
160
- * <p>
161
- * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
162
- * @param position - the position in the dimension
163
- * @param value - the value source to read, must have been included in the subscription
164
- * @return the total for the item at the given position in this dimension
165
- */
166
- getTotal(position:number, value:PivotSource):any;
167
- /**
168
- * The first position in this dimension that is present in this snapshot.
169
- */
170
- get offset():number;
171
- /**
172
- * The number of elements in this dimension that are present in this snapshot.
173
- */
174
- get count():number;
175
- /**
176
- * The total number of elements in this dimension, given the current expansion state. Viewports past the end of
177
- * this will not be fully populated.
178
- */
179
- get totalCount():number;
180
- }
181
-
182
- /**
183
- * Describes the desired subscription for a pivot table.
184
- */
185
- export class PivotSubscriptionOptions {
186
- /**
187
- * The rows to include in the subscription.
188
- */
189
- rows:dh.RangeSet|dh.SimpleRange;
190
- /**
191
- * The columns to include in the subscription.
192
- */
193
- columns:dh.RangeSet|dh.SimpleRange;
194
- /**
195
- * The aggregated sources to include in the subscription.
196
- */
197
- sources:Array<PivotSource>;
198
- /**
199
- * The minimum time in milliseconds between updates from the server.
200
- */
201
- updateIntervalMs?:number|null;
202
-
203
- constructor();
204
- }
205
-
206
- /**
207
- * Describes the desired snapshot for a pivot table.
208
- */
209
- export class PivotSnapshotOptions {
210
- /**
211
- * The rows to include in the snapshot.
212
- */
213
- rows:dh.RangeSet|dh.SimpleRange;
214
- /**
215
- * The columns to include in the snapshot
216
- */
217
- columns:dh.RangeSet|dh.SimpleRange;
218
- /**
219
- * The aggregated sources to include in the snapshot
220
- */
221
- sources:Array<PivotSource>;
222
-
223
- constructor();
224
- }
225
-
226
- /**
227
- * Analog of {@link dh.Column}, but specific to pivot tables. Represents a named, typed set of values in the pivot table
228
- * that can be read.
229
- */
230
- export class PivotSource {
231
- protected constructor();
232
-
233
- /**
234
- * Creates a new {@link dh.coreplus.pivot.PivotSort} for this source. The sort object then can be made to be ascending or descending,
235
- * using {@link PivotSort.asc} or {@link PivotSort.desc}.
236
- * @return a new {@link dh.coreplus.pivot.PivotSort} for this source
237
- * @see {@link dh.Column.sort}
238
- */
239
- sort():PivotSort;
240
- /**
241
- * Creates a new {@link dh.FilterValue} for this source. The filter value can be used as a builder to create a
242
- * {@link dh.FilterCondition}, or used as a parameter to another filter operation.
243
- * @return a new {@link dh.FilterValue} for this source
244
- * @see {@link dh.FilterCondition}
245
- */
246
- filter():dh.FilterValue;
247
- /**
248
- * The name of this source.
249
- */
250
- get name():string;
251
- /**
252
- * `true` if the data type in this source is sortable.
253
- */
254
- get isSortable():boolean;
255
- /**
256
- * The description of this source, if any.
257
- */
258
- get description():string;
259
- /**
260
- * The type of this source.
261
- */
262
- get type():string;
263
- }
264
-
265
33
  /**
266
34
  * Provides the details for an updated event from a pivot table subscription. Unlike
267
35
  * {@link dh.TableData}, this class offers a matrix of data for each value column, and
@@ -307,6 +75,26 @@ export namespace dh.coreplus.pivot {
307
75
  get valueSources():Array<PivotSource>;
308
76
  }
309
77
 
78
+ /**
79
+ * Describes the desired snapshot for a pivot table.
80
+ */
81
+ export class PivotSnapshotOptions {
82
+ /**
83
+ * The rows to include in the snapshot.
84
+ */
85
+ rows:dh.RangeSet|dh.SimpleRange;
86
+ /**
87
+ * The columns to include in the snapshot
88
+ */
89
+ columns:dh.RangeSet|dh.SimpleRange;
90
+ /**
91
+ * The aggregated sources to include in the snapshot
92
+ */
93
+ sources:Array<PivotSource>;
94
+
95
+ constructor();
96
+ }
97
+
310
98
  /**
311
99
  * Represents a PivotTable on the Deephaven server, with support for sorting, filtering, and viewports with
312
100
  * expand/collapse on rows and columns.
@@ -529,6 +317,218 @@ export namespace dh.coreplus.pivot {
529
317
  removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
530
318
  }
531
319
 
320
+ /**
321
+ * Options for creating a pivot table. The row and column keys define the two dimensions of the pivot, and the
322
+ * aggregations define the values computed for each row/column intersection.
323
+ */
324
+ export class PivotCreationOptions {
325
+ /**
326
+ * The table to pivot. Must be a `dh.Table` or `dh.TotalsTable`.
327
+ */
328
+ source:dh.JoinableTable;
329
+ /**
330
+ * The names of the columns whose values are grouped to form the rows of the pivot table.
331
+ */
332
+ rowKeys:string[];
333
+ /**
334
+ * The names of the columns whose values are grouped to form the columns of the pivot table.
335
+ */
336
+ columnKeys:string[];
337
+ /**
338
+ * The aggregations to compute for each row/column intersection, as a map from an operation in
339
+ * {@link dh.AggregationOperation} to the names of the columns to apply that operation to.
340
+ * <p>
341
+ * {@link dh.COUNT} ignores its list of columns and instead adds a single column counting the
342
+ * rows in each intersection. {@link dh.SKIP} entries are dropped, and operations that a pivot
343
+ * table does not support are ignored with a warning rather than raising an error.
344
+ * <p>
345
+ * When a column is aggregated by more than one operation, or is also used as a row or column key, each of its
346
+ * aggregated columns is named `<column>_<operation>` so that the resulting names stay unique.
347
+ */
348
+ aggregations:{ [key: string]: Array<string>; };
349
+
350
+ protected constructor();
351
+
352
+ toString():string;
353
+ }
354
+
355
+ /**
356
+ * For either the row or column dimension, this class provides access to dimension-specific metadata and data made
357
+ * available by the viewport subscription.
358
+ */
359
+ export class DimensionData {
360
+ protected constructor();
361
+
362
+ /**
363
+ * Given a position in this dimension, returns `true` if the item can be expanded to show children.
364
+ * @param position - the position in the dimension
365
+ * @return `true` if the item can be expanded
366
+ */
367
+ hasChildren(position:number):boolean;
368
+ /**
369
+ * Given a position in this dimension, returns `true` if the item is already expanded. Any item that
370
+ * cannot be expanded will return `false`.
371
+ * @param position - the position in the dimension
372
+ * @return `true` if the item is expanded
373
+ */
374
+ isExpanded(position:number):boolean;
375
+ /**
376
+ * Given a position in this dimension, returns the depth of the item in the hierarchy. The root level is 1, all
377
+ * items at the top level are then at depth 2, and so on.
378
+ * @param position - the position in the dimension
379
+ * @return the depth of the item in the hierarchy
380
+ */
381
+ getDepth(position:number):number;
382
+ /**
383
+ * Given a position in this dimension, returns the keys for that item. The keys are the values of the grouping
384
+ * columns, and the values then represent the aggregated values for the underlying table.
385
+ * <p>
386
+ * Types of the keys are provided by
387
+ * {@link PivotTable.getColDim}/{@link PivotTable.getRowDim}.
388
+ * @param position - the position in the dimension
389
+ * @return an array of key values for the item at the given position
390
+ */
391
+ getKeys(position:number):any[];
392
+ /**
393
+ * Given a position in this dimension, returns the total for the item in the dimension at that position.
394
+ * <p>
395
+ * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
396
+ * @param position - the position in the dimension
397
+ * @param value - the value source to read, must have been included in the subscription
398
+ * @return the total for the item at the given position in this dimension
399
+ */
400
+ getTotal(position:number, value:PivotSource):any;
401
+ /**
402
+ * The first position in this dimension that is present in this snapshot.
403
+ */
404
+ get offset():number;
405
+ /**
406
+ * The number of elements in this dimension that are present in this snapshot.
407
+ */
408
+ get count():number;
409
+ /**
410
+ * The total number of elements in this dimension, given the current expansion state. Viewports past the end of
411
+ * this will not be fully populated.
412
+ */
413
+ get totalCount():number;
414
+ }
415
+
416
+ /**
417
+ * Analog of {@link dh.Column}, but specific to pivot tables. Represents a named, typed set of values in the pivot table
418
+ * that can be read.
419
+ */
420
+ export class PivotSource {
421
+ protected constructor();
422
+
423
+ /**
424
+ * Creates a new {@link dh.coreplus.pivot.PivotSort} for this source. The sort object then can be made to be ascending or descending,
425
+ * using {@link PivotSort.asc} or {@link PivotSort.desc}.
426
+ * @return a new {@link dh.coreplus.pivot.PivotSort} for this source
427
+ * @see {@link dh.Column.sort}
428
+ */
429
+ sort():PivotSort;
430
+ /**
431
+ * Creates a new {@link dh.FilterValue} for this source. The filter value can be used as a builder to create a
432
+ * {@link dh.FilterCondition}, or used as a parameter to another filter operation.
433
+ * @return a new {@link dh.FilterValue} for this source
434
+ * @see {@link dh.FilterCondition}
435
+ */
436
+ filter():dh.FilterValue;
437
+ /**
438
+ * The name of this source.
439
+ */
440
+ get name():string;
441
+ /**
442
+ * `true` if the data type in this source is sortable.
443
+ */
444
+ get isSortable():boolean;
445
+ /**
446
+ * The description of this source, if any.
447
+ */
448
+ get description():string;
449
+ /**
450
+ * The type of this source.
451
+ */
452
+ get type():string;
453
+ }
454
+
455
+ /**
456
+ * Describes the desired subscription for a pivot table.
457
+ */
458
+ export class PivotSubscriptionOptions {
459
+ /**
460
+ * The rows to include in the subscription.
461
+ */
462
+ rows:dh.RangeSet|dh.SimpleRange;
463
+ /**
464
+ * The columns to include in the subscription.
465
+ */
466
+ columns:dh.RangeSet|dh.SimpleRange;
467
+ /**
468
+ * The aggregated sources to include in the subscription.
469
+ */
470
+ sources:Array<PivotSource>;
471
+ /**
472
+ * The minimum time in milliseconds between updates from the server.
473
+ */
474
+ updateIntervalMs?:number|null;
475
+
476
+ constructor();
477
+ }
478
+
479
+ /**
480
+ * This type is an analog of {@link dh.Sort}, with a few differences:
481
+ * <ul>
482
+ * <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
483
+ * <li>Reverse is not supported</li>
484
+ * </ul>
485
+ *
486
+ * A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
487
+ */
488
+ export class PivotSort {
489
+ static readonly ASCENDING:string;
490
+ static readonly DESCENDING:string;
491
+
492
+ protected constructor();
493
+
494
+ /**
495
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
496
+ * @return {@link dh.coreplus.pivot.PivotSort}
497
+ */
498
+ asc():PivotSort;
499
+ /**
500
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
501
+ * @return {@link dh.coreplus.pivot.PivotSort}
502
+ */
503
+ desc():PivotSort;
504
+ /**
505
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
506
+ * @return {@link dh.coreplus.pivot.PivotSort}
507
+ */
508
+ abs():PivotSort;
509
+ toString():string;
510
+ /**
511
+ * Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
512
+ * @return boolean
513
+ */
514
+ get isAbs():boolean;
515
+ /**
516
+ * The column which is sorted.
517
+ * @return {@link dh.Column}
518
+ */
519
+ get column():dh.Column;
520
+ /**
521
+ * The name of the column which is sorted.
522
+ * @return String
523
+ */
524
+ get name():string;
525
+ /**
526
+ * The direction of this sort, either `ASC` or `DESC`.
527
+ * @return String
528
+ */
529
+ get direction():string;
530
+ }
531
+
532
532
  }
533
533
 
534
534
  export namespace dh.coreplus.schema {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven-enterprise/jsapi-coreplus-types",
3
- "version": "2026.1.65",
3
+ "version": "2026.1.67",
4
4
  "description": "Deephaven Enterprise Core+ JSAPI Types",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -15,7 +15,7 @@
15
15
  "typescript": "^5.1.6"
16
16
  },
17
17
  "dependencies": {
18
- "@deephaven/jsapi-types": "^42.8.0"
18
+ "@deephaven/jsapi-types": "^42.9.0"
19
19
  },
20
20
  "files": [
21
21
  "dist",