import type { SupabaseOrganization } from '../../supabase'

/**
 * Test organization fixtures using actual Supabase types
 */
export const TEST_ORGS: Record<string, SupabaseOrganization> = {
  acme: {
    id: '00000000-0000-0000-0000-000000000010',
    workos_org_id: 'org_acme_test',
    name: 'Acme Corp',
    status: 'active',
    is_test: true,
    metadata: {},
    config: {},
    created_at: '2025-01-01T00:00:00Z',
    updated_at: '2025-01-01T00:00:00Z'
  },
  beta: {
    id: '00000000-0000-0000-0000-000000000011',
    workos_org_id: 'org_beta_test',
    name: 'Beta Inc',
    status: 'active',
    is_test: true,
    metadata: {},
    config: {},
    created_at: '2025-01-01T00:00:00Z',
    updated_at: '2025-01-01T00:00:00Z'
  },
  gamma: {
    id: '00000000-0000-0000-0000-000000000012',
    workos_org_id: 'org_gamma_test',
    name: 'Gamma LLC',
    status: 'active',
    is_test: true,
    metadata: {},
    config: {},
    created_at: '2025-01-01T00:00:00Z',
    updated_at: '2025-01-01T00:00:00Z'
  },
  inactive: {
    id: '00000000-0000-0000-0000-000000000013',
    workos_org_id: 'org_inactive_test',
    name: 'Inactive Org',
    status: 'inactive',
    is_test: true,
    metadata: {},
    config: {},
    created_at: '2025-01-01T00:00:00Z',
    updated_at: '2025-01-01T00:00:00Z'
  }
}

/**
 * Helper to create custom organization fixture
 */
export function createTestOrg(overrides: Partial<SupabaseOrganization>): SupabaseOrganization {
  return {
    id: '00000000-0000-0000-0000-999999999999',
    workos_org_id: 'org_custom_test',
    name: 'Custom Org',
    status: 'active',
    is_test: true,
    metadata: {},
    config: {},
    created_at: '2025-01-01T00:00:00Z',
    updated_at: '2025-01-01T00:00:00Z',
    ...overrides
  }
}
