Skip to content

Commit

Permalink
chore: update generated 126 (#3213)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Burtey <[email protected]>
  • Loading branch information
nicolasburtey and Nicolas Burtey authored Apr 23, 2024
1 parent 57ee2ba commit 1ea7776
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 48 deletions.
4 changes: 4 additions & 0 deletions app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export type Scalars = {
export type Account = {
readonly btcWallet?: Maybe<BtcWallet>;
readonly callbackEndpoints: ReadonlyArray<CallbackEndpoint>;
readonly callbackPortalUrl: Scalars['String']['output'];
readonly csvTransactions: Scalars['String']['output'];
readonly defaultWallet: PublicWallet;
/** @deprecated Shifting property to 'defaultWallet.id' */
Expand Down Expand Up @@ -403,6 +404,7 @@ export type ConsumerAccount = Account & {
readonly __typename: 'ConsumerAccount';
readonly btcWallet?: Maybe<BtcWallet>;
readonly callbackEndpoints: ReadonlyArray<CallbackEndpoint>;
readonly callbackPortalUrl: Scalars['String']['output'];
/** return CSV stream, base64 encoded, of the list of transactions in the wallet */
readonly csvTransactions: Scalars['String']['output'];
readonly defaultWallet: PublicWallet;
Expand Down Expand Up @@ -8146,6 +8148,7 @@ export type AccountResolvers<ContextType = any, ParentType extends ResolversPare
__resolveType: TypeResolveFn<'ConsumerAccount', ParentType, ContextType>;
btcWallet?: Resolver<Maybe<ResolversTypes['BTCWallet']>, ParentType, ContextType>;
callbackEndpoints?: Resolver<ReadonlyArray<ResolversTypes['CallbackEndpoint']>, ParentType, ContextType>;
callbackPortalUrl?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
csvTransactions?: Resolver<ResolversTypes['String'], ParentType, ContextType, RequireFields<AccountCsvTransactionsArgs, 'walletIds'>>;
defaultWallet?: Resolver<ResolversTypes['PublicWallet'], ParentType, ContextType>;
defaultWalletId?: Resolver<ResolversTypes['WalletId'], ParentType, ContextType>;
Expand Down Expand Up @@ -8304,6 +8307,7 @@ export type CentAmountPayloadResolvers<ContextType = any, ParentType extends Res
export type ConsumerAccountResolvers<ContextType = any, ParentType extends ResolversParentTypes['ConsumerAccount'] = ResolversParentTypes['ConsumerAccount']> = {
btcWallet?: Resolver<Maybe<ResolversTypes['BTCWallet']>, ParentType, ContextType>;
callbackEndpoints?: Resolver<ReadonlyArray<ResolversTypes['CallbackEndpoint']>, ParentType, ContextType>;
callbackPortalUrl?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
csvTransactions?: Resolver<ResolversTypes['String'], ParentType, ContextType, RequireFields<ConsumerAccountCsvTransactionsArgs, 'walletIds'>>;
defaultWallet?: Resolver<ResolversTypes['PublicWallet'], ParentType, ContextType>;
defaultWalletId?: Resolver<ResolversTypes['WalletId'], ParentType, ContextType>;
Expand Down
17 changes: 0 additions & 17 deletions app/screens/send-bitcoin-screen/confirm-fees-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,4 @@ const useStyles = makeStyles(({ colors }) => ({
titleContainer: {
marginBottom: 12,
},
checkBox: {
paddingLeft: 0,
backgroundColor: "transparent",
},
checkBoxTouchable: {
marginTop: 12,
},
checkBoxContainer: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
backgroundColor: colors.grey5,
borderRadius: 8,
},
checkBoxText: {
flex: 1,
},
}))
99 changes: 68 additions & 31 deletions supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface Account
@join__type(graph: GALOY)
{
callbackEndpoints: [CallbackEndpoint!]!
callbackPortalUrl: String!
csvTransactions(walletIds: [WalletId!]!): String!
defaultWallet: PublicWallet!
defaultWalletId: WalletId! @deprecated(reason: "Shifting property to 'defaultWallet.id'")
Expand Down Expand Up @@ -383,6 +384,7 @@ type ConsumerAccount implements Account
id: ID!
welcomeProfile: WelcomeProfile @join__field(graph: CIRCLES)
callbackEndpoints: [CallbackEndpoint!]! @join__field(graph: GALOY)
callbackPortalUrl: String! @join__field(graph: GALOY)

"""
return CSV stream, base64 encoded, of the list of transactions in the wallet
Expand Down Expand Up @@ -610,17 +612,6 @@ type GraphQLApplicationError implements Error
scalar Hex32Bytes
@join__type(graph: GALOY)

type InAppNotification
@join__type(graph: GALOY)
{
id: ID!
title: String!
body: String!
deepLink: String
createdAt: Timestamp!
readAt: Timestamp
}

union InitiationVia
@join__type(graph: GALOY)
@join__unionMember(graph: GALOY, member: "InitiationViaIntraLedger")
Expand Down Expand Up @@ -1175,6 +1166,14 @@ type MerchantPayload
scalar Minutes
@join__type(graph: GALOY)

type MobileSession
@join__type(graph: GALOY)
{
expiresAt: Timestamp!
id: ID!
issuedAt: Timestamp!
}

type MobileVersions
@join__type(graph: GALOY)
{
Expand All @@ -1189,7 +1188,7 @@ type Mutation
{
apiKeyCreate(input: ApiKeyCreateInput!): ApiKeyCreatePayload! @join__field(graph: GALOY)
apiKeyRevoke(input: ApiKeyRevokeInput!): ApiKeyRevokePayload! @join__field(graph: GALOY)
userInAppNotificationMarkAsRead(input: UserInAppNotificationMarkAsReadInput!): UserInAppNotificationMarkAsReadPayload! @join__field(graph: GALOY)
statefulNotificationAcknowledge(input: StatefulNotificationAcknowledgeInput!): StatefulNotificationAcknowledgePayload! @join__field(graph: GALOY)
accountDelete: AccountDeletePayload! @join__field(graph: GALOY)
accountDisableNotificationCategory(input: AccountDisableNotificationCategoryInput!): AccountUpdateNotificationSettingsPayload! @join__field(graph: GALOY)
accountDisableNotificationChannel(input: AccountDisableNotificationChannelInput!): AccountUpdateNotificationSettingsPayload! @join__field(graph: GALOY)
Expand Down Expand Up @@ -1509,21 +1508,21 @@ type OneDayAccountLimit implements AccountLimit
scalar OneTimeAuthCode
@join__type(graph: GALOY)

"""Information about pagination in a connection."""
"""Information about pagination in a connection"""
type PageInfo
@join__type(graph: GALOY)
{
"""When paginating forwards, the cursor to continue."""
endCursor: String
"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!

"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!

"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!

"""When paginating backwards, the cursor to continue."""
startCursor: String

"""When paginating forwards, the cursor to continue."""
endCursor: String
}

scalar PaymentHash
Expand Down Expand Up @@ -1829,6 +1828,53 @@ A string amount (of a currency) that can be negative (e.g. in a transaction)
scalar SignedDisplayMajorAmount
@join__type(graph: GALOY)

type StatefulNotification
@join__type(graph: GALOY)
{
id: ID!
title: String!
body: String!
deepLink: String
createdAt: Timestamp!
acknowledgedAt: Timestamp
}

input StatefulNotificationAcknowledgeInput
@join__type(graph: GALOY)
{
notificationId: ID!
}

type StatefulNotificationAcknowledgePayload
@join__type(graph: GALOY)
{
notification: StatefulNotification!
}

type StatefulNotificationConnection
@join__type(graph: GALOY)
{
"""Information to aid in pagination."""
pageInfo: PageInfo!

"""A list of edges."""
edges: [StatefulNotificationEdge!]!

"""A list of nodes."""
nodes: [StatefulNotification!]!
}

"""An edge in a connection."""
type StatefulNotificationEdge
@join__type(graph: GALOY)
{
"""The item at the end of the edge"""
node: StatefulNotification!

"""A cursor for use in pagination"""
cursor: String!
}

type Subscription
@join__type(graph: GALOY)
{
Expand Down Expand Up @@ -2069,7 +2115,7 @@ type User
{
id: ID!
apiKeys: [ApiKey!]!
inAppNotifications(onlyUnread: Boolean): [InAppNotification!]!
statefulNotifications(first: Int!, after: String): StatefulNotificationConnection!

"""
Get single contact details.
Expand All @@ -2094,6 +2140,9 @@ type User
"""
language: Language!

"""List of mobile sessions"""
mobileSessions: [MobileSession!]!

"""Phone number with international calling code."""
phone: Phone
supportChat: [SupportMessage!]!
Expand Down Expand Up @@ -2184,18 +2233,6 @@ type UserEmailRegistrationValidatePayload
me: User
}

input UserInAppNotificationMarkAsReadInput
@join__type(graph: GALOY)
{
notificationId: ID!
}

type UserInAppNotificationMarkAsReadPayload
@join__type(graph: GALOY)
{
notification: InAppNotification!
}

input UserLoginInput
@join__type(graph: GALOY)
{
Expand Down

0 comments on commit 1ea7776

Please sign in to comment.