@vuu-ui/vuu-protocol-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.
Files changed (2) hide show
  1. package/index.d.ts +10 -86
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -438,9 +438,6 @@ export declare type ServerMessageBody =
438
438
  | VuuCreateVisualLinkResponse
439
439
  | VuuRemoveVisualLinkResponse
440
440
  | ServerToClientError
441
- | VuuRpcEditSuccess
442
- | VuuRpcEditSuccess
443
- | VuuRpcEditError
444
441
  | FreezeViewportResponse
445
442
  | UnfreezeViewportResponse;
446
443
  export interface ClientToServerHeartBeat {
@@ -476,9 +473,7 @@ export declare type ClientToServerMenuRPCType =
476
473
  | "VIEW_PORT_MENU_ROW_RPC"
477
474
  | "VIEW_PORT_MENU_CELL_RPC";
478
475
 
479
- export declare type VuuRpcMessagesOut =
480
- | ClientToServerMenuSelectRPC
481
- | VuuRpcEditCellRequest;
476
+ export declare type VuuRpcMessagesOut = ClientToServerMenuSelectRPC;
482
477
 
483
478
  export declare type ClientMessageBody =
484
479
  | ClientToServerAuth
@@ -552,20 +547,14 @@ export declare type RpcContext =
552
547
  | ViewportRpcContext
553
548
  | ViewportRowRpcContext;
554
549
 
555
- export declare type VuuRpcRequest =
556
- | VuuRpcServiceRequest
557
- | VuuRpcMenuRequest
558
- | VuuRpcEditRequest;
550
+ export declare type VuuRpcRequest = VuuRpcServiceRequest | VuuRpcMenuRequest;
559
551
 
560
- export declare type VuuRpcResponse =
561
- | VuuRpcServiceResponse
562
- | VuuRpcMenuResponse
563
- | VuuRpcEditResponse;
552
+ export declare type VuuRpcResponse = VuuRpcServiceResponse | VuuRpcMenuResponse;
564
553
 
565
554
  export declare type VuuRpcServiceRequest<T extends RpcContext = RpcContext> = {
566
555
  context: T;
567
556
  type: "RPC_REQUEST";
568
- params: Record<string, string>;
557
+ params: Record<string, VuuRowDataItemType>;
569
558
  rpcName: TypeAheadMethod | string;
570
559
  };
571
560
 
@@ -577,12 +566,14 @@ export declare type RpcResultError = {
577
566
  type: "ERROR_RESULT";
578
567
  errorMessage: string;
579
568
  };
569
+
570
+ export declare type RpcResult = RpcResultSuccess | RpcResultError;
580
571
  export interface VuuRpcServiceResponse {
581
572
  action: unknown;
582
573
  error: null | unknown;
583
574
  rpcName: TypeAheadMethod;
584
575
  type: "RPC_RESPONSE";
585
- result: RpcResultSuccess | RpcResultError;
576
+ result: RpcResult;
586
577
  }
587
578
 
588
579
  export interface VuuViewportRpcTypeaheadRequest extends VuuRpcServiceRequest {
@@ -632,7 +623,7 @@ export interface ClientToServerMenuCellRPC {
632
623
  }
633
624
 
634
625
  export interface VuuRpcMenuSuccess<
635
- T extends VuuRpcMenuAction | VuuRpcEditAction = VuuRpcMenuAction,
626
+ T extends VuuRpcMenuAction = VuuRpcMenuAction,
636
627
  > {
637
628
  action: T;
638
629
  rpcName: string;
@@ -647,75 +638,9 @@ export interface VuuRpcMenuError {
647
638
  vpId: string;
648
639
  }
649
640
 
650
- /**
651
- * Note VuuRpcEditCellRequest gets success response of type VuuRpcMenuSuccess, with
652
- * rpcName "VP_EDIT_CELL_RPC"
653
- * with action of type "VP_EDIT_SUCCESS"
654
- *
655
- * VuuRpcEditCommitRequest gets response of type VuuRpcEditSuccess or VuuRpcEditError
656
- */
657
- // Edit RPC
658
- export declare type VuuRpcEditRequest =
659
- | VuuRpcEditCellRequest
660
- | VuuRpcEditAddRowRequest
661
- | VuuRpcEditDeleteRowRequest
662
- | VuuRpcEditUpdateRowRequest
663
- | VuuRpcEditCommitRequest;
664
-
665
- export declare type VuuRpcEditResponse = VuuRpcEditSuccess | VuuRpcEditError;
666
- export interface VuuRpcEditSuccess {
667
- action: unknown;
668
- type: "VP_EDIT_RPC_RESPONSE";
669
- rpcName: "VP_EDIT_SUBMIT_FORM_RPC";
670
- vpId: string;
671
- }
672
- export interface VuuRpcEditError {
673
- error: string;
674
- rpcName: string;
675
- type: "VP_EDIT_RPC_REJECT";
676
- vpId: string;
677
- }
678
-
679
- export interface VuuRpcEditCellRequest {
680
- rowKey: string;
681
- type: "VP_EDIT_CELL_RPC";
682
- field: string;
683
- value: VuuRowDataItemType;
684
- vpId: string;
685
- }
686
- export interface VuuRpcEditUpdateRowRequest {
687
- rowKey: string;
688
- type: "VP_EDIT_ROW_RPC";
689
- row: VuuDataRow;
690
- vpId: string;
691
- }
692
-
693
641
  export declare type VuuDataRowDto = { [key: string]: VuuRowDataItemType };
694
- export interface VuuRpcEditAddRowRequest {
695
- rowKey: string;
696
- type: "VP_EDIT_ADD_ROW_RPC";
697
- data: VuuDataRowDto;
698
- vpId: string;
699
- }
700
- export interface VuuRpcEditDeleteRowRequest {
701
- rowKey: string;
702
- type: "VP_EDIT_DELETE_ROW_RPC";
703
- vpId: string;
704
- }
705
- export interface VuuRpcEditCommitRequest {
706
- type: "VP_EDIT_SUBMIT_FORM_RPC";
707
- vpId: string;
708
- }
709
-
710
- export declare type VuuRpcEditAction = {
711
- error?: string;
712
- type: "VP_EDIT_SUCCESS";
713
- };
714
642
 
715
- export declare type VuuRpcAction =
716
- | VuuRpcViewportAction
717
- | VuuRpcMenuAction
718
- | VuuRpcEditAction;
643
+ export declare type VuuRpcAction = VuuRpcViewportAction | VuuRpcMenuAction;
719
644
 
720
645
  export declare type VuuRpcViewportAction = {
721
646
  key?: string;
@@ -727,8 +652,7 @@ export declare type VuuRpcMenuAction =
727
652
  | OpenDialogAction
728
653
  | CloseDialogAction
729
654
  | NoAction
730
- | ShowNotificationAction
731
- | VuuRpcEditAction;
655
+ | ShowNotificationAction;
732
656
 
733
657
  // prettier-ignore
734
658
  export declare type VuuColumnDataType = "int" | "long" | "double" | "string" | "char" | "boolean" | "epochtimestamp";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "0.13.93",
3
+ "version": "0.13.95-alpha.2",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {},