oro-sdk-apis 5.15.3 → 5.16.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.
- package/dist/models/workflow.d.ts +32 -0
- package/dist/oro-sdk-apis.cjs.development.js +5 -1
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +5 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +4 -3
- package/src/models/workflow.ts +51 -16
- package/src/services/api.ts +4 -0
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -2,6 +2,7 @@ import { sha256 } from 'hash.js';
|
|
2
2
|
import { Buffer } from 'buffer/';
|
3
3
|
import createAuthRefreshInterceptor from 'axios-auth-refresh';
|
4
4
|
import axios from 'axios';
|
5
|
+
import { v4 } from 'uuid';
|
5
6
|
|
6
7
|
/**
|
7
8
|
* This function return a base64 string representation of a hashed string
|
@@ -543,10 +544,13 @@ var APIService = /*#__PURE__*/function (_AxiosService) {
|
|
543
544
|
_this.tokenRefreshFailureCallback = tokenRefreshFailureCallback;
|
544
545
|
_this.tokens = {};
|
545
546
|
var self = _assertThisInitialized(_this);
|
547
|
+
var sessionId = v4();
|
546
548
|
_this.axios.interceptors.request.use(function (config) {
|
547
549
|
var token = config.useRefreshToken ? self.getTokens().refreshToken : self.getTokens().accessToken;
|
548
550
|
config.headers = _extends({}, config.headers, {
|
549
|
-
Authorization: "Bearer " + token
|
551
|
+
Authorization: "Bearer " + token,
|
552
|
+
'X-Session-Id': sessionId,
|
553
|
+
'X-Request-Id': v4()
|
550
554
|
});
|
551
555
|
return config;
|
552
556
|
}, function (error) {
|