import { APIHeaders } from "../api/ApiRequests";

export type ContentType =
  | "application/json"
  | "application/x-www-form-urlencoded";
export type EncodingType = "gzip";

export const PROD_BASE_URL = "https://mobtools.com/api/";
export const MOCK_BASE_URL =
  "https://f78ff9dd-2c08-45f1-9bf9-8c670a1bb696.mock.pstmn.io";
export const STAGE_BASE_URL = "https://appsmith-test.herokuapp.com";
export const BASE_URL = STAGE_BASE_URL;
export const REQUEST_TIMEOUT_MS = 2000;
export const REQUEST_HEADERS: APIHeaders = {
  "Content-Type": "application/json",
};

export interface APIException {
  error: number;
  message: string;
}
