@vuu-ui/vuu-protocol-types 0.8.12 → 0.8.13
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 +48 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ export interface ServerToClientMenus {
|
|
|
132
132
|
menu: VuuMenu;
|
|
133
133
|
vpId: string;
|
|
134
134
|
}
|
|
135
|
+
|
|
136
|
+
//TODO not all menu messages are "ADD_ROWS_TO_ORDERS"
|
|
135
137
|
export interface ServerToClientMenu {
|
|
136
138
|
rpcName: "ADD_ROWS_TO_ORDERS";
|
|
137
139
|
type: "VIEW_PORT_MENU_RESP";
|
|
@@ -142,6 +144,13 @@ export interface ServerToClientMenu {
|
|
|
142
144
|
vpId: string;
|
|
143
145
|
}
|
|
144
146
|
|
|
147
|
+
export interface ServerToClientMenuReject {
|
|
148
|
+
error: string;
|
|
149
|
+
rpcName: string;
|
|
150
|
+
type: "VIEW_PORT_MENU_REJ";
|
|
151
|
+
vpId: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
145
154
|
export interface ServerToClientMenuSessionTableAction
|
|
146
155
|
extends ServerToClientMenu {
|
|
147
156
|
action: {
|
|
@@ -202,6 +211,20 @@ export interface ServerToClientRPC {
|
|
|
202
211
|
method: string;
|
|
203
212
|
result: any;
|
|
204
213
|
}
|
|
214
|
+
|
|
215
|
+
// TODO flesh out as we know more
|
|
216
|
+
export interface ServerToClientViewportRpcResponse {
|
|
217
|
+
action: {
|
|
218
|
+
msg?: string;
|
|
219
|
+
type: "VP_RCP_FAILURE" | "VP_RCP_SUCCESS";
|
|
220
|
+
};
|
|
221
|
+
type: "VIEW_PORT_RPC_REPONSE";
|
|
222
|
+
method: string;
|
|
223
|
+
namedParams: { [key: string]: VuuRowDataItemType };
|
|
224
|
+
params: string[];
|
|
225
|
+
vpId: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
205
228
|
export interface ServerToClientEditRPC {
|
|
206
229
|
action: unknown;
|
|
207
230
|
type: "VP_EDIT_RPC_RESPONSE";
|
|
@@ -257,8 +280,10 @@ export declare type ServerToClientBody =
|
|
|
257
280
|
| ServerToClientTableRows
|
|
258
281
|
| ServerToClientMenus
|
|
259
282
|
| ServerToClientMenu
|
|
283
|
+
| ServerToClientMenuReject
|
|
260
284
|
| ServerToClientMenuSessionTableAction
|
|
261
285
|
| ServerToClientRPC
|
|
286
|
+
| ServerToClientViewportRpcResponse
|
|
262
287
|
| ServerToClientViewPortVisualLinks
|
|
263
288
|
| ServerToClientOpenTreeNodeSuccess
|
|
264
289
|
| ServerToClientCloseTreeNodeSuccess
|
|
@@ -380,6 +405,15 @@ export declare type TypeAheadMethod =
|
|
|
380
405
|
| "getUniqueFieldValuesStartingWith";
|
|
381
406
|
|
|
382
407
|
export declare type RpcMethod = TypeAheadMethod | "addRowsFromInstruments";
|
|
408
|
+
|
|
409
|
+
export interface ClientToServerViewportRpcCall {
|
|
410
|
+
type: "VIEW_PORT_RPC_CALL";
|
|
411
|
+
rpcName: string;
|
|
412
|
+
namedParams: { [key: string]: VuuRowDataItemType };
|
|
413
|
+
params: string[];
|
|
414
|
+
vpId: string;
|
|
415
|
+
}
|
|
416
|
+
|
|
383
417
|
export interface ClientToServerGetUniqueValues {
|
|
384
418
|
type: "RPC_CALL";
|
|
385
419
|
method: "getUniqueFieldValues";
|
|
@@ -433,12 +467,25 @@ export interface ClientToServerEditRowRpc {
|
|
|
433
467
|
type: "VP_EDIT_ROW_RPC";
|
|
434
468
|
row: VuuDataRow;
|
|
435
469
|
}
|
|
470
|
+
|
|
471
|
+
export type VuuDataRowDto = { [key: string]: VuuRowDataItemType };
|
|
472
|
+
export interface ClientToServerAddRowRpc {
|
|
473
|
+
rowKey: string;
|
|
474
|
+
type: "VP_EDIT_ADD_ROW_RPC";
|
|
475
|
+
data: VuuDataRowDto;
|
|
476
|
+
}
|
|
477
|
+
export interface ClientToServerDeleteRowRpc {
|
|
478
|
+
rowKey: string;
|
|
479
|
+
type: "VP_EDIT_DELETE_ROW_RPC";
|
|
480
|
+
}
|
|
436
481
|
export interface ClientToServerSubmitFormRpc {
|
|
437
482
|
type: "VP_EDIT_SUBMIT_FORM_RPC";
|
|
438
483
|
}
|
|
439
484
|
|
|
440
485
|
export type ClientToServerEditRpc =
|
|
441
486
|
| ClientToServerEditCellRpc
|
|
487
|
+
| ClientToServerAddRowRpc
|
|
488
|
+
| ClientToServerDeleteRowRpc
|
|
442
489
|
| ClientToServerEditRowRpc
|
|
443
490
|
| ClientToServerSubmitFormRpc;
|
|
444
491
|
|
|
@@ -478,6 +525,7 @@ export declare type ClientToServerBody =
|
|
|
478
525
|
| ClientToServerCreateLink
|
|
479
526
|
| ClientToServerRemoveLink
|
|
480
527
|
| ClientToServerMenuRPC
|
|
528
|
+
| ClientToServerViewportRpcCall
|
|
481
529
|
| VuuRpcRequest;
|
|
482
530
|
export interface ClientToServerMessage<
|
|
483
531
|
TBody extends ClientToServerBody = ClientToServerBody
|