diff --git a/apps/admin-panel/generated.ts b/apps/admin-panel/generated.ts index 69d74d32ac..237cae755c 100644 --- a/apps/admin-panel/generated.ts +++ b/apps/admin-panel/generated.ts @@ -700,6 +700,8 @@ export type Wallet = { readonly transactionsByAddress?: Maybe; /** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */ readonly transactionsByPaymentHash: ReadonlyArray; + /** Returns the transactions that include this paymentRequest. */ + readonly transactionsByPaymentRequest: ReadonlyArray; readonly walletCurrency: WalletCurrency; }; @@ -755,6 +757,12 @@ export type WalletTransactionsByPaymentHashArgs = { paymentHash: Scalars['PaymentHash']['input']; }; + +/** A generic wallet which stores value in one of our supported currencies. */ +export type WalletTransactionsByPaymentRequestArgs = { + paymentRequest: Scalars['LnPaymentRequest']['input']; +}; + export const WalletCurrency = { Btc: 'BTC', Usd: 'USD' diff --git a/apps/consent/app/graphql/generated.ts b/apps/consent/app/graphql/generated.ts index dff3d937cc..060cddfee3 100644 --- a/apps/consent/app/graphql/generated.ts +++ b/apps/consent/app/graphql/generated.ts @@ -2040,6 +2040,8 @@ export type Wallet = { readonly transactionsByAddress?: Maybe; /** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */ readonly transactionsByPaymentHash: ReadonlyArray; + /** Returns the transactions that include this paymentRequest. */ + readonly transactionsByPaymentRequest: ReadonlyArray; readonly walletCurrency: WalletCurrency; }; @@ -2095,6 +2097,12 @@ export type WalletTransactionsByPaymentHashArgs = { paymentHash: Scalars['PaymentHash']['input']; }; + +/** A generic wallet which stores value in one of our supported currencies. */ +export type WalletTransactionsByPaymentRequestArgs = { + paymentRequest: Scalars['LnPaymentRequest']['input']; +}; + export const WalletCurrency = { Btc: 'BTC', Usd: 'USD' diff --git a/apps/dashboard/services/graphql/generated.ts b/apps/dashboard/services/graphql/generated.ts index 1cd129b3b0..1544317738 100644 --- a/apps/dashboard/services/graphql/generated.ts +++ b/apps/dashboard/services/graphql/generated.ts @@ -2164,6 +2164,8 @@ export type Wallet = { readonly transactionsByAddress?: Maybe; /** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */ readonly transactionsByPaymentHash: ReadonlyArray; + /** Returns the transactions that include this paymentRequest. */ + readonly transactionsByPaymentRequest: ReadonlyArray; readonly walletCurrency: WalletCurrency; }; @@ -2219,6 +2221,12 @@ export type WalletTransactionsByPaymentHashArgs = { paymentHash: Scalars['PaymentHash']['input']; }; + +/** A generic wallet which stores value in one of our supported currencies. */ +export type WalletTransactionsByPaymentRequestArgs = { + paymentRequest: Scalars['LnPaymentRequest']['input']; +}; + export const WalletCurrency = { Btc: 'BTC', Usd: 'USD' @@ -4802,6 +4810,7 @@ export type WalletResolvers, ParentType, ContextType, Partial>; transactionsByAddress?: Resolver, ParentType, ContextType, RequireFields>; transactionsByPaymentHash?: Resolver, ParentType, ContextType, RequireFields>; + transactionsByPaymentRequest?: Resolver, ParentType, ContextType, RequireFields>; walletCurrency?: Resolver; }; diff --git a/apps/pay/lib/graphql/generated.ts b/apps/pay/lib/graphql/generated.ts index b4f8013a24..58f0f00c99 100644 --- a/apps/pay/lib/graphql/generated.ts +++ b/apps/pay/lib/graphql/generated.ts @@ -2039,6 +2039,8 @@ export type Wallet = { readonly transactionsByAddress?: Maybe; /** Returns the transactions that include this paymentHash. This should be a list of size one for a received lightning payment. This can be more that one transaction for a sent lightning payment. */ readonly transactionsByPaymentHash: ReadonlyArray; + /** Returns the transactions that include this paymentRequest. */ + readonly transactionsByPaymentRequest: ReadonlyArray; readonly walletCurrency: WalletCurrency; }; @@ -2094,6 +2096,12 @@ export type WalletTransactionsByPaymentHashArgs = { paymentHash: Scalars['PaymentHash']; }; + +/** A generic wallet which stores value in one of our supported currencies. */ +export type WalletTransactionsByPaymentRequestArgs = { + paymentRequest: Scalars['LnPaymentRequest']; +}; + export const WalletCurrency = { Btc: 'BTC', Usd: 'USD' diff --git a/core/api/dev/apollo-federation/supergraph.graphql b/core/api/dev/apollo-federation/supergraph.graphql index 33efd5382d..5d0863ee76 100644 --- a/core/api/dev/apollo-federation/supergraph.graphql +++ b/core/api/dev/apollo-federation/supergraph.graphql @@ -2304,6 +2304,12 @@ interface Wallet """The payment hash of the lightning invoice paid in this transaction.""" paymentHash: PaymentHash! ): [Transaction!]! + + """Returns the transactions that include this paymentRequest.""" + transactionsByPaymentRequest( + """Lightning invoice paid in this transaction.""" + paymentRequest: LnPaymentRequest! + ): [Transaction!]! walletCurrency: WalletCurrency! } diff --git a/core/api/src/graphql/admin/schema.graphql b/core/api/src/graphql/admin/schema.graphql index a811906e00..f0ec061dbc 100644 --- a/core/api/src/graphql/admin/schema.graphql +++ b/core/api/src/graphql/admin/schema.graphql @@ -643,6 +643,12 @@ interface Wallet { """The payment hash of the lightning invoice paid in this transaction.""" paymentHash: PaymentHash! ): [Transaction!]! + + """Returns the transactions that include this paymentRequest.""" + transactionsByPaymentRequest( + """Lightning invoice paid in this transaction.""" + paymentRequest: LnPaymentRequest! + ): [Transaction!]! walletCurrency: WalletCurrency! } diff --git a/core/api/src/graphql/public/schema.graphql b/core/api/src/graphql/public/schema.graphql index 137845c6f7..faa6e4bb23 100644 --- a/core/api/src/graphql/public/schema.graphql +++ b/core/api/src/graphql/public/schema.graphql @@ -1763,6 +1763,12 @@ interface Wallet { """The payment hash of the lightning invoice paid in this transaction.""" paymentHash: PaymentHash! ): [Transaction!]! + + """Returns the transactions that include this paymentRequest.""" + transactionsByPaymentRequest( + """Lightning invoice paid in this transaction.""" + paymentRequest: LnPaymentRequest! + ): [Transaction!]! walletCurrency: WalletCurrency! } diff --git a/dev/config/apollo-federation/supergraph.graphql b/dev/config/apollo-federation/supergraph.graphql index 33efd5382d..5d0863ee76 100644 --- a/dev/config/apollo-federation/supergraph.graphql +++ b/dev/config/apollo-federation/supergraph.graphql @@ -2304,6 +2304,12 @@ interface Wallet """The payment hash of the lightning invoice paid in this transaction.""" paymentHash: PaymentHash! ): [Transaction!]! + + """Returns the transactions that include this paymentRequest.""" + transactionsByPaymentRequest( + """Lightning invoice paid in this transaction.""" + paymentRequest: LnPaymentRequest! + ): [Transaction!]! walletCurrency: WalletCurrency! }