import { router } from '../trpc-index';
import { addressRouter } from './address';
import { authRouter } from './auth';
import { bannerRouter } from './banners';
import { cartRouter } from './cart';
import { complaintRouter } from './complaint';
import { orderRouter } from './order';
import { productRouter } from './product';
import { slotsRouter } from './slots';
import { userRouter as userDataRouter } from './user';
import { userCouponRouter } from './coupon';
import { paymentRouter } from './payments';
import { storesRouter } from './stores';
import { fileUploadRouter } from './file-upload';

export const userRouter = router({
  address: addressRouter,
  auth: authRouter,
  banner: bannerRouter,
  cart: cartRouter,
  complaint: complaintRouter,
  order: orderRouter,
  product: productRouter,
  slots: slotsRouter,
  user: userDataRouter,
  coupon: userCouponRouter,
  payment: paymentRouter,
  stores: storesRouter,
  fileUpload: fileUploadRouter,
});

export type UserRouter = typeof userRouter;