Add calendar aligned months
All checks were successful
Tests / Tests (pull_request) Successful in 9s

This commit is contained in:
Mike Kalange 2024-09-20 19:05:25 -07:00
parent c013228f79
commit f891bcd345
2 changed files with 15 additions and 5 deletions

View File

@ -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<Scalars["Int"]["input"]>;
hours?: InputMaybe<Scalars["Int"]["input"]>;
minutes?: InputMaybe<Scalars["Int"]["input"]>;
/** Assumes a month is 30 days long */
months?: InputMaybe<Scalars["Int"]["input"]>;
/** A second is the base unit and cannot be subdivided */
seconds?: InputMaybe<Scalars["Int"]["input"]>;

View File

@ -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
"""