@@ -33,7 +33,7 @@ import { Firestore } from './database';
33
33
import {
34
34
_mapValue ,
35
35
AggregateFunction ,
36
- AggregateWithAlias ,
36
+ AliasedAggregate ,
37
37
BooleanExpression ,
38
38
_constant ,
39
39
Expression ,
@@ -735,7 +735,7 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
735
735
* Performs aggregation operations on the documents from previous stages.
736
736
*
737
737
* <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
739
739
* calling {@link Expression#as} on {@link AggregateFunction} instances.
740
740
*
741
741
* <p>Example:
@@ -749,15 +749,15 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
749
749
* );
750
750
* ```
751
751
*
752
- * @param accumulator The first {@link AggregateWithAlias }, wrapping an {@link AggregateFunction}
752
+ * @param accumulator The first {@link AliasedAggregate }, wrapping an {@link AggregateFunction}
753
753
* 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}
755
755
* and providing a name for the accumulated results.
756
756
* @return A new Pipeline object with this stage appended to the stage list.
757
757
*/
758
758
aggregate (
759
- accumulator : AggregateWithAlias ,
760
- ...additionalAccumulators : AggregateWithAlias [ ]
759
+ accumulator : AliasedAggregate ,
760
+ ...additionalAccumulators : AliasedAggregate [ ]
761
761
) : Pipeline ;
762
762
/**
763
763
* Performs optionally grouped aggregation operations on the documents from previous stages.
@@ -771,7 +771,7 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
771
771
* If no grouping fields are provided, a single group containing all documents is used. Not
772
772
* specifying groups is the same as putting the entire inputs into one group.</li>
773
773
* <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
775
775
* calling {@link Expression#as} on {@link AggregateFunction} instances. Each aggregation
776
776
* calculates a value (e.g., sum, average, count) based on the documents within its group.</li>
777
777
* </ul>
@@ -793,14 +793,12 @@ export class Pipeline implements ProtoSerializable<ProtoPipeline> {
793
793
*/
794
794
aggregate ( options : AggregateStageOptions ) : Pipeline ;
795
795
aggregate (
796
- targetOrOptions : AggregateWithAlias | AggregateStageOptions ,
797
- ...rest : AggregateWithAlias [ ]
796
+ targetOrOptions : AliasedAggregate | AggregateStageOptions ,
797
+ ...rest : AliasedAggregate [ ]
798
798
) : Pipeline {
799
799
// Process argument union(s) from method overloads
800
800
const options = isAliasedAggregate ( targetOrOptions ) ? { } : targetOrOptions ;
801
- const accumulators : AggregateWithAlias [ ] = isAliasedAggregate (
802
- targetOrOptions
803
- )
801
+ const accumulators : AliasedAggregate [ ] = isAliasedAggregate ( targetOrOptions )
804
802
? [ targetOrOptions , ...rest ]
805
803
: targetOrOptions . accumulators ;
806
804
const groups : Array < Selectable | string > = isAliasedAggregate (
0 commit comments