From d2419ac423ea1bb7891be271fd07ef788da3a88c Mon Sep 17 00:00:00 2001 From: Bryant Park Date: Wed, 24 Jul 2024 17:02:10 -0400 Subject: [PATCH] Handle StringLong in AggregationFromType and MultipleAggregationFromType --- .../legacy-client/src/client/interfaces/aggregations.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/legacy-client/src/client/interfaces/aggregations.ts b/packages/legacy-client/src/client/interfaces/aggregations.ts index 32e8d6f64..17722de87 100644 --- a/packages/legacy-client/src/client/interfaces/aggregations.ts +++ b/packages/legacy-client/src/client/interfaces/aggregations.ts @@ -34,6 +34,7 @@ import type { StringGroupBy, TimestampGroupBy, } from "../objectSets/aggregations/index.js"; +import type { StringLong } from "../utils/StringLong.js"; import type { OmitMetadataProperties } from "./utils/OmitProperties.js"; export declare type ObjectTypesGroupByFunction< @@ -111,15 +112,17 @@ export type GroupByFromType = NonNullable extends number : T extends Array ? GroupByFromType : never; -export type AggregationFromType = NonNullable extends number +export type AggregationFromType = NonNullable extends StringLong ? AggregatableProperty + : NonNullable extends number ? AggregatableProperty : NonNullable extends boolean ? AggregatableProperty : NonNullable extends LocalDate ? AggregatableProperty : NonNullable extends Timestamp ? AggregatableProperty : AggregatableProperty; -export type MultipleAggregationFromType = NonNullable extends number +export type MultipleAggregationFromType = NonNullable extends StringLong ? MultipleAggregatableProperty + : NonNullable extends number ? MultipleAggregatableProperty : NonNullable extends boolean ? MultipleAggregatableProperty : NonNullable extends LocalDate ? MultipleAggregatableProperty : NonNullable extends Timestamp ? MultipleAggregatableProperty