import { APIS_INTERFACE } from '@/types/interfaces';

const APIS: APIS_INTERFACE = {
  LOGIN: {
    url: `/api/users/login`,
    method: 'POST',
  },
  FORGOT_PASSWORD: {
    url: '/api/users/forgot-password',
    method: 'POST',
  },
  VERIFY_OTP: {
    url: '/api/users/code-check',
    method: 'POST',
  },
  RESET_PASSWORD: {
    url: '/api/users/reset-password',
    method: 'POST',
  },
  VERIFY_LOGIN_OTP: {
    url: '/api/users/login/otp',
    method: 'POST',
  },
  VERIFY_LOGIN_OTP_CHECK: {
    url: '/api/users/login/otp/check',
    method: 'POST',
  },
  CHANGE_PASSWORD: {
    url: '/api/users/change-password',
    method: 'POST',
  },

  MEMBER_LOGOUT: {
    url: '/api/users/logout',
    method: 'GET',
  },

  GET_PROFILE: {
    url: '/api/users/get/profile',
    method: 'GET',
  },

  //API_DATA
  VEHICLE_AND_MOT_DATA: { //VehicleandMotData
    url: '/api/vehicle/mot/data',
    method: 'POST',
  },
  ROAD_TAX_MOT_DATA: { //roadTaxMotData
    url: '/api/road/tax/mot/data',
    method: 'POST',
  },
  SECOND_PAGE_FORMDATA: { //secondpageformdata
    url: '/api/second/page/formdata',
    method: 'POST',
  },
  VALUATION_DATA: { //valuationdata
    url: '/api/valuation/data',
    method: 'POST',
  },

  CONTACT_US: {
    url: '/api/contact/us',
    method: 'POST',  //
  },

  CMS: {
    url: '/api/page',
    method: 'POST',
  },
  //BLOG
  BLOG_LIST: {
    url: '/api/blog/list', //?page=1&limit=10
    method: 'GET',  //
  },
  BLOG_DETAIL: {
    url: '/api/blog/detail', //:id
    method: 'POST',
  },

  // Dashboard
  DASHBOARD_CARDS: {
    url: '/api/dashboard/cards',
    method: 'GET',
  },

  DASHBOARD_TABLE: {
    url: '/api/dashboard/table', //?filter=last_week
    method: 'GET',
  },

  //warning Messages
  WARNING_MESSAGES: {
    url: '/api/warning/message/update',
    method: 'POST',
  },

  //Area Manager
  MEMBER_SELECTED_AREA: {
    url: '/api/selected/areas',
    method: 'GET',
  },
  SELECT_AREA: {
    url: '/api/select/area',
    method: 'POST', //{"area_id":[1,2,3,4,8,6]}
  },
  SELECTED_AREA_LOGS: {
    url: '/api/area/selection/logs',
    method: 'GET',
  },

  AREA_LIST: {
    url: '/api/area/list', //?filter=this_month
    method: 'GET',
  },

  MAKES: {
    url: '/api/makes',
    method: 'GET'
  },

  MEMBER_LEAD_REPORT: {
    url: '/api/lead/report',
    method: 'GET',
  },
  MEMBER_LEAD__VEHICLE_DETAIL: {
    url: '/api/lead/vehicle/detail/', //:id
    method: 'GET',
  },

  MEMBER_LEAD_GRAPH: {
    url: '/api/lead/graph', //?filter=this_month
    method: 'GET',
  },

  FAQS: {
    url: '/api/faqs',
    method: 'GET',
  },


  // Graph
  LEAD_GRAPH: {
    url: '/api/lead/graph',
    method: 'GET',
  },

  // lead/report
  LEAD_REPORT: {
    url: '/api/lead/report',
    method: 'GET',
  },

  // lead/report/monthly/statement
  LEAD_REPORT_MONTHLY_STATEMENT: {
    url: '/api/monthly/statement',
    method: 'GET',
  },

  // monthly/lead/report
  MONTHLY_LEAD_REPORT: {
    url: '/api/monthly/lead/report',
    method: 'GET',
  },

  //'lead/vehicle/detail/{id}
  LEAD_VEHICLE_DETAIL: {
    url: '/api/lead/vehicle/detail/{id}',
    method: 'GET',
  },

  //get/invoices
  GET_INVOICES: {
    url: '/api/get/invoices',
    method: 'GET',
  },

  //download/invoice/{id}
  DOWNLOAD_INVOICE: {
    url: '/api/download/invoice/:id',
    method: 'GET',
  },

  //plans

  PLANS: {
    url: '/api/member/plans',
    method: 'GET',
  },

  //purchase/plan
  PURCHASE_PLAN: {
    url: '/api/member/purchase/plan',
    method: 'POST',
  },

  //transations
  TRANSACTIONS: {
    url: '/api/member/transactions',
    method: 'GET',
  },

  //pause/status/update
  PAUSE_STATUS_UPDATE: {
    url: '/api/member/pause/status/update',
    method: 'POST',
  },


  MEMBER_LEAD_LIMITATION_LOGS: {
    url: '/api/member/lead/limitation/logs',
    method: 'GET',
  },

  MEMBER_PAUSE_UNPAUSE_LOGS: {
    url: '/api/member/pause/unpause/logs',
    method: 'GET',
  },


  MEMBER_LEAD_LIMIT_UPDATE: {
    url: '/api/member/lead/limit/update',
    method: 'POST',
  },

  PAYMENT_COMPLETE: {
    url: '/api/member/stripe/success',
    method: 'POST',
  },

  // stripe/cancel
  PAYMENT_CANCEL: {
    url: '/api/member/stripe/cancel',
    method: 'POST',
  },

  //monthly/account/summary
  MONTHLY_ACCOUNT_SUMMARY: {
    url: '/api/monthly/account/summary',
    method: 'GET',
  },

  DOWNLOAD_MONTHLY_STATEMENT: {
    url: '/api/monthly/account/summary/download',
    method: 'GET',
  },

  DOWNLOAD_STATEMENT_PDF: {
    url: '/api/monthly/statement/download/pdf',
    method: 'GET',
  },

  DOWNLOAD_STATEMENT_EXCEL: {
    url: '/api/monthly/statement/download/excel',
    method: 'GET',
  },

  DOWNLOAD_MONTHLY_STATEMENT_REPORT: {
    url: '/api/monthly/lead/report/download',
    method: 'GET',
  },

  //lead/vehicle/detail/{id}
  LEAD_VEHICLE_DETAIL_ID: {
    url: '/api/lead/vehicle/detail/:id',
    method: 'GET',
  },

  //view/invoice/{id}
  VIEW_INVOICE: {
    url: '/api/view/invoice/:id',
    method: 'GET',
  },

  ///custom/template
  CUSTOM_TEMPLATE: {
    url: '/api/custom/template',
    method: 'POST',
  },

  //download/lead/detail/{id}
  DOWNLOAD_LEAD_DETAIL: {
    url: '/api/download/lead/detail/:id',
    method: 'GET',
  },
  WORLDPAY_PAYMENT: {
    url: '/api/member/worldpay/payment',
    method: 'POST',
  },
  USER_IP_CHECK: {
    url: '/api/check/user',
    method: 'GET',
  },

  USER_COOKIE_CHECK: {
    url: '/api/cookie/check/limit',
    method: 'GET'
  },


  DOWNLOAD_LEAD_STATEMENT: {
    url: '/api/lead/report/download',
    method: 'GET',
  },



}
export default APIS
