@vuu-ui/vuu-protocol-types 0.13.27 → 0.13.29
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 +4 -33
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -257,7 +257,6 @@ export declare type ServerMessageBody =
|
|
|
257
257
|
| VuuRpcMenuSuccess
|
|
258
258
|
| VuuRpcMenuError
|
|
259
259
|
| VuuRpcServiceResponse
|
|
260
|
-
| VuuRpcViewportResponse
|
|
261
260
|
| VuuViewportVisualLinksResponse
|
|
262
261
|
| ServerToClientOpenTreeNodeSuccess
|
|
263
262
|
| ServerToClientCloseTreeNodeSuccess
|
|
@@ -339,19 +338,14 @@ export declare type ClientMessageBody =
|
|
|
339
338
|
| VuuCreateVisualLink
|
|
340
339
|
| VuuRemoveVisualLink
|
|
341
340
|
| VuuRpcMenuRequest
|
|
342
|
-
| VuuRpcViewportRequest
|
|
343
341
|
| VuuRpcRequest;
|
|
344
342
|
|
|
345
343
|
/**
|
|
346
344
|
* RPC type messages
|
|
347
345
|
*
|
|
348
|
-
* Vuu supports
|
|
346
|
+
* Vuu supports two types of RPC message
|
|
349
347
|
*
|
|
350
|
-
*
|
|
351
|
-
* This is a 'standalone' RPC call unrelated to any particular viewport. The only example
|
|
352
|
-
* right now is the typeahead service
|
|
353
|
-
*
|
|
354
|
-
* 2) Viewport RPC
|
|
348
|
+
* 2) VuuRpcServiceRequest
|
|
355
349
|
*
|
|
356
350
|
* There are no generic messages in this category, they will tend to be specific to a
|
|
357
351
|
* business module. Examples found in the Vuu project include rpcNames "createBasket",
|
|
@@ -362,7 +356,7 @@ export declare type ClientMessageBody =
|
|
|
362
356
|
* - "VP_BULK_EDIT_COLUMN_CELLS_RPC"
|
|
363
357
|
* These are not yet impelmented in the Vuu server and liable to change
|
|
364
358
|
*
|
|
365
|
-
* 3)
|
|
359
|
+
* 3) VuuRpcMenuRequest
|
|
366
360
|
*
|
|
367
361
|
* These are RPC calls submitted when user clicks a menu item from the menu structure
|
|
368
362
|
* defined on the server (see VIEW_PORT_MENUS_RESP above). There are 4 categories of
|
|
@@ -396,13 +390,11 @@ export declare type RpcContext =
|
|
|
396
390
|
|
|
397
391
|
export declare type VuuRpcRequest =
|
|
398
392
|
| VuuRpcServiceRequest
|
|
399
|
-
| VuuRpcViewportRequest
|
|
400
393
|
| VuuRpcMenuRequest
|
|
401
394
|
| VuuRpcEditRequest;
|
|
402
395
|
|
|
403
396
|
export declare type VuuRpcResponse =
|
|
404
397
|
| VuuRpcServiceResponse
|
|
405
|
-
| VuuRpcViewportResponse
|
|
406
398
|
| VuuRpcMenuResponse
|
|
407
399
|
| VuuRpcEditResponse;
|
|
408
400
|
|
|
@@ -410,7 +402,7 @@ export declare type VuuRpcServiceRequest<T extends RpcContext = RpcContext> = {
|
|
|
410
402
|
context: T;
|
|
411
403
|
type: "RPC_REQUEST";
|
|
412
404
|
params: Record<string, string>;
|
|
413
|
-
rpcName: TypeAheadMethod;
|
|
405
|
+
rpcName: TypeAheadMethod | string;
|
|
414
406
|
};
|
|
415
407
|
|
|
416
408
|
export declare type RpcResultSuccess = {
|
|
@@ -439,27 +431,6 @@ export interface VuuViewportRpcTypeaheadRequest extends VuuRpcServiceRequest {
|
|
|
439
431
|
};
|
|
440
432
|
}
|
|
441
433
|
|
|
442
|
-
export declare type RpcNamedParams = {
|
|
443
|
-
[key: string]: VuuRowDataItemType | VuuTable | string[];
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
// ViewportRPC
|
|
447
|
-
export interface VuuRpcViewportRequest {
|
|
448
|
-
type: "VIEW_PORT_RPC_CALL";
|
|
449
|
-
rpcName: string;
|
|
450
|
-
namedParams: RpcNamedParams;
|
|
451
|
-
params: unknown[];
|
|
452
|
-
vpId: string;
|
|
453
|
-
}
|
|
454
|
-
export interface VuuRpcViewportResponse {
|
|
455
|
-
action: VuuRpcViewportAction;
|
|
456
|
-
type: "VIEW_PORT_RPC_RESPONSE";
|
|
457
|
-
method: string;
|
|
458
|
-
namedParams: { [key: string]: VuuRowDataItemType | VuuTable };
|
|
459
|
-
params: string[];
|
|
460
|
-
vpId: string;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
434
|
// MenuRPC
|
|
464
435
|
export declare type VuuRpcMenuRequest =
|
|
465
436
|
| ClientToServerMenuRowRPC
|