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