import { SquareClient, SquareEnvironment } from "square"; import { env } from "../env.js"; export const squareClient = new SquareClient({ token: env.SQUARE_ACCESS_TOKEN, environment: env.SQUARE_ENVIRONMENT === "production" ? SquareEnvironment.Production : SquareEnvironment.Sandbox, }); export const squareLocationIds: string[] = env.SQUARE_LOCATION_ID ? env.SQUARE_LOCATION_ID.split(",").map((id) => id.trim()).filter(Boolean) : [];