"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _base = _interopRequireDefault(require("./base"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Auth = {
  sendOtp: data => {
    const {
      payload,
      headers
    } = data || {};
    const route = '/otp/send';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      isEncrypted: true,
      payload,
      headers
    });
  },
  verifyOtp: data => {
    const {
      payload,
      headers
    } = data || {};
    const route = '/otp/verify';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      isEncrypted: true,
      payload,
      headers
    });
  },
  getOnboardingData: payload => {
    const route = '/patient/onbording_signup_data';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload
    });
  },
  loginSendOtp: payload => {
    const route = '/patient/login_send_otp';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload
    });
  },
  sendSignUpOtp: payload => {
    const route = '/patient/send_otp_signup';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload
    });
  },
  verifyOTPSignUp: payload => {
    const route = '/patient/verify_otp_signup';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload
    });
  },
  verifyOTPLogin: payload => {
    const route = '/patient/login_verify_otp';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload
    });
  },
  updateSignupStep: payload => {
    const route = '/patient/update_signup_for';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: true,
      payload
    });
  },
  tempPatientSignUp: payload => {
    const route = '/patient/register_temp_patient_profile';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: true,
      payload
    });
  },
  authenticateUser: requestObj => {
    const payload = requestObj === null || requestObj === void 0 ? void 0 : requestObj.payload;
    const environment = requestObj === null || requestObj === void 0 ? void 0 : requestObj.environment;
    const route = '/patient/login_or_register_patient';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload,
      environment: environment
    });
  },
  medicalConditionGroupList: payload => {
    const route = '/patient/medical_condition_group_list';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload
    });
  },
  registerPatient: data => {
    const {
      payload,
      headers
    } = data || {};
    const route = '/patient/register';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: false,
      payload,
      headers
    });
  },
  verifyDoctorCode: payload => {
    const route = '/patient/verify_doctor_access_code';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: true,
      payload
    });
  },
  updateDeviceInfo: payload => {
    const route = '/patient/update_device_info';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: true,
      payload
    });
  },
  getPatientDetails: payload => {
    const route = '/patient/get_patient_details';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: true,
      payload
    });
  },
  getUserStatusApi: payload => {
    const route = '/Patient/get_patient_source';
    return _base.default.request(route, {
      method: _base.default.POST,
      priv: true,
      payload
    });
  },
  getUserMetaInfo: payload => {
    const route = `/patient/get_patient_meta_info?get_bca_readings=${payload === null || payload === void 0 ? void 0 : payload.get_bca_readings}`;
    return _base.default.request(route, {
      method: _base.default.GET,
      priv: true
    });
  }
};
var _default = exports.default = Auth;
//# sourceMappingURL=auth.js.map