Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,14 @@ type Globals
"""
nodesIds: [String!]!

"""
Whether referral-reward entry points (e.g. the "invite a
friend" home-screen card) should be shown to the user. Controlled by the
instance-wide referralReward feature flag; when false the referral payout is
disabled, so reward-promising UI must stay hidden.
"""
referralRewardEnabled: Boolean!

"""A list of countries and their supported auth channels"""
supportedCountries: [Country!]!

Expand Down
2 changes: 2 additions & 0 deletions src/graphql/public/root/query/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
getGaloyBuildInformation,
getLightningAddressDomain,
getLightningAddressDomainAliases,
getReferralRewardConfig,
} from "@config"

import { getSupportedCountries } from "@app/authentication/get-supported-countries"
Expand Down Expand Up @@ -39,6 +40,7 @@ const GlobalsQuery = GT.Field({
topupEnabled: Topup.Enabled,
cashoutEnabled: Cashout.Enabled,
bridgeEnabled: BridgeConfig.enabled,
referralRewardEnabled: getReferralRewardConfig().enabled,
}
},
})
Expand Down
8 changes: 8 additions & 0 deletions src/graphql/public/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,14 @@
"""
nodesIds: [String!]!

"""
Whether referral-reward entry points (e.g. the "invite a
friend" home-screen card) should be shown to the user. Controlled by the
instance-wide referralReward feature flag; when false the referral payout is
disabled, so reward-promising UI must stay hidden.
"""
referralRewardEnabled: Boolean!

Check notice on line 893 in src/graphql/public/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'referralRewardEnabled' was added to object type 'Globals'

Field 'referralRewardEnabled' was added to object type 'Globals'

Check notice on line 893 in src/graphql/public/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'Globals.referralRewardEnabled' has description 'Whether referral-reward entry points (e.g. the "invite a friend" home-screen card) should be shown to the user. Controlled by the instance-wide referralReward feature flag; when false the referral payout is disabled, so reward-promising UI must stay hidden.'

Field 'Globals.referralRewardEnabled' has description 'Whether referral-reward entry points (e.g. the "invite a friend" home-screen card) should be shown to the user. Controlled by the instance-wide referralReward feature flag; when false the referral payout is disabled, so reward-promising UI must stay hidden.'

"""A list of countries and their supported auth channels"""
supportedCountries: [Country!]!

Expand Down
7 changes: 7 additions & 0 deletions src/graphql/public/types/object/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ const Globals = GT.Object({
description: dedent`Whether Bridge (international bank transfer) entry points
should be shown to the user. Controlled by the instance-wide bridge feature flag.`,
},
referralRewardEnabled: {
type: GT.NonNull(GT.Boolean),
description: dedent`Whether referral-reward entry points (e.g. the "invite a
friend" home-screen card) should be shown to the user. Controlled by the
instance-wide referralReward feature flag; when false the referral payout is
disabled, so reward-promising UI must stay hidden.`,
},
}),
})

Expand Down
Loading