podchat 11.2.0-snapshot.2 → 12.2.0

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/changelog.md CHANGED
@@ -4,10 +4,53 @@ All notable changes to this project will be documented here.
4
4
  to see complete list of changelog please visit [ChangeLog](https://github.com/masoudmanson/pod-chat/blob/master/changelog.md)
5
5
 
6
6
 
7
- ## [Unreleased]
8
7
 
9
- - Search in threads metadata
8
+ ## [11.4.0] - 11-12-2021
9
+ ### Added
10
+
11
+ - method: startCall
12
+ - method: startGroupCall
13
+ - method: endCall
14
+ - method: terminateCall
15
+ - method: rejectCall
16
+ - method: muteCallParticipants
17
+ - method: unMuteCallParticipants
18
+ - method: turnOnVideoCall
19
+ - method: turnOffVideoCall
20
+ - method: getCallParticipants
21
+ - method: addCallParticipants
22
+ - method: removeCallParticipants
23
+ - method: getCallsList
24
+ - event: callEvents.CALL_STARTED_ELSEWHERE
25
+ - event: callEvents.RECEIVE_CALL
26
+ - event: callEvents.CALL_SESSION_CREATED
27
+ - event: callEvents.ACCEPT_CALL
28
+ - event: callEvents.REJECT_CALL
29
+ - event: callEvents.PARTNER_RECEIVED_YOUR_CALL
30
+ - event: callEvents.CALL_SESSION_CREATED
31
+ - event: callEvents.CALL_STARTED
32
+ - event: callEvents.CALL_ENDED
33
+ - event: callEvents.CALL_PARTICIPANT_JOINED
34
+ - event: callEvents.CALL_PARTICIPANT_LEFT
35
+ - event: callEvents.CALL_PARTICIPANT_MUTE
36
+ - event: callEvents.CALL_PARTICIPANT_UNMUTE
37
+ - event: callEvents.TURN_ON_VIDEO_CALL
38
+ - event: callEvents.TURN_OFF_VIDEO_CALL
39
+ - event: callEvents.CALL_ERROR
40
+
41
+
42
+ ## [11.3.0] - 27-11-2021
43
+ ### Added
10
44
 
45
+ - method: startRecordingCall
46
+ - method: stopRecordingCall
47
+ - event: callEvents.ASSISTANT_CALL_STARTED
48
+ - event: callEvents.ASSISTANT_CALL_ENDED
49
+ - event: callEvents.START_RECORDING_CALL
50
+ - event: callEvents.STOP_RECORDING_CALL
51
+
52
+ ### Changed
53
+ - Downgrade dexie to 2.0.4
11
54
 
12
55
  ## [4.10.0] - 2019-06-24
13
56
 
@@ -11,6 +11,8 @@
11
11
  <script type="text/javascript" src="../node_modules/podasync/src/network/async.js"></script>
12
12
  <script type="text/javascript" src="../node_modules/crypto-js/crypto-js.js"></script>
13
13
  <script type="text/javascript" src="../node_modules/dexie/dist/dexie.min.js"></script>
14
+ <script type="text/javascript" src="../node_modules/dompurify/dist/purify.min.js"></script>
15
+
14
16
  <script type="text/javascript" src="../src/chat.js"></script>
15
17
 
16
18
  <!-- Production Mode -->
@@ -43,22 +45,22 @@
43
45
  /**
44
46
  * Main Server
45
47
  */
46
- socketAddress: 'wss://msg.pod.ir/ws', // {**REQUIRED**} Socket Address
47
- ssoHost: 'https://accounts.pod.ir', // {**REQUIRED**} Socket Address
48
- platformHost: 'https://api.pod.ir/srv/core', // {**REQUIRED**} Platform Core Address
49
- fileServer: 'https://core.pod.ir', // {**REQUIRED**} File Server Address
50
- podSpaceFileServer: 'https://podspace.pod.ir', // {**REQUIRED**} File Server Address
51
- serverName: 'chat-server', // {**REQUIRED**} Server to to register on
48
+ // socketAddress: 'wss://msg.pod.ir/ws', // {**REQUIRED**} Socket Address
49
+ // ssoHost: 'https://accounts.pod.ir', // {**REQUIRED**} Socket Address
50
+ // platformHost: 'https://api.pod.ir/srv/core', // {**REQUIRED**} Platform Core Address
51
+ // fileServer: 'https://core.pod.ir', // {**REQUIRED**} File Server Address
52
+ // podSpaceFileServer: 'https://podspace.pod.ir', // {**REQUIRED**} File Server Address
53
+ // serverName: 'chat-server', // {**REQUIRED**} Server to to register on
52
54
 
53
55
  /**
54
56
  * Sand Box
55
57
  */
56
- // socketAddress: "wss://chat-sandbox.pod.ir/ws",
57
- // ssoHost: "https://accounts.pod.ir",
58
- // platformHost: "https://sandbox.pod.ir:8043/srv/basic-platform",
59
- // fileServer: 'https://core.pod.ir',
60
- // podSpaceFileServer: 'https://podspace.pod.ir',
61
- // serverName: "chat-server",
58
+ socketAddress: "wss://chat-sandbox.pod.ir/ws",
59
+ ssoHost: "https://accounts.pod.ir",
60
+ platformHost: "https://sandbox.pod.ir:8043/srv/basic-platform",
61
+ fileServer: 'https://core.pod.ir',
62
+ podSpaceFileServer: 'https://podspace.pod.ir',
63
+ serverName: "chat-server",
62
64
 
63
65
  /**
64
66
  * PodSpace test
@@ -85,7 +87,7 @@
85
87
  fullResponseObject: false,
86
88
  mapApiKey: '8b77db18704aa646ee5aaea13e7370f4f88b9e8c',
87
89
  // typeCode: "talk",
88
- token: "30733ad2fff542daa40ded3c39d1a9cc",
90
+ token: "0bea561f71af4cc9829afce8ac472f2f",
89
91
  // token: "f19933ae1b1e424db9965a243bf3bcd3", // {**REQUIRED**} SSO Token ZiZi
90
92
  // token: "81025b3fbc1a4f7184c3600a2f874673", // {**REQUIRED**} SSO Token JiJi
91
93
  // token: "3c4d62b6068043aa898cf7426d5cae68", // {**REQUIRED**} SSO Token FiFi
@@ -799,6 +801,18 @@
799
801
  break;
800
802
  }
801
803
  });
804
+ /**
805
+ * Listen to Call Events
806
+ */
807
+ chatAgent.on("callEvents", function (event) {
808
+ var type = event.type;
809
+ console.log(event);
810
+ /*
811
+ switch (type) {
812
+ default:
813
+ break;
814
+ }*/
815
+ });
802
816
 
803
817
  /**
804
818
  * Listen to User Events
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podchat",
3
- "version": "11.2.0-snapshot.2",
3
+ "version": "12.2.0",
4
4
  "description": "Javascript SDK to use POD's Chat Service",
5
5
  "main": "./src/chat.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  "publish:snapshot": "npm run version:snapshot && npm publish --tag snapshot",
9
9
  "version:snapshot": "npm version prerelease --preid snapshot",
10
10
  "publish:release": "npm run version:release && npm publish",
11
- "version:release": "npm version 11.2.0"
11
+ "version:release": "npm version 12.2.0"
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://github.com/FanapSoft/pod-chat-js-sdk#readme",
32
32
  "dependencies": {
33
33
  "crypto-js": "^3.1.9-1",
34
- "dexie": "^3.0.3",
34
+ "dexie": "^2.0.4",
35
35
  "dompurify": "^2.3.3",
36
36
  "faker": "^4.1.0",
37
37
  "form-data": "^2.5.0",