@tmlmobilidade/interfaces 20261106.1308.2 → 20261107.2347.22
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.
|
@@ -4,10 +4,10 @@ import { MongoConnector } from '@tmlmobilidade/mongo';
|
|
|
4
4
|
import { type AggregateOptions, type AggregationCursor, type Collection, type DeleteOptions, type DeleteResult, type Document, type Filter, type FindOptions, Flatten, type IndexDescription, type InsertManyResult, type InsertOneOptions, type InsertOneResult, type MongoClientOptions, type UpdateOptions, type UpdateResult, type WithId } from 'mongodb';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export declare abstract class MongoCollectionClass<T extends Document, TCreate, TUpdate> {
|
|
7
|
-
protected createSchema: null | z.
|
|
7
|
+
protected createSchema: null | z.ZodType<TCreate>;
|
|
8
8
|
protected mongoCollection: Collection<T>;
|
|
9
9
|
protected mongoConnector: MongoConnector;
|
|
10
|
-
protected updateSchema: null | z.
|
|
10
|
+
protected updateSchema: null | z.ZodType<TUpdate>;
|
|
11
11
|
/**
|
|
12
12
|
* Aggregates documents in the collection.
|
|
13
13
|
* @param pipeline The aggregation pipeline to execute.
|