@vuu-ui/vuu-protocol-types 0.6.5 → 0.6.6
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.
- package/index.d.ts +30 -106
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// prettier-ignore
|
|
2
2
|
export declare type VuuColumnDataType = "int" | "long" | "double" | "string" | "char" | "boolean";
|
|
3
3
|
export declare type VuuMenuContext = "cell" | "row" | "grid" | "selected-rows";
|
|
4
|
-
export interface VuuMenuItem {
|
|
5
|
-
context: VuuMenuContext;
|
|
6
|
-
filter: string;
|
|
7
|
-
name: string;
|
|
8
|
-
rpcName: string;
|
|
9
|
-
}
|
|
10
4
|
export declare type VuuTable = {
|
|
11
5
|
table: string;
|
|
12
6
|
module: string;
|
|
@@ -28,9 +22,16 @@ export declare type VuuSort = {
|
|
|
28
22
|
export declare type VuuFilter = {
|
|
29
23
|
filter: string;
|
|
30
24
|
};
|
|
25
|
+
export interface VuuMenuItem {
|
|
26
|
+
context: VuuMenuContext;
|
|
27
|
+
filter: string;
|
|
28
|
+
name: string;
|
|
29
|
+
rpcName: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
31
32
|
export interface VuuMenu {
|
|
32
33
|
name: string;
|
|
33
|
-
menus: VuuMenuItem[];
|
|
34
|
+
menus: (VuuMenuItem | VuuMenu)[];
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export type VuuRowDataItemType = string | number | boolean;
|
|
@@ -283,7 +284,7 @@ export interface ClientToServerCreateViewPort {
|
|
|
283
284
|
table: VuuTable;
|
|
284
285
|
}
|
|
285
286
|
export interface ClientToServerChangeViewPort {
|
|
286
|
-
aggregations:
|
|
287
|
+
aggregations: VuuAggregation[];
|
|
287
288
|
columns: VuuColumns;
|
|
288
289
|
filterSpec: VuuFilter;
|
|
289
290
|
groupBy: string[];
|
|
@@ -364,27 +365,36 @@ export declare type VuuRpcRequest =
|
|
|
364
365
|
| ClientToServerGetUniqueValuesStartingWith;
|
|
365
366
|
// add remaining Rpc calls here
|
|
366
367
|
|
|
367
|
-
export interface
|
|
368
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
368
|
+
export interface ClientToServerMenuBaseRPC {
|
|
369
369
|
rpcName: string;
|
|
370
370
|
vpId: string;
|
|
371
371
|
}
|
|
372
|
-
export interface
|
|
372
|
+
export interface ClientToServerMenuSelectRPC extends ClientToServerMenuBaseRPC {
|
|
373
|
+
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
374
|
+
}
|
|
375
|
+
export interface ClientToServerMenuTableRPC extends ClientToServerMenuBaseRPC {
|
|
373
376
|
type: "VIEW_PORT_MENU_TABLE_RPC";
|
|
374
|
-
rpcName: string;
|
|
375
|
-
vpId: string;
|
|
376
377
|
}
|
|
377
|
-
|
|
378
|
+
|
|
379
|
+
export type VuuRowRecord = { [key: string]: VuuRowDataItemType };
|
|
380
|
+
export interface ClientToServerMenuRowRPC extends ClientToServerMenuBaseRPC {
|
|
378
381
|
type: "VIEW_PORT_MENU_ROW_RPC";
|
|
379
|
-
|
|
380
|
-
|
|
382
|
+
rowKey: string;
|
|
383
|
+
row: VuuRowRecord;
|
|
381
384
|
}
|
|
382
|
-
export interface ClientToServerMenuCellRPC {
|
|
385
|
+
export interface ClientToServerMenuCellRPC extends ClientToServerMenuBaseRPC {
|
|
386
|
+
field: string;
|
|
387
|
+
rowKey: string;
|
|
388
|
+
value: VuuColumnDataType;
|
|
383
389
|
type: "VIEW_PORT_MENU_CELL_RPC";
|
|
384
|
-
rpcName: string;
|
|
385
|
-
vpId: string;
|
|
386
390
|
}
|
|
387
391
|
|
|
392
|
+
export type ClientToServerMenuRPC =
|
|
393
|
+
| ClientToServerMenuRowRPC
|
|
394
|
+
| ClientToServerMenuCellRPC
|
|
395
|
+
| ClientToServerMenuSelectRPC
|
|
396
|
+
| ClientToServerMenuTableRPC;
|
|
397
|
+
|
|
388
398
|
export type ClientToServerMenuRPCType =
|
|
389
399
|
| "VIEW_PORT_MENUS_SELECT_RPC"
|
|
390
400
|
| "VIEW_PORT_MENU_TABLE_RPC"
|
|
@@ -418,8 +428,7 @@ export declare type ClientToServerBody =
|
|
|
418
428
|
| ClientToServerCreateLink
|
|
419
429
|
| ClientToServerRemoveLink
|
|
420
430
|
| ClientToServerMenuRPC
|
|
421
|
-
| VuuRpcRequest
|
|
422
|
-
| VuuMenuRpcRequest;
|
|
431
|
+
| VuuRpcRequest;
|
|
423
432
|
export interface ClientToServerMessage<
|
|
424
433
|
TBody extends ClientToServerBody = ClientToServerBody
|
|
425
434
|
> {
|
|
@@ -441,88 +450,3 @@ export interface NoAction {
|
|
|
441
450
|
}
|
|
442
451
|
|
|
443
452
|
export declare type MenuRpcAction = OpenDialogAction | NoAction;
|
|
444
|
-
export interface VuuAddRowsToOrdersSelectMenuRpcRequest {
|
|
445
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
446
|
-
rpcName: "ADD_ROWS_TO_ORDERS";
|
|
447
|
-
vpId: string;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export interface VuuAddRowsToOrdersSelectMenuRpcResponse {
|
|
451
|
-
action: OpenDialogAction;
|
|
452
|
-
rpcName: "ADD_ROWS_TO_ORDERS";
|
|
453
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
454
|
-
vpId: string;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
export interface VuuTestTableMenuRpcRequest {
|
|
458
|
-
type: "VIEW_PORT_MENU_TABLE_RPC";
|
|
459
|
-
rpcName: "TEST_TABLE";
|
|
460
|
-
vpId: string;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export interface VuuTestTableMenuRpcResponse {
|
|
464
|
-
action: NoAction;
|
|
465
|
-
rpcName: "TEST_TABLE";
|
|
466
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
467
|
-
vpId: string;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export interface VuuTestSelectMenuRpcRequest {
|
|
471
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
472
|
-
rpcName: "TEST_SELECT";
|
|
473
|
-
vpId: string;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
export interface VuuTestSelectMenuRpcResponse {
|
|
477
|
-
action: OpenDialogAction;
|
|
478
|
-
rpcName: "TEST_SELECT";
|
|
479
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
480
|
-
vpId: string;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
// Should really be a table option rather than select option
|
|
484
|
-
export interface VuuTickSpeedSelectMenuRpcRequest {
|
|
485
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
486
|
-
rpcName: "SET_SPEED_MED" | "SET_SPEED_SLOW" | "SET_SPEED_FAST";
|
|
487
|
-
vpId: string;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
export interface VuuTickSpeedSelectMenuRpcResponse {
|
|
491
|
-
action: NoAction;
|
|
492
|
-
rpcName: "SET_SPEED_MED" | "SET_SPEED_SLOW" | "SET_SPEED_FAST";
|
|
493
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
494
|
-
vpId: string;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
export interface VuuTestRowMenuRpcRequest {
|
|
498
|
-
type: "VIEW_PORT_MENU_ROW_RPC";
|
|
499
|
-
rpcName: "TEST_ROW";
|
|
500
|
-
vpId: string;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export interface VuuTestRowMenuRpcResponse {
|
|
504
|
-
action: NoAction;
|
|
505
|
-
rpcName: "TEST_ROW";
|
|
506
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
507
|
-
vpId: string;
|
|
508
|
-
}
|
|
509
|
-
export interface VuuTestCellMenuRpcRequest {
|
|
510
|
-
type: "VIEW_PORT_MENU_CELL_RPC";
|
|
511
|
-
rpcName: "TEST_CELL";
|
|
512
|
-
vpId: string;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export interface VuuTestCellMenuRpcResponse {
|
|
516
|
-
action: NoAction;
|
|
517
|
-
rpcName: "TEST_CELL";
|
|
518
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
519
|
-
vpId: string;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
export declare type VuuMenuRpcRequest =
|
|
523
|
-
| VuuAddRowsToOrdersSelectMenuRpcRequest
|
|
524
|
-
| VuuTestTableMenuRpcRequest
|
|
525
|
-
| VuuTestSelectMenuRpcRequest
|
|
526
|
-
| VuuTestRowMenuRpcRequest
|
|
527
|
-
| VuuTestCellMenuRpcRequest
|
|
528
|
-
| VuuTickSpeedSelectMenuRpcRequest;
|