From 3655ac81d2133d494521c2770c4c0b317c4afd7b Mon Sep 17 00:00:00 2001 From: Ndahimana Bonheur Date: Tue, 11 Jun 2024 18:53:54 +0200 Subject: [PATCH] The Seller and User - list products (#58) * Ft login v google 187584916 (#47) * login via google * Ft-login via google * login via google * ft login via google * ft login with google * Logout feature (#26) (#46) * Logout feature (#26) * [#187584914]added logout feature * [starts #187584914] added logout feature * [finishes#187584914] logout feature * [delivers##187584914] updated readme & swagger.json * [delivers##187584914] updated readme & swagger.json * [deliveres #187584914] logout features completed * [deliveres #187584914] logout features completed * [delivers #187584914] finished logout feature * fixing bugs * rebased --------- Co-authored-by: Solange Duhimbaze Ihirwe <159579750+solangeihirwe03@users.noreply.github.com> * [Finishes #187584924] Seller Create/Add a product (#48) * [Delivers #187584924] Seller Create/Add a product * updated ReaderMe file * Rebased on develop * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Fixed login fetaure (#59) * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * Solve eerrors * Ft delete items seller #187584926 (#52) * rebase * rebase * [delivers #187584926] seller delete item * [Delivers #187584924] Seller Create/Add a product * [start #187584926] seller delete item --------- Co-authored-by: Solangeihirwe Co-authored-by: AimePazzo <108128511+AimePazzo@users.noreply.github.com> * [Delivers #187584928] Delivers test 92.53% * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * Solve eerrors * [Delivers #187584928] Delivers test 92.53% * [Delivers #187584928] Delivers test 92.53% * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Add .gitguardian file * [Delivers #187584928] Add .gitguardian file * [starts #187584911] Seller statistics per timeframe (#54) * [starts #187584911] Seller statistics per timeframe * [finishes #187584911] Seller statistics per timeframe * Seller-statistics updated * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * Solve eerrors * [Delivers #187584928] Delivers test 92.53% * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [Delivers #187584928] Delivers test 92.53% * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Add .gitguardian file * [Delivers #187584928] Add .gitguardian file * AA * pre commit tests * Initial * [Delivers #187584928] Version 1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * Solve eerrors * [Delivers #187584928] Delivers test 92.53% * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [Delivers #187584928] Delivers test 92.53% * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Add .gitguardian file * [Delivers #187584928] Add .gitguardian file * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * Solve eerrors * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [delivers #187584928] Delivers the Seller and User list products * [delivers #187584928] Delivers the Seller and User list products * [Delivers #ft-seller-and-buyer-list-items-187584928] Tests version 1 * Deliver testing v1 * [Delivers #187584928] Delivers test 92.53% * [Delivers #187584928] Handle gitguardian issues. * [Delivers #187584928] Handle gitguardian issues. * AA * pre commit tests * Initial * [Delivers #187584928] Version 1 * Swagger * Rebase * Reviews * M * end * end * end * end --------- Co-authored-by: AimePazzo <108128511+AimePazzo@users.noreply.github.com> Co-authored-by: Niyonshuti Jean De Dieu <152473876+Jadowacu1@users.noreply.github.com> Co-authored-by: MANISHIMWESalton <149325279+MANISHIMWESalton@users.noreply.github.com> Co-authored-by: Solange Duhimbaze Ihirwe <159579750+solangeihirwe03@users.noreply.github.com> Co-authored-by: Mr. David <128073754+ProgrammerDATCH@users.noreply.github.com> Co-authored-by: Solangeihirwe Co-authored-by: SaddockAime --- package.json | 5 +++-- src/routes/cartRouter.ts | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0137d3cb..30ef7c1f 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,8 @@ "ts-node": "^10.9.2", "ts-node-dev": "^2.0.0", "typescript": "^5.4.5", - "uuid": "^9.0.1" + "uuid": "^9.0.1", + "ws": "^8.17.0" }, "devDependencies": { "@types/bcrypt": "^5.0.2", @@ -135,4 +136,4 @@ "eslint-plugin-import": "^2.29.1", "lint-staged": "^15.2.2" } -} \ No newline at end of file +} diff --git a/src/routes/cartRouter.ts b/src/routes/cartRouter.ts index 8aae051f..017cad66 100644 --- a/src/routes/cartRouter.ts +++ b/src/routes/cartRouter.ts @@ -35,8 +35,6 @@ router.get( isCartIdExist, cartControllers.buyerGetCart ); -router.get("/user-get-order-status/:id",userAuthorization(["buyer"]), cartControllers.buyerGetOrderStatus ) -router.put("/admin-update-order-status/:id", userAuthorization(["admin"]), cartControllers.adminUpdateOrderStatus) router.delete( "/buyer-clear-cart-product/:cartId/:productId",