thm-p3-configurator 0.0.80 → 0.0.82

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.
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.promise.js");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.orderApi = void 0;
8
- require("core-js/modules/es.promise.js");
9
7
  var _axios = _interopRequireDefault(require("axios"));
10
8
  var _index = require("../__constants__/index.js");
11
9
  var _LocalStorageWorker = require("../__services__/LocalStorageWorker.js");
@@ -31,19 +29,6 @@ orderClient.interceptors.request.use(config => {
31
29
  config.headers.Authorization = "Bearer ".concat(authSession === null || authSession === void 0 ? void 0 : authSession.accessToken);
32
30
  return config;
33
31
  });
34
-
35
- // Add response interceptor to log 4xx errors
36
- orderClient.interceptors.response.use(response => response, error => {
37
- if (error.response && error.response.status >= 400 && error.response.status < 500) {
38
- console.log('4xx Error:', {
39
- status: error.response.status,
40
- url: error.config.url,
41
- method: error.config.method,
42
- data: error.response.data
43
- });
44
- }
45
- return Promise.reject(error);
46
- });
47
32
  const orderApi = exports.orderApi = {
48
33
  getOrder: orderParameters => orderClient("api".concat(APP_CONFIG.internal ? '' : '/public', "/order?").concat(orderParameters) // Remove the `/public` param if the configurator is internal,
49
34
  ),
@@ -381,6 +381,7 @@ const orderSessionReducer = (state, action) => {
381
381
  selectedBranch: (state === null || state === void 0 ? void 0 : state.selectedBranch) || (INITIAL_ORDER_SESSION_STATE === null || INITIAL_ORDER_SESSION_STATE === void 0 ? void 0 : INITIAL_ORDER_SESSION_STATE.selectedBranch),
382
382
  discountCode: (state === null || state === void 0 ? void 0 : state.discountCode) || (INITIAL_ORDER_SESSION_STATE === null || INITIAL_ORDER_SESSION_STATE === void 0 ? void 0 : INITIAL_ORDER_SESSION_STATE.discountCode),
383
383
  singleOrderCart: (state === null || state === void 0 ? void 0 : state.singleOrderCart) || (INITIAL_ORDER_SESSION_STATE === null || INITIAL_ORDER_SESSION_STATE === void 0 ? void 0 : INITIAL_ORDER_SESSION_STATE.singleOrderCart),
384
+ singleOrderFormulaCode: (state === null || state === void 0 ? void 0 : state.singleOrderFormulaCode) || (INITIAL_ORDER_SESSION_STATE === null || INITIAL_ORDER_SESSION_STATE === void 0 ? void 0 : INITIAL_ORDER_SESSION_STATE.singleOrderFormulaCode),
384
385
  isTouched: true
385
386
  });
386
387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",