Skip to content

Commit

Permalink
fix: update schemas/codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Feb 19, 2024
1 parent b6da7ea commit ba1f2bc
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/admin-panel/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** 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<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -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'
Expand Down
8 changes: 8 additions & 0 deletions apps/consent/app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** 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<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -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'
Expand Down
9 changes: 9 additions & 0 deletions apps/dashboard/services/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2164,6 +2164,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** 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<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -4802,6 +4810,7 @@ export type WalletResolvers<ContextType = any, ParentType extends ResolversParen
transactions?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, Partial<WalletTransactionsArgs>>;
transactionsByAddress?: Resolver<Maybe<ResolversTypes['TransactionConnection']>, ParentType, ContextType, RequireFields<WalletTransactionsByAddressArgs, 'address'>>;
transactionsByPaymentHash?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<WalletTransactionsByPaymentHashArgs, 'paymentHash'>>;
transactionsByPaymentRequest?: Resolver<ReadonlyArray<ResolversTypes['Transaction']>, ParentType, ContextType, RequireFields<WalletTransactionsByPaymentRequestArgs, 'paymentRequest'>>;
walletCurrency?: Resolver<ResolversTypes['WalletCurrency'], ParentType, ContextType>;
};

Expand Down
8 changes: 8 additions & 0 deletions apps/pay/lib/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,8 @@ export type Wallet = {
readonly transactionsByAddress?: Maybe<TransactionConnection>;
/** 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<Transaction>;
/** Returns the transactions that include this paymentRequest. */
readonly transactionsByPaymentRequest: ReadonlyArray<Transaction>;
readonly walletCurrency: WalletCurrency;
};

Expand Down Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions core/api/dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}

Expand Down
6 changes: 6 additions & 0 deletions core/api/src/graphql/admin/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}

Expand Down
6 changes: 6 additions & 0 deletions core/api/src/graphql/public/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}

Expand Down
6 changes: 6 additions & 0 deletions dev/config/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}

Expand Down

0 comments on commit ba1f2bc

Please sign in to comment.