@vuu-ui/vuu-protocol-types 0.8.62 → 0.8.63

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 +11 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -133,14 +133,18 @@ export interface ServerToClientMenus {
133
133
  vpId: string;
134
134
  }
135
135
 
136
- //TODO not all menu messages are "ADD_ROWS_TO_ORDERS"
136
+ export interface OpenDialogAction {
137
+ type: "OPEN_DIALOG_ACTION";
138
+ table: VuuTable;
139
+ }
140
+ export interface NoAction {
141
+ type: "NO_ACTION";
142
+ }
143
+
137
144
  export interface ServerToClientMenu {
138
- rpcName: "ADD_ROWS_TO_ORDERS";
145
+ rpcName: string;
139
146
  type: "VIEW_PORT_MENU_RESP";
140
- action: null | {
141
- table?: VuuTable;
142
- type: "OPEN_DIALOG_ACTION";
143
- };
147
+ action: OpenDialogAction | NoAction;
144
148
  vpId: string;
145
149
  }
146
150
 
@@ -153,10 +157,7 @@ export interface ServerToClientMenuReject {
153
157
 
154
158
  export interface ServerToClientMenuSessionTableAction
155
159
  extends ServerToClientMenu {
156
- action: {
157
- table: VuuTable;
158
- type: "OPEN_DIALOG_ACTION";
159
- };
160
+ action: OpenDialogAction;
160
161
  }
161
162
 
162
163
  export interface ServerToClientViewPortVisualLinks {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "0.8.62",
3
+ "version": "0.8.63",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {},