podchat 11.2.0-snapshot.1 → 11.4.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
@@ -9,6 +9,19 @@ to see complete list of changelog please visit [ChangeLog](https://github.com/ma
9
9
  - Search in threads metadata
10
10
 
11
11
 
12
+ ## [11.3.0] - 27-11-2021
13
+ ### Added
14
+
15
+ - method: startRecordingCall
16
+ - method: stopRecordingCall
17
+ - event: callEvents.ASSISTANT_CALL_STARTED
18
+ - event: callEvents.ASSISTANT_CALL_ENDED
19
+ - event: callEvents.START_RECORDING_CALL
20
+ - event: callEvents.STOP_RECORDING_CALL
21
+
22
+ ### Changed
23
+ - Downgrade dexie to 2.0.4
24
+
12
25
  ## [4.10.0] - 2019-06-24
13
26
 
14
27
  ### Added
@@ -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.1",
3
+ "version": "11.4.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 11.3.0"
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
@@ -31,12 +31,13 @@
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",
38
38
  "image-size": "^0.8.3",
39
39
  "indexeddbshim": "^3.10.0",
40
+ "jsdom": "^18.0.0",
40
41
  "mime": "^2.4.4",
41
42
  "podasync": "^2.8.3",
42
43
  "query-string": "^6.8.1",