cmd-control-client-lib 3.0.153 → 3.0.156

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;
@@ -225,3 +227,25 @@ export declare class CMDP_SMSGREACTION_RESPONSE extends CMDP_SMSGREACTION implem
225
227
  /** unused */
226
228
  values: IKeyMaybeValue;
227
229
  }
230
+ /**
231
+ * Estimate sending message. get count of possible recipients
232
+ */
233
+ export declare class CMDP_SMSGESTIMATE implements ICOMMAND {
234
+ action: ACTION;
235
+ params: baseParamsType & MediaMd5 & Chargeable & channelIdSelector & {
236
+ countOnly?: EnumBooleanStringified;
237
+ };
238
+ }
239
+ /**
240
+ * Response for CMDP_SMSGESTIMATE
241
+ */
242
+ export declare class CMDP_SMSGESTIMATE_RESPONSE extends CMDP_SMSGESTIMATE implements IRESPONSE {
243
+ result: RESULT;
244
+ commands: ICOMMAND[];
245
+ values: {
246
+ recipientCount: string;
247
+ recipientChannels: string;
248
+ skippedCount?: string;
249
+ skippedChannels?: string;
250
+ };
251
+ }
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.153",
4
+ "version": "3.0.156",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },