@vuu-ui/vuu-protocol-types 0.7.0-debug → 0.7.1-debug

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 +34 -17
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -110,6 +110,7 @@ export type VuuTableList = Pick<ServerToClientTableList, "tables">;
110
110
  export interface VuuTableMeta {
111
111
  columns: VuuColumns;
112
112
  dataTypes: VuuColumnDataType[];
113
+ key: string;
113
114
  }
114
115
  export interface VuuTableMetaWithTable extends VuuTableMeta {
115
116
  table: VuuTable;
@@ -132,12 +133,21 @@ export interface ServerToClientMenus {
132
133
  export interface ServerToClientMenu {
133
134
  rpcName: "ADD_ROWS_TO_ORDERS";
134
135
  type: "VIEW_PORT_MENU_RESP";
136
+ action: null | {
137
+ table?: VuuTable;
138
+ type: "OPEN_DIALOG_ACTION";
139
+ };
140
+ vpId: string;
141
+ }
142
+
143
+ export interface ServerToClientMenuSessionTableAction
144
+ extends ServerToClientMenu {
135
145
  action: {
136
146
  table: VuuTable;
137
147
  type: "OPEN_DIALOG_ACTION";
138
148
  };
139
- vpId: string;
140
149
  }
150
+
141
151
  export interface ServerToClientViewPortVisualLinks {
142
152
  type: "VP_VISUAL_LINKS_RESP";
143
153
  links: VuuLinkDescriptor[];
@@ -244,6 +254,7 @@ export declare type ServerToClientBody =
244
254
  | ServerToClientTableRows
245
255
  | ServerToClientMenus
246
256
  | ServerToClientMenu
257
+ | ServerToClientMenuSessionTableAction
247
258
  | ServerToClientRPC
248
259
  | ServerToClientViewPortVisualLinks
249
260
  | ServerToClientOpenTreeNodeSuccess
@@ -408,6 +419,26 @@ export interface ClientToServerMenuCellRPC extends ClientToServerMenuBaseRPC {
408
419
  type: "VIEW_PORT_MENU_CELL_RPC";
409
420
  }
410
421
 
422
+ export interface ClientToServerEditCellRpc {
423
+ rowKey: string;
424
+ type: "VP_EDIT_CELL_RPC";
425
+ field: string;
426
+ value: VuuRowDataItemType;
427
+ }
428
+ export interface ClientToServerEditRowRpc {
429
+ rowKey: string;
430
+ type: "VP_EDIT_ROW_RPC";
431
+ row: VuuDataRow;
432
+ }
433
+ export interface ClientToServerSubmitFormRpc {
434
+ type: "VP_EDIT_SUBMIT_FORM_RPC";
435
+ }
436
+
437
+ export type ClientToServerEditRpc =
438
+ | ClientToServerEditCellRpc
439
+ | ClientToServerEditRowRpc
440
+ | ClientToServerSubmitFormRpc;
441
+
411
442
  export type ClientToServerMenuRPC =
412
443
  | ClientToServerMenuRowRPC
413
444
  | ClientToServerMenuCellRPC
@@ -420,13 +451,10 @@ export type ClientToServerMenuRPCType =
420
451
  | "VIEW_PORT_MENU_ROW_RPC"
421
452
  | "VIEW_PORT_MENU_CELL_RPC";
422
453
 
423
- export type ClientToServerMenuRPC =
454
+ export declare type VuuRpcMessagesOut =
424
455
  | ClientToServerMenuSelectRPC
425
- | ClientToServerMenuTableRPC
426
- | ClientToServerMenuRowRPC
427
- | ClientToServerMenuCellRPC;
456
+ | ClientToServerEditCellRpc;
428
457
 
429
- export declare type VuuRpcMessagesOut = ClientToServerMenuSelectRPC;
430
458
  export declare type ClientToServerBody =
431
459
  | ClientToServerAuth
432
460
  | ClientToServerLogin
@@ -460,14 +488,3 @@ export interface ClientToServerMessage<
460
488
  }
461
489
 
462
490
  /** Menu RPC services */
463
- export interface OpenDialogAction {
464
- columns?: VuuColumns;
465
- dataTypes?: VuuColumnDataType[];
466
- type: "OPEN_DIALOG_ACTION";
467
- table: VuuTable;
468
- }
469
- export interface NoAction {
470
- type: "NO_ACTION";
471
- }
472
-
473
- export declare type MenuRpcAction = OpenDialogAction | NoAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "0.7.0-debug",
3
+ "version": "0.7.1-debug",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {},