cmd-control-client-lib 3.0.210 → 3.0.214

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.
@@ -158,10 +158,10 @@ export declare enum ACTION {
158
158
  CMDP_SGETMESSAGEHISTORY = "CMDP_SGETMESSAGEHISTORY",
159
159
  CMDP_SMSGESTIMATE = "CMDP_SMSGESTIMATE",
160
160
  CMDP_SETMOBILETOKEN = "CMDP_SETMOBILETOKEN",
161
- CMDP_STARTMOBILECALL = "CMDP_STARTMOBILECALL",
162
- CMDC_STARTMOBILECALL = "CMDC_STARTMOBILECALL",
163
- CMDP_STOPMOBILECALL = "CMDP_STOPMOBILECALL",
164
- CMDC_STOPMOBILECALL = "CMDC_STOPMOBILECALL",
161
+ CMDP_STARTMOBILEVIDEOCALL = "CMDP_STARTMOBILEVIDEOCALL",
162
+ CMDC_STARTMOBILEVIDEOCALL = "CMDC_STARTMOBILEVIDEOCALL",
163
+ CMDP_UPDATEMOBILEVIDEOCALL = "CMDP_UPDATEMOBILEVIDEOCALL",
164
+ CMDC_UPDATEMOBILEVIDEOCALL = "CMDC_UPDATEMOBILEVIDEOCALL",
165
165
  CMDC_STARTWEBSIP = "CMDC_STARTWEBSIP",
166
166
  CMDC_STOPWEBSIP = "CMDC_STOPWEBSIP",
167
167
  CMDP_WSA_ADDUPDATEUSER = "CMDP_WSA_ADDUPDATEUSER",
@@ -7,12 +7,23 @@ export declare enum EnumMobileTokenType {
7
7
  FCM = "fcm",
8
8
  APN = "apn"
9
9
  }
10
+ export declare enum EnumMobileVideoCallState {
11
+ Cancelled = "CANCELLED",
12
+ Answered = "ANSWERED",
13
+ Declined = "DECLINED",
14
+ Busy = "BUSY",
15
+ NoAnswer = "NOANSWER",
16
+ Failed = "FAILED",
17
+ Unknown = "UNKNOWN"
18
+ }
19
+ export declare type deviceIdType = {
20
+ deviceId?: string;
21
+ };
10
22
  export declare class CMDP_SETMOBILETOKEN implements ICOMMAND {
11
23
  action: ACTION;
12
- params: baseParamsType & {
24
+ params: baseParamsType & deviceIdType & {
13
25
  type: EnumMobileTokenType;
14
26
  token: string;
15
- deviceId?: string;
16
27
  };
17
28
  }
18
29
  export declare class CMDP_SETMOBILETOKEN_RESPONSE extends CMDP_SETMOBILETOKEN implements IRESPONSE {
@@ -20,18 +31,18 @@ export declare class CMDP_SETMOBILETOKEN_RESPONSE extends CMDP_SETMOBILETOKEN im
20
31
  commands: ICOMMAND[];
21
32
  values: IKeyMaybeValue;
22
33
  }
23
- export declare class CMDP_STARTMOBILECALL implements ICOMMAND {
34
+ export declare class CMDP_STARTMOBILEVIDEOCALL implements ICOMMAND {
24
35
  action: ACTION;
25
- params: baseParamsType & channelIdType;
36
+ params: baseParamsType & channelIdType & deviceIdType;
26
37
  }
27
- export declare class CMDP_STARTMOBILECALL_RESPONSE extends CMDP_STARTMOBILECALL implements IRESPONSE {
38
+ export declare class CMDP_STARTMOBILEVIDEOCALL_RESPONSE extends CMDP_STARTMOBILEVIDEOCALL implements IRESPONSE {
28
39
  result: RESULT;
29
40
  commands: ICOMMAND[];
30
41
  values: {
31
42
  videoSdkConfig: JSONString<VideoSdkConfig>;
32
43
  };
33
44
  }
34
- export declare class CMDC_STARTMOBILECALL implements ICOMMAND {
45
+ export declare class CMDC_STARTMOBILEVIDEOCALL implements ICOMMAND {
35
46
  action: ACTION;
36
47
  params: channelIdType & {
37
48
  sessionID: string;
@@ -40,22 +51,24 @@ export declare class CMDC_STARTMOBILECALL implements ICOMMAND {
40
51
  videoSdkConfig: JSONString<VideoSdkConfig>;
41
52
  };
42
53
  }
43
- export declare class CMDP_STOPMOBILECALL implements ICOMMAND {
54
+ export declare class CMDP_UPDATEMOBILEVIDEOCALL implements ICOMMAND {
44
55
  action: ACTION;
45
- params: baseParamsType & {
56
+ params: baseParamsType & deviceIdType & {
46
57
  videoSdkConfig: string;
58
+ state: EnumMobileVideoCallState;
47
59
  };
48
60
  }
49
- export declare class CMDP_STOPMOBILECALL_RESPONSE extends CMDP_STOPMOBILECALL implements IRESPONSE {
61
+ export declare class CMDP_UPDATEMOBILEVIDEOCALL_RESPONSE extends CMDP_UPDATEMOBILEVIDEOCALL implements IRESPONSE {
50
62
  result: RESULT;
51
63
  commands: ICOMMAND[];
52
64
  values: IKeyMaybeValue;
53
65
  }
54
- export declare class CMDC_STOPMOBILECALL implements ICOMMAND {
66
+ export declare class CMDC_UPDATEMOBILEVIDEOCALL implements ICOMMAND {
55
67
  action: ACTION;
56
- params: channelIdType & {
68
+ params: channelIdType & deviceIdType & {
57
69
  sessionID: string;
58
70
  videoSdkConfig: JSONString<VideoSdkConfig>;
71
+ state: EnumMobileVideoCallState;
59
72
  };
60
73
  }
61
74
  export declare class CMDP_LOGOUTOTHERMOBILE implements ICOMMAND {
@@ -1,21 +1,31 @@
1
1
  import { ACTION } from "./command/action";
2
- import { ICOMMAND } from "./command/icommand";
2
+ import { ICOMMAND, IKeyMaybeValue } from "./command/icommand";
3
+ import { JSONString } from "../@types";
3
4
  /** web sip client endpoint configuration */
4
- export declare type wsaEndpointConfig = {
5
+ /** https://jssip.net/*/
6
+ export declare type webSipEndpointConfigJsSipType = {
5
7
  sipEndpoint: string;
6
8
  sipExtension: string;
7
9
  sipUser: string;
8
10
  sipPassword: string;
9
11
  };
12
+ export declare type WebSipEndpointClientConfigSipml5Type = {
13
+ displayName: string;
14
+ privateId: string;
15
+ publicId: string;
16
+ realm: string;
17
+ websocketUrl: string;
18
+ iceServers: string;
19
+ };
10
20
  export declare class CMDC_STARTWEBSIP implements ICOMMAND {
11
21
  action: ACTION.CMDC_STARTWEBSIP;
12
22
  params: {
13
23
  sessionID: string;
14
- } & wsaEndpointConfig;
24
+ jsSipConfig?: JSONString<webSipEndpointConfigJsSipType>;
25
+ simpl5Config?: JSONString<WebSipEndpointClientConfigSipml5Type>;
26
+ };
15
27
  }
16
28
  export declare class CMDC_STOPWEBSIPSOCKET implements ICOMMAND {
17
29
  action: ACTION.CMDC_STOPWEBSIP;
18
- params: {
19
- sessionID: string;
20
- } & wsaEndpointConfig;
30
+ params: IKeyMaybeValue;
21
31
  }
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.210",
4
+ "version": "3.0.214",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },