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
11 changes: 11 additions & 0 deletions dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,18 @@ Provides global settings for the application which might have an impact for the
type Globals
@join__type(graph: PUBLIC)
{
"""
Whether Bridge (international bank transfer) entry points
should be shown to the user. Controlled by the instance-wide bridge feature flag.
"""
bridgeEnabled: Boolean!
buildInformation: BuildInformation!

"""
Whether cashout (settle to local bank account) entry points
should be shown to the user. Controlled by the instance-wide cashout feature flag.
"""
cashoutEnabled: Boolean!
feesInformation: FeesInformation!

"""
Expand Down
4 changes: 4 additions & 0 deletions src/graphql/public/root/query/globals.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {
BridgeConfig,
Cashout,
NETWORK,
Topup,
getFeesConfig,
Expand Down Expand Up @@ -35,6 +37,8 @@ const GlobalsQuery = GT.Field({
},
},
topupEnabled: Topup.Enabled,
cashoutEnabled: Cashout.Enabled,
bridgeEnabled: BridgeConfig.enabled,
}
},
})
Expand Down
11 changes: 11 additions & 0 deletions src/graphql/public/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,18 @@
Provides global settings for the application which might have an impact for the user.
"""
type Globals {
"""
Whether Bridge (international bank transfer) entry points
should be shown to the user. Controlled by the instance-wide bridge feature flag.
"""
bridgeEnabled: Boolean!

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

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

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

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

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

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'Globals.bridgeEnabled' has description 'Whether Bridge (international bank transfer) entry points should be shown to the user. Controlled by the instance-wide bridge feature flag.'

Field 'Globals.bridgeEnabled' has description 'Whether Bridge (international bank transfer) entry points should be shown to the user. Controlled by the instance-wide bridge feature flag.'
buildInformation: BuildInformation!

"""
Whether cashout (settle to local bank account) entry points
should be shown to the user. Controlled by the instance-wide cashout feature flag.
"""
cashoutEnabled: Boolean!

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

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

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

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

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

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'Globals.cashoutEnabled' has description 'Whether cashout (settle to local bank account) entry points should be shown to the user. Controlled by the instance-wide cashout feature flag.'

Field 'Globals.cashoutEnabled' has description 'Whether cashout (settle to local bank account) entry points should be shown to the user. Controlled by the instance-wide cashout feature flag.'
feesInformation: FeesInformation!

"""
Expand Down
10 changes: 10 additions & 0 deletions src/graphql/public/types/object/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ const Globals = GT.Object({
bank-transfer-to-support) should be shown to the user. Controlled by the
instance-wide topup feature flag.`,
},
cashoutEnabled: {
type: GT.NonNull(GT.Boolean),
description: dedent`Whether cashout (settle to local bank account) entry points
should be shown to the user. Controlled by the instance-wide cashout feature flag.`,
},
bridgeEnabled: {
type: GT.NonNull(GT.Boolean),
description: dedent`Whether Bridge (international bank transfer) entry points
should be shown to the user. Controlled by the instance-wide bridge feature flag.`,
},
}),
})

Expand Down
Loading