import { z } from 'zod'
import { DisplayMetadataSchema, ModelIdSchema } from './shared'

export const ProjectsDomainStateSchema = DisplayMetadataSchema.extend({
  id: ModelIdSchema,
  order: z.number().int().min(0)
})

// OrganizationModelProjectsSchema and DEFAULT_ORGANIZATION_MODEL_PROJECTS are retired.
// Project/milestone/task status data lives in System.ontology.catalogTypes on
// the owning system. Use getAllProjectStatuses() from migration-helpers to read
// status data portably.
//
// ProjectsDomainStateSchema is retained as the payload shape type for individual status entries.
