cmd-control-client-lib 3.0.203 → 3.0.205
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnumQueryBackendSubAction, ExclusiveOR } from "../@types";
|
|
2
2
|
import { channelIdType, IMayHaveChannelId, usrKeyType } from "./channel";
|
|
3
3
|
import { ACTION } from "./command/action";
|
|
4
4
|
import { baseParamsType } from "./command/baseparams";
|
|
@@ -7,6 +7,22 @@ export interface IBackEndPayload {
|
|
|
7
7
|
type: any;
|
|
8
8
|
data: any;
|
|
9
9
|
}
|
|
10
|
+
export declare type TChatData = {
|
|
11
|
+
chatId: number;
|
|
12
|
+
clientId: string;
|
|
13
|
+
server: string;
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
};
|
|
17
|
+
export declare type TGuestData = {
|
|
18
|
+
guestBalance?: number;
|
|
19
|
+
bundleGifts?: TGiftQuantity[];
|
|
20
|
+
};
|
|
21
|
+
export declare type TGiftQuantity = {
|
|
22
|
+
id: number;
|
|
23
|
+
quantity: number;
|
|
24
|
+
};
|
|
25
|
+
export declare type TQueryBackendResponsePayload = ExclusiveOR<TChatData, TGuestData>;
|
|
10
26
|
/**
|
|
11
27
|
* payload for transport to backend and from backend to client
|
|
12
28
|
*/
|
|
@@ -19,11 +35,9 @@ declare type TSubActionParams = {
|
|
|
19
35
|
/**
|
|
20
36
|
* common command for take a backend action
|
|
21
37
|
*/
|
|
22
|
-
export declare class CMDP_QUERYBACKEND implements ICOMMAND
|
|
38
|
+
export declare class CMDP_QUERYBACKEND implements ICOMMAND {
|
|
23
39
|
action: ACTION;
|
|
24
40
|
params: TSubActionParams & baseParamsType & channelIdType;
|
|
25
|
-
/** if jwt-session, any json-payload for transport to backend */
|
|
26
|
-
payload?: JSONString<any>;
|
|
27
41
|
}
|
|
28
42
|
/**
|
|
29
43
|
* response CMDP_QUERYBACKEND
|
|
@@ -33,7 +47,7 @@ export declare class CMDP_QUERYBACKEND_RESPONSE extends CMDP_QUERYBACKEND implem
|
|
|
33
47
|
commands: ICOMMAND[];
|
|
34
48
|
values: IKeyMaybeValue;
|
|
35
49
|
/** if jwt-session, any json-payload for transport to to client */
|
|
36
|
-
payload?:
|
|
50
|
+
payload?: TQueryBackendResponsePayload;
|
|
37
51
|
}
|
|
38
52
|
/**
|
|
39
53
|
* the update commando from backend over B2B-connection to client for channel
|
|
@@ -8,18 +8,21 @@ export declare enum EnumStreamQuality {
|
|
|
8
8
|
BAD = "BAD"
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Update
|
|
12
|
-
* Server inform you about the state of
|
|
11
|
+
* Update incoming stream state.
|
|
12
|
+
* Server inform you about the state of incoming video audio stream.
|
|
13
13
|
*/
|
|
14
14
|
export declare class CMDC_STREAMSTATE implements ICOMMAND {
|
|
15
15
|
action: ACTION;
|
|
16
16
|
params: {
|
|
17
|
-
|
|
17
|
+
startTime?: string;
|
|
18
|
+
bandWith?: string;
|
|
18
19
|
quality?: EnumStreamQuality;
|
|
19
20
|
videoWidth?: string;
|
|
20
|
-
|
|
21
|
+
videoHeight?: string;
|
|
21
22
|
videoFps?: string;
|
|
22
23
|
hasAudio?: EnumBooleanStringifiedExtended;
|
|
23
24
|
audioMuted?: EnumBooleanStringifiedExtended;
|
|
25
|
+
bandwith?: string;
|
|
26
|
+
videoHeigth?: string;
|
|
24
27
|
};
|
|
25
28
|
}
|