cmd-control-client-lib 3.0.353 → 3.0.356
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.
|
@@ -5,7 +5,7 @@ import { IBACKENDPAYLOAD } from "./backend";
|
|
|
5
5
|
import { ACTION } from "./command/action";
|
|
6
6
|
import { baseParamsType } from "./command/baseparams";
|
|
7
7
|
import { ICOMMAND, IKeyMaybeValue, IKeyValue, IRESPONSE, RESULT, StringBasedType } from "./command/icommand";
|
|
8
|
-
import { CMDC_CMSG, EnumMediaType, EnumMessageType } from "./message";
|
|
8
|
+
import { CMDC_CMSG, EnumMediaType, EnumMessageDirection, EnumMessageType } from "./message";
|
|
9
9
|
import { IB2BUserInfo, IB2BUserInfoVOne } from "./b2b/b2buserinfo";
|
|
10
10
|
import { EnumBadge } from "./channelinfo";
|
|
11
11
|
import { ChannelMediaLinkState } from "./media";
|
|
@@ -275,6 +275,7 @@ export declare type getHistoryParamsType = IMayHaveChannelId & IMayHaveSearchAft
|
|
|
275
275
|
filterDeleted?: EnumChannelFilterValues;
|
|
276
276
|
filterMediaType?: ComaSeparatedValues<EnumMediaType>;
|
|
277
277
|
filterLinkState?: ComaSeparatedValues<ChannelMediaLinkState>;
|
|
278
|
+
filterDirection?: EnumMessageDirection;
|
|
278
279
|
/** number of messages, max & default is 100 */
|
|
279
280
|
limit?: string;
|
|
280
281
|
/** sort by sent, default is DESC */
|
|
@@ -334,6 +335,20 @@ export declare type channelSeenParamsType = channelIdType & {
|
|
|
334
335
|
/** last seen messageId, by default all messages marked as seen */
|
|
335
336
|
messageId?: string;
|
|
336
337
|
};
|
|
338
|
+
export declare class CMDP_SGETCHANNELMESSAGE implements ICOMMAND {
|
|
339
|
+
action: ACTION;
|
|
340
|
+
params: baseParamsType & {
|
|
341
|
+
channelId: string;
|
|
342
|
+
messageId: string;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
export declare class CMDP_SGETCHANNELMESSAGE_RESPONSE extends CMDP_SGETCHANNELMESSAGE implements IRESPONSE {
|
|
346
|
+
result: RESULT;
|
|
347
|
+
/** found message */
|
|
348
|
+
commands: CMDC_CMSG[];
|
|
349
|
+
/** unused */
|
|
350
|
+
values: IKeyMaybeValue;
|
|
351
|
+
}
|
|
337
352
|
/**
|
|
338
353
|
* Mark messages as seen
|
|
339
354
|
*/
|
|
@@ -210,5 +210,6 @@ export declare enum ACTION {
|
|
|
210
210
|
CMDC_TPLCATEGORY = "CMDC_TPLCATEGORY",
|
|
211
211
|
CMDP_SGETTPLCATEGORIES = "CMDP_SGETTPLCATEGORIES",
|
|
212
212
|
CMDP_SUPSERTTPLCATEGORY = "CMDP_SUPSERTTPLCATEGORY",
|
|
213
|
-
CMDP_SDELETETPLCATEGORY = "CMDP_SDELETETPLCATEGORY"
|
|
213
|
+
CMDP_SDELETETPLCATEGORY = "CMDP_SDELETETPLCATEGORY",
|
|
214
|
+
CMDP_SGETCHANNELMESSAGE = "CMDP_SGETCHANNELMESSAGE"
|
|
214
215
|
}
|
|
@@ -62,7 +62,7 @@ export declare class CMDP_SMEDIAOFFERCREATE_RESPONSE extends CMDP_SMEDIAOFFERCRE
|
|
|
62
62
|
values: IKeyMaybeValue;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* B2B command for inform
|
|
65
|
+
* B2B command for inform partner about media purchase. Will be sent to partners B2B backend.
|
|
66
66
|
*/
|
|
67
67
|
export declare class CMDP_SINFORMMEDIAPURCHASED implements ICOMMAND {
|
|
68
68
|
action: ACTION;
|
|
@@ -71,8 +71,10 @@ export declare class CMDP_SINFORMMEDIAPURCHASED implements ICOMMAND {
|
|
|
71
71
|
MessageId &
|
|
72
72
|
/** MediaPrice is added to proxy call from CmdControl to B2B backend */
|
|
73
73
|
MediaPrice &
|
|
74
|
-
/** MediaFile is added to proxy call from
|
|
75
|
-
MediaFile
|
|
74
|
+
/** MediaFile is added to proxy call from CmdControl to B2B backend */
|
|
75
|
+
MediaFile & {
|
|
76
|
+
billId: string;
|
|
77
|
+
};
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Response command for CMDP_SMEDIAPURCHASE.
|