@microsoft/ocsdk 0.5.20-main.dfb694e → 0.5.21-main.3dcea70

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 (69) hide show
  1. package/dist/SDK.js +56865 -7599
  2. package/dist/SDK.min.js +2 -10
  3. package/dist/SDK.min.js.LICENSE.txt +3 -0
  4. package/lib/Common/Constants.js +4 -10
  5. package/lib/Common/Enums.js +28 -49
  6. package/lib/Common/EventNames.js +3 -11
  7. package/lib/Common/Locales.js +4 -9
  8. package/lib/Common/Mappings.js +1 -1
  9. package/lib/Common/OCSDKLogger.js +3 -14
  10. package/lib/Common/OmnichannelEndpoints.js +4 -9
  11. package/lib/Common/OmnichannelHTTPHeaders.js +4 -9
  12. package/lib/Common/RequestTimeoutConfig.js +1 -1
  13. package/lib/Interfaces/IAxiosRetryOptions.js +1 -1
  14. package/lib/Interfaces/IDataMaskingInfo.js +1 -1
  15. package/lib/Interfaces/IEmailTranscriptOptionalParams.js +1 -1
  16. package/lib/Interfaces/IGetChatTokenOptionalParams.js +1 -1
  17. package/lib/Interfaces/IGetChatTranscriptsOptionalParams.js +1 -1
  18. package/lib/Interfaces/IGetLWIDetailsOptionalParams.js +1 -1
  19. package/lib/Interfaces/IGetPersistentChatHistoryOptionalParams.js +1 -1
  20. package/lib/Interfaces/IGetQueueAvailabilityOptionalParams.js +1 -1
  21. package/lib/Interfaces/IGetSurveyInviteLinkOptionalParams.js +1 -1
  22. package/lib/Interfaces/IOCSDKLogger.js +1 -1
  23. package/lib/Interfaces/IOmnichannelConfiguration.js +1 -1
  24. package/lib/Interfaces/IPosition.js +1 -1
  25. package/lib/Interfaces/IReconnectAvailabilityOptionalParams.js +1 -1
  26. package/lib/Interfaces/IReconnectableChatsParams.js +1 -1
  27. package/lib/Interfaces/ISDK.js +1 -1
  28. package/lib/Interfaces/ISDKConfiguration.js +1 -1
  29. package/lib/Interfaces/ISecondaryChannelEventOptionalParams.js +1 -1
  30. package/lib/Interfaces/ISendTypingIndicatorOptionalParams.js +1 -1
  31. package/lib/Interfaces/ISessionCloseOptionalParams.js +1 -1
  32. package/lib/Interfaces/ISessionInitOptionalParams.js +1 -1
  33. package/lib/Interfaces/ISubmitPostChatResponseOptionalParams.js +1 -1
  34. package/lib/Interfaces/ITimer.js +1 -1
  35. package/lib/Interfaces/IValidateAuthChatRecordOptionalParams.js +1 -1
  36. package/lib/Interfaces/OmnichannelQueryParameter.js +1 -1
  37. package/lib/Model/FetchChatTokenResponse.js +4 -9
  38. package/lib/Model/ILogger.js +1 -1
  39. package/lib/Model/IOCSDKLogData.js +1 -1
  40. package/lib/Model/InitContext.js +5 -9
  41. package/lib/Model/Location.js +4 -8
  42. package/lib/Model/LogLevel.js +4 -6
  43. package/lib/Model/QueueAvailability.js +28 -9
  44. package/lib/Model/ReconnectAvailability.js +13 -9
  45. package/lib/Model/ReconnectMappingRecord.js +22 -9
  46. package/lib/SDK.js +1896 -2409
  47. package/lib/SDK.js.map +1 -1
  48. package/lib/SDKProvider.js +3 -14
  49. package/lib/Utils/BrowserInfo.js +6 -36
  50. package/lib/Utils/CustomContextData.js +7 -17
  51. package/lib/Utils/DeviceInfo.js +3 -15
  52. package/lib/Utils/EventManager.js +4 -15
  53. package/lib/Utils/LocationInfo.js +27 -47
  54. package/lib/Utils/LoggingSanitizer.js +14 -45
  55. package/lib/Utils/OSInfo.js +3 -21
  56. package/lib/Utils/SessionInitRetryHandler.js +5 -17
  57. package/lib/Utils/TelemetryHelper.js +3 -12
  58. package/lib/Utils/Timer.js +3 -12
  59. package/lib/Utils/axiosRetryHandler.js +14 -43
  60. package/lib/Utils/endpointsCreators.js +4 -16
  61. package/lib/Utils/httpHeadersUtils.js +2 -10
  62. package/lib/Utils/isExpectedAxiosError.js +2 -8
  63. package/lib/Utils/setAuthCodeNonce.js +1 -1
  64. package/lib/Utils/sleep.js +2 -5
  65. package/lib/Utils/throwClientHTTPError.js +2 -6
  66. package/lib/Utils/uuid.js +3 -6
  67. package/lib/Utils/waitTimeBetweenRetriesConfigs.js +2 -3
  68. package/lib/index.js +4 -14
  69. package/package.json +20 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/ocsdk",
3
- "version": "0.5.20-main.dfb694e",
3
+ "version": "0.5.21-main.3dcea70",
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": "export NODE_OPTIONS=--openssl-legacy-provider && npm run build:tsc && npm run build:babel && webpack --config webpack.config.js --mode production",
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.15.7",
31
- "@babel/core": "^7.15.5",
32
- "@babel/plugin-proposal-class-properties": "^7.14.5",
33
- "@babel/plugin-transform-runtime": "^7.15.0",
34
- "@babel/preset-env": "^7.15.6",
35
- "@babel/preset-typescript": "^7.15.0",
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": "^4.0.2",
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": "^4.47.0",
58
- "webpack-cli": "^3.3.12",
59
- "webpack-dev-server": "^3.11.2",
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.15.4",
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
  }