@primexperts.co/pulse-agent 1.1.3 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +39 -39
package/README.md CHANGED
@@ -13,7 +13,7 @@ Embeddable floating Pulse chat widget for client websites.
13
13
  ## Install
14
14
 
15
15
  ```bash
16
- npm install @primexperts/pulse-agent
16
+ npm install @primexperts/pulse-agent@latest
17
17
  ```
18
18
 
19
19
  ## Usage
@@ -35,7 +35,7 @@ agent.open();
35
35
  ## Browser/CDN Usage (No Bundler)
36
36
 
37
37
  ```html
38
- <script src="https://unpkg.com/@primexperts/pulse-agent/dist/browser/pulse-agent.global.js"></script>
38
+ <script src="https://unpkg.com/@primexperts/pulse-agent@latest/dist/browser/pulse-agent.global.js"></script>
39
39
  <script>
40
40
  const agent = window.PulseAgent.createPulseAgent({
41
41
  slug: 'client-abc',
@@ -48,6 +48,8 @@ agent.open();
48
48
 
49
49
  - `GET /api/pulse/public/webchat/resolve?slug=<slug>`
50
50
  - `POST /api/pulse/public/webchat/{widgetToken}/message`
51
+ - `GET /api/pulse/public/webchat/{widgetToken}/messages?conversationId=<id>`
52
+ - `POST /api/pulse/public/webchat/{widgetToken}/transcript-email?conversationId=<id>`
51
53
  - `GET /api/pulse/public/webchat/{widgetToken}/stream?conversationId=<id>`
52
54
 
53
55
  ## API
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "@primexperts.co/pulse-agent",
3
- "version": "1.1.3",
4
- "description": "Embeddable Pulse floating chat agent widget.",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "default": "./dist/index.js"
12
- }
13
- },
14
- "files": [
15
- "dist",
16
- "README.md",
17
- "LICENSE"
18
- ],
19
- "scripts": {
20
- "clean": "node -e \"if(require('fs').existsSync('dist')) require('fs').rmSync('dist',{recursive:true,force:true})\"",
21
- "build:types": "tsc -p tsconfig.build.json",
22
- "build:browser": "node scripts/build-browser-global.mjs",
23
- "build": "npm run clean && npm run build:types && npm run build:browser",
24
- "version:bump": "node scripts/bump-version.mjs",
25
- "version:patch": "node scripts/bump-version.mjs patch",
26
- "version:minor": "node scripts/bump-version.mjs minor",
27
- "version:major": "node scripts/bump-version.mjs major",
28
- "prepublishOnly": "npm run build"
29
- },
30
- "private": false,
31
- "license": "MIT",
32
- "author": "PrimExperts",
33
- "dependencies": {
34
- "tslib": "^2.8.1"
35
- },
36
- "devDependencies": {
37
- "typescript": "~5.8.2"
38
- }
39
- }
1
+ {
2
+ "name": "@primexperts.co/pulse-agent",
3
+ "version": "2.0.0",
4
+ "description": "Embeddable Pulse floating chat agent widget.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "clean": "node -e \"if(require('fs').existsSync('dist')) require('fs').rmSync('dist',{recursive:true,force:true})\"",
21
+ "build:types": "tsc -p tsconfig.build.json",
22
+ "build:browser": "node scripts/build-browser-global.mjs",
23
+ "build": "npm run clean && npm run build:types && npm run build:browser",
24
+ "version:bump": "node scripts/bump-version.mjs",
25
+ "version:patch": "node scripts/bump-version.mjs patch",
26
+ "version:minor": "node scripts/bump-version.mjs minor",
27
+ "version:major": "node scripts/bump-version.mjs major",
28
+ "prepublishOnly": "npm run build"
29
+ },
30
+ "private": false,
31
+ "license": "MIT",
32
+ "author": "PrimExperts",
33
+ "dependencies": {
34
+ "tslib": "^2.8.1"
35
+ },
36
+ "devDependencies": {
37
+ "typescript": "~5.8.2"
38
+ }
39
+ }