// Generated by smithplates HTTP codegen. Do not edit.

import axios, { type AxiosInstance } from "axios";
import { WarehouseApiClient } from "generated/example/warehouseApi/clients/warehouseClient";

export interface ApiClients {
  warehouseClient: WarehouseApiClient;
}

export function createApiClients(
  baseUrl: string,
  axiosInstance: AxiosInstance = axios,
): ApiClients {
  const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
  return {
    warehouseClient: new WarehouseApiClient(normalizedBaseUrl, axiosInstance),
  };
}
