Merge manager tools into main cabinet
This commit is contained in:
@@ -3,5 +3,6 @@ query Me {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
role
|
||||
}
|
||||
}
|
||||
|
||||
9
graphql/operations/manager/add-bonus-transaction.graphql
Normal file
9
graphql/operations/manager/add-bonus-transaction.graphql
Normal file
@@ -0,0 +1,9 @@
|
||||
mutation AddBonusTransaction($input: AddBonusTransactionInput!) {
|
||||
addBonusTransaction(input: $input) {
|
||||
id
|
||||
userId
|
||||
amount
|
||||
reason
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
7
graphql/operations/manager/block-order.graphql
Normal file
7
graphql/operations/manager/block-order.graphql
Normal file
@@ -0,0 +1,7 @@
|
||||
mutation BlockOrder($input: BlockOrderInput!) {
|
||||
blockOrder(input: $input) {
|
||||
id
|
||||
status
|
||||
blockReason
|
||||
}
|
||||
}
|
||||
6
graphql/operations/manager/complete-order.graphql
Normal file
6
graphql/operations/manager/complete-order.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
mutation CompleteOrder($orderId: ID!) {
|
||||
completeOrder(orderId: $orderId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
9
graphql/operations/manager/create-invitation.graphql
Normal file
9
graphql/operations/manager/create-invitation.graphql
Normal file
@@ -0,0 +1,9 @@
|
||||
mutation CreateInvitation($input: CreateInvitationInput!) {
|
||||
createInvitation(input: $input) {
|
||||
id
|
||||
token
|
||||
email
|
||||
companyName
|
||||
expiresAt
|
||||
}
|
||||
}
|
||||
8
graphql/operations/manager/create-referral.graphql
Normal file
8
graphql/operations/manager/create-referral.graphql
Normal file
@@ -0,0 +1,8 @@
|
||||
mutation CreateReferral($input: CreateReferralInput!) {
|
||||
createReferral(input: $input) {
|
||||
id
|
||||
referrerId
|
||||
refereeId
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
mutation ManagerFinalizeOrder($orderId: ID!, $decision: Decision!) {
|
||||
managerFinalizeOrder(orderId: $orderId, decision: $decision) {
|
||||
id
|
||||
status
|
||||
managerApproved
|
||||
}
|
||||
}
|
||||
19
graphql/operations/manager/manager-orders.graphql
Normal file
19
graphql/operations/manager/manager-orders.graphql
Normal file
@@ -0,0 +1,19 @@
|
||||
query ManagerOrders($status: OrderStatus) {
|
||||
managerOrders(status: $status) {
|
||||
id
|
||||
code
|
||||
status
|
||||
kind
|
||||
customerId
|
||||
deliveryAddress
|
||||
deliveryTerms
|
||||
deliveryFee
|
||||
totalPrice
|
||||
createdAt
|
||||
items {
|
||||
id
|
||||
productName
|
||||
quantity
|
||||
}
|
||||
}
|
||||
}
|
||||
10
graphql/operations/manager/registration-requests.graphql
Normal file
10
graphql/operations/manager/registration-requests.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
query RegistrationRequests($status: RegistrationStatus) {
|
||||
registrationRequests(status: $status) {
|
||||
id
|
||||
companyName
|
||||
contactName
|
||||
email
|
||||
status
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
mutation ReviewRegistrationRequest($input: ReviewRegistrationRequestInput!) {
|
||||
reviewRegistrationRequest(input: $input) {
|
||||
id
|
||||
status
|
||||
rejectionReason
|
||||
reviewedById
|
||||
}
|
||||
}
|
||||
8
graphql/operations/manager/review-withdrawal.graphql
Normal file
8
graphql/operations/manager/review-withdrawal.graphql
Normal file
@@ -0,0 +1,8 @@
|
||||
mutation ReviewRewardWithdrawal($input: ReviewRewardWithdrawalInput!) {
|
||||
reviewRewardWithdrawal(input: $input) {
|
||||
id
|
||||
status
|
||||
reviewComment
|
||||
reviewedById
|
||||
}
|
||||
}
|
||||
9
graphql/operations/manager/set-order-offer.graphql
Normal file
9
graphql/operations/manager/set-order-offer.graphql
Normal file
@@ -0,0 +1,9 @@
|
||||
mutation ManagerSetOrderOffer($input: SetOrderOfferInput!) {
|
||||
managerSetOrderOffer(input: $input) {
|
||||
id
|
||||
code
|
||||
status
|
||||
deliveryTerms
|
||||
totalPrice
|
||||
}
|
||||
}
|
||||
6
graphql/operations/manager/start-order-work.graphql
Normal file
6
graphql/operations/manager/start-order-work.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
mutation StartOrderWork($orderId: ID!) {
|
||||
startOrderWork(orderId: $orderId) {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
query ManagerNotificationHistory($userId: ID!, $channel: MessengerType!, $limit: Int) {
|
||||
managerNotificationHistory(userId: $userId, channel: $channel, limit: $limit) {
|
||||
id
|
||||
channel
|
||||
title
|
||||
message
|
||||
createdAt
|
||||
orderId
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user