import { Transaction } from "../generated/kysely-tailordb";
import { SetBaseCurrencyDeprecatedError } from "../lib/errors.generated";
import { err } from "@tailor-platform/erp-kit/module";

export interface SetBaseCurrencyInput {
  currencyId: string;
}

/**
 * Function: setBaseCurrency
 *
 * @deprecated Base currency assignment is per company and owned by the organization module.
 * Use the organization module's company-level base currency assignment instead.
 */
export function run(_db: Transaction, _input: SetBaseCurrencyInput) {
  return Promise.resolve(err(new SetBaseCurrencyDeprecatedError("")));
}
