@cometchat/chat-sdk-javascript 4.0.0 → 4.0.2

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.
Files changed (72) hide show
  1. package/{dist/index.d.ts → CometChat.d.ts} +444 -32
  2. package/CometChat.js +1 -0
  3. package/LICENSE.md +3 -0
  4. package/{readme.md → README.md} +8 -8
  5. package/package.json +31 -42
  6. package/dist/CometChat.js +0 -1
  7. package/dist/package.json +0 -36
  8. package/dist/type/index.d.ts +0 -10
  9. package/dist/type/lib/BannedMembersRequest.d.ts +0 -60
  10. package/dist/type/lib/BlockedUsersRequest.d.ts +0 -67
  11. package/dist/type/lib/CallSettings.d.ts +0 -429
  12. package/dist/type/lib/CometChat.d.ts +0 -1975
  13. package/dist/type/lib/CometChatErrorConstants.d.ts +0 -124
  14. package/dist/type/lib/CometChatHelper.d.ts +0 -26
  15. package/dist/type/lib/Constants.d.ts +0 -973
  16. package/dist/type/lib/ConversationRequest.d.ts +0 -89
  17. package/dist/type/lib/GroupMembersRequest.d.ts +0 -61
  18. package/dist/type/lib/GroupsRequest.d.ts +0 -78
  19. package/dist/type/lib/Helper.d.ts +0 -47
  20. package/dist/type/lib/ListenerHandlers.d.ts +0 -101
  21. package/dist/type/lib/MessagesRequest.d.ts +0 -188
  22. package/dist/type/lib/UsersRequest.d.ts +0 -142
  23. package/dist/type/lib/WebSockets/WSConnectionHelper.d.ts +0 -41
  24. package/dist/type/lib/WebSockets/WSConstants.d.ts +0 -71
  25. package/dist/type/lib/WebSockets/WSHelper.d.ts +0 -3
  26. package/dist/type/lib/controllers/CallController.d.ts +0 -151
  27. package/dist/type/lib/controllers/ConversationController.d.ts +0 -14
  28. package/dist/type/lib/controllers/GroupMemberController.d.ts +0 -10
  29. package/dist/type/lib/controllers/GroupsController.d.ts +0 -9
  30. package/dist/type/lib/controllers/MessageController.d.ts +0 -18
  31. package/dist/type/lib/controllers/PresenceController.d.ts +0 -0
  32. package/dist/type/lib/controllers/TypingNotificationController.d.ts +0 -14
  33. package/dist/type/lib/controllers/UserAuthController.d.ts +0 -10
  34. package/dist/type/lib/controllers/UsersController.d.ts +0 -9
  35. package/dist/type/lib/localStore/KeyStore.d.ts +0 -45
  36. package/dist/type/lib/localStore/MessageListenerEventMaping.d.ts +0 -56
  37. package/dist/type/lib/localStore/MessagesStore.d.ts +0 -72
  38. package/dist/type/lib/localStore/UserStore.d.ts +0 -72
  39. package/dist/type/lib/localStore/store.d.ts +0 -61
  40. package/dist/type/lib/models/Action.d.ts +0 -159
  41. package/dist/type/lib/models/AppSettings.d.ts +0 -135
  42. package/dist/type/lib/models/BaseMessage.d.ts +0 -259
  43. package/dist/type/lib/models/CCExtension.d.ts +0 -15
  44. package/dist/type/lib/models/Call.d.ts +0 -159
  45. package/dist/type/lib/models/CometChatAuthEvent.d.ts +0 -25
  46. package/dist/type/lib/models/CometChatEvent.d.ts +0 -25
  47. package/dist/type/lib/models/CometChatMessageEvent.d.ts +0 -9
  48. package/dist/type/lib/models/CometChatPingEvent.d.ts +0 -6
  49. package/dist/type/lib/models/CometChatPresenceEvent.d.ts +0 -15
  50. package/dist/type/lib/models/CometChatReceiptEvent.d.ts +0 -14
  51. package/dist/type/lib/models/CometChatTransientEvent.d.ts +0 -11
  52. package/dist/type/lib/models/CometChatTypingEvent.d.ts +0 -14
  53. package/dist/type/lib/models/ConversationModel.d.ts +0 -73
  54. package/dist/type/lib/models/CustomError.d.ts +0 -13
  55. package/dist/type/lib/models/CustomMessage.d.ts +0 -71
  56. package/dist/type/lib/models/ErrorModel.d.ts +0 -12
  57. package/dist/type/lib/models/Group.d.ts +0 -190
  58. package/dist/type/lib/models/GroupMember.d.ts +0 -43
  59. package/dist/type/lib/models/Listner.d.ts +0 -258
  60. package/dist/type/lib/models/MediaDevice.d.ts +0 -36
  61. package/dist/type/lib/models/MediaMessage.d.ts +0 -115
  62. package/dist/type/lib/models/MessageReceipt.d.ts +0 -99
  63. package/dist/type/lib/models/RTCUser.d.ts +0 -18
  64. package/dist/type/lib/models/TextMessage.d.ts +0 -84
  65. package/dist/type/lib/models/TransientMessage.d.ts +0 -48
  66. package/dist/type/lib/models/TypingNotification.d.ts +0 -52
  67. package/dist/type/lib/models/UserModel.d.ts +0 -177
  68. package/dist/type/lib/models/UserPresence.d.ts +0 -0
  69. package/dist/type/lib/models/attachment.d.ts +0 -74
  70. package/dist/type/lib/rest-api/EndPointUtils.d.ts +0 -9
  71. package/dist/type/lib/rest-api/EndpointFactory.d.ts +0 -28
  72. package/dist/type/lib/rest-api/HttpHelper.d.ts +0 -10
package/LICENSE.md ADDED
@@ -0,0 +1,3 @@
1
+ Copyright (c) 2023 CometChat Inc.
2
+
3
+ License agreement: https://www.cometchat.com/legal-terms-of-service
@@ -12,8 +12,8 @@
12
12
 
13
13
  # CometChat Javascript SDK
14
14
 
15
- CometChat Pro enables you to add voice, video & text chat for your website & app.
16
- This guide demonstrates how to add chat to a WebSite using CometChat Pro.
15
+ CometChat enables you to add voice, video & text chat for your website & app.
16
+ This guide demonstrates how to add chat to a WebSite using CometChat.
17
17
 
18
18
  ## Features
19
19
 
@@ -40,7 +40,7 @@ This guide demonstrates how to add chat to a WebSite using CometChat Pro.
40
40
  [Push Notification](https://prodocs.cometchat.com/docs/extensions-enhanced-push-notification) | [Email Notification](https://prodocs.cometchat.com/docs/extensions-email-notification) | [SMS Notification](https://prodocs.cometchat.com/docs/extensions-sms-notification) | [Thumbnail Generation](https://prodocs.cometchat.com/docs/extensions-thumbnail-generation) | [Link Preview](https://prodocs.cometchat.com/docs/extensions-link-preview) | [Rich Media Preview](https://prodocs.cometchat.com/docs/extensions-rich-media-preview) | [Voice Transcription](https://prodocs.cometchat.com/docs/extensions-voice-transcription) | [Smart Reply](https://prodocs.cometchat.com/docs/extensions-smart-reply) | [Message Translation](https://prodocs.cometchat.com/docs/extensions-message-translation) | [Emojis](https://prodocs.cometchat.com/docs/extensions-emojis) | [Polls](https://prodocs.cometchat.com/docs/extensions-polls) | [Reactions](https://prodocs.cometchat.com/docs/extensions-reactions) | [Stickers](https://prodocs.cometchat.com/docs/extensions-stickers) | [Video Broadcasting](https://prodocs.cometchat.com/docs/extensions-broadcast) | [Collaborative Documents](https://prodocs.cometchat.com/docs/extensions-collaborative-document) | [Collaborative Whiteboards](https://prodocs.cometchat.com/docs/extensions-collaborative-whiteboard) | [Data Masking Filter](https://prodocs.cometchat.com/docs/extensions-data-masking-filter) | [Profanity Filter](https://prodocs.cometchat.com/docs/extensions-profanity-filter) | [Image Moderation](https://prodocs.cometchat.com/docs/extensions-image-moderation)| [Sentiment Analysis](https://prodocs.cometchat.com/docs/extensions-sentiment-analysis) | [In-flight Message Moderation](https://prodocs.cometchat.com/docs/extensions-in-flight-message-moderation) | [Virus & Malware Scanner](https://prodocs.cometchat.com/docs/extensions-virus-malware-scanner) | [XSS Filter](https://prodocs.cometchat.com/docs/extensions-xss-filter)
41
41
 
42
42
  [![Platform](https://img.shields.io/badge/Platform-Javascript-brightgreen)](#)
43
- <a href=" "> <img src="https://img.shields.io/badge/Version-3.0.0-beta1-important" /></a>
43
+ <a href=" "> <img src="https://img.shields.io/badge/Version-3.0.11-important" /></a>
44
44
  ![GitHub repo size](https://img.shields.io/github/repo-size/cometchat-pro/javascript-chat-sdk)
45
45
  ![GitHub contributors](https://img.shields.io/github/contributors/cometchat-pro/javascript-chat-sdk)
46
46
  ![GitHub stars](https://img.shields.io/github/stars/cometchat-pro/javascript-chat-sdk?style=social)
@@ -75,19 +75,19 @@ To setup Javascript SDK, you need to first register on CometChat Dashboard. [Cl
75
75
  <ul>
76
76
  <li>
77
77
  <b>Install via NPM</b><br/>
78
- 1. Run the following command to install the CometChat Pro Javascript SDK<br/>
78
+ 1. Run the following command to install the CometChat Javascript SDK<br/>
79
79
 
80
80
  ```javascript
81
- npm install @cometchat-pro/chat@3.0.0-beta1 --save
81
+ npm install @cometchat/chat-sdk-javascript@latest --save
82
82
  ```
83
83
  </li>
84
84
 
85
85
  <li>
86
86
  <b>Import via CDN</b><br/>
87
- 1. Include the CometChat Pro Javascript library in your HTML code.<br/>
87
+ 1. Include the CometChat Javascript library in your HTML code.<br/>
88
88
 
89
89
  ```html
90
- <script type="text/javascript" src="https://unpkg.com/@cometchat-pro/chat@3.0.0-beta1/CometChat.js"></script>
90
+ <script type="text/javascript" src="https://unpkg.com/@cometchat/chat-sdk-javascript@latest/CometChat.js"></script>
91
91
  ```
92
92
 
93
93
  You can refer to the below link for instructions on how to do so:<br/>
@@ -171,7 +171,7 @@ CometChat.getLoggedinUser().then(
171
171
 
172
172
  <hr/>
173
173
 
174
- 📝 Please refer to our [Developer Documentation](https://prodocs.cometchat.com/docs/js-quick-start) for more information on how to configure the CometChat Pro SDK and implement various features using the same.
174
+ 📝 Please refer to our [Developer Documentation](https://prodocs.cometchat.com/docs/js-quick-start) for more information on how to configure the CometChat SDK and implement various features using the same.
175
175
 
176
176
  <hr/>
177
177
 
package/package.json CHANGED
@@ -1,48 +1,37 @@
1
1
  {
2
2
  "name": "@cometchat/chat-sdk-javascript",
3
- "version": "4.0.0",
4
- "description": "",
5
- "main": "dist/CometChat.js",
6
- "module": "dist/CometChat.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist/"
10
- ],
11
- "dependencies": {
12
- "localforage": "^1.7.3",
13
- "uuid": "^3.3.3"
14
- },
15
- "devDependencies": {
16
- "@babel/core": "^7.3.4",
17
- "browser-env": "^3.3.0",
18
- "chai": "^4.2.0",
19
- "chai-as-promised": "^7.1.1",
20
- "chai-http": "^4.3.0",
21
- "dts-bundle-webpack": "^1.0.2",
22
- "editable-sources-webpack-plugin": "^1.0.2",
23
- "form-data": "^4.0.0",
24
- "mocha": "^7.1.1",
25
- "node-fetch": "^2.6.5",
26
- "pre-commit": "^1.2.2",
27
- "strip-comments": "^1.0.2",
28
- "ts-loader": "4.5.0",
29
- "typedoc": "^0.20.34",
30
- "typedoc-plugin-merge-modules": "^2.0.0",
31
- "typescript": "^3.9.6",
32
- "uglifyjs-webpack-plugin": "^2.1.2",
33
- "webpack": "^4.29.6",
34
- "webpack-cli": "^3.2.3",
35
- "webpack-dev-server": "^3.1.14"
36
- },
3
+ "version": "4.0.2",
4
+ "description": "A complete chat solution.",
5
+ "main": "CometChat.js",
37
6
  "scripts": {
38
- "start": "webpack-dev-server --mode development --port 3030 --https true --host localhost",
39
- "build": "webpack --mode production",
40
- "test": "mocha testcases/tests.js --bail --exit"
7
+ "test": "echo \"Error: no test specified\" && exit 1"
41
8
  },
42
- "pre-commit": [
43
- "test"
9
+ "keywords": [
10
+ "CometChat",
11
+ "chat",
12
+ "messaging",
13
+ "chat",
14
+ "sdk",
15
+ "pro",
16
+ "message",
17
+ "sdk",
18
+ "messaging",
19
+ "sdk",
20
+ "audio",
21
+ "chat",
22
+ "video",
23
+ "chat",
24
+ "webRTC"
44
25
  ],
45
- "keywords": [],
46
- "author": "cometchat <engineering.pro@cometchat.com> ",
47
- "license": "ISC"
26
+ "author": "CometChat",
27
+ "license": "SEE LICENSE IN LICENSE.md",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/cometchat-pro/javascript-chat-sdk.git"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/cometchat-pro/javascript-chat-sdk/issues"
34
+ },
35
+ "homepage": "https://github.com/cometchat-pro/javascript-chat-sdk#readme",
36
+ "types": "./CometChat.d.ts"
48
37
  }