cmd-control-client-lib 3.0.45 → 3.0.49
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONString } from "../@types";
|
|
1
|
+
import { JSONString, EnumQueryBackendSubAction } from "../@types";
|
|
2
2
|
import { IMayHaveChannelId, usrKeyType } from "./channel";
|
|
3
3
|
import { ACTION } from "./command/action";
|
|
4
4
|
import { baseParamsType } from "./command/baseparams";
|
|
@@ -13,12 +13,15 @@ export interface IBackEndPayload {
|
|
|
13
13
|
export interface IBACKENDPAYLOAD {
|
|
14
14
|
payload?: unknown;
|
|
15
15
|
}
|
|
16
|
+
declare type TSubActionParams = {
|
|
17
|
+
subaction: EnumQueryBackendSubAction;
|
|
18
|
+
};
|
|
16
19
|
/**
|
|
17
20
|
* common command for take a backend action
|
|
18
21
|
*/
|
|
19
22
|
export declare class CMDP_QUERYBACKEND implements ICOMMAND, IBACKENDPAYLOAD {
|
|
20
23
|
action: ACTION;
|
|
21
|
-
params: baseParamsType;
|
|
24
|
+
params: TSubActionParams & baseParamsType;
|
|
22
25
|
/** if jwt-session, any json-payload for transport to backend */
|
|
23
26
|
payload?: JSONString<any>;
|
|
24
27
|
}
|
|
@@ -46,3 +49,4 @@ export declare class CMDP_BACKENDPAYLOAD implements ICOMMAND, IBACKENDPAYLOAD {
|
|
|
46
49
|
params: IMayHaveChannelId & usrKeyType & IKeyMaybeValue;
|
|
47
50
|
payload?: IBackEndPayload;
|
|
48
51
|
}
|
|
52
|
+
export {};
|
package/dist/protocol/media.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ACTION } from "./command/action";
|
|
2
2
|
import { baseParamsType } from "./command/baseparams";
|
|
3
|
-
import { ICOMMAND, IKeyMaybeValue } from "./command/icommand";
|
|
3
|
+
import { ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "./command/icommand";
|
|
4
4
|
import { MediaFile, MediaMd5 } from "./message";
|
|
5
5
|
export declare type MayHaveChannelId = {
|
|
6
6
|
channelId?: string;
|
|
@@ -23,15 +23,17 @@ export declare class CMDC_CMEDIA implements ICOMMAND {
|
|
|
23
23
|
/**
|
|
24
24
|
* check for media already was uploaded.
|
|
25
25
|
* mediaMd5 - comaseparated media md5
|
|
26
|
+
* channelId - comaseparated channelId
|
|
26
27
|
*/
|
|
27
28
|
export declare class CMDP_SCHECKUPLOADEDMEDIA implements ICOMMAND {
|
|
28
29
|
action: ACTION;
|
|
29
|
-
params: baseParamsType & MediaMd5;
|
|
30
|
+
params: baseParamsType & MediaMd5 & MayHaveChannelId;
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* media infos, if any found in cache
|
|
33
34
|
*/
|
|
34
|
-
export declare class CMDP_SCHECKUPLOADEDMEDIA_RESPONSE extends CMDP_SCHECKUPLOADEDMEDIA {
|
|
35
|
+
export declare class CMDP_SCHECKUPLOADEDMEDIA_RESPONSE extends CMDP_SCHECKUPLOADEDMEDIA implements IRESPONSE {
|
|
36
|
+
result: RESULT;
|
|
35
37
|
commands: CMDC_CMEDIA[];
|
|
36
38
|
values: IKeyMaybeValue;
|
|
37
39
|
}
|