@vuu-ui/vuu-protocol-types 0.13.106 → 0.13.108

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 +11 -12
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8,15 +8,6 @@ export interface VuuUser {
8
8
  name: string;
9
9
  }
10
10
 
11
- export type InvalidSessionReason =
12
- | "Invalid session"
13
- | "User session limit exceeded";
14
- export type InvalidTokenReason = "Invalid token" | "Token has expired";
15
-
16
- export declare type LoginErrorMessage =
17
- | InvalidSessionReason
18
- | InvalidTokenReason;
19
-
20
11
  /**
21
12
  * Vuu Protocol Message Envelope.
22
13
  *
@@ -52,11 +43,17 @@ export interface VuuLoginRequest {
52
43
  type: "LOGIN";
53
44
  }
54
45
 
55
- // There is no LOGIN_FAIL
46
+ export declare type VuuLoginResponse =
47
+ | VuuLoginSuccessResponse
48
+ | VuuLoginFailResponse;
56
49
  export interface VuuLoginSuccessResponse {
57
50
  type: "LOGIN_SUCCESS";
58
51
  vuuServerId: string;
59
52
  }
53
+ export interface VuuLoginFailResponse {
54
+ errorMsg: string;
55
+ type: "LOGIN_FAIL";
56
+ }
60
57
 
61
58
  /**
62
59
  * Metadata messages
@@ -420,7 +417,7 @@ export interface ServerToClientTableRows {
420
417
  }
421
418
  export declare type ServerMessageBody =
422
419
  | ServerToClientHeartBeat
423
- | VuuLoginSuccessResponse
420
+ | VuuLoginResponse
424
421
  | VuuViewportCreateResponse
425
422
  | VuuViewportChangeResponse
426
423
  | VuuViewportRangeResponse
@@ -569,12 +566,14 @@ export declare type RpcResultError = {
569
566
  type: "ERROR_RESULT";
570
567
  errorMessage: string;
571
568
  };
569
+
570
+ export declare type RpcResult = RpcResultSuccess | RpcResultError;
572
571
  export interface VuuRpcServiceResponse {
573
572
  action: unknown;
574
573
  error: null | unknown;
575
574
  rpcName: TypeAheadMethod;
576
575
  type: "RPC_RESPONSE";
577
- result: RpcResultSuccess | RpcResultError;
576
+ result: RpcResult;
578
577
  }
579
578
 
580
579
  export interface VuuViewportRpcTypeaheadRequest extends VuuRpcServiceRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuu-ui/vuu-protocol-types",
3
- "version": "0.13.106",
3
+ "version": "0.13.108",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {},