cmd-control-client-lib 3.0.154 → 3.0.157

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.
@@ -45,4 +45,5 @@ export * from "./protocol/single-c2c";
45
45
  export * from "./protocol/status";
46
46
  export * from "./protocol/exit-code";
47
47
  export * from "./protocol/clivechat";
48
+ export * from "./protocol/feedback";
48
49
  export { SupportedLanguage, CmdClientAgent, EnumFormatValues, baseParamsType } from "./protocol/command/baseparams";
@@ -0,0 +1,21 @@
1
+ import { ComaSeparatedValues } from "./sessionstate";
2
+ declare enum EnumFeedbackKey {
3
+ HARASSMENT_THREATS = "harassment-threats",
4
+ UNAUTHORIZED_CONTENT = "unauthorized-content",
5
+ HACKED = "hacked",
6
+ TECH = "tech",
7
+ OTHER = "other"
8
+ }
9
+ export declare type Feedback = {
10
+ login: string;
11
+ name: string;
12
+ email: string;
13
+ product?: string;
14
+ version?: string;
15
+ shortDescription?: string;
16
+ longDescription?: string;
17
+ channelID?: string;
18
+ reasons?: ComaSeparatedValues<EnumFeedbackKey> | string;
19
+ details?: string;
20
+ };
21
+ export {};
@@ -1,4 +1,4 @@
1
- import { EnumCurrency, ICurrencyDescription, IEmoji, JSONString } from "../@types";
1
+ import { EnumCurrency, ICurrencyDescription, IEmoji, IReaction, JSONString } from "../@types";
2
2
  import { IGift } from "./gifts";
3
3
  import { IBACKENDPAYLOAD } from "./backend";
4
4
  import { ACTION } from "./command/action";
@@ -44,6 +44,7 @@ export declare class CMDP_INIT_RESPONSE extends CMDP_INIT implements IRESPONSE,
44
44
  gifts?: JSONString<IGift[]>;
45
45
  emojiList?: JSONString<IEmoji[]>;
46
46
  currency?: JSONString<InitialCurrencies>;
47
+ reactions?: JSONString<IReaction[]>;
47
48
  };
48
49
  /** backendpayload */
49
50
  payload?: IInitBackendPayload;
@@ -74,6 +74,8 @@ export declare type MessageParams = IMayHaveChannelId & {
74
74
  link?: string;
75
75
  clientData?: string;
76
76
  isBulk?: EnumBooleanStringified;
77
+ /** reaktion */
78
+ reaction?: string;
77
79
  };
78
80
  export declare type MediaMd5 = {
79
81
  mediaMd5?: string;
@@ -213,6 +215,8 @@ export declare class CMDP_SMSGREACTION implements ICOMMAND {
213
215
  text?: string;
214
216
  /** if the text is empty or not set, the code musst be set to one of CMDP_SINIT.values.reactions */
215
217
  code?: string;
218
+ /** reset reaction, if true then text & code are ignored */
219
+ reset?: EnumBooleanStringified;
216
220
  };
217
221
  }
218
222
  /**
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.154",
4
+ "version": "3.0.157",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },