import { FromSchema } from 'json-schema-to-ts'; import { parametersSchema } from './parameters-schema'; import { variantSchema } from './variant-schema'; import { overrideSchema } from './override-schema'; import { featureStrategySchema } from './feature-strategy-schema'; import { featureSchema } from './feature-schema'; import { constraintSchema } from './constraint-schema'; import { environmentSchema } from './environment-schema'; import { featureEnvironmentSchema } from './feature-environment-schema'; import { projectStatsSchema } from './project-stats-schema'; export const projectOverviewSchema = { $id: '#/components/schemas/projectOverviewSchema', type: 'object', additionalProperties: false, required: ['version', 'name'], properties: { stats: { $ref: '#/components/schemas/projectStatsSchema', }, version: { type: 'number', }, name: { type: 'string', }, description: { type: 'string', }, members: { type: 'number', }, health: { type: 'number', }, environments: { type: 'array', items: { type: 'string', }, }, features: { type: 'array', items: { $ref: '#/components/schemas/featureSchema', }, }, updatedAt: { type: 'string', format: 'date-time', nullable: true, }, favorite: { type: 'boolean', }, }, components: { schemas: { constraintSchema, environmentSchema, featureSchema, featureEnvironmentSchema, overrideSchema, parametersSchema, featureStrategySchema, variantSchema, projectStatsSchema, }, }, } as const; export type ProjectOverviewSchema = FromSchema;