@andrewscwei/mongodb-odm
Advanced tools
Comparing version 0.27.0 to 0.28.0
@@ -550,3 +550,3 @@ /** | ||
*/ | ||
didInsertDocument<R = T>(doc: Document<R>): Promise<void>; | ||
didInsertDocument(doc: Document<T>): Promise<void>; | ||
/** | ||
@@ -602,3 +602,3 @@ * Handler called before an attempted update operation. This method must | ||
*/ | ||
afterInsert<R>(doc: Document<R>): Promise<void>; | ||
afterInsert(doc: Document<T>): Promise<void>; | ||
/** | ||
@@ -605,0 +605,0 @@ * Handler invoked right before an update. This is NOT invoked on an |
@@ -1274,3 +1274,3 @@ import { ObjectID } from 'mongodb'; | ||
willInsertDocument(doc: Partial<import("../../types").Document<BarProps>>): Promise<Partial<import("../../types").Document<BarProps>>>; | ||
didInsertDocument<R = BarProps>(doc: import("../../types").Document<R>): Promise<void>; | ||
didInsertDocument(doc: import("../../types").Document<BarProps>): Promise<void>; | ||
willUpdateDocument(query: import("../../types").Query<BarProps>, update: import("../../types").Update<BarProps>): Promise<[import("../../types").Query<{}>, import("../../types").Update<BarProps>]>; | ||
@@ -1281,3 +1281,3 @@ didUpdateDocument(prevDoc?: import("../../types").Document<BarProps> | undefined, newDocs?: import("../../types").Document<BarProps> | import("../../types").Document<BarProps>[] | undefined): Promise<void>; | ||
beforeInsert(doc: Partial<import("../../types").Document<BarProps>>, options?: import("../../types").ModelInsertOneOptions | import("../../types").ModelInsertManyOptions): Promise<Partial<import("../../types").Document<BarProps>>>; | ||
afterInsert<R>(doc: import("../../types").Document<R>): Promise<void>; | ||
afterInsert(doc: import("../../types").Document<BarProps>): Promise<void>; | ||
beforeUpdate(query: import("../../types").Query<BarProps>, update: import("../../types").Update<BarProps>, options?: import("../../types").ModelUpdateOneOptions | import("../../types").ModelUpdateManyOptions): Promise<[Partial<import("../../types").Document<BarProps>>, import("mongodb").UpdateQuery<Partial<import("../../types").Document<BarProps>>>]>; | ||
@@ -1284,0 +1284,0 @@ afterUpdate(oldDoc?: import("../../types").Document<BarProps> | undefined, newDocs?: import("../../types").Document<BarProps> | import("../../types").Document<BarProps>[] | undefined): Promise<void>; |
@@ -893,3 +893,3 @@ /// <reference types="mongodb" /> | ||
willInsertDocument(doc: Partial<import("../../types").Document<BazProps>>): Promise<Partial<import("../../types").Document<BazProps>>>; | ||
didInsertDocument<R = BazProps>(doc: import("../../types").Document<R>): Promise<void>; | ||
didInsertDocument(doc: import("../../types").Document<BazProps>): Promise<void>; | ||
willUpdateDocument(query: import("../../types").Query<BazProps>, update: import("../../types").Update<BazProps>): Promise<[import("../../types").Query<{}>, import("../../types").Update<BazProps>]>; | ||
@@ -900,3 +900,3 @@ didUpdateDocument(prevDoc?: import("../../types").Document<BazProps> | undefined, newDocs?: import("../../types").Document<BazProps> | import("../../types").Document<BazProps>[] | undefined): Promise<void>; | ||
beforeInsert(doc: Partial<import("../../types").Document<BazProps>>, options?: import("../../types").ModelInsertOneOptions | import("../../types").ModelInsertManyOptions): Promise<Partial<import("../../types").Document<BazProps>>>; | ||
afterInsert<R>(doc: import("../../types").Document<R>): Promise<void>; | ||
afterInsert(doc: import("../../types").Document<BazProps>): Promise<void>; | ||
beforeUpdate(query: import("../../types").Query<BazProps>, update: import("../../types").Update<BazProps>, options?: import("../../types").ModelUpdateOneOptions | import("../../types").ModelUpdateManyOptions): Promise<[Partial<import("../../types").Document<BazProps>>, import("mongodb").UpdateQuery<Partial<import("../../types").Document<BazProps>>>]>; | ||
@@ -903,0 +903,0 @@ afterUpdate(oldDoc?: import("../../types").Document<BazProps> | undefined, newDocs?: import("../../types").Document<BazProps> | import("../../types").Document<BazProps>[] | undefined): Promise<void>; |
@@ -724,3 +724,3 @@ import { ObjectID } from 'mongodb'; | ||
willInsertDocument(doc: Partial<import("../../types").Document<FooProps>>): Promise<Partial<import("../../types").Document<FooProps>>>; | ||
didInsertDocument<R = FooProps>(doc: import("../../types").Document<R>): Promise<void>; | ||
didInsertDocument(doc: import("../../types").Document<FooProps>): Promise<void>; | ||
willUpdateDocument(query: import("../../types").Query<FooProps>, update: import("../../types").Update<FooProps>): Promise<[import("../../types").Query<{}>, import("../../types").Update<FooProps>]>; | ||
@@ -731,3 +731,3 @@ didUpdateDocument(prevDoc?: import("../../types").Document<FooProps> | undefined, newDocs?: import("../../types").Document<FooProps> | import("../../types").Document<FooProps>[] | undefined): Promise<void>; | ||
beforeInsert(doc: Partial<import("../../types").Document<FooProps>>, options?: import("../../types").ModelInsertOneOptions | import("../../types").ModelInsertManyOptions): Promise<Partial<import("../../types").Document<FooProps>>>; | ||
afterInsert<R>(doc: import("../../types").Document<R>): Promise<void>; | ||
afterInsert(doc: import("../../types").Document<FooProps>): Promise<void>; | ||
beforeUpdate(query: import("../../types").Query<FooProps>, update: import("../../types").Update<FooProps>, options?: import("../../types").ModelUpdateOneOptions | import("../../types").ModelUpdateManyOptions): Promise<[Partial<import("../../types").Document<FooProps>>, import("mongodb").UpdateQuery<Partial<import("../../types").Document<FooProps>>>]>; | ||
@@ -734,0 +734,0 @@ afterUpdate(oldDoc?: import("../../types").Document<FooProps> | undefined, newDocs?: import("../../types").Document<FooProps> | import("../../types").Document<FooProps>[] | undefined): Promise<void>; |
{ | ||
"name": "@andrewscwei/mongodb-odm", | ||
"version": "0.27.0", | ||
"version": "0.28.0", | ||
"description": "ODM for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
396206