@vuu-ui/vuu-protocol-types 2.1.19-beta.2 → 2.1.19-beta.4

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 +37 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -89,6 +89,7 @@ export interface VuuTableMetaRequest {
89
89
  export interface VuuTableMetaResponse {
90
90
  columns: VuuColumns;
91
91
  dataTypes: VuuColumnDataType[];
92
+ editableColumns: string[];
92
93
  key: string;
93
94
  table: VuuTable;
94
95
  type: "TABLE_META_RESP";
@@ -551,7 +552,8 @@ export declare type VuuRpcServiceRequest<T extends RpcContext = RpcContext> = {
551
552
  };
552
553
 
553
554
  export declare type AddRowParams = {
554
- key: string;
555
+ /** Omitted for remote datasources — the server generates the key. */
556
+ key?: string;
555
557
  data: Record<string, VuuRowDataItemType>;
556
558
  };
557
559
  export declare type AddRowRpcServiceRequest = {
@@ -574,7 +576,7 @@ export declare type EditCellRpcServiceRequest = {
574
576
  };
575
577
 
576
578
  export declare type BeginEditSessionParams = {
577
- editSessionMode?: "all-rows" | "selected-rows";
579
+ editSessionMode?: "inline-all-rows" | "all-rows" | "selected-rows" | "empty-session-table";
578
580
  };
579
581
  export declare type BeginEditSessionRpcServiceRequest = {
580
582
  context: ViewportRpcContext;
@@ -593,6 +595,37 @@ export declare type EndEditSessionRpcServiceRequest = {
593
595
  params: EndEditSessionParams;
594
596
  rpcName: "endEditSession";
595
597
  };
598
+ export declare type UndoRowChangeParams = {
599
+ key: string;
600
+ };
601
+ export declare type UndoRowChangeRpcServiceRequest = {
602
+ context: ViewportRpcContext;
603
+ type: "RPC_REQUEST";
604
+ params: UndoRowChangeParams;
605
+ rpcName: "undoRowChange";
606
+ };
607
+ export declare type DeleteSelectedRowsParams = {
608
+ mode?: "soft" | "hard";
609
+ };
610
+ export declare type DeleteSelectedRowsRpcServiceRequest = {
611
+ context: ViewportRpcContext;
612
+ type: "RPC_REQUEST";
613
+ params: DeleteSelectedRowsParams;
614
+ rpcName: "deleteSelectedRows";
615
+ };
616
+ /**
617
+ * copyOption mirrors EditSessionModeAlias from vuu-data-types.
618
+ * Using string literals here to avoid a cross-package circular import.
619
+ */
620
+ export declare type CreateSessionTableParams = {
621
+ copyOption: "All" | "Empty" | "Selected";
622
+ };
623
+ export declare type CreateSessionTableRpcServiceRequest = {
624
+ context: ViewportRpcContext;
625
+ type: "RPC_REQUEST";
626
+ params: CreateSessionTableParams;
627
+ rpcName: "createSessionTable";
628
+ };
596
629
 
597
630
  export declare type AddRowRpcRequest = {
598
631
  context: ViewportRpcContext;
@@ -713,7 +746,8 @@ export declare type VuuColumnDataType =
713
746
  | "string"
714
747
  | "char"
715
748
  | "boolean"
716
- | "epochtimestamp";
749
+ | "epochtimestamp"
750
+ | "epochtimestampnano";
717
751
 
718
752
  export declare type VuuMenuContext = "cell" | "row" | "grid" | "selected-rows";
719
753
  export declare type VuuTable = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "2.1.19-beta.2",
3
+ "version": "2.1.19-beta.4",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {},