UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

322 lines (148 loc) 14.7 kB
Changelog ## [2.14.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.14.1...v2.14.2) (2025-11-23) ## [2.14.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.14.0...v2.14.1) (2025-11-11) ## [2.14.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.13.0...v2.14.0) (2025-10-23) ### authentication * **authentication:** add the possibility to set extras imports/providers/controllers ([2fe2bb2](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/2fe2bb2c8ae59acb418ca68775fbe4e3cb398df3)) ## [2.13.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.12.0...v2.13.0) (2025-10-21) ### authentication * **authentication:** add the possibility to use method interceptors ([00797af](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/00797af79fdae84bac665cfe9cd81c316fbf6d55)) ### aggregate * **aggregate:** add the possibility to use class/method interceptors ([c0aadf7](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/c0aadf734f4daf43180550663fddb360cc4642b9)) ## [2.12.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.11.0...v2.12.0) (2025-10-19) ### interceptors * **interceptors:** add the possibility to use class/method interceptors ([977f3de](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/977f3deccabaf4d5a87f76eca5c9012ab05c3d48)) ## [2.11.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.10.1...v2.11.0) (2025-07-27) ### socket * **socket:** add policies guard mixin ([bc739b4](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/bc739b4b8ea5e026fc93a5c70e1dfae454323c4f)) ## [2.10.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.10.0...v2.10.1) (2025-07-19) ## [2.10.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.9.0...v2.10.0) (2025-02-22) ### helper * **helper:** get repository from entity method ([e02c9b8a](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/e02c9b8a3476958c261b862971db9b3cbb5a5a9c)) ### auth * **auth:** add before save callback, improve some behaviors ([20df58a3](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/20df58a35b0ca00376c06e0f4e850e2fd5e81a99)) ## [2.9.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.8.3...v2.9.0) (2025-02-16) ### api * **api:** add aggregate route ([e4b1a7ba](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/e4b1a7ba61819bf20f531b619a5f46ce753dcb0b)) * **api:** add before save callback ([f5ba7b5a](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/f5ba7b5aed41804ef39894b3d333300c65f95e8b)) ### swagger * **swagger:** add the possibility to write json file to another path ([a41356e8](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/a41356e81da07d7abd5c8eec46855b38ba2aea44)) ## [2.8.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.8.2...v2.8.3) (2024-09-07) ## [2.8.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.8.1...v2.8.2) (2024-09-01) ## [2.8.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.8.0...v2.8.1) (2024-09-01) ### api * **api:** handle aggregate route default description ([58b7d5b](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/58b7d5b1e4a4fca3f8da52fbb6fe8563eba82f16)) ## [2.8.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.7.1...v2.8.0) (2024-09-01) ### api * **api:** add aggregate route ([9d47e3b](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/9d47e3bf6182047aa7dc0a1fd1209513122c83e6)) ## [2.7.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.7.0...v2.7.1) (2024-08-30) ## [2.7.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.6.0...v2.7.0) (2024-08-29) ### api * **api:** add mapping from / to entity, update related ([2af5ad3](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/2af5ad373e83b9161bf4ac8f3b4a910aa3801aef)) ## [2.6.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.5.1...v2.6.0) (2024-08-24) ### api * **api:** handle route with sub path ([1b57ff0](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/1b57ff09a3ad8e524a50de466d0bfa6b34bcfe9b)) ## [2.5.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.5.0...v2.5.1) (2024-08-20) ## [2.5.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.4.5...v2.5.0) (2024-08-20) ### web-socket * **web-socket:** add the possibility to customize event names ([64020d2](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/64020d29c3b3ce96e172db9253b22c812d0deb4e)) ## [2.4.5](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.4.4...v2.4.5) (2024-08-16) ## [2.4.4](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.4.3...v2.4.4) (2024-08-14) ## [2.4.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.4.2...v2.4.3) (2024-08-13) ## [2.4.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.4.1...v2.4.2) (2024-08-11) ## [2.4.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.4.0...v2.4.1) (2024-08-11) ## [2.4.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.17...v2.4.0) (2024-08-11) ### web-socket * **web-socket:** add all modules configuration ([bf51c9a](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/bf51c9ae0037c285ad251250f9dbb3cd29e42dec)) ## [2.3.17](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.16...v2.3.17) (2024-05-26) ### authentication * **authentication:** rework reset and change password behaviors when options are provided ([3a0f09d](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/3a0f09dd23f0083c79632bed9a83e93eb90c62d2)) ## [2.3.16](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.15...v2.3.16) (2024-05-25) ### authentication * **authentication:** rework login behaviors when options are provided ([4140254](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/414025478afbc64395d31f345ec1f7162d071b21)) ## [2.3.15](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.14...v2.3.15) (2024-05-23) ### authentication * **authentication:** rework register behaviors when options are provided ([52dc16b](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/52dc16b45075517e7dea4629d00f4b5e386f7a60)) ## [2.3.14](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.12...v2.3.14) (2024-05-21) ## [2.3.13](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.12...v2.3.13) (2024-05-21) ## [2.3.12](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.11...v2.3.12) (2024-05-18) ## [2.3.11](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.10...v2.3.11) (2024-05-12) ## [2.3.10](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.9...v2.3.10) (2024-05-11) ## [2.3.9](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.8...v2.3.9) (2024-05-09) ## [2.3.8](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.7...v2.3.8) (2024-05-08) ## [2.3.7](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.6...v2.3.7) (2024-05-08) ## [2.3.6](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.5...v2.3.6) (2024-05-08) ## [2.3.5](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.3...v2.3.5) (2024-05-08) ## [2.3.4](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.2...v2.3.4) (2024-05-08) ## [2.3.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.2...v2.3.3) (2024-05-07) ## [2.3.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.1...v2.3.2) (2024-05-07) ## [2.3.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.3.0...v2.3.1) (2024-05-05) ## [2.3.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.2.1...v2.3.0) (2024-05-02) ### api * **api:** add reset password process with callbacks ([9e8bf56](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/9e8bf562ee9717ea1c0fe387bb621e9f724955ac)) ## [2.2.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.2.0...v2.2.1) (2024-04-30) ## [2.2.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.10...v2.2.0) (2024-04-30) ### api * **api:** add routes service callback ([bb233fe](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/bb233fe79565863fe2191b224176accaf1725907)) * **api:** add the possibility to configure default or excluded routes ([ef501df](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/ef501df7c453352b16056fc2766f3bf2cbefb532)) ### auth * **auth:** add service callbacks ([d93ad01](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/d93ad01589099c92757922dc3e9320332c563e82)) ### validation * **validation:** add custom pipe and update default auth to avoid request errors if not configured ([f75fca7](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/f75fca7cdb1bfc5d0fcd72ea1acf75179b22d69c)) ## [2.1.10](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.9...v2.1.10) (2024-04-29) ## [2.1.9](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.8...v2.1.9) (2024-04-01) ## [2.1.8](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.7...v2.1.8) (2024-04-01) ## [2.1.7](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.6...v2.1.7) (2024-04-01) ## [2.1.6](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.5...v2.1.6) (2024-03-31) ## [2.1.5](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.4...v2.1.5) (2024-03-29) ## [2.1.4](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.3...v2.1.4) (2024-03-29) ## [2.1.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.2...v2.1.3) (2024-03-29) ## [2.1.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.1...v2.1.2) (2024-03-26) * rename all custom dto to avoid swagger conflicts ([0bc7e5f](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/0bc7e5fe85f3c44ce3382839e5a502d3232e5526)) ## [2.1.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.1.0...v2.1.1) (2024-03-21) ## [2.1.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v2.0.0...v2.1.0) (2024-03-20) ### schema * **schema:** add the possibility to customize initialization ([7fd541b](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/7fd541b055bb0baa60409651a54d42244d8f3042)) ## [2.0.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.4.3...v2.0.0) (2024-03-18) ### ⚠ BREAKING CHANGES * **schema-options:** bind event type to route type to improve understanding * **authentication:** rework options ### schema-options * **schema-options:** bind event type to route type to improve understanding ([8a6a391](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/8a6a391c19a68697998ed6508d88ed63c1fbde7d)) ### authentication * **authentication:** rework options ([e833898](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/e833898903279e1e1e220b065724e013b1729029)) ## [1.4.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.4.2...v1.4.3) (2024-03-15) ## [1.4.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.4.1...v1.4.2) (2024-03-15) ## [1.4.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.4.0...v1.4.1) (2024-03-12) ## [1.4.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.3.3...v1.4.0) (2024-03-11) ### authentication * **authentication:** add register ability predicate ([811b085](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/811b0853ed836ce33a7a56312c3e045b5f73f5ee)) ### api * **api:** add authentication ([a692b7b](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/a692b7b0fcd774dc5152b9f82ed22107c543110a)) * **api:** add casl ability to control route access ([6202a24](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/6202a247d301a7a72ce47f596a288d66724999f1)) ## [1.3.3](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.3.2...v1.3.3) (2024-03-06) ### api * **api:** display the package version in swagger by default ([36520c3](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/36520c37abdd4fcbbfeed333a68ea0a108533b39)) ## [1.3.2](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.3.1...v1.3.2) (2024-03-05) ## [1.3.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.3.0...v1.3.1) (2024-03-05) ## [1.3.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.2.1...v1.3.0) (2024-03-04) ### api * **api:** add delete many route ([43a89cb](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/43a89cb4c087c468743559950fa232ff6e10c140)) * **api:** add duplicate many route ([be33d1b](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/be33d1b221d81c5ff6649cd2eccc331cb58459b9)) * **api:** add update many route ([7543eb9](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/7543eb92d7ba538f6d46b69ec194a6c44daff5b2)) ## [1.2.1](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.2.0...v1.2.1) (2024-03-04) ## [1.2.0](https://github.com/MikeDev75015/mongodb-dynamic-api/compare/v1.1.0...v1.2.0) (2024-03-03) ### api * **api:** add default route description if not specified ([733b42a](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/733b42a6dab49c39370fdd4094b7f08288e54c5b)) ## 1.1.0 (2024-03-03) ### api * **api:** add the possibility to enable the api uri versioning ([0f52917](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/0f529174ea583078bb136d2db484ef64b6aa6e49)) * **api:** correct CreateMany response type and body ([804b7d5](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/804b7d55fe2b8b515436b41fa338be75c5e030e2)) * **api:** make routes optional, add all routes automatically if not configured ([f17e2eb](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/f17e2ebdbbde8f05a5c80c404ffc1febf460bc20)) * **api:** set duplicate one body optional ([f24b2b9](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/f24b2b964e251fbb92acfc14222386fec3239dcb)) * **api:** add create-many module ([9ae72d5](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/9ae72d5dd7bda27423f96dd642d41eff31e75370)) ### swagger * **swagger:** add enable method ([5f3f865](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/5f3f8656dc186e833d5c4792efacf9f0a2005afd)) ## 1.0.0 (2024-02-27) ### Features * add mongodb dynamic api files ([33dfc14](https://github.com/MikeDev75015/mongodb-dynamic-api/commit/33dfc143d34e31c802a5d1adb5e8d99ad5aadc6f))