import type { Account, Schema } from "../lib/types";
import type { Company } from "./moduleMocks";

// Account fixtures
export const baseActiveAccount = {
  id: "account-2",
  code: "1200",
  name: "Accounts Receivable",
  accountType: "ASSET",
  companyId: "company-1",
  status: "ACTIVE",
  createdAt: new Date("2024-01-01T00:00:00.000Z"),
  updatedAt: null,
} as const satisfies Account<Schema>;

export const baseInactiveAccount = {
  id: "account-3",
  code: "1300",
  name: "Old Bank Account",
  accountType: "ASSET",
  companyId: "company-1",
  status: "INACTIVE",
  createdAt: new Date("2024-01-01T00:00:00.000Z"),
  updatedAt: null,
} as const satisfies Account<Schema>;

// Company fixture (for cross-module validation)
export const baseActiveCompany = {
  id: "company-1",
  legalName: "Test Corp",
  baseCurrencyId: "currency-usd",
  status: "ACTIVE",
  taxId: null,
  registrationNumber: null,
  street: "123 Main St",
  city: "New York",
  state: "NY",
  postalCode: "10001",
  country: "US",
  createdAt: new Date("2024-01-01T00:00:00.000Z"),
  updatedAt: null,
} as const satisfies Company;
