From 537b0a5b074d36bc53f154af3a2f2c328838d97a Mon Sep 17 00:00:00 2001 From: aldemylla Date: Wed, 20 Mar 2024 16:53:34 -0300 Subject: [PATCH 1/7] feat: Added bulk transfer request service --- src/services/api/resources/chats/room.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/services/api/resources/chats/room.js b/src/services/api/resources/chats/room.js index 75f8113b..bd94c442 100644 --- a/src/services/api/resources/chats/room.js +++ b/src/services/api/resources/chats/room.js @@ -1,4 +1,5 @@ import http from '@/services/api/http'; +import Profile from '@/store/modules/profile'; import { getProject } from '@/utils/config'; export default { @@ -82,4 +83,18 @@ export default { ); return response.data; }, + + async bulkTranfer({ rooms = [], intended_user = '', intended_queue = '' }) { + const { email: user_email } = Profile.state.me; + + const response = await http.patch(`room/bulk_transfer/`, { + params: { + user_request: user_email, + rooms_list: rooms, + queue_uuid: intended_queue, + user_email: intended_user, + }, + }); + return response.data; + }, }; From 0c09f8a4bfa6519bdfd95a8e3d4341f9c910aa97 Mon Sep 17 00:00:00 2001 From: aldemylla Date: Wed, 20 Mar 2024 16:55:58 -0300 Subject: [PATCH 2/7] feat: Added the functionality to select one or more room cards to transfer --- .../TheCardGroups/CardGroup/RoomCard.vue | 68 ++++++++++-- .../TheCardGroups/CardGroup/index.vue | 103 ++++++++++++++++-- .../components/TheCardGroups/index.vue | 1 + src/store/modules/chats/rooms.js | 8 ++ 4 files changed, 157 insertions(+), 23 deletions(-) diff --git a/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/RoomCard.vue b/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/RoomCard.vue index 55987fc8..aa6a073b 100644 --- a/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/RoomCard.vue +++ b/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/RoomCard.vue @@ -1,16 +1,26 @@ + + diff --git a/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/index.vue b/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/index.vue index 30b84d34..31c32fb1 100644 --- a/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/index.vue +++ b/src/layouts/ChatsLayout/components/TheCardGroups/CardGroup/index.vue @@ -1,16 +1,32 @@