@vuu-ui/vuu-data-types 4.1.0 → 5.0.0-alpha.2
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/index.d.ts +18 -5
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ColumnDescriptorsByName,
|
|
3
|
-
Filter,
|
|
4
|
-
} from "@vuu-ui/vuu-filter-types";
|
|
1
|
+
import type { ColumnDescriptorsByName, Filter } from "@vuu-ui/vuu-filter-types";
|
|
5
2
|
|
|
6
3
|
export interface SetFilterOptions {
|
|
7
4
|
columnsByName?: ColumnDescriptorsByName;
|
|
@@ -493,6 +490,7 @@ export interface DataSourceConstructorProps
|
|
|
493
490
|
*/
|
|
494
491
|
autosubscribeColumns?: string[];
|
|
495
492
|
bufferSize?: number;
|
|
493
|
+
connectionId?: string;
|
|
496
494
|
/**
|
|
497
495
|
* For datasources that support edit sessions, some services support an additional
|
|
498
496
|
* column on session tables that will be used to return status information for a row
|
|
@@ -512,7 +510,22 @@ export interface DataSourceConstructorProps
|
|
|
512
510
|
viewport?: string;
|
|
513
511
|
}
|
|
514
512
|
|
|
513
|
+
/**
|
|
514
|
+
* The Vuu server a remote module connects to. Published by the remote in its
|
|
515
|
+
* `config.json`, not by the module registry.
|
|
516
|
+
*/
|
|
517
|
+
/**
|
|
518
|
+
* How the portal gets a Vuu token for a server:
|
|
519
|
+
* - `token-exchange`: exchanges the portal's identity token (e.g. Keycloak)
|
|
520
|
+
* at `restUrl`.
|
|
521
|
+
* - `vuu-login`: posts a username and password to `restUrl`, the Vuu
|
|
522
|
+
* server's own login endpoint (e.g. `/api/authn` of the Scala server).
|
|
523
|
+
*/
|
|
524
|
+
export type VuuServerAuthMode = "token-exchange" | "vuu-login";
|
|
525
|
+
|
|
515
526
|
export interface RemoteModuleConnection {
|
|
527
|
+
/** Default `token-exchange`. */
|
|
528
|
+
auth?: VuuServerAuthMode;
|
|
516
529
|
connectionId: string;
|
|
517
530
|
restUrl?: string;
|
|
518
531
|
websocketUrl?: string;
|
|
@@ -874,7 +887,7 @@ export interface ServerProxySubscribeMessage extends WithFullConfig {
|
|
|
874
887
|
// };
|
|
875
888
|
|
|
876
889
|
export declare type VuuUIMessageInConnected = {
|
|
877
|
-
sessionId: string;
|
|
890
|
+
loginResponse: VuuLoginSuccessResponse & { sessionId: string };
|
|
878
891
|
type: "connected";
|
|
879
892
|
};
|
|
880
893
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.2",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "5.0.0-alpha.2",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "5.0.0-alpha.2"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|