This repository was archived by the owner on Jan 20, 2024. It is now read-only.
Repository navigation
Releases: AscentEssentials/ascent-essentials-backend
Releases · AscentEssentials/ascent-essentials-backend
Release list
12.2.0
12.1.0
12.1.0 (2024-01-11)
Features
- console log when socket.io connection event (f5f931f)
- emit events with Socket.io when a new notification is created (076b60d)
- Socket.io handle ClientLogin and UserDisconnect (8922113)
Dependency updates
- deps: update dependency @types/node to v20.10.7 (598daf5)
Build and continuous integration
Refactoring
- define a function to retrieve a userId from a token (42cb531)
12.0.0
12.0.0 (2024-01-10)
⚠ BREAKING CHANGES
- provide routes to retrieve and delete notifications
Features
- provide routes to retrieve and delete notifications (20b8da2)
- define notification model (7c34f05)
- edit Notification schema. now have _id, message and createdAt (e50a51b)
- generate a notification for the admin when a new order is made (5df8c0b)
- generate a notification for the user when an order status change (45f5328)
- implement a function to insert a notification in the db (9ad30ad)
Bug Fixes
11.0.0
11.0.0 (2024-01-10)
⚠ BREAKING CHANGES
- possibility to add coupon when a new order is made
- add a route to edit the discout amount of a coupon
- remove validFrom and validTo fields in coupon. A coupon can be deleted, so if it's present is valid
- add route to delete a coupon
- add GET /coupon/:code, POST /admin/coupon, GET /admin/coupons routes
Features
- add a route to edit the discout amount of a coupon (9916928)
- add GET /coupon/:code, POST /admin/coupon, GET /admin/coupons routes (242dd29)
- add route to delete a coupon (f65b8a4)
- define coupon model (030b46c)
- possibility to add coupon when a new order is made (3ef6060)
- remove validFrom and validTo fields in coupon. A coupon can be deleted, so if it's present is valid (baa76fd)
Documentation
- update get all coupons description (0705dfc)
10.1.0
10.0.0
10.0.0 (2024-01-09)
⚠ BREAKING CHANGES
- add route to retrieve detail of a specific order
- route to delete orders
- route to edit order status
- edit route to allow the retrieve of an order by id
- add route to provide orders for a specified user
- add addOrder route
- add route to get all orders of all users
- add route to provide all orders of the actual user
Features
- add addOrder route (b16d656)
- add route to get all orders of all users (3a7648b)
- add route to provide all orders of the actual user (2c4e6e7)
- add route to provide orders for a specified user (c6be921)
- add route to retrieve detail of a specific order (57eed53)
- edit route to allow the retrieve of an order by id (2828e65)
- export getCartTotal function (7db5fd0)
- implement orderModel (37e911a)
- replicate product data in order details, update product quantity in store and clear cart in addOrder (5830bbc)
- route to delete orders (1348c90)
- route to edit order status (5ef5d43)
Documentation
- add _id in swagger doc for Order schema (a37ae5c)
- update swagger doc of orderModel (675d286)
- update swagger docs in orderRoutes (d82aeb4)
Refactoring
- define a function to map an IOrderDocument to a response object respecting the Order schema (6f0508c)
9.0.0
9.0.0 (2024-01-09)
⚠ BREAKING CHANGES
- require quantity in addToCart function
Features
- implement a function to calculate the total of the cart, based on products that are on it (adc8033)
- remove useless fetch and check (65dc8f4)
- require quantity in addToCart function (c35d6b3)
- set default value for cartTotal to 0 (05555b5)
- use getCartTotal function to calculate the total (a55c337)
Documentation
- update swagger docs to require quantity in /cart/add (2a6c868)