@tmlmobilidade/interfaces 20260509.340.15 → 20260511.1451.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,11 @@ interface GroupStage {
|
|
|
11
11
|
_id: Record<string, any> | string;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
+
interface ReplaceRootStage {
|
|
15
|
+
$replaceRoot: {
|
|
16
|
+
newRoot: Record<string, any> | string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
14
19
|
interface SortStage<T> {
|
|
15
20
|
$sort: Partial<Record<keyof T, -1 | 1> | Record<string, -1 | 1>>;
|
|
16
21
|
}
|
|
@@ -37,6 +42,6 @@ interface LookupStage {
|
|
|
37
42
|
localField: string;
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
|
-
type AggregationStage<T> = AddFieldsStage | GroupStage | LimitStage | LookupStage | MatchStage<T> | ProjectStage<T> | SkipStage | SortStage<T> | UnwindStage;
|
|
45
|
+
type AggregationStage<T> = AddFieldsStage | GroupStage | LimitStage | LookupStage | MatchStage<T> | ProjectStage<T> | ReplaceRootStage | SkipStage | SortStage<T> | UnwindStage;
|
|
41
46
|
export type AggregationPipeline<T> = AggregationStage<T>[];
|
|
42
47
|
export {};
|