@deephaven-enterprise/jsapi-types 1.20250801.273-beta → 1.20250801.250909101756-g6a96a09cfd8
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 -3
- package/types/CommonTypes.d.ts +6 -0
- package/types/Iris.d.ts +40 -1
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.250909101756-g6a96a09cfd8",
|
|
4
4
|
"description": "Deephaven Enterprise Jsapi Types",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -21,6 +21,5 @@
|
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
|
-
}
|
|
25
|
-
"gitHead": "d2e61ec962ce2aa709bea40f9e39dcba4f56faf5"
|
|
24
|
+
}
|
|
26
25
|
}
|
package/types/CommonTypes.d.ts
CHANGED
|
@@ -43,6 +43,12 @@ export interface EnterpriseUserPermissions extends UserPermissions {
|
|
|
43
43
|
/** Not allowed to use the web UI at all */
|
|
44
44
|
isNonInteractive: boolean;
|
|
45
45
|
|
|
46
|
+
/** Can manage queries */
|
|
47
|
+
isQueryManager: boolean;
|
|
48
|
+
|
|
49
|
+
/** Can manage schemas */
|
|
50
|
+
isSchemaManager: boolean;
|
|
51
|
+
|
|
46
52
|
/** Can create new dashboards */
|
|
47
53
|
canCreateDashboard: boolean;
|
|
48
54
|
|
package/types/Iris.d.ts
CHANGED
|
@@ -432,6 +432,13 @@ export interface QuerySelectionPermissions {
|
|
|
432
432
|
allAdmin: boolean;
|
|
433
433
|
allOwner: boolean;
|
|
434
434
|
allRestartable: boolean;
|
|
435
|
+
allStoppable: boolean;
|
|
436
|
+
allStopped: boolean;
|
|
437
|
+
allDisabled: boolean;
|
|
438
|
+
allEnabled: boolean;
|
|
439
|
+
allTemporary: boolean;
|
|
440
|
+
allImportMerge: boolean;
|
|
441
|
+
readOnlyUser: boolean;
|
|
435
442
|
}
|
|
436
443
|
|
|
437
444
|
export interface ClientListenerEvent<TDetail = unknown> {
|
|
@@ -474,7 +481,7 @@ export interface EnterpriseClient {
|
|
|
474
481
|
type: string,
|
|
475
482
|
listener: (event: ClientListenerEvent<T>) => void
|
|
476
483
|
): void;
|
|
477
|
-
disconnect(): void;
|
|
484
|
+
disconnect(fireEvents?: boolean): void;
|
|
478
485
|
saveQuery(query: PlainEditableQueryInfo, doRestart: boolean): Promise<void>;
|
|
479
486
|
createQuery(query: PlainEditableQueryInfo): Promise<string>;
|
|
480
487
|
createAuthToken(key: string): Promise<string>;
|
|
@@ -548,11 +555,43 @@ export interface EnterpriseClient {
|
|
|
548
555
|
operateAs: string
|
|
549
556
|
) => Promise<null>;
|
|
550
557
|
|
|
558
|
+
/** True if the client is currently connected */
|
|
559
|
+
readonly isConnected: boolean;
|
|
560
|
+
|
|
551
561
|
/**
|
|
552
562
|
* Get a Base64 encoded challenge nonce for that can be signed and passed to
|
|
553
563
|
* `challengeResponse()` for private / public key authentication.
|
|
554
564
|
*/
|
|
555
565
|
getChallengeNonce(): Promise<ChallengeNonce>;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Get a map of schema namespaces to table names.
|
|
569
|
+
* @returns A map where the keys are schema namespaces and the values are arrays of table names.
|
|
570
|
+
*/
|
|
571
|
+
getAllSchemas(): Promise<Map<string, string[]>>;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Get the XML schema for a table.
|
|
575
|
+
* @param namespace the namespace of the schema
|
|
576
|
+
* @param tableName the table name of the schema
|
|
577
|
+
* @return the schema XML string for the given namespace and table name
|
|
578
|
+
*/
|
|
579
|
+
getSchemaXml(namespace: string, tableName: string): Promise<string>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Saves a schema XML String to the Schema Service. Uses the namespace and table name from the XML.
|
|
583
|
+
* @param xmlString the XML string for the schema to save
|
|
584
|
+
* @return a promise that resolves on successful save
|
|
585
|
+
*/
|
|
586
|
+
saveSchemaXml(xmlString: string): Promise<void>;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Deletes a schema from the Schema Service using the provided namespace and table name.
|
|
590
|
+
* @param namespace the namespace of the schema
|
|
591
|
+
* @param tableName the table name of the schema
|
|
592
|
+
* @return a promise that resolves on successful delete
|
|
593
|
+
*/
|
|
594
|
+
deleteSchema(namespace: string, tableName: string): Promise<void>;
|
|
556
595
|
}
|
|
557
596
|
|
|
558
597
|
export interface ChallengeNonce {
|