cmd-control-client-lib 3.0.65 → 3.0.69

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.
@@ -22,8 +22,9 @@ export declare type channelIdType = {
22
22
  };
23
23
  /**
24
24
  * Type that may or may not have `channelId` field
25
+ * ONLY channel ID, not other fields!
25
26
  */
26
- export interface IMayHaveChannelId extends IKeyMaybeValue {
27
+ export interface IMayHaveChannelId {
27
28
  channelId?: string;
28
29
  }
29
30
  export declare type usrKeyType = {
@@ -318,24 +318,25 @@ export declare enum QueryUserKeyEnum {
318
318
  SINGLE = "single",
319
319
  SINGLEC2C = "singleC2C"
320
320
  }
321
+ export interface IQueryUserParams extends IKeyMaybeValue {
322
+ queryId: string;
323
+ key: QueryUserKeyEnum;
324
+ caption: string;
325
+ text: string;
326
+ btn0: string;
327
+ btn1: string;
328
+ timeout: string;
329
+ sound: string;
330
+ btnDefault: EnumBooleanDigitized;
331
+ btndef: "btn0" | "btn1";
332
+ }
321
333
  export declare class CMDC_QUERYUSER implements ICOMMAND {
322
334
  action: ACTION;
323
- params: IMayHaveChannelId & {
324
- queryId: string;
325
- key: QueryUserKeyEnum;
326
- caption: string;
327
- text: string;
328
- btn0: string;
329
- btn1: string;
330
- timeout: string;
331
- sound: string;
332
- btnDefault: EnumBooleanDigitized;
333
- btndef: "btn0" | "btn1";
334
- };
335
+ params: IMayHaveChannelId & IQueryUserParams;
335
336
  }
336
337
  export declare class CMDP_QUERYUSER implements ICOMMAND {
337
338
  action: ACTION;
338
- params: baseParamsType & chatIdType & {
339
+ params: baseParamsType & chatIdType & IMayHaveChannelId & {
339
340
  key: QueryUserKeyEnum;
340
341
  button: EnumBooleanDigitized;
341
342
  queryId: string;
@@ -2,18 +2,19 @@ import { JSONString } from "../../@types";
2
2
  import { ICOMMAND, ACTION, IRESPONSE, RESULT, IKeyMaybeValue } from "../../cmd-protocol";
3
3
  import { baseParamsType, SupportedLanguage } from "../command/baseparams";
4
4
  export declare enum MSettingNameEnum {
5
- ConversionChat = 0,
6
- HeatmapEnabled = 1,
7
- LiveChatPreview = 2,
8
- LovenseToyRequest = 3,
9
- MessengerPrice = 4,
10
- VideoChatPrice = 5,
11
- PrivateChatPrice = 6,
12
- SoftChatEnabled = 7,
13
- VoyeurChatEnabled = 8,
14
- VoyeurChatPrivateAudio = 9,
15
- FreeChatEnabled = 10,
16
- PartyChatEnabled = 11
5
+ CONVERSION_CHAT = "ConversionChat",
6
+ HEATMAP_ENABLED = "HeatmapEnabled",
7
+ HEATMAP_DESCRIPTION = "HeatmapDescription",
8
+ LIVE_CHAT_PREVIEW = "LiveChatPreview",
9
+ LOVENSE_TOY_REQUEST = "LovenseToyRequest",
10
+ MESSENGER_PRICE = "MessengerPrice",
11
+ VIDEO_CHAT_PRICE = "VideoChatPrice",
12
+ PRIVATE_CHAT_PRICE = "PrivateChatPrice",
13
+ SOFT_CHAT_ENABLED = "SoftChatEnabled",
14
+ VOYEUR_CHAT_ENABLED = "VoyeurChatEnabled",
15
+ VOYEUR_CHAT_PRIVATE_AUDIO = "VoyeurChatPrivateAudio",
16
+ FREE_CHAT_ENABLED = "FreeChatEnabled",
17
+ PARTY_CHAT_ENABLED = "PartyChatEnabled"
17
18
  }
18
19
  export declare enum MSettingValueTypeEnum {
19
20
  FLOAT = "float",
@@ -38,11 +39,11 @@ export declare class MSettingBool extends MSetting {
38
39
  value: boolean;
39
40
  }
40
41
  export declare enum ToyRequestEnum {
41
- notSet = 0,
42
- notAllowed = 1,
43
- requested = 2,
44
- accepted = 3,
45
- rejected = 4
42
+ NOT_SET = "notSet",
43
+ NOT_ALLOWED = "notAllowed",
44
+ REQUESTED = "requested",
45
+ ACCEPTED = "accepted",
46
+ REJECTED = "rejected"
46
47
  }
47
48
  export declare class MSettingEnumToyRequest {
48
49
  type: MSettingValueTypeEnum.ENUM;
@@ -61,19 +62,19 @@ export declare class MSettingMultiLangString extends MSetting {
61
62
  }
62
63
  /** if one of feilds is missing, so the Settig is not applicable to this account */
63
64
  export declare class MSettings {
64
- ConversionChat?: MSettingBool;
65
- HeatmapEnabled?: MSettingBool;
66
- HeatmapDescription?: MSettingMultiLangString;
67
- LiveChatPreview?: MSettingBool;
68
- LovenseToyRequest?: MSettingEnumToyRequest;
69
- MessengerPrice?: MSettingFloat;
70
- VideoChatPrice?: MSettingFloat;
71
- PrivateChatPrice?: MSettingFloat;
72
- SoftChatEnabled?: MSettingBool;
73
- VoyeurChatEnabled?: MSettingBool;
74
- VoyeurChatPrivateAudio?: MSettingBool;
75
- FreeChatEnabled?: MSettingBool;
76
- PartyChatEnabled?: MSettingBool;
65
+ [MSettingNameEnum.CONVERSION_CHAT]?: MSettingBool;
66
+ [MSettingNameEnum.HEATMAP_ENABLED]?: MSettingBool;
67
+ [MSettingNameEnum.HEATMAP_DESCRIPTION]?: MSettingMultiLangString;
68
+ [MSettingNameEnum.LIVE_CHAT_PREVIEW]?: MSettingBool;
69
+ [MSettingNameEnum.LOVENSE_TOY_REQUEST]?: MSettingEnumToyRequest;
70
+ [MSettingNameEnum.MESSENGER_PRICE]?: MSettingFloat;
71
+ [MSettingNameEnum.VIDEO_CHAT_PRICE]?: MSettingFloat;
72
+ [MSettingNameEnum.PRIVATE_CHAT_PRICE]?: MSettingFloat;
73
+ [MSettingNameEnum.SOFT_CHAT_ENABLED]?: MSettingBool;
74
+ [MSettingNameEnum.VOYEUR_CHAT_ENABLED]?: MSettingBool;
75
+ [MSettingNameEnum.VOYEUR_CHAT_PRIVATE_AUDIO]?: MSettingBool;
76
+ [MSettingNameEnum.FREE_CHAT_ENABLED]?: MSettingBool;
77
+ [MSettingNameEnum.PARTY_CHAT_ENABLED]?: MSettingBool;
77
78
  }
78
79
  /**
79
80
  * Get command
@@ -309,5 +309,7 @@ export declare enum SystemMessageKey {
309
309
  h_video_cancel = "h_video_cancel",
310
310
  h_video_delayed = "h_video_delayed",
311
311
  h_video_reconnect = "h_video_reconnect",
312
- h_session_singlec2c_query_sent = "h_session_singlec2c_query_sent"
312
+ h_session_singlec2c_query_sent = "h_session_singlec2c_query_sent",
313
+ h_session_singlec2c_query_timeout = "h_session_singlec2c_query_timeout",
314
+ h_session_singlec2c_query_declined = "h_session_singlec2c_query_declined"
313
315
  }
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.65",
4
+ "version": "3.0.69",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },