cmd-control-client-lib 3.0.126 → 3.0.131

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.
@@ -162,7 +162,7 @@ export declare type getChannelsParamsType = {
162
162
  groupInfo?: EnumBooleanStringifiedExtended;
163
163
  /** search for contact-name, default empty */
164
164
  contactSearch?: string;
165
- sort: EnumSortOrder;
165
+ sort?: EnumSortOrder;
166
166
  /** filter channels without incoming messages, default any */
167
167
  filterEmptyIn?: EnumChannelFilterValues;
168
168
  /** filter channels without outgoing messages, default any */
@@ -233,7 +233,7 @@ export declare type getHistoryParamsType = IMayHaveChannelId & IMayHaveSearchAft
233
233
  /** number of messages, max & default is 100 */
234
234
  limit?: string;
235
235
  /** sort by sent, default is DESC */
236
- sort: EnumSortOrder;
236
+ sort?: EnumSortOrder;
237
237
  keys?: EnumBooleanStringifiedExtended;
238
238
  /** filter for msgType. comaseparated */
239
239
  filterMessageType?: EnumMessageType | string;
@@ -33,7 +33,7 @@ export interface IChanelInfoV extends IKeyMaybeValue {
33
33
  /** json-encoded string. discount information about video chat discount, readonly */
34
34
  discount?: JSONString<any>;
35
35
  /** the user follew me (mirrored regularCustomer), readonly */
36
- followMe: EnumBooleanStringified;
36
+ followMe?: EnumBooleanStringified;
37
37
  }
38
38
  /**
39
39
  * channel note
@@ -81,7 +81,7 @@ export declare class CMDP_GETCHANNELINFO_RESPONSE extends CMDP_GETCHANNELINFO im
81
81
  */
82
82
  export declare class CMDP_SETCHANNELINFO implements ICOMMAND, IBACKENDPAYLOAD {
83
83
  action: ACTION;
84
- params: baseParamsType & channelIdType & IChanelInfoV & IChannelNote;
84
+ params: baseParamsType & channelIdType & IChannelNote;
85
85
  /** the backend info for the channel */
86
86
  payload?: unknown;
87
87
  }
@@ -152,5 +152,6 @@ export declare enum ACTION {
152
152
  CMDP_SGETSEDCARDPICTURES = "CMDP_SGETSEDCARDPICTURES",
153
153
  CMDC_SEDCARDPICTURE = "CMDC_SEDCARDPICTURE",
154
154
  CMDP_CSTATUS = "CMDP_CSTATUS",
155
- CMDP_CINIT = "CMDP_CINIT"
155
+ CMDP_CINIT = "CMDP_CINIT",
156
+ CMDP_SMSGREACTION = "CMDP_SMSGREACTION"
156
157
  }
@@ -1,5 +1,4 @@
1
1
  import { EnumBooleanStringified } from "../../@types/enum-boolean-stringified";
2
- import { ComaSeparatedValues } from "../sessionstate";
3
2
  export declare enum SupportedLanguage {
4
3
  DE = "de",
5
4
  EN = "en",
@@ -15,7 +14,6 @@ export declare enum EnumFormatValues {
15
14
  PLAIN = "plain"
16
15
  }
17
16
  export declare type baseParamsType = {
18
- [key: string]: string | ComaSeparatedValues<string>;
19
17
  /** your app instance id, internal */
20
18
  _iid?: string;
21
19
  /** your app type */
@@ -30,7 +30,7 @@ export interface ICOMMAND {
30
30
  /**
31
31
  * command parameters
32
32
  */
33
- params: IKeyMaybeValue;
33
+ params: any;
34
34
  }
35
35
  /**
36
36
  * result object is the status of CMDP_XXXX_RESPONSE
@@ -38,6 +38,8 @@ export declare class CMDP_INIT_RESPONSE extends CMDP_INIT implements IRESPONSE,
38
38
  versionUpdateUrl?: string;
39
39
  /** where to send message media */
40
40
  uploadMediaUrl?: string;
41
+ speedTestUrl?: string;
42
+ uploadFeedbackUrl?: string;
41
43
  translations?: JSONString<InitialTranslations>;
42
44
  gifts?: JSONString<IGift[]>;
43
45
  emojiList?: JSONString<IEmoji[]>;
@@ -43,7 +43,7 @@ export declare class CMDP_SUPSERTTICKETSHOW implements ICOMMAND {
43
43
  action: ACTION;
44
44
  params: baseParamsType & ticketShow;
45
45
  }
46
- export declare class CMDP_SUPSERTTICKETSHOW_REPONSE extends CMDP_SUPSERTTICKETSHOW implements IRESPONSE {
46
+ export declare class CMDP_SUPSERTTICKETSHOW_RESPONSE extends CMDP_SUPSERTTICKETSHOW implements IRESPONSE {
47
47
  result: RESULT;
48
48
  commands: CMDC_CTICKETSHOW[];
49
49
  values: IKeyMaybeValue;
@@ -54,7 +54,7 @@ export declare class CMDP_SDELETETICKETSHOW implements ICOMMAND {
54
54
  showId?: string;
55
55
  };
56
56
  }
57
- export declare class CMDP_SDELETETICKETSHOW_REPONSE extends CMDP_SDELETETICKETSHOW implements IRESPONSE {
57
+ export declare class CMDP_SDELETETICKETSHOW_RESPONSE extends CMDP_SDELETETICKETSHOW implements IRESPONSE {
58
58
  result: RESULT;
59
59
  commands: ICOMMAND[];
60
60
  values: IKeyMaybeValue;
@@ -31,7 +31,7 @@ export declare type otherLoginParamsType = {
31
31
  /** B2B: user key. Obligatory, If you want to create end-user-session and if not set already in webtoken. max 36 symbols */
32
32
  usrKey?: string;
33
33
  /** this is session with messenger functions, default is "0" */
34
- msn: EnumBooleanDigitized;
34
+ msn?: EnumBooleanDigitized;
35
35
  };
36
36
  /** login union type */
37
37
  export declare type loginParamType = loginWithWebtokenType | loginWithUserNameType | foreignSIDType;
@@ -33,7 +33,7 @@ export declare class CMDP_SMEDIAGETPRICES implements ICOMMAND {
33
33
  /**
34
34
  * Response command for CMDP_SMEDIAGETPRICES
35
35
  */
36
- export declare class CMDP_SGETPRICESMEDIA_PRESPONSE extends CMDP_SMEDIAGETPRICES implements IRESPONSE, IBACKENDPAYLOAD {
36
+ export declare class CMDP_SGETPRICESMEDIA_RESPONSE extends CMDP_SMEDIAGETPRICES implements IRESPONSE, IBACKENDPAYLOAD {
37
37
  result: RESULT;
38
38
  commands: ICOMMAND[];
39
39
  values: IKeyMaybeValue;
@@ -53,7 +53,7 @@ export declare class CMDP_SMEDIAOFFERCREATE implements ICOMMAND {
53
53
  /**
54
54
  * B2B Response command for CMDP_SMEDIAOFFERCREATE
55
55
  */
56
- export declare class CMDP_SMEDIAOFFERCREATE_PRESPONSE extends CMDP_SMEDIAOFFERCREATE implements IRESPONSE {
56
+ export declare class CMDP_SMEDIAOFFERCREATE_RESPONSE extends CMDP_SMEDIAOFFERCREATE implements IRESPONSE {
57
57
  result: RESULT;
58
58
  commands: ICOMMAND[];
59
59
  values: IKeyMaybeValue;
@@ -26,6 +26,7 @@ export declare class CMDC_CMEDIA implements ICOMMAND {
26
26
  action: ACTION;
27
27
  params: MediaFile & MayHaveChannelId & {
28
28
  linkState?: ChannelMediaLinkState;
29
+ linkDate?: string;
29
30
  direction?: UploadedMediaDirection;
30
31
  } & MediaPrice;
31
32
  }
@@ -51,12 +52,13 @@ export declare class CMDP_SGETUPLOADEDMEDIA implements ICOMMAND {
51
52
  action: ACTION;
52
53
  params: baseParamsType & MayHaveChannelId & {
53
54
  mediaType?: EnumMediaType;
54
- skip?: number;
55
- limit?: number;
55
+ skip?: string;
56
+ limit?: string;
56
57
  direction?: UploadedMediaDirection;
57
58
  linkState?: ChannelMediaLinkState;
58
59
  /** get only mediaMd5, channelId, linkState, linkDate, direction and cut off all mediaXXX fields, default is false */
59
60
  dropMediaFields?: EnumBooleanStringifiedExtended;
61
+ countOnly?: EnumBooleanStringifiedExtended;
60
62
  };
61
63
  }
62
64
  /**
@@ -16,7 +16,7 @@ export declare class CMDP_SOPENMEDIAOFFER implements ICOMMAND {
16
16
  /**
17
17
  * Response command for CMDP_SOPENMEDIAOFFER.
18
18
  */
19
- export declare class CMDP_SOPENMEDIAOFFER_PRESPONSE extends CMDP_SOPENMEDIAOFFER implements IRESPONSE {
19
+ export declare class CMDP_SOPENMEDIAOFFER_RESPONSE extends CMDP_SOPENMEDIAOFFER implements IRESPONSE {
20
20
  result: RESULT;
21
21
  commands: ICOMMAND[];
22
22
  values: IKeyMaybeValue;
@@ -33,7 +33,7 @@ export declare class CMDP_SCLOSEMEDIAOFFER implements ICOMMAND {
33
33
  /**
34
34
  * Response command for CMDP_SCLOSEMEDIAOFFER.
35
35
  */
36
- export declare class CMDP_SCLOSEMEDIAOFFER_PRESPONSE extends CMDP_SCLOSEMEDIAOFFER implements IRESPONSE {
36
+ export declare class CMDP_SCLOSEMEDIAOFFER_RESPONSE extends CMDP_SCLOSEMEDIAOFFER implements IRESPONSE {
37
37
  result: RESULT;
38
38
  commands: ICOMMAND[];
39
39
  values: IKeyMaybeValue;
@@ -49,7 +49,7 @@ export declare class CMDP_SGETTICKETS implements ICOMMAND {
49
49
  /**
50
50
  * Response command for CMDP_SGETTICKETS.
51
51
  */
52
- export declare class CMDP_SGETTICKETS_PRESPONSE extends CMDP_SGETTICKETS implements IRESPONSE {
52
+ export declare class CMDP_SGETTICKETS_RESPONSE extends CMDP_SGETTICKETS implements IRESPONSE {
53
53
  result: RESULT;
54
54
  /** the ticketinfos per channel */
55
55
  commands: CMDC_CMEDIA[];
@@ -65,7 +65,7 @@ export declare class CMDP_SCLOSETICKET implements ICOMMAND {
65
65
  /**
66
66
  * Response command for CMDP_SCLOSETICKED.
67
67
  */
68
- export declare class CMDP_SCLOSETICKET_PRESPONSE extends CMDP_SCLOSETICKET implements IRESPONSE {
68
+ export declare class CMDP_SCLOSETICKET_RESPONSE extends CMDP_SCLOSETICKET implements IRESPONSE {
69
69
  result: RESULT;
70
70
  commands: ICOMMAND[];
71
71
  values: IKeyMaybeValue;
@@ -17,7 +17,7 @@ export declare class CMDP_SMEDIAPURCHASE implements ICOMMAND {
17
17
  /**
18
18
  * Response command for CMDP_SMEDIAPURCHASE.
19
19
  */
20
- export declare class CMDP_SMEDIAPURCHASE_PRESPONSE extends CMDP_SMEDIAPURCHASE implements IRESPONSE {
20
+ export declare class CMDP_SMEDIAPURCHASE_RESPONSE extends CMDP_SMEDIAPURCHASE implements IRESPONSE {
21
21
  result: RESULT;
22
22
  commands: ICOMMAND[];
23
23
  values: IKeyMaybeValue;
@@ -58,6 +58,7 @@ export declare type Chargeable = {
58
58
  };
59
59
  /** message params */
60
60
  export declare type MessageParams = IMayHaveChannelId & {
61
+ messageId?: string;
61
62
  /** your uniq key for message */
62
63
  messageKey?: SystemMessageKey | string;
63
64
  /** chat id */
@@ -202,3 +203,25 @@ export declare class CMDP_MSGDELETE_RESPONSE extends CMDP_MSGDELETE implements I
202
203
  /** unused */
203
204
  values: IKeyMaybeValue;
204
205
  }
206
+ /**
207
+ * reaction to message. s. IReaction and CMDP_SINIT.values.reactions
208
+ * CMDC_CMSG will be sent by backend to update the message
209
+ */
210
+ export declare class CMDP_SMSGREACTION implements ICOMMAND {
211
+ action: ACTION;
212
+ params: baseParamsType & channelIdType & MessageId & {
213
+ text?: string;
214
+ /** if the text is empty or not set, the code musst be set to one of CMDP_SINIT.values.reactions */
215
+ code?: string;
216
+ };
217
+ }
218
+ /**
219
+ * Response for CMDP_MSGDELETE
220
+ */
221
+ export declare class CMDP_SMSGREACTION_RESPONSE extends CMDP_SMSGREACTION implements IRESPONSE {
222
+ result: RESULT;
223
+ /** unused */
224
+ commands: ICOMMAND[];
225
+ /** unused */
226
+ values: IKeyMaybeValue;
227
+ }
@@ -41,9 +41,7 @@ export declare enum InfoWizard {
41
41
  /**
42
42
  * @remarks String having <T>'s separated by ','
43
43
  */
44
- export interface ComaSeparatedValues<T> extends String {
45
- readonly _valueType: T;
46
- }
44
+ export declare type ComaSeparatedValues<T extends string> = T | string;
47
45
  export interface SessionState extends IKeyMaybeValue {
48
46
  /** the session mnumber */
49
47
  sessionID: string;
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.126",
4
+ "version": "3.0.131",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },