@vuu-ui/vuu-protocol-types 2.1.13 → 2.1.15
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 +16 -56
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -172,9 +172,15 @@ export interface VuuViewportCreateSuccessResponse {
|
|
|
172
172
|
viewPortId: string;
|
|
173
173
|
}
|
|
174
174
|
export interface VuuViewportCreateFailResponse {
|
|
175
|
-
|
|
175
|
+
aggregations: VuuAggregation[];
|
|
176
|
+
columns: VuuColumns;
|
|
177
|
+
filterSpec: VuuFilter;
|
|
178
|
+
groupBy: VuuGroupBy;
|
|
179
|
+
range: VuuRange;
|
|
180
|
+
sort: VuuSort;
|
|
176
181
|
type: "CREATE_VP_REJECT";
|
|
177
|
-
table:
|
|
182
|
+
table: string;
|
|
183
|
+
viewPortId: string;
|
|
178
184
|
}
|
|
179
185
|
export interface VuuViewportChangeRequest {
|
|
180
186
|
aggregations: VuuAggregation[];
|
|
@@ -501,13 +507,18 @@ export declare type ClientMessageBody =
|
|
|
501
507
|
*
|
|
502
508
|
* Vuu supports two types of RPC message
|
|
503
509
|
*
|
|
504
|
-
*
|
|
510
|
+
* 2) VuuRpcServiceRequest
|
|
505
511
|
*
|
|
506
512
|
* There are no generic messages in this category, they will tend to be specific to a
|
|
507
513
|
* business module. Examples found in the Vuu project include rpcNames "createBasket",
|
|
508
514
|
* "addConstituent", "sendToMarket" etc in the BASKET module.
|
|
509
515
|
*
|
|
510
|
-
*
|
|
516
|
+
* There is a new proposed set of generic rpc calls, related to bulk edit operations
|
|
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
|
|
511
522
|
*
|
|
512
523
|
* These are RPC calls submitted when user clicks a menu item from the menu structure
|
|
513
524
|
* defined on the server (see VIEW_PORT_MENUS_RESP above). There are 4 categories of
|
|
@@ -546,58 +557,7 @@ export declare type VuuRpcResponse = VuuRpcServiceResponse | VuuRpcMenuResponse;
|
|
|
546
557
|
export declare type VuuRpcServiceRequest<T extends RpcContext = RpcContext> = {
|
|
547
558
|
context: T;
|
|
548
559
|
type: "RPC_REQUEST";
|
|
549
|
-
params: Record<string, VuuRowDataItemType
|
|
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;
|
|
560
|
+
params: Record<string, VuuRowDataItemType>;
|
|
601
561
|
rpcName: TypeAheadMethod | string;
|
|
602
562
|
};
|
|
603
563
|
|