itrm-tools 1.1.1 → 1.1.2
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.
|
@@ -37,13 +37,13 @@ export declare class MongooseModelManager<S> {
|
|
|
37
37
|
createMany(data: S[]): Promise<any>;
|
|
38
38
|
exists(filter: FilterQuery<S>): import("mongoose").Query<{
|
|
39
39
|
_id: import("mongoose").InferId<S>;
|
|
40
|
-
} | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne">;
|
|
41
|
-
find(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>> | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne">;
|
|
42
|
-
findMany(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find">;
|
|
43
|
-
batch(filter: FilterQuery<S>, from: number, size: number): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find">;
|
|
40
|
+
} | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne", {}>;
|
|
41
|
+
find(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>> | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "findOne", {}>;
|
|
42
|
+
findMany(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find", {}>;
|
|
43
|
+
batch(filter: FilterQuery<S>, from: number, size: number): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "find", {}>;
|
|
44
44
|
updateOne(filter: FilterQuery<S>, data: UpdateWithAggregationPipeline | UpdateQuery<S>): any;
|
|
45
45
|
bulkWrite(writes: any[], options?: MongooseBulkWriteOptions): Promise<any>;
|
|
46
46
|
delete(filter: FilterQuery<S>): any;
|
|
47
47
|
deleteMany(filter: FilterQuery<S>): any;
|
|
48
|
-
countDocuments(filter: FilterQuery<S>): import("mongoose").Query<number, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "countDocuments">;
|
|
48
|
+
countDocuments(filter: FilterQuery<S>): import("mongoose").Query<number, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Require_id<S>>, {}, S, "countDocuments", {}>;
|
|
49
49
|
}
|