Add client referral bonus manager flow
This commit is contained in:
@@ -3,6 +3,8 @@ mutation CreateReferral($input: CreateReferralInput!) {
|
||||
id
|
||||
referrerId
|
||||
refereeId
|
||||
createdById
|
||||
bonusPercent
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
|
||||
16
graphql/operations/manager/manager-referral-links.graphql
Normal file
16
graphql/operations/manager/manager-referral-links.graphql
Normal file
@@ -0,0 +1,16 @@
|
||||
query ManagerReferralLinks {
|
||||
managerReferralLinks {
|
||||
id
|
||||
referrerId
|
||||
referrerName
|
||||
referrerEmail
|
||||
referrerCompanyName
|
||||
refereeId
|
||||
refereeName
|
||||
refereeEmail
|
||||
refereeCompanyName
|
||||
createdById
|
||||
bonusPercent
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,10 @@
|
||||
query ManagerUsers {
|
||||
managerUsers {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
role
|
||||
companyName
|
||||
telegramConnection {
|
||||
id
|
||||
type
|
||||
|
||||
@@ -269,6 +269,23 @@ type ReferralLink {
|
||||
id: ID!
|
||||
referrerId: ID!
|
||||
refereeId: ID!
|
||||
createdById: ID!
|
||||
bonusPercent: Float!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
type ManagerReferralLink {
|
||||
id: ID!
|
||||
referrerId: ID!
|
||||
referrerName: String!
|
||||
referrerEmail: String!
|
||||
referrerCompanyName: String
|
||||
refereeId: ID!
|
||||
refereeName: String!
|
||||
refereeEmail: String!
|
||||
refereeCompanyName: String
|
||||
createdById: ID!
|
||||
bonusPercent: Float!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
@@ -339,6 +356,7 @@ type Query {
|
||||
myCurrentOrders: [Order!]!
|
||||
managerUsers: [ManagerUser!]!
|
||||
managerOrders(status: OrderStatus, customerId: ID): [Order!]!
|
||||
managerReferralLinks: [ManagerReferralLink!]!
|
||||
managerBonusBalances: [ManagerBonusBalance!]!
|
||||
managerWithdrawalRequests(status: WithdrawalStatus): [ManagerWithdrawalRequest!]!
|
||||
registrationRequests(status: RegistrationStatus): [RegistrationRequest!]!
|
||||
@@ -447,7 +465,9 @@ input BlockOrderInput {
|
||||
}
|
||||
|
||||
input CreateReferralInput {
|
||||
referrerUserId: ID!
|
||||
refereeUserId: ID!
|
||||
bonusPercent: Float!
|
||||
}
|
||||
|
||||
input AddBonusTransactionInput {
|
||||
|
||||
Reference in New Issue
Block a user