Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

10.0.0

Choose a tag to compare

@FilippoVissani FilippoVissani released this 09 Jan 16:06
· 41 commits to main since this release

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)