@bindu-dashing/dam-solution-v2 5.8.66 → 5.8.67

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.
@@ -14,11 +14,12 @@ import { getBaseUrl } from "./helpers";
14
14
  import { USER_LOGIN } from "../utilities/constants/apiUrls";
15
15
  import { SUBSCRIPTION_EXPIRED_ERROR_MESSAGE } from "./appConstants";
16
16
  export const createApiClient = ({ accessToken, appType, subdomain, damAccessKey, secretKey, teamIds, setAccessToken, setDamUser, setBrand, setRootFolderId, }) => {
17
+ const STATIC_MIXDRIVE_API_URL = "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1";
17
18
  const api = axios.create({
18
19
  timeout: 900000,
19
20
  baseURL: appType === "reactJs"
20
- ? process.env.REACT_APP_MIXDRIVE_API_URL
21
- : process.env.NEXT_PUBLIC_MIXDRIVE_API_URL,
21
+ ? process.env.REACT_APP_MIXDRIVE_API_URL || STATIC_MIXDRIVE_API_URL
22
+ : process.env.NEXT_PUBLIC_MIXDRIVE_API_URL || STATIC_MIXDRIVE_API_URL,
22
23
  });
23
24
  api.interceptors.request.use((request) => {
24
25
  request.headers["subdomain"] = subdomain;
@@ -93,13 +93,14 @@ export const getDateRangeFromKey = (key) => {
93
93
  }
94
94
  };
95
95
  export const getBaseUrl = (appType) => {
96
+ const STATIC_MIXDRIVE_API_URL = "https://yjeregc921.execute-api.ap-south-1.amazonaws.com/staging/v1";
96
97
  switch (appType) {
97
98
  case "reactJs":
98
- return process.env.REACT_APP_MIXDRIVE_API_URL || "";
99
+ return process.env.REACT_APP_MIXDRIVE_API_URL || STATIC_MIXDRIVE_API_URL;
99
100
  case "nextJs":
100
- return process.env.NEXT_PUBLIC_MIXDRIVE_API_URL || "";
101
+ return process.env.NEXT_PUBLIC_MIXDRIVE_API_URL || STATIC_MIXDRIVE_API_URL;
101
102
  default:
102
- return process.env.REACT_APP_MIXDRIVE_API_URL || "";
103
+ return process.env.REACT_APP_MIXDRIVE_API_URL || STATIC_MIXDRIVE_API_URL;
103
104
  }
104
105
  };
105
106
  export const getRelativeTime = (timestamp) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.8.66",
3
+ "version": "5.8.67",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",