diff --git a/dev/apollo-federation/supergraph.graphql b/dev/apollo-federation/supergraph.graphql index 903bfed77..26fb4de6f 100644 --- a/dev/apollo-federation/supergraph.graphql +++ b/dev/apollo-federation/supergraph.graphql @@ -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! """ diff --git a/src/graphql/public/root/query/globals.ts b/src/graphql/public/root/query/globals.ts index 0657b1474..34d276d5f 100644 --- a/src/graphql/public/root/query/globals.ts +++ b/src/graphql/public/root/query/globals.ts @@ -1,4 +1,6 @@ import { + BridgeConfig, + Cashout, NETWORK, Topup, getFeesConfig, @@ -35,6 +37,8 @@ const GlobalsQuery = GT.Field({ }, }, topupEnabled: Topup.Enabled, + cashoutEnabled: Cashout.Enabled, + bridgeEnabled: BridgeConfig.enabled, } }, }) diff --git a/src/graphql/public/schema.graphql b/src/graphql/public/schema.graphql index 45ac3bea4..ce0a2a4fe 100644 --- a/src/graphql/public/schema.graphql +++ b/src/graphql/public/schema.graphql @@ -620,7 +620,18 @@ scalar FractionalCentAmount 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! 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! """ diff --git a/src/graphql/public/types/object/globals.ts b/src/graphql/public/types/object/globals.ts index 0f7969e3b..11281987e 100644 --- a/src/graphql/public/types/object/globals.ts +++ b/src/graphql/public/types/object/globals.ts @@ -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.`, + }, }), })