@vuu-ui/vuu-protocol-types 0.13.36 → 0.13.38
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 +43 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -26,6 +26,32 @@ export interface VuuServerMessage<
|
|
|
26
26
|
user: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
export interface ClientToServerAuth {
|
|
30
|
+
type: "AUTH";
|
|
31
|
+
username: string;
|
|
32
|
+
password: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface VuuLoginRequest {
|
|
36
|
+
token: string;
|
|
37
|
+
type: "LOGIN";
|
|
38
|
+
user: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare type VuuLoginResponse =
|
|
42
|
+
| VuuLoginSuccessResponse
|
|
43
|
+
| VuuLoginFailResponse;
|
|
44
|
+
export interface VuuLoginSuccessResponse {
|
|
45
|
+
token: string;
|
|
46
|
+
type: "LOGIN_SUCCESS";
|
|
47
|
+
vuuServerId: string;
|
|
48
|
+
}
|
|
49
|
+
export interface VuuLoginFailResponse {
|
|
50
|
+
errorMsg: string;
|
|
51
|
+
token: string;
|
|
52
|
+
type: "LOGIN_FAIL";
|
|
53
|
+
}
|
|
54
|
+
|
|
29
55
|
/**
|
|
30
56
|
* Metadata messages
|
|
31
57
|
*
|
|
@@ -125,7 +151,10 @@ export interface VuuViewportCreateRequest {
|
|
|
125
151
|
table: VuuTable;
|
|
126
152
|
}
|
|
127
153
|
|
|
128
|
-
export
|
|
154
|
+
export declare type VuuViewportCreateResponse =
|
|
155
|
+
| VuuViewportCreateSuccessResponse
|
|
156
|
+
| VuuViewportCreateFailResponse;
|
|
157
|
+
export interface VuuViewportCreateSuccessResponse {
|
|
129
158
|
aggregations: VuuAggregation[];
|
|
130
159
|
columns: VuuColumns;
|
|
131
160
|
filterSpec: VuuFilter;
|
|
@@ -136,6 +165,17 @@ export interface VuuViewportCreateResponse {
|
|
|
136
165
|
table: string;
|
|
137
166
|
viewPortId: string;
|
|
138
167
|
}
|
|
168
|
+
export interface VuuViewportCreateFailResponse {
|
|
169
|
+
aggregations: VuuAggregation[];
|
|
170
|
+
columns: VuuColumns;
|
|
171
|
+
filterSpec: VuuFilter;
|
|
172
|
+
groupBy: VuuGroupBy;
|
|
173
|
+
range: VuuRange;
|
|
174
|
+
sort: VuuSort;
|
|
175
|
+
type: "CREATE_VP_REJECT";
|
|
176
|
+
table: string;
|
|
177
|
+
viewPortId: string;
|
|
178
|
+
}
|
|
139
179
|
export interface VuuViewportChangeRequest {
|
|
140
180
|
aggregations: VuuAggregation[];
|
|
141
181
|
columns: VuuColumns;
|
|
@@ -242,7 +282,7 @@ export interface ServerToClientTableRows {
|
|
|
242
282
|
}
|
|
243
283
|
export declare type ServerMessageBody =
|
|
244
284
|
| ServerToClientHeartBeat
|
|
245
|
-
|
|
|
285
|
+
| VuuLoginResponse
|
|
246
286
|
| VuuViewportCreateResponse
|
|
247
287
|
| VuuViewportChangeResponse
|
|
248
288
|
| VuuViewportRangeResponse
|
|
@@ -266,16 +306,6 @@ export declare type ServerMessageBody =
|
|
|
266
306
|
| VuuRpcEditSuccess
|
|
267
307
|
| VuuRpcEditSuccess
|
|
268
308
|
| VuuRpcEditError;
|
|
269
|
-
export interface ClientToServerAuth {
|
|
270
|
-
type: "AUTH";
|
|
271
|
-
username: string;
|
|
272
|
-
password: string;
|
|
273
|
-
}
|
|
274
|
-
export interface ClientToServerLogin {
|
|
275
|
-
token: string;
|
|
276
|
-
type: "LOGIN";
|
|
277
|
-
user: string;
|
|
278
|
-
}
|
|
279
309
|
export interface ClientToServerHeartBeat {
|
|
280
310
|
type: "HB_RESP";
|
|
281
311
|
ts: number;
|
|
@@ -320,7 +350,7 @@ export declare type VuuRpcMessagesOut =
|
|
|
320
350
|
|
|
321
351
|
export declare type ClientMessageBody =
|
|
322
352
|
| ClientToServerAuth
|
|
323
|
-
|
|
|
353
|
+
| VuuLoginRequest
|
|
324
354
|
| ClientToServerHeartBeat
|
|
325
355
|
| VuuViewportDisableRequest
|
|
326
356
|
| VuuViewportEnableRequest
|
|
@@ -685,10 +715,6 @@ export interface ServerToClientHeartBeat {
|
|
|
685
715
|
type: "HB";
|
|
686
716
|
ts: number;
|
|
687
717
|
}
|
|
688
|
-
export interface ServerToClientLoginSuccess {
|
|
689
|
-
type: "LOGIN_SUCCESS";
|
|
690
|
-
token: string;
|
|
691
|
-
}
|
|
692
718
|
|
|
693
719
|
export declare type VuuTableList = Pick<VuuTableListResponse, "tables">;
|
|
694
720
|
|