import { Nullable } from "./nullable";

export type NullableDateRange = {
  start: Nullable<Date>;
  end: Nullable<Date>;
  cadence?: DateCadence;
}
export type DateRange = {
  start: Date;
  end: Date;
  cadence?: DateCadence;
}

export enum DateCadence {
  Day = "DAY",
  Week = "WEEK",
  Month = "MONTH",
  Year = "YEAR",
}
export enum DateRangeType {
  All = "ALL_TIME",
  Custom = "CUSTOM",
  Since = "SINCE",
  Last = "LAST",
}
export enum DatePickerType {
  After = "After",
  Before = "Before",
  Between = "Between",
}
