export const DataFeed = S.struct({
aggregation: S.literal("5 minute", "day", "month"),
endTime: S.NonEmpty,
startTime: S.NonEmpty,
totals: S.extend(BaseTotals, S.struct({...additional totals depending on aggregation})),
}).pipe(S.identifier("DataFeed"));
export const DataFeed = S.struct({
aggregation: S.literal("5 minute", "day", "month"),
endTime: S.NonEmpty,
startTime: S.NonEmpty,
totals: S.extend(BaseTotals, S.struct({...additional totals depending on aggregation})),
}).pipe(S.identifier("DataFeed"));