@vuu-ui/vuu-protocol-types 2.1.7 → 2.1.9

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.
Files changed (2) hide show
  1. package/index.d.ts +52 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -507,18 +507,13 @@ export declare type ClientMessageBody =
507
507
  *
508
508
  * Vuu supports two types of RPC message
509
509
  *
510
- * 2) VuuRpcServiceRequest
510
+ * 1) VuuRpcServiceRequest
511
511
  *
512
512
  * There are no generic messages in this category, they will tend to be specific to a
513
513
  * business module. Examples found in the Vuu project include rpcNames "createBasket",
514
514
  * "addConstituent", "sendToMarket" etc in the BASKET module.
515
515
  *
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
516
+ * 2) VuuRpcMenuRequest
522
517
  *
523
518
  * These are RPC calls submitted when user clicks a menu item from the menu structure
524
519
  * defined on the server (see VIEW_PORT_MENUS_RESP above). There are 4 categories of
@@ -557,7 +552,56 @@ export declare type VuuRpcResponse = VuuRpcServiceResponse | VuuRpcMenuResponse;
557
552
  export declare type VuuRpcServiceRequest<T extends RpcContext = RpcContext> = {
558
553
  context: T;
559
554
  type: "RPC_REQUEST";
560
- params: Record<string, VuuRowDataItemType>;
555
+ params: Record<string, VuuRowDataItemType> | AddRowParams;
556
+ rpcName: TypeAheadMethod | string;
557
+ };
558
+
559
+ export declare type AddRowParams = {
560
+ key: string;
561
+ data: Record<string, VuuRowDataItemType>;
562
+ };
563
+ export declare type AddRowRpcServiceRequest = {
564
+ context: ViewportRpcContext;
565
+ type: "RPC_REQUEST";
566
+ params: AddRowParams;
567
+ rpcName: "addRow";
568
+ };
569
+
570
+ export declare type EditCellParams = {
571
+ column: string;
572
+ data: VuuRowDataItemType;
573
+ key: string;
574
+ };
575
+ export declare type EditCellRpcServiceRequest = {
576
+ context: ViewportRpcContext;
577
+ type: "RPC_REQUEST";
578
+ params: EditCellParams;
579
+ rpcName: "editCell";
580
+ };
581
+
582
+ export declare type BeginEditSessionParams = {
583
+ editSessionMode?: "all-rows" | "selected-rows";
584
+ };
585
+ export declare type BeginEditSessionRpcServiceRequest = {
586
+ context: ViewportRpcContext;
587
+ type: "RPC_REQUEST";
588
+ params: BeginEditSessionParams;
589
+ rpcName: "beginEditSession";
590
+ };
591
+ export declare type EndEditSessionParams = {
592
+ save?: boolean;
593
+ };
594
+ export declare type EndEditSessionRpcServiceRequest = {
595
+ context: ViewportRpcContext;
596
+ type: "RPC_REQUEST";
597
+ params: EndEditSessionParams;
598
+ rpcName: "endEditSession";
599
+ };
600
+
601
+ export declare type AddRowRpcRequest = {
602
+ context: ViewportRpcContext;
603
+ type: "RPC_REQUEST";
604
+ params: Record<string, VuuRowDataItemType> | AddRowParams;
561
605
  rpcName: TypeAheadMethod | string;
562
606
  };
563
607
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "2.1.7",
3
+ "version": "2.1.9",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {},