@microsoft/ocsdk 0.4.4-main.ff97813 → 0.4.4
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 +39 -1
- package/dist/SDK.js +15 -3
- package/dist/SDK.min.js +5 -5
- package/lib/Interfaces/IAxiosRetryOptions.d.ts +1 -0
- package/lib/Interfaces/ISDKConfiguration.d.ts +4 -0
- package/lib/SDK.d.ts +1 -1
- package/lib/SDK.js +40 -23
- package/lib/SDK.js.map +1 -1
- package/lib/Utils/axiosRetry.js +3 -5
- package/lib/Utils/axiosRetry.js.map +1 -1
- package/lib/Utils/waitTimeBetweenRetriesConfigs.d.ts +2 -0
- package/lib/Utils/waitTimeBetweenRetriesConfigs.js +26 -0
- package/lib/Utils/waitTimeBetweenRetriesConfigs.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
2
3
|
All notable changes to this project will be documented in this file.
|
|
3
4
|
|
|
4
|
-
## [
|
|
5
|
+
## [0.4.4] - 2024-03-18
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Add configurable wait time between retries componenets, and set to 3 secnds for getLWI, and 1 second for all other requests
|
|
5
10
|
|
|
6
11
|
## [0.4.3] - 2024-02-28
|
|
12
|
+
|
|
7
13
|
### Added
|
|
14
|
+
|
|
8
15
|
- Add `useUnauthReconnectIdSigQueryParam` configuration to use `sig` as query parameter to pass `reconnectId` for `Unauthenticated Chat Reconnect` APIs
|
|
9
16
|
- Add `Oc-Sessionid` as part of request headers if exists
|
|
17
|
+
- Add configurable wait time between retries componenets, and set to 3 secnds for getLWI, and 1 second for all other requests
|
|
18
|
+
|
|
10
19
|
|
|
11
20
|
## [0.4.2] - 2023-12-06
|
|
21
|
+
|
|
12
22
|
### Added
|
|
23
|
+
|
|
13
24
|
- Add `GetChatConfigFailed` telemetry event
|
|
14
25
|
|
|
15
26
|
### Changed
|
|
27
|
+
|
|
16
28
|
- Removal of `recursive call` in `LoggingSanitizer` as preventive measure for `stack overflow`
|
|
17
29
|
|
|
18
30
|
## [0.4.1] - 2023-11-10
|
|
31
|
+
|
|
19
32
|
### Added
|
|
33
|
+
|
|
20
34
|
- including changes to handle new library versions.
|
|
21
35
|
|
|
22
36
|
### Security
|
|
37
|
+
|
|
23
38
|
- Uptake [axios@1.6.1](https://www.npmjs.com/package/axios/v/1.6.1)
|
|
24
39
|
- Uptake [ts-loader@8.4.0](https://www.npmjs.com/package/ts-loader/v/8.4.0)
|
|
25
40
|
- Uptake [typescript@4.9.5](https://www.npmjs.com/package/typescript/v/4.9.5)
|
|
26
41
|
|
|
27
42
|
## [0.4.0] - 2023-07-05
|
|
43
|
+
|
|
28
44
|
### Added
|
|
45
|
+
|
|
29
46
|
- `refreshToken` optional query parameter to `getchattoken` endpoint
|
|
30
47
|
|
|
31
48
|
## [0.3.4] - 2023-03-24
|
|
49
|
+
|
|
32
50
|
### Added
|
|
51
|
+
|
|
33
52
|
- `livechatconnector/v3/getchattoken` endpoint
|
|
34
53
|
- `livechatconnector/v3/auth/getchattoken` endpoint
|
|
35
54
|
- Stop retry when the error is related to out of office hours.
|
|
@@ -37,39 +56,51 @@ All notable changes to this project will be documented in this file.
|
|
|
37
56
|
- Increasing request timeout and add error handling for OAuth 2.0
|
|
38
57
|
|
|
39
58
|
## [0.3.3] - 2023-01-09
|
|
59
|
+
|
|
40
60
|
### Fix
|
|
61
|
+
|
|
41
62
|
- Added `requestTimeoutConfig` and `defaultRequestTimeout` to set timeouts on endpoints.
|
|
42
63
|
- Throw `ClientHTTPTimeoutError` exception in case of timeouts.
|
|
43
64
|
- Update `InitContext` to include `isProactiveChat`.
|
|
44
65
|
|
|
45
66
|
## [0.3.2] - 2022-11-03
|
|
67
|
+
|
|
46
68
|
### Changed
|
|
69
|
+
|
|
47
70
|
- Update methods to log `RequestPath`, `RequestMethod` and `ResponseStatusCode`
|
|
48
71
|
|
|
49
72
|
### Fix
|
|
73
|
+
|
|
50
74
|
- Update `getChatToken`'s `error.response` to be optional
|
|
51
75
|
|
|
52
76
|
### Security
|
|
53
77
|
|
|
54
78
|
## [0.3.1] - 2022-07-06
|
|
79
|
+
|
|
55
80
|
### Added
|
|
81
|
+
|
|
56
82
|
- Add `RequestPayload`, `RequestPath`, `RequestMethod` and `ResponseStatusCode` as log data
|
|
57
83
|
- Strip `Geolocation` log data
|
|
58
84
|
|
|
59
85
|
### Fix
|
|
86
|
+
|
|
60
87
|
- Stop `getchattoken` retry calls on `429`
|
|
61
88
|
- Fix `axiosRetry` counter
|
|
62
89
|
|
|
63
90
|
### Changed
|
|
91
|
+
|
|
64
92
|
- Rename `getQueueAvailability` to `getAgentAvailability`
|
|
65
93
|
|
|
66
94
|
## [0.3.0] - 2021-09-23
|
|
95
|
+
|
|
67
96
|
### Added
|
|
97
|
+
|
|
68
98
|
- Remove sensitive properties from `Error` object
|
|
69
99
|
- Return `date` field on `getChatConfig` response
|
|
70
100
|
- Add `customerDisplayName` as optional parameter in `sendTypingIndicator`
|
|
71
101
|
|
|
72
102
|
### Security
|
|
103
|
+
|
|
73
104
|
- Uptake [@babel/runtime@7.15.4](https://www.npmjs.com/package/@babel/runtime/v/7.15.4)
|
|
74
105
|
- Uptake [@types/node@12.20.26](https://www.npmjs.com/package/@types/node/v/12.20.26)
|
|
75
106
|
- Uptake [axios@0.21.4](https://www.npmjs.com/package/axios/v/0.21.4)
|
|
@@ -92,17 +123,22 @@ All notable changes to this project will be documented in this file.
|
|
|
92
123
|
- Uptake [webpack-dev-server@3.11.2](https://www.npmjs.com/package/webpack-dev-server/v/3.11.2)
|
|
93
124
|
|
|
94
125
|
## [0.2.0] - 2021-05-05
|
|
126
|
+
|
|
95
127
|
### Added
|
|
128
|
+
|
|
96
129
|
- `livechatconnector/v2/auth/getchattoken` endpoint
|
|
97
130
|
- `inbound/typingindicator/livechat/sendtypingindicator` endpoint
|
|
98
131
|
- `livechatconnector/v2/getchattranscripts` endpoint
|
|
99
132
|
- `livechatconnector/v2/auth/getchattranscripts` endpoint
|
|
100
133
|
|
|
101
134
|
## [0.1.1] - 2021-02-16
|
|
135
|
+
|
|
102
136
|
### Added
|
|
137
|
+
|
|
103
138
|
- `livechatconnector/v2/getchattoken` endpoint
|
|
104
139
|
|
|
105
140
|
### Security
|
|
141
|
+
|
|
106
142
|
- Uptake [@babel/cli@7.12.1](https://www.npmjs.com/package/@babel/cli/v/7.12.1)
|
|
107
143
|
- Uptake [karma@5.2.3](https://www.npmjs.com/package/karma/v/5.2.3)
|
|
108
144
|
- Uptake [webpack-dev-server@3.11.0](https://www.npmjs.com/package/webpack-dev-server/v/3.11.0)
|
|
@@ -110,5 +146,7 @@ All notable changes to this project will be documented in this file.
|
|
|
110
146
|
- Uptake [axios@0.21.1](https://www.npmjs.com/package/axios/v/0.21.1)
|
|
111
147
|
|
|
112
148
|
## [0.1.0] - 2020-09-21
|
|
149
|
+
|
|
113
150
|
### Added
|
|
151
|
+
|
|
114
152
|
- Initial release of Omnichannel SDK v0.1.0
|