diff --git a/src/index.tsx b/src/index.tsx index 4c84046..2fdf0af 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -144,7 +144,14 @@ export type DateRangeFilter = { }; export type DatetimeRangeAggregationInput = { + /** + * Example usage: + * True eg 1/15-2/15 => [(1/15,1/31), (2/1,2/15)] + * False eg 1/15-2/15 => [(1/15,2/15)] + */ + calendarAlignedMonths?: Scalars["Boolean"]["input"]; endDatetime: Scalars["DateTime"]["input"]; + feature?: Scalars["String"]["input"]; interval: TimeInterval; startDatetime: Scalars["DateTime"]["input"]; }; @@ -1917,7 +1924,6 @@ export type TimeInterval = { days?: InputMaybe; hours?: InputMaybe; minutes?: InputMaybe; - /** Assumes a month is 30 days long */ months?: InputMaybe; /** A second is the base unit and cannot be subdivided */ seconds?: InputMaybe; diff --git a/src/schema.gql b/src/schema.gql index d75c6d2..bc1dc6d 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -99,6 +99,14 @@ input DatetimeRangeAggregationInput { startDatetime: DateTime! endDatetime: DateTime! interval: TimeInterval! + + """ + Example usage: + True eg 1/15-2/15 => [(1/15,1/31), (2/1,2/15)] + False eg 1/15-2/15 => [(1/15,2/15)] + """ + calendarAlignedMonths: Boolean! = true + feature: String! = "created_at" } """ @@ -115,10 +123,6 @@ input TimeInterval { hours: Int = 0 days: Int = 0 weeks: Int = 0 - - """ - Assumes a month is 30 days long - """ months: Int = 0 """