@deephaven-enterprise/jsapi-coreplus-types 2026.1.54 → 2026.1.58

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 +195 -142
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -3,6 +3,41 @@ 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
+
6
41
  /**
7
42
  * Represents a PivotTable on the Deephaven server, with support for sorting, filtering, and viewports with
8
43
  * expand/collapse on rows and columns.
@@ -69,7 +104,7 @@ export namespace dh.coreplus.pivot {
69
104
  */
70
105
  expandRow(position:number, expandDescendants?:boolean):void;
71
106
  /**
72
- * Expanded the "totals" row, the root of the tree on the row dimension. Calling this after
107
+ * Expands the "totals" row, the root of the tree on the row dimension. Calling this after
73
108
  * {@link PivotTable.collapseRootRow} can be used to restore the initial state of the pivot table, where only the root is
74
109
  * expanded.
75
110
  * @param expandDescendants - true to recursively expand all descendants, false to only expand the root level.
@@ -77,7 +112,7 @@ export namespace dh.coreplus.pivot {
77
112
  */
78
113
  expandRootRow(expandDescendants?:boolean):void;
79
114
  /**
80
- * Expanded the "totals" column, the root of the tree on the column dimension. Calling this after
115
+ * Expands the "totals" column, the root of the tree on the column dimension. Calling this after
81
116
  * {@link PivotTable.collapseRootColumn} can be used to restore the initial state of the pivot table, where only the root is
82
117
  * expanded.
83
118
  * @param expandDescendants - true to recursively expand all descendants, false to only expand the root level.
@@ -153,6 +188,12 @@ export namespace dh.coreplus.pivot {
153
188
  * expand the root row/column to see the initial contents.
154
189
  */
155
190
  collapseAll():void;
191
+ /**
192
+ * Creates a subscription to the server for this pivot table. The options object will specify the row and column
193
+ * viewports, and the output columns to provide values for.
194
+ * @param options - the {@link dh.coreplus.pivot.PivotSubscriptionOptions} describing the row and column viewports and the value sources
195
+ * to provide values for
196
+ */
156
197
  setViewport(options:PivotSubscriptionOptions):void;
157
198
  /**
158
199
  * Returns a promise that will resolve to a {@link dh.coreplus.pivot.PivotSnapshot} instance containing a snapshot of the current
@@ -171,15 +212,15 @@ export namespace dh.coreplus.pivot {
171
212
  */
172
213
  close():void;
173
214
  /**
174
- * a new copy of this pivot table, so it can be sorted and filtered separately, and maintain a different viewport.
175
- * Unlike Table, this will _not_ copy the filter or sort, since pivot table viewport semantics differ, and without a
176
- * viewport set, the pivot table doesn't evaluate these settings, and they aren't readable on the properties.
177
- * Expanded state is also not copied.
215
+ * Creates a new copy of this pivot table, so it can be sorted and filtered separately, and maintain a different
216
+ * viewport. Unlike Table, this will _not_ copy the filter or sort, since pivot table viewport semantics differ, and
217
+ * without a viewport set, the pivot table doesn't evaluate these settings, and they aren't readable on the
218
+ * properties. Expanded state is also not copied.
178
219
  * @return Promise of dh.coreplus.pivot.PivotTable
179
220
  */
180
221
  copy():Promise<PivotTable>;
181
222
  /**
182
- * The current filter configuration of this Tree Table.
223
+ * The current filter configuration of this PivotTable.
183
224
  * @return {@link dh.FilterCondition} array
184
225
  */
185
226
  get filter():Array<dh.FilterCondition>;
@@ -220,19 +261,8 @@ export namespace dh.coreplus.pivot {
220
261
  }
221
262
 
222
263
  /**
223
- * Describes the desired subscription for a pivot table.
224
- */
225
- export class PivotSubscriptionOptions {
226
- rows:dh.RangeSet|dh.SimpleRange;
227
- columns:dh.RangeSet|dh.SimpleRange;
228
- sources:Array<PivotSource>;
229
- updateIntervalMs?:number|null;
230
-
231
- constructor();
232
- }
233
-
234
- /**
235
- * Tool to request the server pivot a table and return the results.
264
+ * Tool to request the server pivot a table and return the results. Obtain an instance with
265
+ * {@link getInstance}, then call {@link createPivotTable} to pivot a table.
236
266
  */
237
267
  export class PivotService implements dh.HasEventHandling {
238
268
  protected constructor();
@@ -241,14 +271,14 @@ export namespace dh.coreplus.pivot {
241
271
  * Given a server object, finds or creates a pivot service talking to that same server. If the instance is a
242
272
  * PivotService, it will be wrapped and returned. The initial call for a given worker must be either a PivotTable or
243
273
  * a PivotService.
244
- * @param object - some instance that lives on the server to be connected to.
245
- * @return a promise that will resolve to a PivotService instance
274
+ * @param object - an object on the server to connect to.
275
+ * @return a promise that resolves to a `PivotService` for that server, or an error.
246
276
  */
247
277
  static getInstance(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable):Promise<PivotService>;
248
278
  /**
249
279
  * Creates a pivot table from the given options - a source table, row keys, column keys, and aggregations.
250
- * @param options - to use when creating the pivot table
251
- * @return a Promise that resolves to a PivotTable instance
280
+ * @param options - the {@link dh.coreplus.pivot.PivotCreationOptions} to use when creating the pivot table.
281
+ * @return a promise that resolves to the new `PivotTable`, or an error.
252
282
  */
253
283
  createPivotTable(options:PivotCreationOptions):Promise<PivotTable>;
254
284
  addEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):()=>void;
@@ -258,21 +288,117 @@ export namespace dh.coreplus.pivot {
258
288
  }
259
289
 
260
290
  /**
261
- * Describes the desired snapshot for a pivot table.
291
+ * This type is an analog of {@link dh.Sort}, with a few differences:
292
+ * <ul>
293
+ * <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
294
+ * <li>Reverse is not supported</li>
295
+ * </ul>
296
+ *
297
+ * A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
262
298
  */
263
- export class PivotSnapshotOptions {
299
+ export class PivotSort {
300
+ static readonly ASCENDING:string;
301
+ static readonly DESCENDING:string;
302
+
303
+ protected constructor();
304
+
264
305
  /**
265
- * The rows to include in the snapshot.
306
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
307
+ * @return {@link dh.coreplus.pivot.PivotSort}
308
+ */
309
+ asc():PivotSort;
310
+ /**
311
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
312
+ * @return {@link dh.coreplus.pivot.PivotSort}
313
+ */
314
+ desc():PivotSort;
315
+ /**
316
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
317
+ * @return {@link dh.coreplus.pivot.PivotSort}
318
+ */
319
+ abs():PivotSort;
320
+ toString():string;
321
+ /**
322
+ * Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
323
+ * @return boolean
324
+ */
325
+ get isAbs():boolean;
326
+ /**
327
+ * The column which is sorted.
328
+ * @return {@link dh.Column}
329
+ */
330
+ get column():dh.Column;
331
+ /**
332
+ * The name of the column which is sorted.
333
+ * @return String
334
+ */
335
+ get name():string;
336
+ /**
337
+ * The direction of this sort, either `ASC` or `DESC`.
338
+ * @return String
339
+ */
340
+ get direction():string;
341
+ }
342
+
343
+ /**
344
+ * Analog of {@link dh.Column}, but specific to pivot tables. Represents a named, typed set of values in the pivot table
345
+ * that can be read.
346
+ */
347
+ export class PivotSource {
348
+ protected constructor();
349
+
350
+ /**
351
+ * Creates a new {@link dh.coreplus.pivot.PivotSort} for this source. The sort object then can be made to be ascending or descending,
352
+ * using {@link PivotSort.asc} or {@link PivotSort.desc}.
353
+ * @return a new {@link dh.coreplus.pivot.PivotSort} for this source
354
+ * @see {@link dh.Column.sort}
355
+ */
356
+ sort():PivotSort;
357
+ /**
358
+ * Creates a new {@link dh.FilterValue} for this source. The filter value can be used as a builder to create a
359
+ * {@link dh.FilterCondition}, or used as a parameter to another filter operation.
360
+ * @return a new {@link dh.FilterValue} for this source
361
+ * @see {@link dh.FilterCondition}
362
+ */
363
+ filter():dh.FilterValue;
364
+ /**
365
+ * The name of this source.
366
+ */
367
+ get name():string;
368
+ /**
369
+ * `true` if the data type in this source is sortable.
370
+ */
371
+ get isSortable():boolean;
372
+ /**
373
+ * The description of this source, if any.
374
+ */
375
+ get description():string;
376
+ /**
377
+ * The type of this source.
378
+ */
379
+ get type():string;
380
+ }
381
+
382
+ /**
383
+ * Describes the desired subscription for a pivot table.
384
+ */
385
+ export class PivotSubscriptionOptions {
386
+ /**
387
+ * The rows to include in the subscription.
266
388
  */
267
389
  rows:dh.RangeSet|dh.SimpleRange;
268
390
  /**
269
- * The columns to include in the snapshot
391
+ * The columns to include in the subscription.
270
392
  */
271
393
  columns:dh.RangeSet|dh.SimpleRange;
272
394
  /**
273
- * The aggregated sources to include in the snapshot
395
+ * The aggregated sources to include in the subscription.
274
396
  */
275
397
  sources:Array<PivotSource>;
398
+ /**
399
+ * The minimum time in milliseconds between updates from the server.
400
+ */
401
+ updateIntervalMs?:number|null;
276
402
 
277
403
  constructor();
278
404
  }
@@ -297,6 +423,9 @@ export namespace dh.coreplus.pivot {
297
423
  * Reads a value from the pivot table data for a given position in the grid.
298
424
  * <p>
299
425
  * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
426
+ * <p>
427
+ * Both positions are absolute positions within the pivot table, matching those used by {@link PivotSnapshot.rows} and
428
+ * {@link PivotSnapshot.columns}, so each must fall within the corresponding dimension's offset and count.
300
429
  * @param value - the value source to read, must have been included in the subscription
301
430
  * @param rowPosition - the row position within the pivot table
302
431
  * @param colPosition - the column position within the pivot table
@@ -319,20 +448,6 @@ export namespace dh.coreplus.pivot {
319
448
  get valueSources():Array<PivotSource>;
320
449
  }
321
450
 
322
- /**
323
- * Options for creating a pivot table.
324
- */
325
- export class PivotCreationOptions {
326
- source:dh.JoinableTable;
327
- rowKeys:string[];
328
- columnKeys:string[];
329
- aggregations:{ [key: string]: Array<string>; };
330
-
331
- protected constructor();
332
-
333
- toString():string;
334
- }
335
-
336
451
  /**
337
452
  * For either the row or column dimension, this class provides access to dimension-specific metadata and data made
338
453
  * available by the viewport subscription.
@@ -341,16 +456,16 @@ export namespace dh.coreplus.pivot {
341
456
  protected constructor();
342
457
 
343
458
  /**
344
- * Given a position in this dimension, returns true if the item can be expanded to show children.
459
+ * Given a position in this dimension, returns `true` if the item can be expanded to show children.
345
460
  * @param position - the position in the dimension
346
- * @return true if the item can be expanded
461
+ * @return `true` if the item can be expanded
347
462
  */
348
463
  hasChildren(position:number):boolean;
349
464
  /**
350
- * Given a position in this dimension, returns true if the item is already expanded. Any item that cannot be
351
- * expanded will return false.
465
+ * Given a position in this dimension, returns `true` if the item is already expanded. Any item that
466
+ * cannot be expanded will return `false`.
352
467
  * @param position - the position in the dimension
353
- * @return true if the item is expanded
468
+ * @return `true` if the item is expanded
354
469
  */
355
470
  isExpanded(position:number):boolean;
356
471
  /**
@@ -384,7 +499,7 @@ export namespace dh.coreplus.pivot {
384
499
  */
385
500
  get offset():number;
386
501
  /**
387
- * Number of elements in this dimension that are present in this snapshot.
502
+ * The number of elements in this dimension that are present in this snapshot.
388
503
  */
389
504
  get count():number;
390
505
  /**
@@ -395,95 +510,23 @@ export namespace dh.coreplus.pivot {
395
510
  }
396
511
 
397
512
  /**
398
- * This type is an analog of {@link dh.Sort}, with a few differences:
399
- * <ul>
400
- * <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
401
- * <li>Reverse is not supported</li>
402
- * </ul>
403
- *
404
- * A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
513
+ * Describes the desired snapshot for a pivot table.
405
514
  */
406
- export class PivotSort {
407
- static readonly ASCENDING:string;
408
- static readonly DESCENDING:string;
409
-
410
- protected constructor();
411
-
412
- /**
413
- * Builds a Sort instance to sort values in ascending order.
414
- * @return {@link dh.coreplus.pivot.PivotSort}
415
- */
416
- asc():PivotSort;
417
- /**
418
- * Builds a Sort instance to sort values in descending order.
419
- * @return {@link dh.coreplus.pivot.PivotSort}
420
- */
421
- desc():PivotSort;
422
- /**
423
- * Builds a Sort instance which takes the absolute value before applying order.
424
- * @return {@link dh.coreplus.pivot.PivotSort}
425
- */
426
- abs():PivotSort;
427
- toString():string;
428
- /**
429
- * True if the absolute value of the column should be used when sorting; defaults to false.
430
- * @return boolean
431
- */
432
- get isAbs():boolean;
515
+ export class PivotSnapshotOptions {
433
516
  /**
434
- * The column which is sorted.
435
- * @return {@link dh.Column}
517
+ * The rows to include in the snapshot.
436
518
  */
437
- get column():dh.Column;
519
+ rows:dh.RangeSet|dh.SimpleRange;
438
520
  /**
439
- * The name of the column which is sorted.
440
- * @return String
521
+ * The columns to include in the snapshot
441
522
  */
442
- get name():string;
523
+ columns:dh.RangeSet|dh.SimpleRange;
443
524
  /**
444
- * The direction of this sort, either <b>ASC</b> or <b>DESC</b>.
445
- * @return String
525
+ * The aggregated sources to include in the snapshot
446
526
  */
447
- get direction():string;
448
- }
449
-
450
- /**
451
- * Analog of {@link dh.Column}, but specific to pivot tables. Represents a named, typed set of values in the pivot table
452
- * that can be read.
453
- */
454
- export class PivotSource {
455
- protected constructor();
527
+ sources:Array<PivotSource>;
456
528
 
457
- /**
458
- * Creates a new {@link dh.coreplus.pivot.PivotSort} for this source. The sort object then can be made to be ascending or descending,
459
- * using {@link PivotSort.asc} or {@link PivotSort.desc}.
460
- * @see {@link dh.Column.sort}
461
- * @return a new {@link dh.coreplus.pivot.PivotSort} for this source
462
- */
463
- sort():PivotSort;
464
- /**
465
- * Creates a new {@link dh.FilterValue} for this source. The filter value can used as a builder to create a
466
- * {@link dh.FilterCondition} or used as a parameter to another filter operation
467
- * @see {@link dh.FilterCondition}
468
- * @return a new {@link dh.FilterValue} for this source
469
- */
470
- filter():dh.FilterValue;
471
- /**
472
- * The name of this source.
473
- */
474
- get name():string;
475
- /**
476
- * True if the data type in this source is sortable.
477
- */
478
- get isSortable():boolean;
479
- /**
480
- * The description of this source, if any.
481
- */
482
- get description():string;
483
- /**
484
- * The type of this source.
485
- */
486
- get type():string;
529
+ constructor();
487
530
  }
488
531
 
489
532
  }
@@ -491,8 +534,9 @@ export namespace dh.coreplus.pivot {
491
534
  export namespace dh.coreplus.schema {
492
535
 
493
536
  /**
494
- * JS API for the Schema Service <a href="https://deephaven.io/enterprise/docs/data-guide/tables-and-schemas/">Deephaven
495
- * schema documentation</a>
537
+ * JS API for the Schema Service. Users are not intended to interact with this class directly; see the
538
+ * <a href="https://deephaven.io/enterprise/docs/data-guide/tables-and-schemas/">Deephaven schema documentation</a> for
539
+ * more about tables and schemas.
496
540
  */
497
541
  export class SchemaApiService {
498
542
  /**
@@ -571,7 +615,9 @@ export namespace io.deephaven.web.coreplus.client.acl {
571
615
  export namespace dh.coreplus.csv {
572
616
 
573
617
  /**
574
- * JS API for the CSV API Service
618
+ * JS API for the CSV API Service. Users are not intended to interact with this class directly; see the
619
+ * <a href="https://deephaven.io/enterprise/docs/data-guide/batch-data/csv/">Deephaven CSV import documentation</a> for
620
+ * details on importing CSV data.
575
621
  */
576
622
  export class CsvApiService {
577
623
  /**
@@ -686,7 +732,7 @@ export namespace dh.coreplus.csv {
686
732
  export namespace dh.coreplus.web.client.utils {
687
733
 
688
734
  /**
689
- * JS API for the Web Client Utils Service This is a generic utility service for web clients.
735
+ * JS API for the Web Client Utils Service, a generic utility service for web clients.
690
736
  */
691
737
  export class WebClientUtilsService {
692
738
  /**
@@ -695,13 +741,13 @@ export namespace dh.coreplus.web.client.utils {
695
741
  */
696
742
  static readonly NAME:string;
697
743
  /**
698
- * The type of the Web Client UtilsService. Used by the client for the type in the variable descriptor when calling
744
+ * The type of the Web Client Utils Service. Used by the client for the type in the variable descriptor when calling
699
745
  * getObject from the core connection.
700
746
  */
701
747
  static readonly TYPE:string;
702
748
 
703
749
  /**
704
- * Creates a new WebClientUtilsService instance. Used to analyze permissions for a user on a namespace/table.
750
+ * Creates a new WebClientUtilsService instance.
705
751
  * @param object - some instance that lives on the server to be connected to.
706
752
  * @throws RuntimeException if the object is not of the correct type
707
753
  */
@@ -710,11 +756,15 @@ export namespace dh.coreplus.web.client.utils {
710
756
  /**
711
757
  * Get business dates for a given calendar between startDate and endDate.
712
758
  * @param calendarName - the name of the calendar
713
- * @param startDate - the start date
714
- * @param endDate - the end date
715
- * @return a promise that resolves to an array of business dates
759
+ * @param startDate - the start date, in YYYY-MM-DD format
760
+ * @param endDate - the end date, in YYYY-MM-DD format
761
+ * @return a promise that resolves to an array of business dates, each in YYYY-MM-DD format
716
762
  */
717
763
  getBusinessDates(calendarName:string, startDate:string, endDate:string):Promise<string[]>;
764
+ /**
765
+ * Closes the service and releases the server object backing it. Any promises that have not yet resolved will not be
766
+ * completed.
767
+ */
718
768
  close():void;
719
769
  }
720
770
 
@@ -723,7 +773,9 @@ export namespace dh.coreplus.web.client.utils {
723
773
  export namespace dh.coreplus.jdbc {
724
774
 
725
775
  /**
726
- * JS API for the JDBC API Service
776
+ * JS API for the JDBC API Service. Users are not intended to interact with this class directly; see the
777
+ * <a href="https://deephaven.io/enterprise/docs/data-guide/batch-data/jdbc/">Deephaven JDBC import documentation</a>
778
+ * for details on importing JDBC data.
727
779
  */
728
780
  export class JdbcApiService {
729
781
  /**
@@ -814,8 +866,9 @@ export namespace dh.coreplus.jdbc {
814
866
  export namespace dh.coreplus.acl {
815
867
 
816
868
  /**
817
- * JS API for the ACL Service <a href="https://deephaven.io/enterprise/docs/sys-admin/permissions/acls/">Deephaven ACL
818
- * documentation</a>
869
+ * JS API for the ACL Service. Users are not intended to interact with this class directly; see the
870
+ * <a href="https://deephaven.io/enterprise/docs/sys-admin/permissions/acls/">Deephaven ACL documentation</a> for
871
+ * details on managing ACLs.
819
872
  */
820
873
  export class AclService {
821
874
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven-enterprise/jsapi-coreplus-types",
3
- "version": "2026.1.54",
3
+ "version": "2026.1.58",
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.4.0"
18
+ "@deephaven/jsapi-types": "^42.5.0"
19
19
  },
20
20
  "files": [
21
21
  "dist",