@vuu-ui/vuu-protocol-types 0.5.0 → 0.5.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 +40 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type ColumnDataType =
1
+ export declare type VuuColumnDataType =
2
2
  | "int"
3
3
  | "long"
4
4
  | "double"
@@ -86,12 +86,21 @@ export interface ServerToClientTableList {
86
86
  type: "TABLE_LIST_RESP";
87
87
  tables: VuuTable[];
88
88
  }
89
+
90
+ export type VuuTableList = Pick<ServerToClientTableList, "tables">;
91
+
89
92
  export interface ServerToClientTableMeta {
90
93
  columns: VuuColumns;
91
- dataTypes: ColumnDataType[];
94
+ dataTypes: VuuColumnDataType[];
92
95
  type: "TABLE_META_RESP";
93
96
  table: VuuTable;
94
97
  }
98
+
99
+ export type VuuTableMeta = Pick<
100
+ ServerToClientTableMeta,
101
+ "columns" | "dataTypes" | "table"
102
+ >;
103
+
95
104
  export interface ServerToClientMenus {
96
105
  type: "VIEW_PORT_MENUS_RESP";
97
106
  menu: VuuMenu;
@@ -337,6 +346,34 @@ export interface ClientToServerMenuSelectRPC {
337
346
  rpcName: string;
338
347
  vpId: string;
339
348
  }
349
+ export interface ClientToServerMenuTableRPC {
350
+ type: "VIEW_PORT_MENU_TABLE_RPC";
351
+ rpcName: string;
352
+ vpId: string;
353
+ }
354
+ export interface ClientToServerMenuRowRPC {
355
+ type: "VIEW_PORT_MENU_ROW_RPC";
356
+ rpcName: string;
357
+ vpId: string;
358
+ }
359
+ export interface ClientToServerMenuCellRPC {
360
+ type: "VIEW_PORT_MENU_CELL_RPC";
361
+ rpcName: string;
362
+ vpId: string;
363
+ }
364
+
365
+ export type ClientToServerMenuRPCType =
366
+ | "VIEW_PORT_MENUS_SELECT_RPC"
367
+ | "VIEW_PORT_MENU_TABLE_RPC"
368
+ | "VIEW_PORT_MENU_ROW_RPC"
369
+ | "VIEW_PORT_MENU_CELL_RPC";
370
+
371
+ export type ClientToServerMenuRPC =
372
+ | ClientToServerMenuSelectRPC
373
+ | ClientToServerMenuTableRPC
374
+ | ClientToServerMenuRowRPC
375
+ | ClientToServerMenuCellRPC;
376
+
340
377
  export declare type VuuRpcMessagesOut = ClientToServerMenuSelectRPC;
341
378
  export declare type ClientToServerBody =
342
379
  | ClientToServerAuth
@@ -357,7 +394,7 @@ export declare type ClientToServerBody =
357
394
  | ClientToServerCloseTreeNode
358
395
  | ClientToServerCreateLink
359
396
  | ClientToServerRemoveLink
360
- | ClientToServerMenuSelectRPC
397
+ | ClientToServerMenuRPC
361
398
  | ClientToServerRpcCall;
362
399
  export interface ClientToServerMessage<
363
400
  TBody extends ClientToServerBody = ClientToServerBody
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "scripts": {
5
5
  "build": "node ../../scripts/run-build.mjs"
6
6
  },