@@ -33,7 +33,7 @@ import { Firestore } from './database';
3333import {
3434 _mapValue ,
3535 AggregateFunction ,
36- AggregateWithAlias ,
36+ AliasedAggregate ,
3737 BooleanExpression ,
3838 _constant ,
3939 Expression ,
@@ -735,7 +735,7 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
735735 * Performs aggregation operations on the documents from previous stages.
736736 *
737737 * <p>This stage allows you to calculate aggregate values over a set of documents. You define the
738- * aggregations to perform using {@link AggregateWithAlias } expressions which are typically results of
738+ * aggregations to perform using {@link AliasedAggregate } expressions which are typically results of
739739 * calling {@link Expression#as} on {@link AggregateFunction} instances.
740740 *
741741 * <p>Example:
@@ -749,15 +749,15 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
749749 * );
750750 * ```
751751 *
752- * @param accumulator The first {@link AggregateWithAlias }, wrapping an {@link AggregateFunction}
752+ * @param accumulator The first {@link AliasedAggregate }, wrapping an {@link AggregateFunction}
753753 * and providing a name for the accumulated results.
754- * @param additionalAccumulators Optional additional {@link AggregateWithAlias }, each wrapping an {@link AggregateFunction}
754+ * @param additionalAccumulators Optional additional {@link AliasedAggregate }, each wrapping an {@link AggregateFunction}
755755 * and providing a name for the accumulated results.
756756 * @return A new Pipeline object with this stage appended to the stage list.
757757 */
758758 aggregate (
759- accumulator : AggregateWithAlias ,
760- ...additionalAccumulators : AggregateWithAlias [ ]
759+ accumulator : AliasedAggregate ,
760+ ...additionalAccumulators : AliasedAggregate [ ]
761761 ) : Pipeline ;
762762 /**
763763 * Performs optionally grouped aggregation operations on the documents from previous stages.
@@ -771,7 +771,7 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
771771 * If no grouping fields are provided, a single group containing all documents is used. Not
772772 * specifying groups is the same as putting the entire inputs into one group.</li>
773773 * <li>**Accumulators:** One or more accumulation operations to perform within each group. These
774- * are defined using {@link AggregateWithAlias } expressions, which are typically created by
774+ * are defined using {@link AliasedAggregate } expressions, which are typically created by
775775 * calling {@link Expression#as} on {@link AggregateFunction} instances. Each aggregation
776776 * calculates a value (e.g., sum, average, count) based on the documents within its group.</li>
777777 * </ul>
@@ -793,14 +793,12 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
793793 */
794794 aggregate ( options : AggregateStageOptions ) : Pipeline ;
795795 aggregate (
796- targetOrOptions : AggregateWithAlias | AggregateStageOptions ,
797- ...rest : AggregateWithAlias [ ]
796+ targetOrOptions : AliasedAggregate | AggregateStageOptions ,
797+ ...rest : AliasedAggregate [ ]
798798 ) : Pipeline {
799799 // Process argument union(s) from method overloads
800800 const options = isAliasedAggregate ( targetOrOptions ) ? { } : targetOrOptions ;
801- const accumulators : AggregateWithAlias [ ] = isAliasedAggregate (
802- targetOrOptions
803- )
801+ const accumulators : AliasedAggregate [ ] = isAliasedAggregate ( targetOrOptions )
804802 ? [ targetOrOptions , ...rest ]
805803 : targetOrOptions . accumulators ;
806804 const groups : Array < Selectable | string > = isAliasedAggregate (
0 commit comments