@tmlmobilidade/interfaces 20250827.1523.9 → 20250827.1644.13

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.
@@ -20,6 +20,23 @@ interface LimitStage {
20
20
  interface SkipStage {
21
21
  $skip: number;
22
22
  }
23
- type AggregationStage<T> = GroupStage | LimitStage | MatchStage<T> | ProjectStage<T> | SkipStage | SortStage<T>;
23
+ interface UnwindStage {
24
+ $unwind: string | {
25
+ path: string;
26
+ preserveNullAndEmptyArrays: boolean;
27
+ };
28
+ }
29
+ interface AddFieldsStage {
30
+ $addFields: Record<string, any>;
31
+ }
32
+ interface LookupStage {
33
+ $lookup: {
34
+ as: string;
35
+ foreignField: string;
36
+ from: string;
37
+ localField: string;
38
+ };
39
+ }
40
+ type AggregationStage<T> = AddFieldsStage | GroupStage | LimitStage | LookupStage | MatchStage<T> | ProjectStage<T> | SkipStage | SortStage<T> | UnwindStage;
24
41
  export type AggregationPipeline<T> = AggregationStage<T>[];
25
42
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/interfaces",
3
- "version": "20250827.1523.9",
3
+ "version": "20250827.1644.13",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",