Add client bonus access flag
This commit is contained in:
@@ -63,6 +63,7 @@ type User {
|
||||
email: String!
|
||||
fullName: String!
|
||||
role: UserRole!
|
||||
bonusProgramEnabled: Boolean!
|
||||
company: Company
|
||||
}
|
||||
|
||||
@@ -142,6 +143,7 @@ type ManagerUser {
|
||||
email: String!
|
||||
fullName: String!
|
||||
role: UserRole!
|
||||
bonusProgramEnabled: Boolean!
|
||||
companyName: String
|
||||
inn: String
|
||||
createdAt: DateTime!
|
||||
@@ -382,6 +384,7 @@ type ManagerBonusBalance {
|
||||
email: String!
|
||||
fullName: String!
|
||||
companyName: String
|
||||
bonusProgramEnabled: Boolean!
|
||||
balance: Float!
|
||||
pendingWithdrawalAmount: Float!
|
||||
transactionsCount: Int!
|
||||
@@ -607,6 +610,7 @@ type Mutation {
|
||||
clientReviewOrder(orderId: ID!, decision: Decision!): Order!
|
||||
|
||||
createReferral(input: CreateReferralInput!): ReferralLink!
|
||||
setClientBonusProgramEnabled(userId: ID!, enabled: Boolean!): ManagerUser!
|
||||
createBonusProgramLink(userId: ID!): BonusProgramLink!
|
||||
addBonusTransaction(input: AddBonusTransactionInput!): BonusTransaction!
|
||||
requestRewardWithdrawal(input: RequestRewardWithdrawalInput!): RewardWithdrawalRequest!
|
||||
|
||||
Reference in New Issue
Block a user