estadisticas de osp expandida

This commit is contained in:
2026-04-16 16:01:45 -04:00
parent 8f207e675c
commit 548bb0cdb2
4 changed files with 374 additions and 20 deletions

View File

@@ -10,13 +10,21 @@ export const statisticsItemSchema = z.object({
export const trainingStatisticsSchema = z.object({
totalOsps: z.number(),
totalProducers: z.number(),
// totalProducers: z.number(),
totalProducts: z.number(),
statusDistribution: z.array(statisticsItemSchema),
activityDistribution: z.array(statisticsItemSchema),
typeDistribution: z.array(statisticsItemSchema),
stateDistribution: z.array(statisticsItemSchema),
yearDistribution: z.array(statisticsItemSchema),
ecoSectorDistribution: z.array(statisticsItemSchema),
productiveSectorDistribution: z.array(statisticsItemSchema),
centralActivityDistribution: z.array(statisticsItemSchema),
mainActivityDistribution: z.array(statisticsItemSchema),
structureTypeDistribution: z.array(statisticsItemSchema),
isOpenSpaceDistribution: z.array(statisticsItemSchema),
hasTransportDistribution: z.array(statisticsItemSchema),
genderDistribution: z.array(statisticsItemSchema),
});
export type TrainingStatisticsData = z.infer<typeof trainingStatisticsSchema>;