cmd-control-client-lib 3.0.165 → 3.0.168
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.
- package/dist/cmd-control-client-lib.js +1 -1
- package/dist/cmd-control-client-lib.js.map +1 -1
- package/dist/protocol/channel.d.ts +5 -1
- package/dist/protocol/channelinfo.d.ts +10 -0
- package/dist/protocol/live/live-commands.d.ts +1 -0
- package/dist/protocol/mediaupload.d.ts +3 -2
- package/dist/protocol/onlinestate.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
|
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 &
|
|
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 & {
|
|
@@ -2,7 +2,7 @@ import { EnumBooleanStringified } from "../@types/enum-boolean-stringified";
|
|
|
2
2
|
import { ACTION } from "./command/action";
|
|
3
3
|
import { baseParamsType } from "./command/baseparams";
|
|
4
4
|
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
5
|
-
import { IMayHaveChannelId, partnerIdKeyType } from "./channel";
|
|
5
|
+
import { channelIdType, IMayHaveChannelId, partnerIdKeyType } from "./channel";
|
|
6
6
|
/** online state of session */
|
|
7
7
|
export declare type OnlineStateType = {
|
|
8
8
|
partnerId: string;
|
|
@@ -38,7 +38,7 @@ export declare type OnlineStateType = {
|
|
|
38
38
|
*/
|
|
39
39
|
export declare class CMDC_ONLINESTATE implements ICOMMAND {
|
|
40
40
|
action: ACTION;
|
|
41
|
-
params: OnlineStateType;
|
|
41
|
+
params: OnlineStateType & channelIdType;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Query online state of contact
|