cmd-control-client-lib 3.0.67 → 3.0.74
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/bitbucket-pipelines.yml +35 -0
- 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 +2 -1
- package/dist/protocol/live/live-commands.d.ts +14 -13
- package/dist/protocol/live/msettings.d.ts +1 -0
- package/dist/protocol/media.d.ts +2 -1
- package/dist/protocol/message.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,8 +22,9 @@ export declare type channelIdType = {
|
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Type that may or may not have `channelId` field
|
|
25
|
+
* ONLY channel ID, not other fields!
|
|
25
26
|
*/
|
|
26
|
-
export interface IMayHaveChannelId
|
|
27
|
+
export interface IMayHaveChannelId {
|
|
27
28
|
channelId?: string;
|
|
28
29
|
}
|
|
29
30
|
export declare type usrKeyType = {
|
|
@@ -318,24 +318,25 @@ export declare enum QueryUserKeyEnum {
|
|
|
318
318
|
SINGLE = "single",
|
|
319
319
|
SINGLEC2C = "singleC2C"
|
|
320
320
|
}
|
|
321
|
+
export interface IQueryUserParams extends IKeyMaybeValue {
|
|
322
|
+
queryId: string;
|
|
323
|
+
key: QueryUserKeyEnum;
|
|
324
|
+
caption: string;
|
|
325
|
+
text: string;
|
|
326
|
+
btn0: string;
|
|
327
|
+
btn1: string;
|
|
328
|
+
timeout: string;
|
|
329
|
+
sound: string;
|
|
330
|
+
btnDefault: EnumBooleanDigitized;
|
|
331
|
+
btndef: "btn0" | "btn1";
|
|
332
|
+
}
|
|
321
333
|
export declare class CMDC_QUERYUSER implements ICOMMAND {
|
|
322
334
|
action: ACTION;
|
|
323
|
-
params: IMayHaveChannelId &
|
|
324
|
-
queryId: string;
|
|
325
|
-
key: QueryUserKeyEnum;
|
|
326
|
-
caption: string;
|
|
327
|
-
text: string;
|
|
328
|
-
btn0: string;
|
|
329
|
-
btn1: string;
|
|
330
|
-
timeout: string;
|
|
331
|
-
sound: string;
|
|
332
|
-
btnDefault: EnumBooleanDigitized;
|
|
333
|
-
btndef: "btn0" | "btn1";
|
|
334
|
-
};
|
|
335
|
+
params: IMayHaveChannelId & IQueryUserParams;
|
|
335
336
|
}
|
|
336
337
|
export declare class CMDP_QUERYUSER implements ICOMMAND {
|
|
337
338
|
action: ACTION;
|
|
338
|
-
params: baseParamsType & chatIdType & {
|
|
339
|
+
params: baseParamsType & chatIdType & IMayHaveChannelId & {
|
|
339
340
|
key: QueryUserKeyEnum;
|
|
340
341
|
button: EnumBooleanDigitized;
|
|
341
342
|
queryId: string;
|
package/dist/protocol/media.d.ts
CHANGED
|
@@ -49,7 +49,8 @@ export declare class CMDP_SGETUPLOADEDMEDIA implements ICOMMAND {
|
|
|
49
49
|
/**
|
|
50
50
|
* Media Info, if any found.
|
|
51
51
|
*/
|
|
52
|
-
export declare class CMDP_SGETUPLOADEDMEDIA_RESPONSE extends CMDP_SGETUPLOADEDMEDIA {
|
|
52
|
+
export declare class CMDP_SGETUPLOADEDMEDIA_RESPONSE extends CMDP_SGETUPLOADEDMEDIA implements IRESPONSE {
|
|
53
|
+
result: RESULT;
|
|
53
54
|
commands: CMDC_CMEDIA[];
|
|
54
55
|
values: IKeyMaybeValue;
|
|
55
56
|
}
|
|
@@ -183,7 +183,7 @@ export declare class CMDP_MSG_RESPONSE extends CMDP_MSG implements IRESPONSE {
|
|
|
183
183
|
*/
|
|
184
184
|
export declare class CMDP_MSGDELETE implements ICOMMAND {
|
|
185
185
|
action: ACTION;
|
|
186
|
-
params: baseParamsType & channelIdType & MessageId
|
|
186
|
+
params: baseParamsType & channelIdType & Partial<MessageId>;
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* Response for CMDP_MSGDELETE
|