UNPKG

@tmlmobilidade/types

Version:
57 lines (56 loc) 3.45 kB
import { DemandByAgencyByDayByProductSchema, DemandByAgencyByDaySchema, DemandByAgencyByMonthSchema, DemandByAgencyByYearSchema, DemandByCategoryByAgencyByDaySchema, DemandByCategoryByAgencyByMonthSchema, DemandByCategoryByAgencyByYearSchema, DemandByCategoryByLineByDaySchema, DemandByCategoryByLineByMonthSchema, DemandByCategoryByLineByYearSchema, DemandByCategoryByPatternByDaySchema, DemandByCategoryByPatternByMonthSchema, DemandByCategoryByPatternByYearSchema, DemandByLineByDaySchema, DemandByLineByMonthSchema, DemandByLineByYearSchema, DemandByPatternByDaySchema, DemandByPatternByMonthSchema, DemandByPatternByYearSchema, DemandByPatternHourByDaySchema, DemandByPatternHourByMonthSchema, DemandByPatternHourByYearSchema, DemandByProductByAgencyByDaySchema, DemandByProductByAgencyByMonthSchema, DemandByProductByAgencyByYearSchema, DemandByProductByLineByDaySchema, DemandByProductByLineByMonthSchema, DemandByProductByLineByYearSchema, DemandByProductByPatternByDaySchema, DemandByProductByPatternByMonthSchema, DemandByProductByPatternByYearSchema, MeanDemandByLineByMonthSchema, TopDemandByAgencyByDayTypeSchema, TopDemandByAgencySchema, TopLines30DayPerformanceSchema, TopMeanDemandByLineByMonthSchema } from './demand/index.js'; import { DemandAffectedByFailedCirculationsByDaySchema } from './passenger-impact/passenger-impact.js'; import { RealtimeDemandSchema, RealtimeServiceComplianceSchema } from './realtime/index.js'; import { SupplyByAgencyByDaySchema, SupplyByAgencyByMonthSchema, SupplyByAgencyByYearSchema } from './supply/supply_by_agency.js'; import { z } from 'zod'; /* * */ export * from './demand/index.js'; export * from './passenger-impact/index.js'; export * from './realtime/index.js'; export * from './supply/index.js'; /* * */ // Define this automatically to include all metric schemas export const MetricSchema = z.discriminatedUnion('metric', [ DemandByLineByYearSchema, DemandByLineByMonthSchema, DemandByLineByDaySchema, DemandByPatternByYearSchema, DemandByPatternByMonthSchema, DemandByPatternByDaySchema, DemandByPatternHourByYearSchema, DemandByPatternHourByMonthSchema, DemandByPatternHourByDaySchema, DemandByAgencyByYearSchema, DemandByAgencyByMonthSchema, DemandByAgencyByDaySchema, DemandByAgencyByDayByProductSchema, DemandByProductByAgencyByDaySchema, DemandByProductByAgencyByMonthSchema, DemandByProductByAgencyByYearSchema, DemandByProductByLineByDaySchema, DemandByProductByLineByMonthSchema, DemandByProductByLineByYearSchema, DemandByProductByPatternByDaySchema, DemandByProductByPatternByMonthSchema, DemandByProductByPatternByYearSchema, DemandByCategoryByAgencyByDaySchema, DemandByCategoryByAgencyByMonthSchema, DemandByCategoryByAgencyByYearSchema, DemandByCategoryByLineByDaySchema, DemandByCategoryByLineByMonthSchema, DemandByCategoryByLineByYearSchema, DemandByCategoryByPatternByDaySchema, DemandByCategoryByPatternByMonthSchema, DemandByCategoryByPatternByYearSchema, TopDemandByAgencySchema, MeanDemandByLineByMonthSchema, TopMeanDemandByLineByMonthSchema, RealtimeDemandSchema, RealtimeServiceComplianceSchema, TopDemandByAgencyByDayTypeSchema, TopLines30DayPerformanceSchema, SupplyByAgencyByDaySchema, SupplyByAgencyByMonthSchema, SupplyByAgencyByYearSchema, DemandAffectedByFailedCirculationsByDaySchema, ]);