@deephaven-enterprise/jsapi-coreplus-types 2026.1.48 → 2026.1.49

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 +243 -243
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -3,212 +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
- * Analog of {@link dh.Column}, but specific to pivot tables. Represents a named, typed set of values in the pivot table
8
- * that can be read.
9
- */
10
- export class PivotSource {
11
- protected constructor();
12
-
13
- /**
14
- * Creates a new {@link dh.coreplus.pivot.PivotSort} for this source. The sort object then can be made to be ascending or descending,
15
- * using {@link PivotSort.asc} or {@link PivotSort.desc}.
16
- * @see {@link dh.Column.sort}
17
- * @return a new {@link dh.coreplus.pivot.PivotSort} for this source
18
- */
19
- sort():PivotSort;
20
- /**
21
- * Creates a new {@link dh.FilterValue} for this source. The filter value can used as a builder to create a
22
- * {@link dh.FilterCondition} or used as a parameter to another filter operation
23
- * @see {@link dh.FilterCondition}
24
- * @return a new {@link dh.FilterValue} for this source
25
- */
26
- filter():dh.FilterValue;
27
- /**
28
- * The name of this source.
29
- */
30
- get name():string;
31
- /**
32
- * True if the data type in this source is sortable.
33
- */
34
- get isSortable():boolean;
35
- /**
36
- * The description of this source, if any.
37
- */
38
- get description():string;
39
- /**
40
- * The type of this source.
41
- */
42
- get type():string;
43
- }
44
-
45
- /**
46
- * Tool to request the server pivot a table and return the results.
47
- */
48
- export class PivotService implements dh.HasEventHandling {
49
- protected constructor();
50
-
51
- /**
52
- * Given a server object, finds or creates a pivot service talking to that same server. If the instance is a
53
- * PivotService, it will be wrapped and returned. The initial call for a given worker must be either a PivotTable or
54
- * a PivotService.
55
- * @param object - some instance that lives on the server to be connected to.
56
- * @return a promise that will resolve to a PivotService instance
57
- */
58
- static getInstance(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable):Promise<PivotService>;
59
- /**
60
- * Creates a pivot table from the given options - a source table, row keys, column keys, and aggregations.
61
- * @param options - to use when creating the pivot table
62
- * @return a Promise that resolves to a PivotTable instance
63
- */
64
- createPivotTable(options:PivotCreationOptions):Promise<PivotTable>;
65
- addEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):()=>void;
66
- nextEvent<T>(arg0:string, arg1?:number):Promise<dh.Event<T>>;
67
- hasListeners(arg0:string):boolean;
68
- removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
69
- }
70
-
71
- /**
72
- * Options for creating a pivot table.
73
- */
74
- export class PivotCreationOptions {
75
- source:dh.JoinableTable;
76
- rowKeys:string[];
77
- columnKeys:string[];
78
- aggregations:{ [key: string]: Array<string>; };
79
-
80
- protected constructor();
81
-
82
- toString():string;
83
- }
84
-
85
- /**
86
- * Provides the details for an updated event from a pivot table subscription. Unlike
87
- * {@link dh.TableData}, this class offers a matrix of data for each value column, and
88
- * row/column expand state, depth, and grand totals.
89
- */
90
- export class PivotSnapshot {
91
- protected constructor();
92
-
93
- /**
94
- * Returns the grand total for a given value source in the pivot table.
95
- * <p>
96
- * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
97
- * @param value - the value source to read, must have been included in the subscription
98
- * @return the grand total for the given value source
99
- */
100
- getGrandTotal(value:PivotSource):any;
101
- /**
102
- * Reads a value from the pivot table data for a given position in the grid.
103
- * <p>
104
- * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
105
- * @param value - the value source to read, must have been included in the subscription
106
- * @param rowPosition - the row position within the pivot table
107
- * @param colPosition - the column position within the pivot table
108
- * @return the value present in the pivot table at the given position
109
- */
110
- getValue(value:PivotSource, rowPosition:number, colPosition:number):any;
111
- /**
112
- * Data specific to the column dimension of the pivot table, including the groups, depth of each column, whether
113
- * each column is expanded, and the totals for each column.
114
- */
115
- get columns():DimensionData;
116
- /**
117
- * Data specific to the row dimension of the pivot table, including the groups, depth of each row, whether each row
118
- * is expanded, and the totals for each row.
119
- */
120
- get rows():DimensionData;
121
- /**
122
- * The value sources that were included in the subscription and can be read from this snapshot.
123
- */
124
- get valueSources():Array<PivotSource>;
125
- }
126
-
127
- /**
128
- * This type is an analog of {@link dh.Sort}, with a few differences:
129
- * <ul>
130
- * <li>The {@link column} property always returns null, and instead there is a {@link name} property</li>
131
- * <li>Reverse is not supported</li>
132
- * </ul>
133
- *
134
- * A PivotSort doesn't sort the columns of the pivot directly, but sorts the keys uses for columns or rows.
135
- */
136
- export class PivotSort {
137
- static readonly ASCENDING:string;
138
- static readonly DESCENDING:string;
139
-
140
- protected constructor();
141
-
142
- /**
143
- * Builds a Sort instance to sort values in ascending order.
144
- * @return {@link dh.coreplus.pivot.PivotSort}
145
- */
146
- asc():PivotSort;
147
- /**
148
- * Builds a Sort instance to sort values in descending order.
149
- * @return {@link dh.coreplus.pivot.PivotSort}
150
- */
151
- desc():PivotSort;
152
- /**
153
- * Builds a Sort instance which takes the absolute value before applying order.
154
- * @return {@link dh.coreplus.pivot.PivotSort}
155
- */
156
- abs():PivotSort;
157
- toString():string;
158
- /**
159
- * True if the absolute value of the column should be used when sorting; defaults to false.
160
- * @return boolean
161
- */
162
- get isAbs():boolean;
163
- /**
164
- * The column which is sorted.
165
- * @return {@link dh.Column}
166
- */
167
- get column():dh.Column;
168
- /**
169
- * The name of the column which is sorted.
170
- * @return String
171
- */
172
- get name():string;
173
- /**
174
- * The direction of this sort, either <b>ASC</b> or <b>DESC</b>.
175
- * @return String
176
- */
177
- get direction():string;
178
- }
179
-
180
- /**
181
- * Describes the desired subscription for a pivot table.
182
- */
183
- export class PivotSubscriptionOptions {
184
- rows:dh.RangeSet|dh.SimpleRange;
185
- columns:dh.RangeSet|dh.SimpleRange;
186
- sources:Array<PivotSource>;
187
- updateIntervalMs?:number|null;
188
-
189
- constructor();
190
- }
191
-
192
- /**
193
- * Describes the desired snapshot for a pivot table.
194
- */
195
- export class PivotSnapshotOptions {
196
- /**
197
- * The rows to include in the snapshot.
198
- */
199
- rows:dh.RangeSet|dh.SimpleRange;
200
- /**
201
- * The columns to include in the snapshot
202
- */
203
- columns:dh.RangeSet|dh.SimpleRange;
204
- /**
205
- * The aggregated sources to include in the snapshot
206
- */
207
- sources:Array<PivotSource>;
208
-
209
- constructor();
210
- }
211
-
212
6
  /**
213
7
  * Represents a PivotTable on the Deephaven server, with support for sorting, filtering, and viewports with
214
8
  * expand/collapse on rows and columns.
@@ -425,6 +219,120 @@ export namespace dh.coreplus.pivot {
425
219
  removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
426
220
  }
427
221
 
222
+ /**
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.
236
+ */
237
+ export class PivotService implements dh.HasEventHandling {
238
+ protected constructor();
239
+
240
+ /**
241
+ * Given a server object, finds or creates a pivot service talking to that same server. If the instance is a
242
+ * PivotService, it will be wrapped and returned. The initial call for a given worker must be either a PivotTable or
243
+ * 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
246
+ */
247
+ static getInstance(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable):Promise<PivotService>;
248
+ /**
249
+ * 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
252
+ */
253
+ createPivotTable(options:PivotCreationOptions):Promise<PivotTable>;
254
+ addEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):()=>void;
255
+ nextEvent<T>(arg0:string, arg1?:number):Promise<dh.Event<T>>;
256
+ hasListeners(arg0:string):boolean;
257
+ removeEventListener<T>(arg0:string, arg1:(arg0:dh.Event<T>)=>void):boolean;
258
+ }
259
+
260
+ /**
261
+ * Describes the desired snapshot for a pivot table.
262
+ */
263
+ export class PivotSnapshotOptions {
264
+ /**
265
+ * The rows to include in the snapshot.
266
+ */
267
+ rows:dh.RangeSet|dh.SimpleRange;
268
+ /**
269
+ * The columns to include in the snapshot
270
+ */
271
+ columns:dh.RangeSet|dh.SimpleRange;
272
+ /**
273
+ * The aggregated sources to include in the snapshot
274
+ */
275
+ sources:Array<PivotSource>;
276
+
277
+ constructor();
278
+ }
279
+
280
+ /**
281
+ * Provides the details for an updated event from a pivot table subscription. Unlike
282
+ * {@link dh.TableData}, this class offers a matrix of data for each value column, and
283
+ * row/column expand state, depth, and grand totals.
284
+ */
285
+ export class PivotSnapshot {
286
+ protected constructor();
287
+
288
+ /**
289
+ * Returns the grand total for a given value source in the pivot table.
290
+ * <p>
291
+ * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
292
+ * @param value - the value source to read, must have been included in the subscription
293
+ * @return the grand total for the given value source
294
+ */
295
+ getGrandTotal(value:PivotSource):any;
296
+ /**
297
+ * Reads a value from the pivot table data for a given position in the grid.
298
+ * <p>
299
+ * The type of this data will match the type of the provided {@link dh.coreplus.pivot.PivotSource}.
300
+ * @param value - the value source to read, must have been included in the subscription
301
+ * @param rowPosition - the row position within the pivot table
302
+ * @param colPosition - the column position within the pivot table
303
+ * @return the value present in the pivot table at the given position
304
+ */
305
+ getValue(value:PivotSource, rowPosition:number, colPosition:number):any;
306
+ /**
307
+ * Data specific to the column dimension of the pivot table, including the groups, depth of each column, whether
308
+ * each column is expanded, and the totals for each column.
309
+ */
310
+ get columns():DimensionData;
311
+ /**
312
+ * Data specific to the row dimension of the pivot table, including the groups, depth of each row, whether each row
313
+ * is expanded, and the totals for each row.
314
+ */
315
+ get rows():DimensionData;
316
+ /**
317
+ * The value sources that were included in the subscription and can be read from this snapshot.
318
+ */
319
+ get valueSources():Array<PivotSource>;
320
+ }
321
+
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
+
428
336
  /**
429
337
  * For either the row or column dimension, this class provides access to dimension-specific metadata and data made
430
338
  * available by the viewport subscription.
@@ -486,6 +394,98 @@ export namespace dh.coreplus.pivot {
486
394
  get totalCount():number;
487
395
  }
488
396
 
397
+ /**
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.
405
+ */
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;
433
+ /**
434
+ * The column which is sorted.
435
+ * @return {@link dh.Column}
436
+ */
437
+ get column():dh.Column;
438
+ /**
439
+ * The name of the column which is sorted.
440
+ * @return String
441
+ */
442
+ get name():string;
443
+ /**
444
+ * The direction of this sort, either <b>ASC</b> or <b>DESC</b>.
445
+ * @return String
446
+ */
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();
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;
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;
487
+ }
488
+
489
489
  }
490
490
 
491
491
  export namespace dh.coreplus.schema {
@@ -683,6 +683,43 @@ export namespace dh.coreplus.csv {
683
683
 
684
684
  }
685
685
 
686
+ export namespace dh.coreplus.web.client.utils {
687
+
688
+ /**
689
+ * JS API for the Web Client Utils Service This is a generic utility service for web clients.
690
+ */
691
+ export class WebClientUtilsService {
692
+ /**
693
+ * The name of the Web Client Utils Service. Used by the client for the name in the variable descriptor when calling
694
+ * getObject from the core connection.
695
+ */
696
+ static readonly NAME:string;
697
+ /**
698
+ * The type of the Web Client UtilsService. Used by the client for the type in the variable descriptor when calling
699
+ * getObject from the core connection.
700
+ */
701
+ static readonly TYPE:string;
702
+
703
+ /**
704
+ * Creates a new WebClientUtilsService instance. Used to analyze permissions for a user on a namespace/table.
705
+ * @param object - some instance that lives on the server to be connected to.
706
+ * @throws RuntimeException if the object is not of the correct type
707
+ */
708
+ constructor(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable);
709
+
710
+ /**
711
+ * Get business dates for a given calendar between startDate and endDate.
712
+ * @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
716
+ */
717
+ getBusinessDates(calendarName:string, startDate:string, endDate:string):Promise<string[]>;
718
+ close():void;
719
+ }
720
+
721
+ }
722
+
686
723
  export namespace dh.coreplus.jdbc {
687
724
 
688
725
  /**
@@ -774,43 +811,6 @@ export namespace dh.coreplus.jdbc {
774
811
 
775
812
  }
776
813
 
777
- export namespace dh.coreplus.web.client.utils {
778
-
779
- /**
780
- * JS API for the Web Client Utils Service This is a generic utility service for web clients.
781
- */
782
- export class WebClientUtilsService {
783
- /**
784
- * The name of the Web Client Utils Service. Used by the client for the name in the variable descriptor when calling
785
- * getObject from the core connection.
786
- */
787
- static readonly NAME:string;
788
- /**
789
- * The type of the Web Client UtilsService. Used by the client for the type in the variable descriptor when calling
790
- * getObject from the core connection.
791
- */
792
- static readonly TYPE:string;
793
-
794
- /**
795
- * Creates a new WebClientUtilsService instance. Used to analyze permissions for a user on a namespace/table.
796
- * @param object - some instance that lives on the server to be connected to.
797
- * @throws RuntimeException if the object is not of the correct type
798
- */
799
- constructor(object:dh.Table|dh.Widget|dh.WidgetExportedObject|dh.PartitionedTable|dh.TotalsTable|dh.TreeTable);
800
-
801
- /**
802
- * Get business dates for a given calendar between startDate and endDate.
803
- * @param calendarName - the name of the calendar
804
- * @param startDate - the start date
805
- * @param endDate - the end date
806
- * @return a promise that resolves to an array of business dates
807
- */
808
- getBusinessDates(calendarName:string, startDate:string, endDate:string):Promise<string[]>;
809
- close():void;
810
- }
811
-
812
- }
813
-
814
814
  export namespace dh.coreplus.acl {
815
815
 
816
816
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven-enterprise/jsapi-coreplus-types",
3
- "version": "2026.1.48",
3
+ "version": "2026.1.49",
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.2.0"
18
+ "@deephaven/jsapi-types": "^42.3.0"
19
19
  },
20
20
  "files": [
21
21
  "dist",