medos-sdk 1.1.2 → 1.1.3

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 +1 @@
1
- export declare const API_BASE_URL = "https://api.medos.one";
1
+ export declare const API_BASE_URL = "https://api-dev.medapi.in/v1";
@@ -1 +1 @@
1
- export const API_BASE_URL = "https://api.medos.one";
1
+ export const API_BASE_URL = "https://api-dev.medapi.in/v1";
@@ -4,7 +4,7 @@ let sessionToken = null;
4
4
  const AuthService = {
5
5
  async init(apiKey) {
6
6
  try {
7
- const res = await axios.post(`${API_BASE_URL}/v1/auth/session?api_key=${apiKey}`, {});
7
+ const res = await axios.post(`${API_BASE_URL}/auth/session?api_key=${apiKey}`, {});
8
8
  const token = res.data?.access_token;
9
9
  if (!token || typeof token !== "string") {
10
10
  throw new Error("Invalid session token response");
@@ -1 +1 @@
1
- export declare const API_BASE_URL = "https://api.medos.one";
1
+ export declare const API_BASE_URL = "https://api-dev.medapi.in/v1";
@@ -3847,13 +3847,13 @@
3847
3847
  mergeConfig
3848
3848
  } = axios;
3849
3849
 
3850
- const API_BASE_URL = "https://api.medos.one";
3850
+ const API_BASE_URL = "https://api-dev.medapi.in/v1";
3851
3851
 
3852
3852
  let sessionToken = null;
3853
3853
  const AuthService = {
3854
3854
  async init(apiKey) {
3855
3855
  try {
3856
- const res = await axios.post(`${API_BASE_URL}/v1/auth/session?api_key=${apiKey}`, {});
3856
+ const res = await axios.post(`${API_BASE_URL}/auth/session?api_key=${apiKey}`, {});
3857
3857
  const token = res.data?.access_token;
3858
3858
  if (!token || typeof token !== "string") {
3859
3859
  throw new Error("Invalid session token response");
@@ -3847,13 +3847,13 @@
3847
3847
  mergeConfig
3848
3848
  } = axios;
3849
3849
 
3850
- const API_BASE_URL = "https://api.medos.one";
3850
+ const API_BASE_URL = "https://api-dev.medapi.in/v1";
3851
3851
 
3852
3852
  let sessionToken = null;
3853
3853
  const AuthService = {
3854
3854
  async init(apiKey) {
3855
3855
  try {
3856
- const res = await axios.post(`${API_BASE_URL}/v1/auth/session?api_key=${apiKey}`, {});
3856
+ const res = await axios.post(`${API_BASE_URL}/auth/session?api_key=${apiKey}`, {});
3857
3857
  const token = res.data?.access_token;
3858
3858
  if (!token || typeof token !== "string") {
3859
3859
  throw new Error("Invalid session token response");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medos-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Medos SDK for managing appointments, meetings, and calendars in apps",
5
5
  "homepage": "https://github.com/MediLaunch/medos-sdk-react#readme",
6
6
  "bugs": {