Improve TimeInterval type
This commit is contained in:
parent
c0ee55069e
commit
33723f4ea2
@ -72,6 +72,12 @@ export type AggregationInput =
|
||||
}
|
||||
| { bucketSet?: never; datetimeRange?: never; enum: EnumAggregation };
|
||||
|
||||
export enum AlignedIntervalEnum {
|
||||
Month = "MONTH",
|
||||
Week = "WEEK",
|
||||
Year = "YEAR",
|
||||
}
|
||||
|
||||
export type BankFeaturesGql = {
|
||||
__typename?: "BankFeaturesGQL";
|
||||
bankAngle: Scalars["Float"]["output"];
|
||||
@ -1914,20 +1920,17 @@ export type TargetMetricsGql = {
|
||||
spinTypeCounts?: Maybe<SpinTypeCountsGql>;
|
||||
};
|
||||
|
||||
export type TimeInterval = {
|
||||
/** True eg 1/15-3/15 => [(1/15,1/31), (2/1,2/28), (3/1,3/15)] False eg 1/15-2/15 => [(1/15,2/14), (2/14,3/15)] */
|
||||
calendarAlignedMonths?: Scalars["Boolean"]["input"];
|
||||
export type TimeDeltaGql = {
|
||||
days?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
hours?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
minutes?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
months?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
/** A second is the base unit and cannot be subdivided */
|
||||
seconds?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
weeks?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
/** Assumes a year is 365 days long */
|
||||
years?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type TimeInterval =
|
||||
| { aligned: AlignedIntervalEnum; timedelta?: never }
|
||||
| { aligned?: never; timedelta: TimeDeltaGql };
|
||||
|
||||
export type TooManyInitUploadsErr = {
|
||||
__typename?: "TooManyInitUploadsErr";
|
||||
linksRequested: Scalars["Int"]["output"];
|
||||
|
@ -107,26 +107,22 @@ Date with time (isoformat)
|
||||
"""
|
||||
scalar DateTime
|
||||
|
||||
input TimeInterval {
|
||||
"""
|
||||
A second is the base unit and cannot be subdivided
|
||||
"""
|
||||
seconds: Int = 0
|
||||
minutes: Int = 0
|
||||
hours: Int = 0
|
||||
input TimeInterval @oneOf {
|
||||
timedelta: TimeDeltaGQL
|
||||
aligned: AlignedIntervalEnum
|
||||
}
|
||||
|
||||
input TimeDeltaGQL {
|
||||
days: Int = 0
|
||||
weeks: Int = 0
|
||||
months: Int = 0
|
||||
|
||||
"""
|
||||
Assumes a year is 365 days long
|
||||
"""
|
||||
years: Int = 0
|
||||
}
|
||||
|
||||
"""
|
||||
True eg 1/15-3/15 => [(1/15,1/31), (2/1,2/28), (3/1,3/15)] False eg 1/15-2/15 => [(1/15,2/14), (2/14,3/15)]
|
||||
"""
|
||||
calendarAlignedMonths: Boolean! = true
|
||||
enum AlignedIntervalEnum {
|
||||
MONTH
|
||||
YEAR
|
||||
WEEK
|
||||
}
|
||||
|
||||
input FilterInput @oneOf {
|
||||
|
Loading…
Reference in New Issue
Block a user