@deephaven-enterprise/jsapi-coreplus-types 2026.1.66 → 2026.1.68

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 +134 -134
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -3,33 +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
- * Tool to request the server pivot a table and return the results. Obtain an instance with
8
- * {@link getInstance}, then call {@link createPivotTable} to pivot a table.
9
- */
10
- export class PivotService implements dh.HasEventHandling {
11
- protected constructor();
12
-
13
- /**
14
- * Given a server object, finds or creates a pivot service talking to that same server. If the instance is a
15
- * PivotService, it will be wrapped and returned. The initial call for a given worker must be either a PivotTable or
16
- * a PivotService.
17
- * @param object - an object on the server to connect to.
18
- * @return a promise that resolves to a `PivotService` for that server, or an error.
19
- */
20
- static getInstance(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable):Promise<PivotService>;
21
- /**
22
- * Creates a pivot table from the given options - a source table, row keys, column keys, and aggregations.
23
- * @param options - the {@link dh.coreplus.pivot.PivotCreationOptions} to use when creating the pivot table.
24
- * @return a promise that resolves to the new `PivotTable`, or an error.
25
- */
26
- createPivotTable(options:PivotCreationOptions):Promise<PivotTable>;
27
- addEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):()=>void;
28
- nextEvent<T>(arg0:string, arg1?:number):Promise<dh.Event<T>>;
29
- hasListeners(arg0:string):boolean;
30
- removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
31
- }
32
-
33
6
  /**
34
7
  * Provides the details for an updated event from a pivot table subscription. Unlike
35
8
  * {@link dh.TableData}, this class offers a matrix of data for each value column, and
@@ -318,99 +291,80 @@ export namespace dh.coreplus.pivot {
318
291
  }
319
292
 
320
293
  /**
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.
294
+ * Describes the desired subscription for a pivot table.
323
295
  */
324
- export class PivotCreationOptions {
296
+ export class PivotSubscriptionOptions {
325
297
  /**
326
- * The table to pivot. Must be a `dh.Table` or `dh.TotalsTable`.
298
+ * The rows to include in the subscription.
327
299
  */
328
- source:dh.JoinableTable;
300
+ rows:dh.RangeSet|dh.SimpleRange;
329
301
  /**
330
- * The names of the columns whose values are grouped to form the rows of the pivot table.
302
+ * The columns to include in the subscription.
331
303
  */
332
- rowKeys:string[];
304
+ columns:dh.RangeSet|dh.SimpleRange;
333
305
  /**
334
- * The names of the columns whose values are grouped to form the columns of the pivot table.
306
+ * The aggregated sources to include in the subscription.
335
307
  */
336
- columnKeys:string[];
308
+ sources:Array<PivotSource>;
337
309
  /**
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.
310
+ * The minimum time in milliseconds between updates from the server.
347
311
  */
348
- aggregations:{ [key: string]: Array<string>; };
349
-
350
- protected constructor();
312
+ updateIntervalMs?:number|null;
351
313
 
352
- toString():string;
314
+ constructor();
353
315
  }
354
316
 
355
317
  /**
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.
318
+ * This type is an analog of {@link dh.Sort}, with a few differences:
319
+ * <ul>
320
+ * <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
321
+ * <li>Reverse is not supported</li>
322
+ * </ul>
323
+ *
324
+ * A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
358
325
  */
359
- export class DimensionData {
326
+ export class PivotSort {
327
+ static readonly ASCENDING:string;
328
+ static readonly DESCENDING:string;
329
+
360
330
  protected constructor();
361
331
 
362
332
  /**
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
333
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
334
+ * @return {@link dh.coreplus.pivot.PivotSort}
373
335
  */
374
- isExpanded(position:number):boolean;
336
+ asc():PivotSort;
375
337
  /**
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
338
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
339
+ * @return {@link dh.coreplus.pivot.PivotSort}
380
340
  */
381
- getDepth(position:number):number;
341
+ desc():PivotSort;
382
342
  /**
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
343
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
344
+ * @return {@link dh.coreplus.pivot.PivotSort}
390
345
  */
391
- getKeys(position:number):any[];
346
+ abs():PivotSort;
347
+ toString():string;
392
348
  /**
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
349
+ * Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
350
+ * @return boolean
399
351
  */
400
- getTotal(position:number, value:PivotSource):any;
352
+ get isAbs():boolean;
401
353
  /**
402
- * The first position in this dimension that is present in this snapshot.
354
+ * The column which is sorted.
355
+ * @return {@link dh.Column}
403
356
  */
404
- get offset():number;
357
+ get column():dh.Column;
405
358
  /**
406
- * The number of elements in this dimension that are present in this snapshot.
359
+ * The name of the column which is sorted.
360
+ * @return String
407
361
  */
408
- get count():number;
362
+ get name():string;
409
363
  /**
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.
364
+ * The direction of this sort, either `ASC` or `DESC`.
365
+ * @return String
412
366
  */
413
- get totalCount():number;
367
+ get direction():string;
414
368
  }
415
369
 
416
370
  /**
@@ -453,80 +407,126 @@ export namespace dh.coreplus.pivot {
453
407
  }
454
408
 
455
409
  /**
456
- * Describes the desired subscription for a pivot table.
410
+ * Tool to request the server pivot a table and return the results. Obtain an instance with
411
+ * {@link getInstance}, then call {@link createPivotTable} to pivot a table.
457
412
  */
458
- export class PivotSubscriptionOptions {
413
+ export class PivotService implements dh.HasEventHandling {
414
+ protected constructor();
415
+
459
416
  /**
460
- * The rows to include in the subscription.
417
+ * Given a server object, finds or creates a pivot service talking to that same server. If the instance is a
418
+ * PivotService, it will be wrapped and returned. The initial call for a given worker must be either a PivotTable or
419
+ * a PivotService.
420
+ * @param object - an object on the server to connect to.
421
+ * @return a promise that resolves to a `PivotService` for that server, or an error.
461
422
  */
462
- rows:dh.RangeSet|dh.SimpleRange;
423
+ static getInstance(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable):Promise<PivotService>;
463
424
  /**
464
- * The columns to include in the subscription.
425
+ * Creates a pivot table from the given options - a source table, row keys, column keys, and aggregations.
426
+ * @param options - the {@link dh.coreplus.pivot.PivotCreationOptions} to use when creating the pivot table.
427
+ * @return a promise that resolves to the new `PivotTable`, or an error.
465
428
  */
466
- columns:dh.RangeSet|dh.SimpleRange;
429
+ createPivotTable(options:PivotCreationOptions):Promise<PivotTable>;
430
+ addEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):()=>void;
431
+ nextEvent<T>(arg0:string, arg1?:number):Promise<dh.Event<T>>;
432
+ hasListeners(arg0:string):boolean;
433
+ removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
434
+ }
435
+
436
+ /**
437
+ * Options for creating a pivot table. The row and column keys define the two dimensions of the pivot, and the
438
+ * aggregations define the values computed for each row/column intersection.
439
+ */
440
+ export class PivotCreationOptions {
467
441
  /**
468
- * The aggregated sources to include in the subscription.
442
+ * The table to pivot. Must be a `dh.Table` or `dh.TotalsTable`.
469
443
  */
470
- sources:Array<PivotSource>;
444
+ source:dh.JoinableTable;
471
445
  /**
472
- * The minimum time in milliseconds between updates from the server.
446
+ * The names of the columns whose values are grouped to form the rows of the pivot table.
473
447
  */
474
- updateIntervalMs?:number|null;
448
+ rowKeys:string[];
449
+ /**
450
+ * The names of the columns whose values are grouped to form the columns of the pivot table.
451
+ */
452
+ columnKeys:string[];
453
+ /**
454
+ * The aggregations to compute for each row/column intersection, as a map from an operation in
455
+ * {@link dh.AggregationOperation} to the names of the columns to apply that operation to.
456
+ * <p>
457
+ * {@link dh.COUNT} ignores its list of columns and instead adds a single column counting the
458
+ * rows in each intersection. {@link dh.SKIP} entries are dropped, and operations that a pivot
459
+ * table does not support are ignored with a warning rather than raising an error.
460
+ * <p>
461
+ * When a column is aggregated by more than one operation, or is also used as a row or column key, each of its
462
+ * aggregated columns is named `<column>_<operation>` so that the resulting names stay unique.
463
+ */
464
+ aggregations:{ [key: string]: Array<string>; };
475
465
 
476
- constructor();
466
+ protected constructor();
467
+
468
+ toString():string;
477
469
  }
478
470
 
479
471
  /**
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.
472
+ * For either the row or column dimension, this class provides access to dimension-specific metadata and data made
473
+ * available by the viewport subscription.
487
474
  */
488
- export class PivotSort {
489
- static readonly ASCENDING:string;
490
- static readonly DESCENDING:string;
491
-
475
+ export class DimensionData {
492
476
  protected constructor();
493
477
 
494
478
  /**
495
- * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
496
- * @return {@link dh.coreplus.pivot.PivotSort}
479
+ * Given a position in this dimension, returns `true` if the item can be expanded to show children.
480
+ * @param position - the position in the dimension
481
+ * @return `true` if the item can be expanded
497
482
  */
498
- asc():PivotSort;
483
+ hasChildren(position:number):boolean;
499
484
  /**
500
- * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
501
- * @return {@link dh.coreplus.pivot.PivotSort}
485
+ * Given a position in this dimension, returns `true` if the item is already expanded. Any item that
486
+ * cannot be expanded will return `false`.
487
+ * @param position - the position in the dimension
488
+ * @return `true` if the item is expanded
502
489
  */
503
- desc():PivotSort;
490
+ isExpanded(position:number):boolean;
504
491
  /**
505
- * Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
506
- * @return {@link dh.coreplus.pivot.PivotSort}
492
+ * Given a position in this dimension, returns the depth of the item in the hierarchy. The root level is 1, all
493
+ * items at the top level are then at depth 2, and so on.
494
+ * @param position - the position in the dimension
495
+ * @return the depth of the item in the hierarchy
507
496
  */
508
- abs():PivotSort;
509
- toString():string;
497
+ getDepth(position:number):number;
510
498
  /**
511
- * Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
512
- * @return boolean
499
+ * Given a position in this dimension, returns the keys for that item. The keys are the values of the grouping
500
+ * columns, and the values then represent the aggregated values for the underlying table.
501
+ * <p>
502
+ * Types of the keys are provided by
503
+ * {@link PivotTable.getColDim}/{@link PivotTable.getRowDim}.
504
+ * @param position - the position in the dimension
505
+ * @return an array of key values for the item at the given position
513
506
  */
514
- get isAbs():boolean;
507
+ getKeys(position:number):any[];
515
508
  /**
516
- * The column which is sorted.
517
- * @return {@link dh.Column}
509
+ * Given a position in this dimension, returns the total for the item in the dimension at that position.
510
+ * <p>
511
+ * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
512
+ * @param position - the position in the dimension
513
+ * @param value - the value source to read, must have been included in the subscription
514
+ * @return the total for the item at the given position in this dimension
518
515
  */
519
- get column():dh.Column;
516
+ getTotal(position:number, value:PivotSource):any;
520
517
  /**
521
- * The name of the column which is sorted.
522
- * @return String
518
+ * The first position in this dimension that is present in this snapshot.
523
519
  */
524
- get name():string;
520
+ get offset():number;
525
521
  /**
526
- * The direction of this sort, either `ASC` or `DESC`.
527
- * @return String
522
+ * The number of elements in this dimension that are present in this snapshot.
528
523
  */
529
- get direction():string;
524
+ get count():number;
525
+ /**
526
+ * The total number of elements in this dimension, given the current expansion state. Viewports past the end of
527
+ * this will not be fully populated.
528
+ */
529
+ get totalCount():number;
530
530
  }
531
531
 
532
532
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven-enterprise/jsapi-coreplus-types",
3
- "version": "2026.1.66",
3
+ "version": "2026.1.68",
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.9.0"
18
+ "@deephaven/jsapi-types": "^42.10.0"
19
19
  },
20
20
  "files": [
21
21
  "dist",