cmd-control-client-lib 3.0.204 → 3.0.206

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 { JSONString, EnumQueryBackendSubAction } from "../@types";
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
  */
@@ -17,13 +33,11 @@ declare type TSubActionParams = {
17
33
  subaction: EnumQueryBackendSubAction;
18
34
  };
19
35
  /**
20
- * common command for take a backend action
36
+ * common command for take a backend action
21
37
  */
22
- export declare class CMDP_QUERYBACKEND implements ICOMMAND, IBACKENDPAYLOAD {
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?: JSONString<any>;
50
+ payload?: TQueryBackendResponsePayload;
37
51
  }
38
52
  /**
39
53
  * the update commando from backend over B2B-connection to client for channel
@@ -420,6 +420,8 @@ export declare type channelSummaryInfo = {
420
420
  vip: string;
421
421
  /** number of online channels */
422
422
  online: string;
423
+ /** number of active channels */
424
+ active: string;
423
425
  };
424
426
  /**
425
427
  * channel summary
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cmd-control-client-lib",
3
3
  "description": "Cmd-Client-Library",
4
- "version": "3.0.204",
4
+ "version": "3.0.206",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },