fix: Assign hub manager to order
This commit is contained in:
@@ -48,6 +48,18 @@ query listOrders(
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +110,18 @@ query getOrderById($id: UUID!) @auth(level: USER) {
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,6 +180,18 @@ query getOrdersByBusinessId(
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,6 +250,18 @@ query getOrdersByVendorId(
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,6 +320,18 @@ query getOrdersByStatus(
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,6 +393,18 @@ query getOrdersByDateRange(
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -390,6 +462,18 @@ query getRapidOrders(
|
||||
hubName
|
||||
}
|
||||
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -528,3 +612,27 @@ query listCompletedOrdersByBusinessAndDateRange(
|
||||
}
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# GET HUB MANAGER ASSIGNED TO AN ORDER
|
||||
# ------------------------------------------------------------
|
||||
query getHubManagerByOrderId($orderId: UUID!) @auth(level: USER) {
|
||||
order(id: $orderId) {
|
||||
id
|
||||
hubManagerId
|
||||
hubManager {
|
||||
id
|
||||
role
|
||||
title
|
||||
department
|
||||
teamHubId
|
||||
isActive
|
||||
user {
|
||||
id
|
||||
fullName
|
||||
email
|
||||
photoUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user