@vuu-ui/vuu-protocol-types 2.1.15 → 2.1.17
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 +56 -16
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -172,15 +172,9 @@ export interface VuuViewportCreateSuccessResponse {
|
|
|
172
172
|
viewPortId: string;
|
|
173
173
|
}
|
|
174
174
|
export interface VuuViewportCreateFailResponse {
|
|
175
|
-
|
|
176
|
-
columns: VuuColumns;
|
|
177
|
-
filterSpec: VuuFilter;
|
|
178
|
-
groupBy: VuuGroupBy;
|
|
179
|
-
range: VuuRange;
|
|
180
|
-
sort: VuuSort;
|
|
175
|
+
msg: string;
|
|
181
176
|
type: "CREATE_VP_REJECT";
|
|
182
|
-
table:
|
|
183
|
-
viewPortId: string;
|
|
177
|
+
table: VuuTable;
|
|
184
178
|
}
|
|
185
179
|
export interface VuuViewportChangeRequest {
|
|
186
180
|
aggregations: VuuAggregation[];
|
|
@@ -507,18 +501,13 @@ export declare type ClientMessageBody =
|
|
|
507
501
|
*
|
|
508
502
|
* Vuu supports two types of RPC message
|
|
509
503
|
*
|
|
510
|
-
*
|
|
504
|
+
* 1) VuuRpcServiceRequest
|
|
511
505
|
*
|
|
512
506
|
* There are no generic messages in this category, they will tend to be specific to a
|
|
513
507
|
* business module. Examples found in the Vuu project include rpcNames "createBasket",
|
|
514
508
|
* "addConstituent", "sendToMarket" etc in the BASKET module.
|
|
515
509
|
*
|
|
516
|
-
*
|
|
517
|
-
* - "VP_BULK_EDIT_SUBMIT_RPC"
|
|
518
|
-
* - "VP_BULK_EDIT_COLUMN_CELLS_RPC"
|
|
519
|
-
* These are not yet impelmented in the Vuu server and liable to change
|
|
520
|
-
*
|
|
521
|
-
* 3) VuuRpcMenuRequest
|
|
510
|
+
* 2) VuuRpcMenuRequest
|
|
522
511
|
*
|
|
523
512
|
* These are RPC calls submitted when user clicks a menu item from the menu structure
|
|
524
513
|
* defined on the server (see VIEW_PORT_MENUS_RESP above). There are 4 categories of
|
|
@@ -557,7 +546,58 @@ export declare type VuuRpcResponse = VuuRpcServiceResponse | VuuRpcMenuResponse;
|
|
|
557
546
|
export declare type VuuRpcServiceRequest<T extends RpcContext = RpcContext> = {
|
|
558
547
|
context: T;
|
|
559
548
|
type: "RPC_REQUEST";
|
|
560
|
-
params: Record<string, VuuRowDataItemType
|
|
549
|
+
params: Record<string, VuuRowDataItemType> | AddRowParams;
|
|
550
|
+
rpcName: TypeAheadMethod | string;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
export declare type AddRowParams = {
|
|
554
|
+
key: string;
|
|
555
|
+
data: Record<string, VuuRowDataItemType>;
|
|
556
|
+
};
|
|
557
|
+
export declare type AddRowRpcServiceRequest = {
|
|
558
|
+
context: ViewportRpcContext;
|
|
559
|
+
type: "RPC_REQUEST";
|
|
560
|
+
params: AddRowParams;
|
|
561
|
+
rpcName: "addRow";
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export declare type EditCellParams = {
|
|
565
|
+
column: string;
|
|
566
|
+
data: VuuRowDataItemType;
|
|
567
|
+
key: string;
|
|
568
|
+
};
|
|
569
|
+
export declare type EditCellRpcServiceRequest = {
|
|
570
|
+
context: ViewportRpcContext;
|
|
571
|
+
type: "RPC_REQUEST";
|
|
572
|
+
params: EditCellParams;
|
|
573
|
+
rpcName: "editCell";
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
export declare type BeginEditSessionParams = {
|
|
577
|
+
editSessionMode?: "all-rows" | "selected-rows";
|
|
578
|
+
};
|
|
579
|
+
export declare type BeginEditSessionRpcServiceRequest = {
|
|
580
|
+
context: ViewportRpcContext;
|
|
581
|
+
type: "RPC_REQUEST";
|
|
582
|
+
params: BeginEditSessionParams;
|
|
583
|
+
rpcName: "beginEditSession";
|
|
584
|
+
};
|
|
585
|
+
export declare type EndEditSessionParams = {
|
|
586
|
+
save?: boolean;
|
|
587
|
+
force?: boolean;
|
|
588
|
+
timestamp?: number;
|
|
589
|
+
};
|
|
590
|
+
export declare type EndEditSessionRpcServiceRequest = {
|
|
591
|
+
context: ViewportRpcContext;
|
|
592
|
+
type: "RPC_REQUEST";
|
|
593
|
+
params: EndEditSessionParams;
|
|
594
|
+
rpcName: "endEditSession";
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
export declare type AddRowRpcRequest = {
|
|
598
|
+
context: ViewportRpcContext;
|
|
599
|
+
type: "RPC_REQUEST";
|
|
600
|
+
params: Record<string, VuuRowDataItemType> | AddRowParams;
|
|
561
601
|
rpcName: TypeAheadMethod | string;
|
|
562
602
|
};
|
|
563
603
|
|