@vuu-ui/vuu-data-types 0.13.93 → 0.13.95-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 +4 -33
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ import type {
|
|
|
9
9
|
LinkDescriptorWithLabel,
|
|
10
10
|
NoAction,
|
|
11
11
|
OpenDialogAction,
|
|
12
|
+
RpcResultError,
|
|
13
|
+
RpcResultSuccess,
|
|
12
14
|
VuuAggregation,
|
|
13
15
|
VuuColumnDataType,
|
|
14
16
|
VuuColumns,
|
|
@@ -28,8 +30,6 @@ import type {
|
|
|
28
30
|
VuuCreateVisualLink,
|
|
29
31
|
VuuRemoveVisualLink,
|
|
30
32
|
VuuTableList,
|
|
31
|
-
VuuRpcEditRequest,
|
|
32
|
-
VuuRpcEditResponse,
|
|
33
33
|
VuuLoginSuccessResponse,
|
|
34
34
|
VuuLoginFailResponse,
|
|
35
35
|
SelectRequest,
|
|
@@ -488,16 +488,6 @@ export declare type DataSourceEvents = {
|
|
|
488
488
|
"visual-link-removed": () => void;
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
-
/**
|
|
492
|
-
* return Promise<true> indicates success
|
|
493
|
-
* return Promise<errorMessage> indicates failure
|
|
494
|
-
*/
|
|
495
|
-
export declare type DataSourceEditHandler = (
|
|
496
|
-
rowKey: string,
|
|
497
|
-
columnName: string,
|
|
498
|
-
value: VuuRowDataItemType,
|
|
499
|
-
) => Promise<true | string>;
|
|
500
|
-
|
|
501
491
|
export declare type DataSourceDeleteHandler = (
|
|
502
492
|
key: string,
|
|
503
493
|
) => Promise<true | string>;
|
|
@@ -559,7 +549,6 @@ export interface DataSource
|
|
|
559
549
|
extends IEventEmitter<DataSourceEvents>,
|
|
560
550
|
Partial<TypeaheadSuggestionProvider> {
|
|
561
551
|
aggregations: VuuAggregation[];
|
|
562
|
-
applyEdit: DataSourceEditHandler;
|
|
563
552
|
closeTreeNode: (keyOrIndex: string | number, cascade?: boolean) => void;
|
|
564
553
|
columns: string[];
|
|
565
554
|
config: WithBaseFilter<WithFullConfig>;
|
|
@@ -660,9 +649,6 @@ export interface DataSource
|
|
|
660
649
|
insertRow?: DataSourceInsertHandler;
|
|
661
650
|
links?: LinkDescriptorWithLabel[];
|
|
662
651
|
menu?: VuuMenu;
|
|
663
|
-
editRpcCall: (
|
|
664
|
-
rpcRequest: Omit<VuuRpcEditRequest, "vpId">,
|
|
665
|
-
) => Promise<VuuRpcEditResponse>;
|
|
666
652
|
menuRpcCall: (
|
|
667
653
|
rpcRequest: Omit<VuuRpcMenuRequest, "vpId">,
|
|
668
654
|
) => Promise<VuuRpcMenuResponse>;
|
|
@@ -732,6 +718,7 @@ export interface ServerProxySubscribeMessage extends WithFullConfig {
|
|
|
732
718
|
// };
|
|
733
719
|
|
|
734
720
|
export declare type VuuUIMessageInConnected = {
|
|
721
|
+
sessionId: string;
|
|
735
722
|
type: "connected";
|
|
736
723
|
};
|
|
737
724
|
|
|
@@ -756,20 +743,6 @@ export interface VuuUIMessageInRPC {
|
|
|
756
743
|
requestId: string;
|
|
757
744
|
type: "RPC_RESPONSE";
|
|
758
745
|
}
|
|
759
|
-
|
|
760
|
-
export interface VuuUIMessageInRPCEditReject {
|
|
761
|
-
error: string;
|
|
762
|
-
requestId?: string;
|
|
763
|
-
type: "VP_EDIT_RPC_REJECT";
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
export interface VuuUIMessageInRPCEditResponse {
|
|
767
|
-
action: unknown;
|
|
768
|
-
requestId: string;
|
|
769
|
-
rpcName: string;
|
|
770
|
-
type: "VP_EDIT_RPC_RESPONSE";
|
|
771
|
-
}
|
|
772
|
-
|
|
773
746
|
export interface VuuUIMessageInTableList {
|
|
774
747
|
requestId: string;
|
|
775
748
|
type: "TABLE_LIST_RESP";
|
|
@@ -809,14 +782,12 @@ export declare type VuuUiMessageInRequestResponse =
|
|
|
809
782
|
| MenuRpcResponse
|
|
810
783
|
| MenuRpcReject
|
|
811
784
|
| VuuUIMessageInRPC
|
|
812
|
-
| VuuUIMessageInRPCEditReject
|
|
813
|
-
| VuuUIMessageInRPCEditResponse
|
|
814
785
|
| ViewportRpcResponse
|
|
815
786
|
| VuuUIMessageInTableList
|
|
816
787
|
| VuuUIMessageInTableMeta;
|
|
817
788
|
|
|
818
789
|
export declare type VuuUIMessageIn =
|
|
819
|
-
| VuuLoginSuccessResponse
|
|
790
|
+
| (VuuLoginSuccessResponse & { sessionId: string })
|
|
820
791
|
| VuuLoginFailResponse
|
|
821
792
|
| VuuUiMessageInRequestResponse
|
|
822
793
|
| VuuUIMessageInConnected
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-data-types",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.95-alpha.2",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.13.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "0.13.
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.13.95-alpha.2",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.13.95-alpha.2"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {},
|
|
11
11
|
"peerDependencies": {},
|