Skip to content

Commit

Permalink
chore: fix codegen2 (#3177)
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 15, 2024
1 parent aee5112 commit 1e86340
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/graphql/generated.gql
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ mutation lnInvoiceCreate($input: LnInvoiceCreateInput!) {
paymentHash
paymentRequest
paymentStatus
externalId
satoshis
__typename
}
Expand Down Expand Up @@ -327,6 +328,7 @@ mutation lnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {
paymentHash
paymentRequest
paymentStatus
externalId
__typename
}
__typename
Expand Down Expand Up @@ -388,6 +390,7 @@ mutation lnUsdInvoiceCreate($input: LnUsdInvoiceCreateInput!) {
paymentHash
paymentRequest
paymentStatus
externalId
satoshis
__typename
}
Expand Down
9 changes: 6 additions & 3 deletions app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2648,14 +2648,14 @@ export type LnNoAmountInvoiceCreateMutationVariables = Exact<{
}>;


export type LnNoAmountInvoiceCreateMutation = { readonly __typename: 'Mutation', readonly lnNoAmountInvoiceCreate: { readonly __typename: 'LnNoAmountInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnNoAmountInvoice', readonly createdAt: number, readonly paymentHash: string, readonly paymentRequest: string, readonly paymentStatus: InvoicePaymentStatus } | null } };
export type LnNoAmountInvoiceCreateMutation = { readonly __typename: 'Mutation', readonly lnNoAmountInvoiceCreate: { readonly __typename: 'LnNoAmountInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnNoAmountInvoice', readonly createdAt: number, readonly paymentHash: string, readonly paymentRequest: string, readonly paymentStatus: InvoicePaymentStatus, readonly externalId: string } | null } };

export type LnInvoiceCreateMutationVariables = Exact<{
input: LnInvoiceCreateInput;
}>;


export type LnInvoiceCreateMutation = { readonly __typename: 'Mutation', readonly lnInvoiceCreate: { readonly __typename: 'LnInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnInvoice', readonly createdAt: number, readonly paymentHash: string, readonly paymentRequest: string, readonly paymentStatus: InvoicePaymentStatus, readonly satoshis: number } | null } };
export type LnInvoiceCreateMutation = { readonly __typename: 'Mutation', readonly lnInvoiceCreate: { readonly __typename: 'LnInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnInvoice', readonly createdAt: number, readonly paymentHash: string, readonly paymentRequest: string, readonly paymentStatus: InvoicePaymentStatus, readonly externalId: string, readonly satoshis: number } | null } };

export type OnChainAddressCurrentMutationVariables = Exact<{
input: OnChainAddressCurrentInput;
Expand All @@ -2669,7 +2669,7 @@ export type LnUsdInvoiceCreateMutationVariables = Exact<{
}>;


export type LnUsdInvoiceCreateMutation = { readonly __typename: 'Mutation', readonly lnUsdInvoiceCreate: { readonly __typename: 'LnInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnInvoice', readonly createdAt: number, readonly paymentHash: string, readonly paymentRequest: string, readonly paymentStatus: InvoicePaymentStatus, readonly satoshis: number } | null } };
export type LnUsdInvoiceCreateMutation = { readonly __typename: 'Mutation', readonly lnUsdInvoiceCreate: { readonly __typename: 'LnInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnInvoice', readonly createdAt: number, readonly paymentHash: string, readonly paymentRequest: string, readonly paymentStatus: InvoicePaymentStatus, readonly externalId: string, readonly satoshis: number } | null } };

export type ScanningQrCodeScreenQueryVariables = Exact<{ [key: string]: never; }>;

Expand Down Expand Up @@ -5151,6 +5151,7 @@ export const LnNoAmountInvoiceCreateDocument = gql`
paymentHash
paymentRequest
paymentStatus
externalId
}
}
}
Expand Down Expand Up @@ -5192,6 +5193,7 @@ export const LnInvoiceCreateDocument = gql`
paymentHash
paymentRequest
paymentStatus
externalId
satoshis
}
}
Expand Down Expand Up @@ -5270,6 +5272,7 @@ export const LnUsdInvoiceCreateDocument = gql`
paymentHash
paymentRequest
paymentStatus
externalId
satoshis
}
}
Expand Down
3 changes: 3 additions & 0 deletions app/screens/receive-bitcoin-screen/use-receive-bitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ gql`
paymentHash
paymentRequest
paymentStatus
externalId
}
}
}
Expand All @@ -88,6 +89,7 @@ gql`
paymentHash
paymentRequest
paymentStatus
externalId
satoshis
}
}
Expand All @@ -112,6 +114,7 @@ gql`
paymentHash
paymentRequest
paymentStatus
externalId
satoshis
}
}
Expand Down
25 changes: 25 additions & 0 deletions supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,22 @@ type Currency
symbol: String!
}

type CurrencyConversionEstimation
@join__type(graph: GALOY)
{
"""Amount in satoshis."""
btcSatAmount: SatAmount!
id: ID!

"""
Unix timestamp (number of seconds elapsed since January 1, 1970 00:00:00 UTC)
"""
timestamp: Timestamp!

"""Amount in USD cents."""
usdCentAmount: CentAmount!
}

type DepositFeesInformation
@join__type(graph: GALOY)
{
Expand Down Expand Up @@ -1642,6 +1658,15 @@ type Query
authorization: Authorization! @join__field(graph: GALOY)
btcPriceList(range: PriceGraphRange!): [PricePoint] @join__field(graph: GALOY)
businessMapMarkers: [MapMarker!]! @join__field(graph: GALOY)

"""Returns an estimated conversion rate for the given amount and currency"""
currencyConversionEstimation(
"""Amount in major unit."""
amount: Float!

"""Currency of the amount to be converted."""
currency: DisplayCurrency!
): CurrencyConversionEstimation! @join__field(graph: GALOY)
currencyList: [Currency!]! @join__field(graph: GALOY)
globals: Globals @join__field(graph: GALOY)
lnInvoicePaymentStatus(input: LnInvoicePaymentStatusInput!): LnInvoicePaymentStatusPayload! @join__field(graph: GALOY) @deprecated(reason: "Deprecated in favor of lnInvoicePaymentStatusByPaymentRequest")
Expand Down

0 comments on commit 1e86340

Please sign in to comment.