From 0508d901f449c23c6a367b3a3c40ff76c9f93545 Mon Sep 17 00:00:00 2001 From: Sam Peters Date: Fri, 6 Oct 2023 10:20:37 -0500 Subject: [PATCH] chore: change file locations --- core/api/src/graphql/public/types/payload/ln-invoice.ts | 2 +- core/api/src/graphql/shared/types/abstract/wallet.ts | 2 +- core/api/src/graphql/shared/types/object/btc-wallet.ts | 4 +++- .../graphql/{public => shared}/types/object/ln-invoice.ts | 8 ++++---- core/api/src/graphql/shared/types/object/usd-wallet.ts | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) rename core/api/src/graphql/{public => shared}/types/object/ln-invoice.ts (60%) diff --git a/core/api/src/graphql/public/types/payload/ln-invoice.ts b/core/api/src/graphql/public/types/payload/ln-invoice.ts index 0f93d6dd88c..1cce9af6897 100644 --- a/core/api/src/graphql/public/types/payload/ln-invoice.ts +++ b/core/api/src/graphql/public/types/payload/ln-invoice.ts @@ -1,6 +1,6 @@ import IError from "../../../shared/types/abstract/error" -import LnInvoice from "../object/ln-invoice" +import LnInvoice from "../../../shared/types/object/ln-invoice" import { GT } from "@/graphql/index" diff --git a/core/api/src/graphql/shared/types/abstract/wallet.ts b/core/api/src/graphql/shared/types/abstract/wallet.ts index 2bed415a7e6..e76fd7143d9 100644 --- a/core/api/src/graphql/shared/types/abstract/wallet.ts +++ b/core/api/src/graphql/shared/types/abstract/wallet.ts @@ -8,7 +8,7 @@ import PaymentHash from "../scalar/payment-hash" import { connectionArgs } from "@/graphql/connections" import { GT } from "@/graphql/index" -import LnInvoice from "@/graphql/public/types/object/ln-invoice" +import LnInvoice from "@/graphql/shared/types/object/ln-invoice" const IWallet = GT.Interface({ name: "Wallet", diff --git a/core/api/src/graphql/shared/types/object/btc-wallet.ts b/core/api/src/graphql/shared/types/object/btc-wallet.ts index 7c24ad8d1f6..29e32cf2c2f 100644 --- a/core/api/src/graphql/shared/types/object/btc-wallet.ts +++ b/core/api/src/graphql/shared/types/object/btc-wallet.ts @@ -22,7 +22,7 @@ import { mapError } from "@/graphql/error-map" import { Wallets } from "@/app" import { WalletCurrency as WalletCurrencyDomain } from "@/domain/shared" -import LnInvoice from "@/graphql/public/types/object/ln-invoice" +import LnInvoice from "@/graphql/shared/types/object/ln-invoice" const BtcWallet = GT.Object({ name: "BTCWallet", @@ -135,6 +135,8 @@ const BtcWallet = GT.Object({ type: GT.NonNull(PaymentHash), }, }, + description: + "The lightning invoice with the matching paymentHash belonging to this wallet.", resolve: async (source, args) => { const { paymentHash } = args if (paymentHash instanceof Error) throw paymentHash diff --git a/core/api/src/graphql/public/types/object/ln-invoice.ts b/core/api/src/graphql/shared/types/object/ln-invoice.ts similarity index 60% rename from core/api/src/graphql/public/types/object/ln-invoice.ts rename to core/api/src/graphql/shared/types/object/ln-invoice.ts index f414ebf8953..8403dda2ae0 100644 --- a/core/api/src/graphql/public/types/object/ln-invoice.ts +++ b/core/api/src/graphql/shared/types/object/ln-invoice.ts @@ -1,7 +1,7 @@ -import LnPaymentRequest from "../../../shared/types/scalar/ln-payment-request" -import PaymentHash from "../../../shared/types/scalar/payment-hash" -import LnPaymentSecret from "../../../shared/types/scalar/ln-payment-secret" -import SatAmount from "../../../shared/types/scalar/sat-amount" +import LnPaymentRequest from "../scalar/ln-payment-request" +import PaymentHash from "../scalar/payment-hash" +import LnPaymentSecret from "../scalar/ln-payment-secret" +import SatAmount from "../scalar/sat-amount" import { GT } from "@/graphql/index" diff --git a/core/api/src/graphql/shared/types/object/usd-wallet.ts b/core/api/src/graphql/shared/types/object/usd-wallet.ts index 50d7ed6bf65..0db758e01e5 100644 --- a/core/api/src/graphql/shared/types/object/usd-wallet.ts +++ b/core/api/src/graphql/shared/types/object/usd-wallet.ts @@ -22,7 +22,7 @@ import { mapError } from "@/graphql/error-map" import { Wallets } from "@/app" import { WalletCurrency as WalletCurrencyDomain } from "@/domain/shared" -import LnInvoice from "@/graphql/public/types/object/ln-invoice" +import LnInvoice from "@/graphql/shared/types/object/ln-invoice" const UsdWallet = GT.Object({ name: "UsdWallet",