@@ -364,12 +364,20 @@ export function countDistinct(expr: Expression | string): AggregateFunction;
364364// @public
365365export function countIf(booleanExpr : BooleanExpression ): AggregateFunction ;
366366
367+ // @public
368+ export function currentDocument(): Expression ;
369+
367370// @public
368371export function currentTimestamp(): FunctionExpression ;
369372
370373// @public
371374export type DatabaseStageOptions = StageOptions & {};
372375
376+ // @public
377+ export type DefineStageOptions = StageOptions & {
378+ variables: AliasedExpression [];
379+ };
380+
373381// @public
374382export function descending(expr : Expression ): Ordering ;
375383
@@ -619,6 +627,8 @@ export abstract class Expression {
619627 /* Excluded from this release type: _readUserData */
620628 floor(): FunctionExpression ;
621629 /* Excluded from this release type: _readUserData */
630+ getField(key : string | Expression ): Expression ;
631+ /* Excluded from this release type: _readUserData */
622632 greaterThan(expression : Expression ): BooleanExpression ;
623633 /* Excluded from this release type: _readUserData */
624634 greaterThan(value : unknown ): BooleanExpression ;
@@ -825,7 +835,7 @@ export abstract class Expression {
825835}
826836
827837// @public
828- export type ExpressionType = ' Field' | ' Constant' | ' Function' | ' AggregateFunction' | ' ListOfExpressions' | ' AliasedExpression' ;
838+ export type ExpressionType = ' Field' | ' Constant' | ' Function' | ' AggregateFunction' | ' ListOfExpressions' | ' AliasedExpression' | ' Variable ' | ' PipelineValue ' ;
829839
830840// @public
831841export class Field extends Expression implements Selectable {
@@ -1202,6 +1212,8 @@ export class Pipeline {
12021212 addFields(options : AddFieldsStageOptions ): Pipeline ;
12031213 aggregate(accumulator : AliasedAggregate , ... additionalAccumulators : AliasedAggregate []): Pipeline ;
12041214 aggregate(options : AggregateStageOptions ): Pipeline ;
1215+ define(aliasedExpression : AliasedExpression , ... additionalExpressions : AliasedExpression []): Pipeline ;
1216+ define(options : DefineStageOptions ): Pipeline ;
12051217 distinct(group : string | Selectable , ... additionalGroups : Array <string | Selectable >): Pipeline ;
12061218 distinct(options : DistinctStageOptions ): Pipeline ;
12071219 findNearest(options : FindNearestStageOptions ): Pipeline ;
@@ -1225,6 +1237,8 @@ export class Pipeline {
12251237 select(options : SelectStageOptions ): Pipeline ;
12261238 sort(ordering : Ordering , ... additionalOrderings : Ordering []): Pipeline ;
12271239 sort(options : SortStageOptions ): Pipeline ;
1240+ toArrayExpression(): Expression ;
1241+ toScalarExpression(): Expression ;
12281242 union(other : Pipeline ): Pipeline ;
12291243 union(options : UnionStageOptions ): Pipeline ;
12301244 unnest(selectable : Selectable , indexField ? : string ): Pipeline ;
@@ -1496,6 +1510,17 @@ export function stringReverse(stringExpression: Expression): FunctionExpression;
14961510// @public
14971511export function stringReverse(field : string ): FunctionExpression ;
14981512
1513+ // @public
1514+ export function subcollection(path : string ): Pipeline ;
1515+
1516+ // @public
1517+ export function subcollection(options : SubcollectionStageOptions ): Pipeline ;
1518+
1519+ // @public
1520+ export type SubcollectionStageOptions = StageOptions & {
1521+ path: string ;
1522+ };
1523+
14991524// @public
15001525export function substring(field : string , position : number , length ? : number ): FunctionExpression ;
15011526
@@ -1544,7 +1569,7 @@ export function timestampAdd(timestamp: Expression, unit: TimeUnit, amount: numb
15441569// @public
15451570export function timestampAdd(fieldName : string , unit : TimeUnit , amount : number ): FunctionExpression ;
15461571
1547- // @public
1572+ // @public (undocumented)
15481573export function timestampDiff(endFieldName : string , startFieldName : string , unit : TimeUnit | Expression ): FunctionExpression ;
15491574
15501575// @public
@@ -1678,6 +1703,9 @@ export type UnnestStageOptions = StageOptions & {
16781703 indexField? : string ;
16791704};
16801705
1706+ // @public
1707+ export function variable(name : string ): Expression ;
1708+
16811709// @public
16821710export function vectorLength(vectorExpression : Expression ): FunctionExpression ;
16831711
0 commit comments