cmd-control-client-lib 3.0.164 → 3.0.167

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.
@@ -7,6 +7,7 @@ import { baseParamsType } from "./command/baseparams";
7
7
  import { ICOMMAND, IKeyMaybeValue, IKeyValue, IRESPONSE, RESULT, StringBasedType } from "./command/icommand";
8
8
  import { CMDC_CMSG, EnumMessageType } from "./message";
9
9
  import { IB2BUserInfo, IB2BUserInfoVOne } from "./b2b/b2buserinfo";
10
+ import { EnumBadge } from "./channelinfo";
10
11
  /**
11
12
  * channelId has Format "usrId.usrKey-partnerId.partnerKey"
12
13
  * userPoolId - business id in messenger system, number\{10,0\}
@@ -147,7 +148,8 @@ export declare type channelIdSelector = {
147
148
  selectPinned?: EnumBooleanStringified;
148
149
  selectVip?: EnumBooleanStringified;
149
150
  selectGroupId?: ComaSeparatedValues<string> | string;
150
- /** depricated */
151
+ selectBadges?: ComaSeparatedValues<EnumBadge> | string;
152
+ /** deprecated */
151
153
  groupId?: ComaSeparatedValues<string> | string;
152
154
  };
153
155
  export declare type getChannelsParamsType = {
@@ -208,6 +210,8 @@ export declare type getChannelsParamsType = {
208
210
  filterCanPurchaseMedia?: EnumChannelFilterValues;
209
211
  /** filter by group id, comaseparated */
210
212
  filterGroupId?: string;
213
+ /** filter by badges */
214
+ selectBadges?: ComaSeparatedValues<EnumBadge> | string;
211
215
  /**filterActive*/
212
216
  filterActive?: EnumChannelFilterValues;
213
217
  };
@@ -5,6 +5,13 @@ import { baseParamsType } from "./command/baseparams";
5
5
  import { ICOMMAND, IKeyMaybeValue, IKeyValue, IRESPONSE, RESULT } from "./command/icommand";
6
6
  import { channelIdType, EnumProductId } from "./channel";
7
7
  import { IB2BUserInfo, IB2BUserInfoVOne } from "./b2b/b2buserinfo";
8
+ import { ComaSeparatedValues } from "./sessionstate";
9
+ export declare enum EnumBadge {
10
+ MSG = "MSG",
11
+ TOY = "TOY",
12
+ MEDIA = "MEDIA",
13
+ GIFT = "GIFT"
14
+ }
8
15
  /**
9
16
  * product code
10
17
  */
@@ -23,6 +30,7 @@ export interface IChannelInfoBackEndPayload {
23
30
  */
24
31
  export interface IChanelInfo extends IKeyMaybeValue {
25
32
  canBeArchived?: EnumBooleanStringified;
33
+ canBeBanned?: EnumBooleanStringified;
26
34
  }
27
35
  /**
28
36
  * User channel information and abilities
@@ -34,6 +42,8 @@ export interface IChanelInfoV extends IKeyMaybeValue {
34
42
  discount?: JSONString<any>;
35
43
  /** the user follew me (mirrored regularCustomer), readonly */
36
44
  followMe?: EnumBooleanStringified;
45
+ /** Customer value badges */
46
+ badges?: ComaSeparatedValues<EnumBadge>;
37
47
  }
38
48
  /**
39
49
  * channel note
@@ -14,7 +14,7 @@ export declare enum UploadStep {
14
14
  }
15
15
  /** internal use only, may be changed without announce*/
16
16
  export declare type UploadServiceReadOnlyParams = {
17
- step: UploadStep;
17
+ step?: UploadStep;
18
18
  fileformat?: EnumMediaType;
19
19
  md5?: string;
20
20
  transactionID?: string;
@@ -40,12 +40,13 @@ export declare type UploadServiceReadOnlyParams = {
40
40
  */
41
41
  export declare class CMDP_SUPLOADMEDIA implements ICOMMAND {
42
42
  action: ACTION;
43
- params: baseParamsType & channelIdSelector & MessageParams & UploadServiceReadOnlyParams & MediaOffer;
43
+ params: baseParamsType & channelIdSelector & MessageParams & MediaOffer;
44
44
  }
45
45
  /**
46
46
  * Response for CMDP_SUPLOADMEDIA
47
47
  */
48
48
  export declare class CMDP_SUPLOADMEDIA_RESPONSE extends CMDP_SUPLOADMEDIA implements IRESPONSE, IBACKENDPAYLOAD {
49
+ params: baseParamsType & channelIdSelector & MessageParams & MediaOffer & UploadServiceReadOnlyParams;
49
50
  result: RESULT;
50
51
  commands: ICOMMAND[];
51
52
  values: IKeyMaybeValue & {
@@ -234,7 +234,8 @@ export declare class CMDP_SMSGREACTION_RESPONSE extends CMDP_SMSGREACTION implem
234
234
  */
235
235
  export declare class CMDP_SMSGESTIMATE implements ICOMMAND {
236
236
  action: ACTION;
237
- params: baseParamsType & MediaMd5 & Chargeable & (getChannelsParamsType | channelIdSelector) & {
237
+ params: baseParamsType & (getChannelsParamsType | channelIdSelector) & {
238
+ mediaMd5: string;
238
239
  countOnly?: EnumBooleanStringified;
239
240
  };
240
241
  }
@@ -245,9 +246,12 @@ export declare class CMDP_SMSGESTIMATE_RESPONSE extends CMDP_SMSGESTIMATE implem
245
246
  result: RESULT;
246
247
  commands: ICOMMAND[];
247
248
  values: {
248
- recipientCount: string;
249
- recipientChannels: string;
250
- skippedCount?: string;
251
- skippedChannels?: string;
249
+ channelCount: string;
250
+ canReceiveCount: string;
251
+ canReceiveChannels: string;
252
+ canPurchaseCount: string;
253
+ canPurchaseChannels?: string;
254
+ hasPurchasedCount: string;
255
+ hasPurchasedChannels?: string;
252
256
  };
253
257
  }
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.164",
4
+ "version": "3.0.167",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },