@microsoft/ocsdk 0.5.21-main.cc89d16 → 0.5.22-main.06d33c9
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/README.md +4 -0
- package/dist/SDK.min.js +2 -10
- package/dist/SDK.min.js.LICENSE.txt +3 -0
- package/lib/Common/Constants.js +4 -10
- package/lib/Common/Enums.js +28 -49
- package/lib/Common/EventNames.js +3 -11
- package/lib/Common/Locales.js +5 -10
- package/lib/Common/Locales.js.map +1 -1
- package/lib/Common/Mappings.js +1 -1
- package/lib/Common/OCSDKLogger.js +3 -14
- package/lib/Common/OmnichannelEndpoints.js +4 -9
- package/lib/Common/OmnichannelHTTPHeaders.js +4 -9
- package/lib/Common/RequestTimeoutConfig.js +1 -1
- package/lib/Interfaces/IAxiosRetryOptions.js +1 -1
- package/lib/Interfaces/IDataMaskingInfo.js +1 -1
- package/lib/Interfaces/IEmailTranscriptOptionalParams.js +1 -1
- package/lib/Interfaces/IGetChatTokenOptionalParams.js +1 -1
- package/lib/Interfaces/IGetChatTranscriptsOptionalParams.js +1 -1
- package/lib/Interfaces/IGetLWIDetailsOptionalParams.js +1 -1
- package/lib/Interfaces/IGetPersistentChatHistoryOptionalParams.js +1 -1
- package/lib/Interfaces/IGetQueueAvailabilityOptionalParams.js +1 -1
- package/lib/Interfaces/IGetSurveyInviteLinkOptionalParams.js +1 -1
- package/lib/Interfaces/IOCSDKLogger.js +1 -1
- package/lib/Interfaces/IOmnichannelConfiguration.js +1 -1
- package/lib/Interfaces/IPosition.js +1 -1
- package/lib/Interfaces/IReconnectAvailabilityOptionalParams.js +1 -1
- package/lib/Interfaces/IReconnectableChatsParams.js +1 -1
- package/lib/Interfaces/ISDK.js +1 -1
- package/lib/Interfaces/ISDKConfiguration.js +1 -1
- package/lib/Interfaces/ISecondaryChannelEventOptionalParams.js +1 -1
- package/lib/Interfaces/ISendTypingIndicatorOptionalParams.js +1 -1
- package/lib/Interfaces/ISessionCloseOptionalParams.js +1 -1
- package/lib/Interfaces/ISessionInitOptionalParams.js +1 -1
- package/lib/Interfaces/ISubmitPostChatResponseOptionalParams.js +1 -1
- package/lib/Interfaces/ITimer.js +1 -1
- package/lib/Interfaces/IValidateAuthChatRecordOptionalParams.js +1 -1
- package/lib/Interfaces/OmnichannelQueryParameter.js +1 -1
- package/lib/Model/FetchChatTokenResponse.js +4 -9
- package/lib/Model/ILogger.js +1 -1
- package/lib/Model/IOCSDKLogData.js +1 -1
- package/lib/Model/InitContext.js +5 -9
- package/lib/Model/Location.js +4 -8
- package/lib/Model/LogLevel.js +4 -6
- package/lib/Model/QueueAvailability.js +28 -9
- package/lib/Model/ReconnectAvailability.js +13 -9
- package/lib/Model/ReconnectMappingRecord.js +22 -9
- package/lib/SDK.d.ts +1 -1
- package/lib/SDK.js +1893 -2411
- package/lib/SDK.js.map +1 -1
- package/lib/SDKProvider.js +3 -14
- package/lib/Utils/BrowserInfo.js +6 -36
- package/lib/Utils/CustomContextData.js +7 -17
- package/lib/Utils/DeviceInfo.js +3 -15
- package/lib/Utils/EventManager.js +4 -15
- package/lib/Utils/LocationInfo.js +27 -47
- package/lib/Utils/LoggingSanitizer.js +14 -45
- package/lib/Utils/OSInfo.js +3 -21
- package/lib/Utils/SessionInitRetryHandler.js +5 -17
- package/lib/Utils/TelemetryHelper.js +3 -12
- package/lib/Utils/Timer.js +3 -12
- package/lib/Utils/axiosRetryHandler.js +14 -43
- package/lib/Utils/endpointsCreators.js +4 -16
- package/lib/Utils/httpHeadersUtils.js +2 -10
- package/lib/Utils/isExpectedAxiosError.js +2 -8
- package/lib/Utils/setAuthCodeNonce.js +1 -1
- package/lib/Utils/sleep.js +2 -5
- package/lib/Utils/throwClientHTTPError.js +2 -6
- package/lib/Utils/uuid.js +3 -6
- package/lib/Utils/waitTimeBetweenRetriesConfigs.js +2 -3
- package/lib/index.js +4 -14
- package/package.json +20 -14
- package/dist/SDK.js +0 -9266
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/ocsdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.22-main.06d33c9",
|
|
4
4
|
"description": "Microsoft Omnichannel SDK",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build:tsc": "tsc --project tsconfig.json",
|
|
16
16
|
"build:babel": "babel src --extensions .js,.ts --out-dir lib --verbose",
|
|
17
17
|
"build:dev": "webpack --config webpack.config.js --mode development",
|
|
18
|
-
"build:prod": "
|
|
18
|
+
"build:prod": "cross-env NODE_OPTIONS=--openssl-legacy-provider npm run build:tsc && npm run build:babel && webpack --config webpack.config.js --mode production",
|
|
19
19
|
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
20
20
|
"lint": "eslint src --ext .ts"
|
|
21
21
|
},
|
|
@@ -27,22 +27,23 @@
|
|
|
27
27
|
"author": "Microsoft Corporation",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/cli": "^7.
|
|
31
|
-
"@babel/core": "^7.
|
|
32
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
33
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
34
|
-
"@babel/preset-env": "^7.
|
|
35
|
-
"@babel/preset-typescript": "^7.
|
|
30
|
+
"@babel/cli": "^7.26.10",
|
|
31
|
+
"@babel/core": "^7.26.10",
|
|
32
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
33
|
+
"@babel/plugin-transform-runtime": "^7.26.10",
|
|
34
|
+
"@babel/preset-env": "^7.26.10",
|
|
35
|
+
"@babel/preset-typescript": "^7.26.10",
|
|
36
36
|
"@dhigroup/karma-vsts-reporter": "^1.3.0",
|
|
37
|
+
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
|
|
37
38
|
"@types/crypto-js": "^4.2.2",
|
|
38
39
|
"@types/jasmine": "^3.9.1",
|
|
39
40
|
"@typescript-eslint/eslint-plugin": "^3.10.1",
|
|
40
41
|
"@typescript-eslint/parser": "^3.10.1",
|
|
41
42
|
"axios-mock-adapter": "^2.0.0",
|
|
43
|
+
"cross-env": "^10.1.0",
|
|
42
44
|
"danger": "^13.0.4",
|
|
43
45
|
"eslint": "^7.32.0",
|
|
44
46
|
"eslint-plugin-security": "^1.4.0",
|
|
45
|
-
"istanbul-instrumenter-loader": "^3.0.1",
|
|
46
47
|
"jasmine": "^3.9.0",
|
|
47
48
|
"karma": "^6.3.16",
|
|
48
49
|
"karma-chrome-launcher": "^3.1.0",
|
|
@@ -50,20 +51,25 @@
|
|
|
50
51
|
"karma-coverage-istanbul-reporter": "^2.1.1",
|
|
51
52
|
"karma-jasmine": "^2.0.1",
|
|
52
53
|
"karma-spec-reporter": "0.0.32",
|
|
53
|
-
"karma-webpack": "^
|
|
54
|
+
"karma-webpack": "^5.0.1",
|
|
54
55
|
"prettier": "^1.19.1",
|
|
56
|
+
"process": "^0.11.10",
|
|
57
|
+
"puppeteer": "^23.11.1",
|
|
55
58
|
"ts-loader": "^8.4.0",
|
|
56
59
|
"typescript": "^4.9.5",
|
|
57
|
-
"webpack": "^
|
|
58
|
-
"webpack-cli": "^
|
|
59
|
-
"webpack-dev-server": "^
|
|
60
|
+
"webpack": "^5.104.1",
|
|
61
|
+
"webpack-cli": "^6.0.1",
|
|
62
|
+
"webpack-dev-server": "^5.2.3",
|
|
60
63
|
"webpack-merge": "^4.2.2"
|
|
61
64
|
},
|
|
62
65
|
"dependencies": {
|
|
63
|
-
"@babel/runtime": "^7.
|
|
66
|
+
"@babel/runtime": "^7.26.10",
|
|
64
67
|
"@types/node": "^22.13.10",
|
|
65
68
|
"axios": "^1.12.0",
|
|
66
69
|
"axios-retry": "^3.9.1",
|
|
67
70
|
"crypto-js": "^4.2.0"
|
|
71
|
+
},
|
|
72
|
+
"overrides": {
|
|
73
|
+
"lodash": "4.17.23"
|
|
68
74
|
}
|
|
69
75
|
}
|