Add manager bonus account pages
This commit is contained in:
44
graphql/operations/manager/manager-bonus-account.graphql
Normal file
44
graphql/operations/manager/manager-bonus-account.graphql
Normal file
@@ -0,0 +1,44 @@
|
||||
query ManagerBonusAccount($userId: ID!) {
|
||||
managerBonusAccount(userId: $userId) {
|
||||
userId
|
||||
email
|
||||
fullName
|
||||
companyName
|
||||
balance
|
||||
earnedAmount
|
||||
pendingWithdrawalAmount
|
||||
transactionsCount
|
||||
referralsCount
|
||||
referralLinks {
|
||||
id
|
||||
referrerId
|
||||
referrerName
|
||||
referrerEmail
|
||||
referrerCompanyName
|
||||
refereeId
|
||||
refereeName
|
||||
refereeEmail
|
||||
refereeCompanyName
|
||||
createdById
|
||||
bonusPercent
|
||||
createdAt
|
||||
}
|
||||
transactions {
|
||||
id
|
||||
userId
|
||||
amount
|
||||
reason
|
||||
orderId
|
||||
createdAt
|
||||
}
|
||||
pendingWithdrawals {
|
||||
id
|
||||
requesterId
|
||||
amount
|
||||
status
|
||||
reviewComment
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -327,6 +327,21 @@ type ManagerBonusBalance {
|
||||
transactionsCount: Int!
|
||||
}
|
||||
|
||||
type ManagerBonusAccount {
|
||||
userId: ID!
|
||||
email: String!
|
||||
fullName: String!
|
||||
companyName: String
|
||||
balance: Float!
|
||||
earnedAmount: Float!
|
||||
pendingWithdrawalAmount: Float!
|
||||
transactionsCount: Int!
|
||||
referralsCount: Int!
|
||||
referralLinks: [ManagerReferralLink!]!
|
||||
transactions: [BonusTransaction!]!
|
||||
pendingWithdrawals: [RewardWithdrawalRequest!]!
|
||||
}
|
||||
|
||||
type ManagerWithdrawalRequest {
|
||||
id: ID!
|
||||
requesterId: ID!
|
||||
@@ -358,6 +373,7 @@ type Query {
|
||||
managerOrders(status: OrderStatus, customerId: ID): [Order!]!
|
||||
managerReferralLinks: [ManagerReferralLink!]!
|
||||
managerBonusBalances: [ManagerBonusBalance!]!
|
||||
managerBonusAccount(userId: ID!): ManagerBonusAccount!
|
||||
managerWithdrawalRequests(status: WithdrawalStatus): [ManagerWithdrawalRequest!]!
|
||||
registrationRequests(status: RegistrationStatus): [RegistrationRequest!]!
|
||||
referralStats: ReferralStats!
|
||||
|
||||
Reference in New Issue
Block a user