@deephaven-enterprise/jsapi-coreplus-types 2026.1.55 → 2026.1.59

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 +158 -105
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -4,15 +4,38 @@ declare module '@deephaven/jsapi-types' {
4
4
  export namespace dh.coreplus.pivot {
5
5
 
6
6
  /**
7
- * Describes the desired subscription for a pivot table.
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.
8
9
  */
9
- export class PivotSubscriptionOptions {
10
- rows:dh.RangeSet|dh.SimpleRange;
11
- columns:dh.RangeSet|dh.SimpleRange;
12
- sources:Array<PivotSource>;
13
- updateIntervalMs?:number|null;
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>; };
14
35
 
15
- constructor();
36
+ protected constructor();
37
+
38
+ toString():string;
16
39
  }
17
40
 
18
41
  /**
@@ -81,7 +104,7 @@ export namespace dh.coreplus.pivot {
81
104
  */
82
105
  expandRow(position:number, expandDescendants?:boolean):void;
83
106
  /**
84
- * 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
85
108
  * {@link PivotTable.collapseRootRow} can be used to restore the initial state of the pivot table, where only the root is
86
109
  * expanded.
87
110
  * @param expandDescendants - true to recursively expand all descendants, false to only expand the root level.
@@ -89,7 +112,7 @@ export namespace dh.coreplus.pivot {
89
112
  */
90
113
  expandRootRow(expandDescendants?:boolean):void;
91
114
  /**
92
- * 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
93
116
  * {@link PivotTable.collapseRootColumn} can be used to restore the initial state of the pivot table, where only the root is
94
117
  * expanded.
95
118
  * @param expandDescendants - true to recursively expand all descendants, false to only expand the root level.
@@ -165,6 +188,12 @@ export namespace dh.coreplus.pivot {
165
188
  * expand the root row/column to see the initial contents.
166
189
  */
167
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
+ */
168
197
  setViewport(options:PivotSubscriptionOptions):void;
169
198
  /**
170
199
  * Returns a promise that will resolve to a {@link dh.coreplus.pivot.PivotSnapshot} instance containing a snapshot of the current
@@ -183,15 +212,15 @@ export namespace dh.coreplus.pivot {
183
212
  */
184
213
  close():void;
185
214
  /**
186
- * a new copy of this pivot table, so it can be sorted and filtered separately, and maintain a different viewport.
187
- * Unlike Table, this will _not_ copy the filter or sort, since pivot table viewport semantics differ, and without a
188
- * viewport set, the pivot table doesn't evaluate these settings, and they aren't readable on the properties.
189
- * 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.
190
219
  * @return Promise of dh.coreplus.pivot.PivotTable
191
220
  */
192
221
  copy():Promise<PivotTable>;
193
222
  /**
194
- * The current filter configuration of this Tree Table.
223
+ * The current filter configuration of this PivotTable.
195
224
  * @return {@link dh.FilterCondition} array
196
225
  */
197
226
  get filter():Array<dh.FilterCondition>;
@@ -232,27 +261,8 @@ export namespace dh.coreplus.pivot {
232
261
  }
233
262
 
234
263
  /**
235
- * Describes the desired snapshot for a pivot table.
236
- */
237
- export class PivotSnapshotOptions {
238
- /**
239
- * The rows to include in the snapshot.
240
- */
241
- rows:dh.RangeSet|dh.SimpleRange;
242
- /**
243
- * The columns to include in the snapshot
244
- */
245
- columns:dh.RangeSet|dh.SimpleRange;
246
- /**
247
- * The aggregated sources to include in the snapshot
248
- */
249
- sources:Array<PivotSource>;
250
-
251
- constructor();
252
- }
253
-
254
- /**
255
- * 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.
256
266
  */
257
267
  export class PivotService implements dh.HasEventHandling {
258
268
  protected constructor();
@@ -261,14 +271,14 @@ export namespace dh.coreplus.pivot {
261
271
  * Given a server object, finds or creates a pivot service talking to that same server. If the instance is a
262
272
  * PivotService, it will be wrapped and returned. The initial call for a given worker must be either a PivotTable or
263
273
  * a PivotService.
264
- * @param object - some instance that lives on the server to be connected to.
265
- * @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.
266
276
  */
267
277
  static getInstance(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable):Promise<PivotService>;
268
278
  /**
269
279
  * Creates a pivot table from the given options - a source table, row keys, column keys, and aggregations.
270
- * @param options - to use when creating the pivot table
271
- * @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.
272
282
  */
273
283
  createPivotTable(options:PivotCreationOptions):Promise<PivotTable>;
274
284
  addEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):()=>void;
@@ -293,23 +303,23 @@ export namespace dh.coreplus.pivot {
293
303
  protected constructor();
294
304
 
295
305
  /**
296
- * Builds a Sort instance to sort values in ascending order.
306
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in ascending order.
297
307
  * @return {@link dh.coreplus.pivot.PivotSort}
298
308
  */
299
309
  asc():PivotSort;
300
310
  /**
301
- * Builds a Sort instance to sort values in descending order.
311
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance to sort values in descending order.
302
312
  * @return {@link dh.coreplus.pivot.PivotSort}
303
313
  */
304
314
  desc():PivotSort;
305
315
  /**
306
- * Builds a Sort instance which takes the absolute value before applying order.
316
+ * Builds a {@link dh.coreplus.pivot.PivotSort} instance which takes the absolute value before applying order.
307
317
  * @return {@link dh.coreplus.pivot.PivotSort}
308
318
  */
309
319
  abs():PivotSort;
310
320
  toString():string;
311
321
  /**
312
- * True if the absolute value of the column should be used when sorting; defaults to false.
322
+ * Set to `true` if the absolute value of the column should be used when sorting; defaults to `false`.
313
323
  * @return boolean
314
324
  */
315
325
  get isAbs():boolean;
@@ -324,12 +334,75 @@ export namespace dh.coreplus.pivot {
324
334
  */
325
335
  get name():string;
326
336
  /**
327
- * The direction of this sort, either <b>ASC</b> or <b>DESC</b>.
337
+ * The direction of this sort, either `ASC` or `DESC`.
328
338
  * @return String
329
339
  */
330
340
  get direction():string;
331
341
  }
332
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.
388
+ */
389
+ rows:dh.RangeSet|dh.SimpleRange;
390
+ /**
391
+ * The columns to include in the subscription.
392
+ */
393
+ columns:dh.RangeSet|dh.SimpleRange;
394
+ /**
395
+ * The aggregated sources to include in the subscription.
396
+ */
397
+ sources:Array<PivotSource>;
398
+ /**
399
+ * The minimum time in milliseconds between updates from the server.
400
+ */
401
+ updateIntervalMs?:number|null;
402
+
403
+ constructor();
404
+ }
405
+
333
406
  /**
334
407
  * Provides the details for an updated event from a pivot table subscription. Unlike
335
408
  * {@link dh.TableData}, this class offers a matrix of data for each value column, and
@@ -350,6 +423,9 @@ export namespace dh.coreplus.pivot {
350
423
  * Reads a value from the pivot table data for a given position in the grid.
351
424
  * <p>
352
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.
353
429
  * @param value - the value source to read, must have been included in the subscription
354
430
  * @param rowPosition - the row position within the pivot table
355
431
  * @param colPosition - the column position within the pivot table
@@ -380,16 +456,16 @@ export namespace dh.coreplus.pivot {
380
456
  protected constructor();
381
457
 
382
458
  /**
383
- * 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.
384
460
  * @param position - the position in the dimension
385
- * @return true if the item can be expanded
461
+ * @return `true` if the item can be expanded
386
462
  */
387
463
  hasChildren(position:number):boolean;
388
464
  /**
389
- * Given a position in this dimension, returns true if the item is already expanded. Any item that cannot be
390
- * 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`.
391
467
  * @param position - the position in the dimension
392
- * @return true if the item is expanded
468
+ * @return `true` if the item is expanded
393
469
  */
394
470
  isExpanded(position:number):boolean;
395
471
  /**
@@ -423,7 +499,7 @@ export namespace dh.coreplus.pivot {
423
499
  */
424
500
  get offset():number;
425
501
  /**
426
- * 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.
427
503
  */
428
504
  get count():number;
429
505
  /**
@@ -434,56 +510,23 @@ export namespace dh.coreplus.pivot {
434
510
  }
435
511
 
436
512
  /**
437
- * Options for creating a pivot table.
438
- */
439
- export class PivotCreationOptions {
440
- source:dh.JoinableTable;
441
- rowKeys:string[];
442
- columnKeys:string[];
443
- aggregations:{ [key: string]: Array<string>; };
444
-
445
- protected constructor();
446
-
447
- toString():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.
513
+ * Describes the desired snapshot for a pivot table.
453
514
  */
454
- export class PivotSource {
455
- protected constructor();
456
-
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;
515
+ export class PivotSnapshotOptions {
475
516
  /**
476
- * True if the data type in this source is sortable.
517
+ * The rows to include in the snapshot.
477
518
  */
478
- get isSortable():boolean;
519
+ rows:dh.RangeSet|dh.SimpleRange;
479
520
  /**
480
- * The description of this source, if any.
521
+ * The columns to include in the snapshot
481
522
  */
482
- get description():string;
523
+ columns:dh.RangeSet|dh.SimpleRange;
483
524
  /**
484
- * The type of this source.
525
+ * The aggregated sources to include in the snapshot
485
526
  */
486
- get type():string;
527
+ sources:Array<PivotSource>;
528
+
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.55",
3
+ "version": "2026.1.59",
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",