@deephaven-enterprise/jsapi-types 1.20250801.264-beta → 1.20250801.265-beta
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.
- package/package.json +2 -2
- package/types/Iris.d.ts +152 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven-enterprise/jsapi-types",
|
|
3
|
-
"version": "1.20250801.
|
|
3
|
+
"version": "1.20250801.265-beta",
|
|
4
4
|
"description": "Deephaven Enterprise Jsapi Types",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "effbbd2911322ee5214063cad270e5dcd8f558eb"
|
|
26
26
|
}
|
package/types/Iris.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
/* eslint-disable max-classes-per-file */
|
|
1
2
|
// The iris api script isn't packaged as a module (yet), and is just included in index.html, exported to the global namespace
|
|
2
3
|
// This include file is simply a wrapper so that it behaves like a module, and can be mocked easily for unit tests.
|
|
3
4
|
// https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#using-global-variables
|
|
4
5
|
import type { dh as DhType } from '@deephaven/jsapi-types';
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
|
-
Parameterized,
|
|
8
|
-
ParameterizedQueryVariableType,
|
|
8
|
+
type Parameterized,
|
|
9
|
+
type ParameterizedQueryVariableType,
|
|
9
10
|
} from './parameterizedQueryTypes.js';
|
|
10
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
type ControllerQueryConstants,
|
|
13
|
+
type WorkerKind,
|
|
14
|
+
} from './CommonTypes.js';
|
|
11
15
|
|
|
12
16
|
export type CancelablePromise<T> = Promise<T> & { cancel: () => undefined };
|
|
13
17
|
|
|
@@ -60,6 +64,21 @@ export type BaseQueryInfo = {
|
|
|
60
64
|
assignmentPolicyParams: string | null;
|
|
61
65
|
};
|
|
62
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Plain object representing a query configuration
|
|
69
|
+
* with properties matching {@link EditableQueryInfo}
|
|
70
|
+
* Used as input for the `saveQuery` and `createQuery` methods.
|
|
71
|
+
*/
|
|
72
|
+
export type PlainEditableQueryInfo = BaseQueryInfo & {
|
|
73
|
+
scriptCode: string | null;
|
|
74
|
+
serial: string | null;
|
|
75
|
+
|
|
76
|
+
genericWorkerControl: string | null;
|
|
77
|
+
kubernetesControl: string | null;
|
|
78
|
+
pythonControl: string | null;
|
|
79
|
+
workerKind: string | null;
|
|
80
|
+
};
|
|
81
|
+
|
|
63
82
|
export type BaseQueryInfoReadonly = Readonly<
|
|
64
83
|
BaseQueryInfo & {
|
|
65
84
|
/**
|
|
@@ -98,9 +117,118 @@ export type TypeSpecificFields<T extends string = string> = Record<
|
|
|
98
117
|
{ value: unknown; type: string }
|
|
99
118
|
>;
|
|
100
119
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
120
|
+
/**
|
|
121
|
+
* The EditableQueryInfo class uses getter and setter methods for accessing and modifying its properties.
|
|
122
|
+
* As a result, it cannot be directly used with the spread operator.
|
|
123
|
+
*/
|
|
124
|
+
export declare class EditableQueryInfo implements PlainEditableQueryInfo {
|
|
125
|
+
get adminGroups(): readonly string[];
|
|
126
|
+
|
|
127
|
+
set adminGroups(value: readonly string[]);
|
|
128
|
+
|
|
129
|
+
get dataMemoryRatio(): number;
|
|
130
|
+
|
|
131
|
+
set dataMemoryRatio(value: number);
|
|
132
|
+
|
|
133
|
+
get dbServerName(): string;
|
|
134
|
+
|
|
135
|
+
set dbServerName(value: string);
|
|
136
|
+
|
|
137
|
+
get enabled(): boolean;
|
|
138
|
+
|
|
139
|
+
set enabled(value: boolean);
|
|
140
|
+
|
|
141
|
+
get enableGcLogs(): boolean;
|
|
142
|
+
|
|
143
|
+
set enableGcLogs(value: boolean);
|
|
144
|
+
|
|
145
|
+
get envVars(): string;
|
|
146
|
+
|
|
147
|
+
set envVars(value: string);
|
|
148
|
+
|
|
149
|
+
get extraClasspaths(): string;
|
|
150
|
+
|
|
151
|
+
set extraClasspaths(value: string);
|
|
152
|
+
|
|
153
|
+
get heapSize(): number;
|
|
154
|
+
|
|
155
|
+
set heapSize(value: number);
|
|
156
|
+
|
|
157
|
+
get additionalMemory(): number;
|
|
158
|
+
|
|
159
|
+
set additionalMemory(value: number);
|
|
160
|
+
|
|
161
|
+
get jvmArgs(): string;
|
|
162
|
+
|
|
163
|
+
set jvmArgs(value: string);
|
|
164
|
+
|
|
165
|
+
get jvmProfile(): string;
|
|
166
|
+
|
|
167
|
+
set jvmProfile(value: string);
|
|
168
|
+
|
|
169
|
+
get name(): string;
|
|
170
|
+
|
|
171
|
+
set name(value: string);
|
|
172
|
+
|
|
173
|
+
get owner(): string;
|
|
174
|
+
|
|
175
|
+
set owner(value: string);
|
|
176
|
+
|
|
177
|
+
get restartUsers(): number;
|
|
178
|
+
|
|
179
|
+
set restartUsers(value: number);
|
|
180
|
+
|
|
181
|
+
get scheduling(): readonly string[];
|
|
182
|
+
|
|
183
|
+
set scheduling(value: readonly string[]);
|
|
184
|
+
|
|
185
|
+
get scriptLanguage(): string | null;
|
|
186
|
+
|
|
187
|
+
set scriptLanguage(value: string | null);
|
|
188
|
+
|
|
189
|
+
get scriptPath(): string | null;
|
|
190
|
+
|
|
191
|
+
set scriptPath(value: string | null);
|
|
192
|
+
|
|
193
|
+
get timeout(): number;
|
|
194
|
+
|
|
195
|
+
set timeout(value: number);
|
|
196
|
+
|
|
197
|
+
get type(): string;
|
|
198
|
+
|
|
199
|
+
set type(value: string);
|
|
200
|
+
|
|
201
|
+
get typeSpecificFields(): TypeSpecificFields | null;
|
|
202
|
+
|
|
203
|
+
set typeSpecificFields(value: TypeSpecificFields | null);
|
|
204
|
+
|
|
205
|
+
get viewerGroups(): readonly string[];
|
|
206
|
+
|
|
207
|
+
set viewerGroups(value: readonly string[]);
|
|
208
|
+
|
|
209
|
+
get replicaCount(): number;
|
|
210
|
+
|
|
211
|
+
set replicaCount(value: number);
|
|
212
|
+
|
|
213
|
+
get spareCount(): number;
|
|
214
|
+
|
|
215
|
+
set spareCount(value: number);
|
|
216
|
+
|
|
217
|
+
get assignmentPolicy(): string | null;
|
|
218
|
+
|
|
219
|
+
set assignmentPolicy(value: string | null);
|
|
220
|
+
|
|
221
|
+
get assignmentPolicyParams(): string | null;
|
|
222
|
+
|
|
223
|
+
set assignmentPolicyParams(value: string | null);
|
|
224
|
+
|
|
225
|
+
get scriptCode(): string | null;
|
|
226
|
+
|
|
227
|
+
set scriptCode(value: string | null);
|
|
228
|
+
|
|
229
|
+
get serial(): string | null;
|
|
230
|
+
|
|
231
|
+
set serial(value: string | null);
|
|
104
232
|
|
|
105
233
|
/**
|
|
106
234
|
* Store the Kubernetes, Python, and Generic Worker Control values as string.
|
|
@@ -108,12 +236,22 @@ export type EditableQueryInfo = BaseQueryInfo & {
|
|
|
108
236
|
* want to lose any parameters that may have been set on the server that the
|
|
109
237
|
* Web UI doesn't know about.
|
|
110
238
|
*/
|
|
111
|
-
kubernetesControl
|
|
112
|
-
genericWorkerControl?: string | null;
|
|
113
|
-
pythonControl?: string | null;
|
|
239
|
+
get kubernetesControl(): string | null;
|
|
114
240
|
|
|
115
|
-
|
|
116
|
-
|
|
241
|
+
set kubernetesControl(value: string | null);
|
|
242
|
+
|
|
243
|
+
get genericWorkerControl(): string | null;
|
|
244
|
+
|
|
245
|
+
set genericWorkerControl(value: string | null);
|
|
246
|
+
|
|
247
|
+
get pythonControl(): string | null;
|
|
248
|
+
|
|
249
|
+
set pythonControl(value: string | null);
|
|
250
|
+
|
|
251
|
+
get workerKind(): string | null;
|
|
252
|
+
|
|
253
|
+
set workerKind(value: string | null);
|
|
254
|
+
}
|
|
117
255
|
|
|
118
256
|
export interface ReplicaStatus {
|
|
119
257
|
objects: readonly DhType.ide.VariableDefinition[];
|
|
@@ -337,8 +475,8 @@ export interface EnterpriseClient {
|
|
|
337
475
|
listener: (event: ClientListenerEvent<T>) => void
|
|
338
476
|
): void;
|
|
339
477
|
disconnect(): void;
|
|
340
|
-
saveQuery(query:
|
|
341
|
-
createQuery(query:
|
|
478
|
+
saveQuery(query: PlainEditableQueryInfo, doRestart: boolean): Promise<void>;
|
|
479
|
+
createQuery(query: PlainEditableQueryInfo): Promise<string>;
|
|
342
480
|
createAuthToken(key: string): Promise<string>;
|
|
343
481
|
/** Imports the XML string as queries, and returns the query info. Does _not_ actually create them, use `saveQueries()` to save them. */
|
|
344
482
|
importQueries: (xml: string) => Promise<QueryInfo[]>;
|
|
@@ -362,7 +500,7 @@ export interface EnterpriseClient {
|
|
|
362
500
|
* @param replaceExisting Whether to replace existing queries or create new ones. If a serial is specified on a query and it is saved and `replaceExisting` is false, it will throw an error if a query with that serial already exists.
|
|
363
501
|
*/
|
|
364
502
|
saveQueries: (
|
|
365
|
-
queries: readonly
|
|
503
|
+
queries: readonly PlainEditableQueryInfo[],
|
|
366
504
|
replaceExisting: boolean
|
|
367
505
|
) => Promise<SaveQueriesResult>;
|
|
368
506
|
getAuthConfigValues(): Promise<string[][]>;
|