@vuu-ui/vuu-protocol-types 0.6.4 → 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 +34 -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;
|
|
@@ -80,9 +81,13 @@ export declare type VuuLinkDescriptor = {
|
|
|
80
81
|
*
|
|
81
82
|
* The Label is added by client code, if user has assigned a custom
|
|
82
83
|
* Title to component bound to viewport.
|
|
84
|
+
* The parentClientVpId is also added by client. This is needed as the
|
|
85
|
+
* client vpId persists across sessions, whereas the server vpId does
|
|
86
|
+
* not.
|
|
83
87
|
*/
|
|
84
88
|
export type LinkDescriptorWithLabel = VuuLinkDescriptor & {
|
|
85
89
|
label?: string;
|
|
90
|
+
parentClientVpId: string;
|
|
86
91
|
};
|
|
87
92
|
|
|
88
93
|
export declare type VuuColumns = string[];
|
|
@@ -279,7 +284,7 @@ export interface ClientToServerCreateViewPort {
|
|
|
279
284
|
table: VuuTable;
|
|
280
285
|
}
|
|
281
286
|
export interface ClientToServerChangeViewPort {
|
|
282
|
-
aggregations:
|
|
287
|
+
aggregations: VuuAggregation[];
|
|
283
288
|
columns: VuuColumns;
|
|
284
289
|
filterSpec: VuuFilter;
|
|
285
290
|
groupBy: string[];
|
|
@@ -360,27 +365,36 @@ export declare type VuuRpcRequest =
|
|
|
360
365
|
| ClientToServerGetUniqueValuesStartingWith;
|
|
361
366
|
// add remaining Rpc calls here
|
|
362
367
|
|
|
363
|
-
export interface
|
|
364
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
368
|
+
export interface ClientToServerMenuBaseRPC {
|
|
365
369
|
rpcName: string;
|
|
366
370
|
vpId: string;
|
|
367
371
|
}
|
|
368
|
-
export interface
|
|
372
|
+
export interface ClientToServerMenuSelectRPC extends ClientToServerMenuBaseRPC {
|
|
373
|
+
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
374
|
+
}
|
|
375
|
+
export interface ClientToServerMenuTableRPC extends ClientToServerMenuBaseRPC {
|
|
369
376
|
type: "VIEW_PORT_MENU_TABLE_RPC";
|
|
370
|
-
rpcName: string;
|
|
371
|
-
vpId: string;
|
|
372
377
|
}
|
|
373
|
-
|
|
378
|
+
|
|
379
|
+
export type VuuRowRecord = { [key: string]: VuuRowDataItemType };
|
|
380
|
+
export interface ClientToServerMenuRowRPC extends ClientToServerMenuBaseRPC {
|
|
374
381
|
type: "VIEW_PORT_MENU_ROW_RPC";
|
|
375
|
-
|
|
376
|
-
|
|
382
|
+
rowKey: string;
|
|
383
|
+
row: VuuRowRecord;
|
|
377
384
|
}
|
|
378
|
-
export interface ClientToServerMenuCellRPC {
|
|
385
|
+
export interface ClientToServerMenuCellRPC extends ClientToServerMenuBaseRPC {
|
|
386
|
+
field: string;
|
|
387
|
+
rowKey: string;
|
|
388
|
+
value: VuuColumnDataType;
|
|
379
389
|
type: "VIEW_PORT_MENU_CELL_RPC";
|
|
380
|
-
rpcName: string;
|
|
381
|
-
vpId: string;
|
|
382
390
|
}
|
|
383
391
|
|
|
392
|
+
export type ClientToServerMenuRPC =
|
|
393
|
+
| ClientToServerMenuRowRPC
|
|
394
|
+
| ClientToServerMenuCellRPC
|
|
395
|
+
| ClientToServerMenuSelectRPC
|
|
396
|
+
| ClientToServerMenuTableRPC;
|
|
397
|
+
|
|
384
398
|
export type ClientToServerMenuRPCType =
|
|
385
399
|
| "VIEW_PORT_MENUS_SELECT_RPC"
|
|
386
400
|
| "VIEW_PORT_MENU_TABLE_RPC"
|
|
@@ -414,8 +428,7 @@ export declare type ClientToServerBody =
|
|
|
414
428
|
| ClientToServerCreateLink
|
|
415
429
|
| ClientToServerRemoveLink
|
|
416
430
|
| ClientToServerMenuRPC
|
|
417
|
-
| VuuRpcRequest
|
|
418
|
-
| VuuMenuRpcRequest;
|
|
431
|
+
| VuuRpcRequest;
|
|
419
432
|
export interface ClientToServerMessage<
|
|
420
433
|
TBody extends ClientToServerBody = ClientToServerBody
|
|
421
434
|
> {
|
|
@@ -437,88 +450,3 @@ export interface NoAction {
|
|
|
437
450
|
}
|
|
438
451
|
|
|
439
452
|
export declare type MenuRpcAction = OpenDialogAction | NoAction;
|
|
440
|
-
export interface VuuAddRowsToOrdersSelectMenuRpcRequest {
|
|
441
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
442
|
-
rpcName: "ADD_ROWS_TO_ORDERS";
|
|
443
|
-
vpId: string;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface VuuAddRowsToOrdersSelectMenuRpcResponse {
|
|
447
|
-
action: OpenDialogAction;
|
|
448
|
-
rpcName: "ADD_ROWS_TO_ORDERS";
|
|
449
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
450
|
-
vpId: string;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export interface VuuTestTableMenuRpcRequest {
|
|
454
|
-
type: "VIEW_PORT_MENU_TABLE_RPC";
|
|
455
|
-
rpcName: "TEST_TABLE";
|
|
456
|
-
vpId: string;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export interface VuuTestTableMenuRpcResponse {
|
|
460
|
-
action: NoAction;
|
|
461
|
-
rpcName: "TEST_TABLE";
|
|
462
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
463
|
-
vpId: string;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
export interface VuuTestSelectMenuRpcRequest {
|
|
467
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
468
|
-
rpcName: "TEST_SELECT";
|
|
469
|
-
vpId: string;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
export interface VuuTestSelectMenuRpcResponse {
|
|
473
|
-
action: OpenDialogAction;
|
|
474
|
-
rpcName: "TEST_SELECT";
|
|
475
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
476
|
-
vpId: string;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
// Should really be a table option rather than select option
|
|
480
|
-
export interface VuuTickSpeedSelectMenuRpcRequest {
|
|
481
|
-
type: "VIEW_PORT_MENUS_SELECT_RPC";
|
|
482
|
-
rpcName: "SET_SPEED_MED" | "SET_SPEED_SLOW" | "SET_SPEED_FAST";
|
|
483
|
-
vpId: string;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
export interface VuuTickSpeedSelectMenuRpcResponse {
|
|
487
|
-
action: NoAction;
|
|
488
|
-
rpcName: "SET_SPEED_MED" | "SET_SPEED_SLOW" | "SET_SPEED_FAST";
|
|
489
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
490
|
-
vpId: string;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
export interface VuuTestRowMenuRpcRequest {
|
|
494
|
-
type: "VIEW_PORT_MENU_ROW_RPC";
|
|
495
|
-
rpcName: "TEST_ROW";
|
|
496
|
-
vpId: string;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export interface VuuTestRowMenuRpcResponse {
|
|
500
|
-
action: NoAction;
|
|
501
|
-
rpcName: "TEST_ROW";
|
|
502
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
503
|
-
vpId: string;
|
|
504
|
-
}
|
|
505
|
-
export interface VuuTestCellMenuRpcRequest {
|
|
506
|
-
type: "VIEW_PORT_MENU_CELL_RPC";
|
|
507
|
-
rpcName: "TEST_CELL";
|
|
508
|
-
vpId: string;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export interface VuuTestCellMenuRpcResponse {
|
|
512
|
-
action: NoAction;
|
|
513
|
-
rpcName: "TEST_CELL";
|
|
514
|
-
type: "VIEW_PORT_MENU_RESP";
|
|
515
|
-
vpId: string;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export declare type VuuMenuRpcRequest =
|
|
519
|
-
| VuuAddRowsToOrdersSelectMenuRpcRequest
|
|
520
|
-
| VuuTestTableMenuRpcRequest
|
|
521
|
-
| VuuTestSelectMenuRpcRequest
|
|
522
|
-
| VuuTestRowMenuRpcRequest
|
|
523
|
-
| VuuTestCellMenuRpcRequest
|
|
524
|
-
| VuuTickSpeedSelectMenuRpcRequest;
|