Socket
Socket
Sign inDemoInstall

@galoymoney/client

Package Overview
Dependencies
Maintainers
4
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@galoymoney/client - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

dist/client/index.d.ts

2

.eslintrc.js

@@ -77,3 +77,3 @@ module.exports = {

"no-confusing-arrow": "error",
"no-console": ["warn", { allow: ["error", "info"] }],
"no-console": ["warn", { allow: ["error", "info", "debug"] }],
"no-constructor-return": "error",

@@ -80,0 +80,0 @@ "no-continue": "error",

import { GaloyGQL } from "./types";
declare const joinErrorsMessages: (errors?: GaloyGQL.Error[] | undefined) => string | undefined;
export * from "./mutations";
export declare type CachedData = {

@@ -12,1 +11,4 @@ satPriceInCents: number;

export { GaloyGQL, joinErrorsMessages };
export * from "./use-query";
export * from "./use-mutation";
export * from "./use-subscription";

@@ -23,5 +23,2 @@ "use strict";

exports.joinErrorsMessages = joinErrorsMessages;
// export * from "./queries"
__exportStar(require("./mutations"), exports);
// export * from "./supscriptions"
var CACHED_DATA = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query cachedData {\n satPriceInCents @client\n }\n"], ["\n query cachedData {\n satPriceInCents @client\n }\n"])));

@@ -41,2 +38,5 @@ var PriceCacheStore = function () {

exports.PriceCacheStore = PriceCacheStore;
__exportStar(require("./use-query"), exports);
__exportStar(require("./use-mutation"), exports);
__exportStar(require("./use-subscription"), exports);
var templateObject_1;

@@ -61,31 +61,31 @@ export declare namespace GaloyGQL {

type Account = {
csvTransactions: Scalars['String'];
defaultWalletId: Scalars['WalletId'];
id: Scalars['ID'];
csvTransactions: Scalars["String"];
defaultWalletId: Scalars["WalletId"];
id: Scalars["ID"];
wallets: Array<Wallet>;
};
type AccountCsvTransactionsArgs = {
walletIds: Array<Scalars['WalletId']>;
walletIds: Array<Scalars["WalletId"]>;
};
type AccountApiKey = {
__typename?: 'AccountApiKey';
expireAt: Scalars['Timestamp'];
key: Scalars['String'];
label: Scalars['AccountApiKeyLabel'];
secret: Scalars['String'];
__typename?: "AccountApiKey";
expireAt: Scalars["Timestamp"];
key: Scalars["String"];
label: Scalars["AccountApiKeyLabel"];
secret: Scalars["String"];
};
type AccountApiKeyCreateInput = {
expireAt: Scalars['Timestamp'];
label?: InputMaybe<Scalars['AccountApiKeyLabel']>;
expireAt: Scalars["Timestamp"];
label?: InputMaybe<Scalars["AccountApiKeyLabel"]>;
};
type AccountApiKeyDisableInput = {
label: Scalars['AccountApiKeyLabel'];
label: Scalars["AccountApiKeyLabel"];
};
type AccountApiKeyHashed = {
__typename?: 'AccountApiKeyHashed';
expireAt: Scalars['Timestamp'];
label: Scalars['AccountApiKeyLabel'];
__typename?: "AccountApiKeyHashed";
expireAt: Scalars["Timestamp"];
label: Scalars["AccountApiKeyLabel"];
};
type AccountApiKeyPayload = {
__typename?: 'AccountApiKeyPayload';
__typename?: "AccountApiKeyPayload";
accountApiKey?: Maybe<AccountApiKey>;

@@ -95,10 +95,10 @@ errors: Array<Error>;

type AuthTokenPayload = {
__typename?: 'AuthTokenPayload';
authToken?: Maybe<Scalars['AuthToken']>;
__typename?: "AuthTokenPayload";
authToken?: Maybe<Scalars["AuthToken"]>;
errors: Array<Error>;
};
type BtcWallet = Wallet & {
__typename?: 'BTCWallet';
balance: Scalars['SignedAmount'];
id: Scalars['ID'];
__typename?: "BTCWallet";
balance: Scalars["SignedAmount"];
id: Scalars["ID"];
transactions?: Maybe<TransactionConnection>;

@@ -108,15 +108,15 @@ walletCurrency: WalletCurrency;

type BtcWalletTransactionsArgs = {
after?: InputMaybe<Scalars['String']>;
before?: InputMaybe<Scalars['String']>;
first?: InputMaybe<Scalars['Int']>;
last?: InputMaybe<Scalars['Int']>;
after?: InputMaybe<Scalars["String"]>;
before?: InputMaybe<Scalars["String"]>;
first?: InputMaybe<Scalars["Int"]>;
last?: InputMaybe<Scalars["Int"]>;
};
type BuildInformation = {
__typename?: 'BuildInformation';
buildTime?: Maybe<Scalars['Timestamp']>;
commitHash?: Maybe<Scalars['String']>;
helmRevision?: Maybe<Scalars['Int']>;
__typename?: "BuildInformation";
buildTime?: Maybe<Scalars["Timestamp"]>;
commitHash?: Maybe<Scalars["String"]>;
helmRevision?: Maybe<Scalars["Int"]>;
};
type CaptchaCreateChallengePayload = {
__typename?: 'CaptchaCreateChallengePayload';
__typename?: "CaptchaCreateChallengePayload";
errors: Array<Error>;

@@ -126,41 +126,41 @@ result?: Maybe<CaptchaCreateChallengeResult>;

type CaptchaCreateChallengeResult = {
__typename?: 'CaptchaCreateChallengeResult';
challengeCode: Scalars['String'];
failbackMode: Scalars['Boolean'];
id: Scalars['String'];
newCaptcha: Scalars['Boolean'];
__typename?: "CaptchaCreateChallengeResult";
challengeCode: Scalars["String"];
failbackMode: Scalars["Boolean"];
id: Scalars["String"];
newCaptcha: Scalars["Boolean"];
};
type CaptchaRequestAuthCodeInput = {
challengeCode: Scalars['String'];
phone: Scalars['Phone'];
secCode: Scalars['String'];
validationCode: Scalars['String'];
challengeCode: Scalars["String"];
phone: Scalars["Phone"];
secCode: Scalars["String"];
validationCode: Scalars["String"];
};
type ConsumerAccount = Account & {
__typename?: 'ConsumerAccount';
__typename?: "ConsumerAccount";
/** return CSV stream, base64 encoded, of the list of transactions in the wallet */
csvTransactions: Scalars['String'];
defaultWalletId: Scalars['WalletId'];
id: Scalars['ID'];
csvTransactions: Scalars["String"];
defaultWalletId: Scalars["WalletId"];
id: Scalars["ID"];
wallets: Array<Wallet>;
};
type ConsumerAccountCsvTransactionsArgs = {
walletIds: Array<Scalars['WalletId']>;
walletIds: Array<Scalars["WalletId"]>;
};
type Coordinates = {
__typename?: 'Coordinates';
latitude: Scalars['Float'];
longitude: Scalars['Float'];
__typename?: "Coordinates";
latitude: Scalars["Float"];
longitude: Scalars["Float"];
};
type DeviceNotificationTokenCreateInput = {
deviceToken: Scalars['String'];
deviceToken: Scalars["String"];
};
type Error = {
message: Scalars['String'];
path?: Maybe<Array<Maybe<Scalars['String']>>>;
message: Scalars["String"];
path?: Maybe<Array<Maybe<Scalars["String"]>>>;
};
type ExchangeCurrencyUnit = 'BTCSAT' | 'USDCENT';
type ExchangeCurrencyUnit = "BTCSAT" | "USDCENT";
/** Provides global settings for the application which might have an impact for the user. */
type Globals = {
__typename?: 'Globals';
__typename?: "Globals";
buildInformation: BuildInformation;

@@ -171,63 +171,63 @@ /**

*/
nodesIds: Array<Scalars['String']>;
nodesIds: Array<Scalars["String"]>;
};
type InitiationVia = InitiationViaIntraLedger | InitiationViaLn | InitiationViaOnChain;
type InitiationViaIntraLedger = {
__typename?: 'InitiationViaIntraLedger';
counterPartyUsername?: Maybe<Scalars['Username']>;
counterPartyWalletId?: Maybe<Scalars['WalletId']>;
__typename?: "InitiationViaIntraLedger";
counterPartyUsername?: Maybe<Scalars["Username"]>;
counterPartyWalletId?: Maybe<Scalars["WalletId"]>;
};
type InitiationViaLn = {
__typename?: 'InitiationViaLn';
paymentHash: Scalars['PaymentHash'];
__typename?: "InitiationViaLn";
paymentHash: Scalars["PaymentHash"];
};
type InitiationViaOnChain = {
__typename?: 'InitiationViaOnChain';
address: Scalars['OnChainAddress'];
__typename?: "InitiationViaOnChain";
address: Scalars["OnChainAddress"];
};
type InputError = Error & {
__typename?: 'InputError';
__typename?: "InputError";
code: InputErrorCode;
message: Scalars['String'];
path?: Maybe<Array<Maybe<Scalars['String']>>>;
message: Scalars["String"];
path?: Maybe<Array<Maybe<Scalars["String"]>>>;
};
type InputErrorCode = 'INVALID_INPUT' | 'VALUE_NOT_ALLOWED' | 'VALUE_TOO_LONG' | 'VALUE_TOO_SHORT';
type InputErrorCode = "INVALID_INPUT" | "VALUE_NOT_ALLOWED" | "VALUE_TOO_LONG" | "VALUE_TOO_SHORT";
type IntraLedgerPaymentSendInput = {
amount: Scalars['SatAmount'];
memo?: InputMaybe<Scalars['Memo']>;
recipientWalletId: Scalars['WalletId'];
walletId: Scalars['WalletId'];
amount: Scalars["SatAmount"];
memo?: InputMaybe<Scalars["Memo"]>;
recipientWalletId: Scalars["WalletId"];
walletId: Scalars["WalletId"];
};
type IntraLedgerUpdate = {
__typename?: 'IntraLedgerUpdate';
amount: Scalars['SatAmount'];
__typename?: "IntraLedgerUpdate";
amount: Scalars["SatAmount"];
txNotificationType: TxNotificationType;
usdPerSat: Scalars['Float'];
walletId: Scalars['WalletId'];
usdPerSat: Scalars["Float"];
walletId: Scalars["WalletId"];
};
type InvoicePaymentStatus = 'PAID' | 'PENDING';
type InvoicePaymentStatus = "PAID" | "PENDING";
type LnInvoice = {
__typename?: 'LnInvoice';
paymentHash: Scalars['PaymentHash'];
paymentRequest: Scalars['LnPaymentRequest'];
paymentSecret: Scalars['LnPaymentSecret'];
satoshis?: Maybe<Scalars['SatAmount']>;
__typename?: "LnInvoice";
paymentHash: Scalars["PaymentHash"];
paymentRequest: Scalars["LnPaymentRequest"];
paymentSecret: Scalars["LnPaymentSecret"];
satoshis?: Maybe<Scalars["SatAmount"]>;
};
type LnInvoiceCreateInput = {
amount: Scalars['SatAmount'];
memo?: InputMaybe<Scalars['Memo']>;
walletId: Scalars['WalletId'];
amount: Scalars["SatAmount"];
memo?: InputMaybe<Scalars["Memo"]>;
walletId: Scalars["WalletId"];
};
type LnInvoiceCreateOnBehalfOfRecipientInput = {
amount: Scalars['SatAmount'];
descriptionHash?: InputMaybe<Scalars['Hex32Bytes']>;
memo?: InputMaybe<Scalars['Memo']>;
recipientWalletId: Scalars['WalletId'];
amount: Scalars["SatAmount"];
descriptionHash?: InputMaybe<Scalars["Hex32Bytes"]>;
memo?: InputMaybe<Scalars["Memo"]>;
recipientWalletId: Scalars["WalletId"];
};
type LnInvoiceFeeProbeInput = {
paymentRequest: Scalars['LnPaymentRequest'];
walletId: Scalars['WalletId'];
paymentRequest: Scalars["LnPaymentRequest"];
walletId: Scalars["WalletId"];
};
type LnInvoicePayload = {
__typename?: 'LnInvoicePayload';
__typename?: "LnInvoicePayload";
errors: Array<Error>;

@@ -237,11 +237,11 @@ invoice?: Maybe<LnInvoice>;

type LnInvoicePaymentInput = {
memo?: InputMaybe<Scalars['Memo']>;
paymentRequest: Scalars['LnPaymentRequest'];
walletId: Scalars['WalletId'];
memo?: InputMaybe<Scalars["Memo"]>;
paymentRequest: Scalars["LnPaymentRequest"];
walletId: Scalars["WalletId"];
};
type LnInvoicePaymentStatusInput = {
paymentRequest: Scalars['LnPaymentRequest'];
paymentRequest: Scalars["LnPaymentRequest"];
};
type LnInvoicePaymentStatusPayload = {
__typename?: 'LnInvoicePaymentStatusPayload';
__typename?: "LnInvoicePaymentStatusPayload";
errors: Array<Error>;

@@ -251,22 +251,22 @@ status?: Maybe<InvoicePaymentStatus>;

type LnNoAmountInvoice = {
__typename?: 'LnNoAmountInvoice';
paymentHash: Scalars['PaymentHash'];
paymentRequest: Scalars['LnPaymentRequest'];
paymentSecret: Scalars['LnPaymentSecret'];
__typename?: "LnNoAmountInvoice";
paymentHash: Scalars["PaymentHash"];
paymentRequest: Scalars["LnPaymentRequest"];
paymentSecret: Scalars["LnPaymentSecret"];
};
type LnNoAmountInvoiceCreateInput = {
memo?: InputMaybe<Scalars['Memo']>;
walletId: Scalars['WalletId'];
memo?: InputMaybe<Scalars["Memo"]>;
walletId: Scalars["WalletId"];
};
type LnNoAmountInvoiceCreateOnBehalfOfRecipientInput = {
memo?: InputMaybe<Scalars['Memo']>;
recipientWalletId: Scalars['WalletId'];
memo?: InputMaybe<Scalars["Memo"]>;
recipientWalletId: Scalars["WalletId"];
};
type LnNoAmountInvoiceFeeProbeInput = {
amount: Scalars['SatAmount'];
paymentRequest: Scalars['LnPaymentRequest'];
walletId: Scalars['WalletId'];
amount: Scalars["SatAmount"];
paymentRequest: Scalars["LnPaymentRequest"];
walletId: Scalars["WalletId"];
};
type LnNoAmountInvoicePayload = {
__typename?: 'LnNoAmountInvoicePayload';
__typename?: "LnNoAmountInvoicePayload";
errors: Array<Error>;

@@ -276,31 +276,31 @@ invoice?: Maybe<LnNoAmountInvoice>;

type LnNoAmountInvoicePaymentInput = {
amount: Scalars['SatAmount'];
memo?: InputMaybe<Scalars['Memo']>;
paymentRequest: Scalars['LnPaymentRequest'];
walletId: Scalars['WalletId'];
amount: Scalars["SatAmount"];
memo?: InputMaybe<Scalars["Memo"]>;
paymentRequest: Scalars["LnPaymentRequest"];
walletId: Scalars["WalletId"];
};
type LnUpdate = {
__typename?: 'LnUpdate';
paymentHash: Scalars['PaymentHash'];
__typename?: "LnUpdate";
paymentHash: Scalars["PaymentHash"];
status: InvoicePaymentStatus;
walletId: Scalars['WalletId'];
walletId: Scalars["WalletId"];
};
type MapInfo = {
__typename?: 'MapInfo';
__typename?: "MapInfo";
coordinates: Coordinates;
title: Scalars['String'];
title: Scalars["String"];
};
type MapMarker = {
__typename?: 'MapMarker';
__typename?: "MapMarker";
mapInfo: MapInfo;
username?: Maybe<Scalars['Username']>;
username?: Maybe<Scalars["Username"]>;
};
type MobileVersions = {
__typename?: 'MobileVersions';
currentSupported: Scalars['Int'];
minSupported: Scalars['Int'];
platform: Scalars['String'];
__typename?: "MobileVersions";
currentSupported: Scalars["Int"];
minSupported: Scalars["Int"];
platform: Scalars["String"];
};
type Mutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
accountApiKeyCreate: AccountApiKeyPayload;

@@ -412,3 +412,3 @@ accountApiKeyDisable: SuccessPayload;

type MyUpdatesPayload = {
__typename?: 'MyUpdatesPayload';
__typename?: "MyUpdatesPayload";
errors: Array<Error>;

@@ -419,75 +419,75 @@ me?: Maybe<User>;

type OnChainAddressCreateInput = {
walletId: Scalars['WalletId'];
walletId: Scalars["WalletId"];
};
type OnChainAddressCurrentInput = {
walletId: Scalars['WalletId'];
walletId: Scalars["WalletId"];
};
type OnChainAddressPayload = {
__typename?: 'OnChainAddressPayload';
address?: Maybe<Scalars['OnChainAddress']>;
__typename?: "OnChainAddressPayload";
address?: Maybe<Scalars["OnChainAddress"]>;
errors: Array<Error>;
};
type OnChainPaymentSendAllInput = {
address: Scalars['OnChainAddress'];
memo?: InputMaybe<Scalars['Memo']>;
targetConfirmations?: InputMaybe<Scalars['TargetConfirmations']>;
walletId: Scalars['WalletId'];
address: Scalars["OnChainAddress"];
memo?: InputMaybe<Scalars["Memo"]>;
targetConfirmations?: InputMaybe<Scalars["TargetConfirmations"]>;
walletId: Scalars["WalletId"];
};
type OnChainPaymentSendInput = {
address: Scalars['OnChainAddress'];
amount: Scalars['SatAmount'];
memo?: InputMaybe<Scalars['Memo']>;
targetConfirmations?: InputMaybe<Scalars['TargetConfirmations']>;
walletId: Scalars['WalletId'];
address: Scalars["OnChainAddress"];
amount: Scalars["SatAmount"];
memo?: InputMaybe<Scalars["Memo"]>;
targetConfirmations?: InputMaybe<Scalars["TargetConfirmations"]>;
walletId: Scalars["WalletId"];
};
type OnChainTxFee = {
__typename?: 'OnChainTxFee';
amount: Scalars['SatAmount'];
targetConfirmations: Scalars['TargetConfirmations'];
__typename?: "OnChainTxFee";
amount: Scalars["SatAmount"];
targetConfirmations: Scalars["TargetConfirmations"];
};
type OnChainUpdate = {
__typename?: 'OnChainUpdate';
amount: Scalars['SatAmount'];
txHash: Scalars['OnChainTxHash'];
__typename?: "OnChainUpdate";
amount: Scalars["SatAmount"];
txHash: Scalars["OnChainTxHash"];
txNotificationType: TxNotificationType;
usdPerSat: Scalars['Float'];
walletId: Scalars['WalletId'];
usdPerSat: Scalars["Float"];
walletId: Scalars["WalletId"];
};
/** Information about pagination in a connection. */
type PageInfo = {
__typename?: 'PageInfo';
__typename?: "PageInfo";
/** When paginating forwards, the cursor to continue. */
endCursor?: Maybe<Scalars['String']>;
endCursor?: Maybe<Scalars["String"]>;
/** When paginating forwards, are there more items? */
hasNextPage: Scalars['Boolean'];
hasNextPage: Scalars["Boolean"];
/** When paginating backwards, are there more items? */
hasPreviousPage: Scalars['Boolean'];
hasPreviousPage: Scalars["Boolean"];
/** When paginating backwards, the cursor to continue. */
startCursor?: Maybe<Scalars['String']>;
startCursor?: Maybe<Scalars["String"]>;
};
type PaymentError = Error & {
__typename?: 'PaymentError';
__typename?: "PaymentError";
code: PaymentErrorCode;
message: Scalars['String'];
path?: Maybe<Array<Maybe<Scalars['String']>>>;
message: Scalars["String"];
path?: Maybe<Array<Maybe<Scalars["String"]>>>;
};
type PaymentErrorCode = 'ACCOUNT_LOCKED' | 'INSUFFICIENT_BALANCE' | 'INVOICE_PAID' | 'LIMIT_EXCEEDED' | 'NO_LIQUIDITY' | 'NO_ROUTE';
type PaymentErrorCode = "ACCOUNT_LOCKED" | "INSUFFICIENT_BALANCE" | "INVOICE_PAID" | "LIMIT_EXCEEDED" | "NO_LIQUIDITY" | "NO_ROUTE";
type PaymentSendPayload = {
__typename?: 'PaymentSendPayload';
__typename?: "PaymentSendPayload";
errors: Array<Error>;
status?: Maybe<PaymentSendResult>;
};
type PaymentSendResult = 'ALREADY_PAID' | 'FAILURE' | 'PENDING' | 'SUCCESS';
type PaymentSendResult = "ALREADY_PAID" | "FAILURE" | "PENDING" | "SUCCESS";
/** Price amount expressed in base/offset. To calculate, use: `base / 10^offset` */
type Price = {
__typename?: 'Price';
base: Scalars['SafeInt'];
__typename?: "Price";
base: Scalars["SafeInt"];
currencyUnit: ExchangeCurrencyUnit;
formattedAmount: Scalars['String'];
offset: Scalars['Int'];
formattedAmount: Scalars["String"];
offset: Scalars["Int"];
};
/** The range for the X axis in the BTC price graph */
type PriceGraphRange = 'FIVE_YEARS' | 'ONE_DAY' | 'ONE_MONTH' | 'ONE_WEEK' | 'ONE_YEAR';
type PriceGraphRange = "FIVE_YEARS" | "ONE_DAY" | "ONE_MONTH" | "ONE_WEEK" | "ONE_YEAR";
type PriceInput = {
amount: Scalars['SatAmount'];
amount: Scalars["SatAmount"];
amountCurrencyUnit: ExchangeCurrencyUnit;

@@ -497,3 +497,3 @@ priceCurrencyUnit: ExchangeCurrencyUnit;

type PricePayload = {
__typename?: 'PricePayload';
__typename?: "PricePayload";
errors: Array<Error>;

@@ -503,9 +503,9 @@ price?: Maybe<Price>;

type PricePoint = {
__typename?: 'PricePoint';
__typename?: "PricePoint";
price: Price;
/** Unix timesamp (number of seconds elapsed since January 1, 1970 00:00:00 UTC) */
timestamp: Scalars['Timestamp'];
timestamp: Scalars["Timestamp"];
};
type Query = {
__typename?: 'Query';
__typename?: "Query";
accountApiKeys?: Maybe<Array<Maybe<AccountApiKeyHashed>>>;

@@ -521,4 +521,4 @@ btcPrice?: Maybe<Price>;

/** @deprecated will be migrated to AccountDefaultWalletId */
userDefaultWalletId: Scalars['WalletId'];
usernameAvailable?: Maybe<Scalars['Boolean']>;
userDefaultWalletId: Scalars["WalletId"];
usernameAvailable?: Maybe<Scalars["Boolean"]>;
};

@@ -529,22 +529,22 @@ type QueryBtcPriceListArgs = {

type QueryOnChainTxFeeArgs = {
address: Scalars['OnChainAddress'];
amount: Scalars['SatAmount'];
targetConfirmations?: InputMaybe<Scalars['TargetConfirmations']>;
walletId: Scalars['WalletId'];
address: Scalars["OnChainAddress"];
amount: Scalars["SatAmount"];
targetConfirmations?: InputMaybe<Scalars["TargetConfirmations"]>;
walletId: Scalars["WalletId"];
};
type QueryUserDefaultWalletIdArgs = {
username: Scalars['Username'];
username: Scalars["Username"];
};
type QueryUsernameAvailableArgs = {
username: Scalars['Username'];
username: Scalars["Username"];
};
type QuizQuestion = {
__typename?: 'QuizQuestion';
__typename?: "QuizQuestion";
/** The earn reward in Satoshis for the quiz question */
earnAmount: Scalars['SatAmount'];
id: Scalars['ID'];
earnAmount: Scalars["SatAmount"];
id: Scalars["ID"];
};
type SatAmountPayload = {
__typename?: 'SatAmountPayload';
amount?: Maybe<Scalars['SatAmount']>;
__typename?: "SatAmountPayload";
amount?: Maybe<Scalars["SatAmount"]>;
errors: Array<Error>;

@@ -554,19 +554,19 @@ };

type SettlementViaIntraLedger = {
__typename?: 'SettlementViaIntraLedger';
__typename?: "SettlementViaIntraLedger";
/** Settlement destination: Could be null if the payee does not have a username */
counterPartyUsername?: Maybe<Scalars['Username']>;
counterPartyWalletId?: Maybe<Scalars['WalletId']>;
counterPartyUsername?: Maybe<Scalars["Username"]>;
counterPartyWalletId?: Maybe<Scalars["WalletId"]>;
};
type SettlementViaLn = {
__typename?: 'SettlementViaLn';
__typename?: "SettlementViaLn";
/** @deprecated Shifting property to 'preImage' to improve granularity of the LnPaymentSecret type */
paymentSecret?: Maybe<Scalars['LnPaymentSecret']>;
preImage?: Maybe<Scalars['LnPaymentPreImage']>;
paymentSecret?: Maybe<Scalars["LnPaymentSecret"]>;
preImage?: Maybe<Scalars["LnPaymentPreImage"]>;
};
type SettlementViaOnChain = {
__typename?: 'SettlementViaOnChain';
transactionHash: Scalars['OnChainTxHash'];
__typename?: "SettlementViaOnChain";
transactionHash: Scalars["OnChainTxHash"];
};
type Subscription = {
__typename?: 'Subscription';
__typename?: "Subscription";
lnInvoicePaymentStatus: LnInvoicePaymentStatusPayload;

@@ -583,5 +583,5 @@ myUpdates: MyUpdatesPayload;

type SuccessPayload = {
__typename?: 'SuccessPayload';
__typename?: "SuccessPayload";
errors: Array<Error>;
success?: Maybe<Scalars['Boolean']>;
success?: Maybe<Scalars["Boolean"]>;
};

@@ -596,12 +596,12 @@ /**

type Transaction = {
__typename?: 'Transaction';
createdAt: Scalars['Timestamp'];
__typename?: "Transaction";
createdAt: Scalars["Timestamp"];
direction: TxDirection;
id: Scalars['ID'];
id: Scalars["ID"];
/** From which protocol the payment has been initiated. */
initiationVia: InitiationVia;
memo?: Maybe<Scalars['Memo']>;
memo?: Maybe<Scalars["Memo"]>;
/** Amount of sats sent or received. */
settlementAmount: Scalars['SatAmount'];
settlementFee: Scalars['SatAmount'];
settlementAmount: Scalars["SatAmount"];
settlementFee: Scalars["SatAmount"];
/** Price in USDCENT/SATS at time of settlement. */

@@ -615,3 +615,3 @@ settlementPrice: Price;

type TransactionConnection = {
__typename?: 'TransactionConnection';
__typename?: "TransactionConnection";
/** A list of edges. */

@@ -624,5 +624,5 @@ edges?: Maybe<Array<Maybe<TransactionEdge>>>;

type TransactionEdge = {
__typename?: 'TransactionEdge';
__typename?: "TransactionEdge";
/** A cursor for use in pagination */
cursor: Scalars['String'];
cursor: Scalars["String"];
/** The item at the end of the edge */

@@ -632,6 +632,6 @@ node?: Maybe<Transaction>;

type TwoFaDeleteInput = {
token: Scalars['String'];
token: Scalars["String"];
};
type TwoFaGeneratePayload = {
__typename?: 'TwoFAGeneratePayload';
__typename?: "TwoFAGeneratePayload";
errors: Array<Error>;

@@ -641,15 +641,15 @@ twoFASecret?: Maybe<TwoFaSecret>;

type TwoFaSaveInput = {
secret: Scalars['String'];
token: Scalars['String'];
secret: Scalars["String"];
token: Scalars["String"];
};
type TwoFaSecret = {
__typename?: 'TwoFASecret';
secret: Scalars['String'];
uri: Scalars['String'];
__typename?: "TwoFASecret";
secret: Scalars["String"];
uri: Scalars["String"];
};
type TxDirection = 'RECEIVE' | 'SEND';
type TxNotificationType = 'IntraLedgerPayment' | 'IntraLedgerReceipt' | 'LnInvoicePaid' | 'OnchainPayment' | 'OnchainReceipt' | 'OnchainReceiptPending';
type TxStatus = 'FAILURE' | 'PENDING' | 'SUCCESS';
type TxDirection = "RECEIVE" | "SEND";
type TxNotificationType = "IntraLedgerPayment" | "IntraLedgerReceipt" | "LnInvoicePaid" | "OnchainPayment" | "OnchainReceipt" | "OnchainReceiptPending";
type TxStatus = "FAILURE" | "PENDING" | "SUCCESS";
type User = {
__typename?: 'User';
__typename?: "User";
/**

@@ -666,5 +666,5 @@ * Get single contact details.

contacts: Array<UserContact>;
createdAt: Scalars['Timestamp'];
createdAt: Scalars["Timestamp"];
defaultAccount: Account;
id: Scalars['ID'];
id: Scalars["ID"];
/**

@@ -674,8 +674,8 @@ * Preferred language for user.

*/
language: Scalars['Language'];
language: Scalars["Language"];
/** Phone number with international calling code. */
phone: Scalars['Phone'];
phone: Scalars["Phone"];
/** List the quiz questions the user may have completed. */
quizQuestions: Array<UserQuizQuestion>;
twoFAEnabled?: Maybe<Scalars['Boolean']>;
twoFAEnabled?: Maybe<Scalars["Boolean"]>;
/**

@@ -685,9 +685,9 @@ * Optional immutable user friendly identifier.

*/
username?: Maybe<Scalars['Username']>;
username?: Maybe<Scalars["Username"]>;
};
type UserContactByUsernameArgs = {
username: Scalars['Username'];
username: Scalars["Username"];
};
type UserContact = {
__typename?: 'UserContact';
__typename?: "UserContact";
/**

@@ -697,22 +697,22 @@ * Alias the user can set for this contact.

*/
alias?: Maybe<Scalars['ContactAlias']>;
id: Scalars['Username'];
alias?: Maybe<Scalars["ContactAlias"]>;
id: Scalars["Username"];
/** Paginated list of transactions sent to/from this contact. */
transactions?: Maybe<TransactionConnection>;
transactionsCount: Scalars['Int'];
transactionsCount: Scalars["Int"];
/** Actual identifier of the contact. */
username: Scalars['Username'];
username: Scalars["Username"];
};
type UserContactTransactionsArgs = {
after?: InputMaybe<Scalars['String']>;
before?: InputMaybe<Scalars['String']>;
first?: InputMaybe<Scalars['Int']>;
last?: InputMaybe<Scalars['Int']>;
after?: InputMaybe<Scalars["String"]>;
before?: InputMaybe<Scalars["String"]>;
first?: InputMaybe<Scalars["Int"]>;
last?: InputMaybe<Scalars["Int"]>;
};
type UserContactUpdateAliasInput = {
alias: Scalars['ContactAlias'];
username: Scalars['Username'];
alias: Scalars["ContactAlias"];
username: Scalars["Username"];
};
type UserContactUpdateAliasPayload = {
__typename?: 'UserContactUpdateAliasPayload';
__typename?: "UserContactUpdateAliasPayload";
contact?: Maybe<UserContact>;

@@ -722,15 +722,15 @@ errors: Array<Error>;

type UserLoginInput = {
code: Scalars['OneTimeAuthCode'];
phone: Scalars['Phone'];
code: Scalars["OneTimeAuthCode"];
phone: Scalars["Phone"];
};
type UserQuizQuestion = {
__typename?: 'UserQuizQuestion';
completed: Scalars['Boolean'];
__typename?: "UserQuizQuestion";
completed: Scalars["Boolean"];
question: QuizQuestion;
};
type UserQuizQuestionUpdateCompletedInput = {
id: Scalars['ID'];
id: Scalars["ID"];
};
type UserQuizQuestionUpdateCompletedPayload = {
__typename?: 'UserQuizQuestionUpdateCompletedPayload';
__typename?: "UserQuizQuestionUpdateCompletedPayload";
errors: Array<Error>;

@@ -740,10 +740,10 @@ userQuizQuestion?: Maybe<UserQuizQuestion>;

type UserRequestAuthCodeInput = {
phone: Scalars['Phone'];
phone: Scalars["Phone"];
};
type UserUpdate = IntraLedgerUpdate | LnUpdate | OnChainUpdate | Price;
type UserUpdateLanguageInput = {
language: Scalars['Language'];
language: Scalars["Language"];
};
type UserUpdateLanguagePayload = {
__typename?: 'UserUpdateLanguagePayload';
__typename?: "UserUpdateLanguagePayload";
errors: Array<Error>;

@@ -753,6 +753,6 @@ user?: Maybe<User>;

type UserUpdateUsernameInput = {
username: Scalars['Username'];
username: Scalars["Username"];
};
type UserUpdateUsernamePayload = {
__typename?: 'UserUpdateUsernamePayload';
__typename?: "UserUpdateUsernamePayload";
errors: Array<Error>;

@@ -762,4 +762,4 @@ user?: Maybe<User>;

type Wallet = {
balance: Scalars['SignedAmount'];
id: Scalars['ID'];
balance: Scalars["SignedAmount"];
id: Scalars["ID"];
/**

@@ -773,19 +773,19 @@ * Transactions are ordered anti-chronogically,

type WalletTransactionsArgs = {
after?: InputMaybe<Scalars['String']>;
before?: InputMaybe<Scalars['String']>;
first?: InputMaybe<Scalars['Int']>;
last?: InputMaybe<Scalars['Int']>;
after?: InputMaybe<Scalars["String"]>;
before?: InputMaybe<Scalars["String"]>;
first?: InputMaybe<Scalars["Int"]>;
last?: InputMaybe<Scalars["Int"]>;
};
type WalletCurrency = 'BTC';
type WalletCurrency = "BTC";
type TransactionListFragment = {
__typename?: 'TransactionConnection';
__typename?: "TransactionConnection";
pageInfo: {
__typename?: 'PageInfo';
__typename?: "PageInfo";
hasNextPage: boolean;
};
edges?: Array<{
__typename?: 'TransactionEdge';
__typename?: "TransactionEdge";
cursor: string;
node?: {
__typename: 'Transaction';
__typename: "Transaction";
id: string;

@@ -799,3 +799,3 @@ status: TxStatus;

settlementPrice: {
__typename?: 'Price';
__typename?: "Price";
base: number;

@@ -805,21 +805,21 @@ offset: number;

initiationVia: {
__typename: 'InitiationViaIntraLedger';
__typename: "InitiationViaIntraLedger";
counterPartyWalletId?: string | null | undefined;
counterPartyUsername?: string | null | undefined;
} | {
__typename: 'InitiationViaLn';
__typename: "InitiationViaLn";
paymentHash: string;
} | {
__typename: 'InitiationViaOnChain';
__typename: "InitiationViaOnChain";
address: string;
};
settlementVia: {
__typename: 'SettlementViaIntraLedger';
__typename: "SettlementViaIntraLedger";
counterPartyWalletId?: string | null | undefined;
counterPartyUsername?: string | null | undefined;
} | {
__typename: 'SettlementViaLn';
__typename: "SettlementViaLn";
paymentSecret?: string | null | undefined;
} | {
__typename: 'SettlementViaOnChain';
__typename: "SettlementViaOnChain";
transactionHash: string;

@@ -834,14 +834,14 @@ };

type CaptchaCreateChallengeMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
captchaCreateChallenge: {
__typename?: 'CaptchaCreateChallengePayload';
__typename?: "CaptchaCreateChallengePayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
result?: {
__typename?: 'CaptchaCreateChallengeResult';
__typename?: "CaptchaCreateChallengeResult";
id: string;

@@ -858,11 +858,11 @@ challengeCode: string;

type CaptchaRequestAuthCodeMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
captchaRequestAuthCode: {
__typename?: 'SuccessPayload';
__typename?: "SuccessPayload";
success?: boolean | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -873,14 +873,14 @@ }>;

type DeviceNotificationTokenCreateMutationVariables = Exact<{
deviceToken: Scalars['String'];
deviceToken: Scalars["String"];
}>;
type DeviceNotificationTokenCreateMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
deviceNotificationTokenCreate: {
__typename?: 'SuccessPayload';
__typename?: "SuccessPayload";
success?: boolean | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -894,11 +894,11 @@ }>;

type IntraLedgerPaymentSendMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
intraLedgerPaymentSend: {
__typename?: 'PaymentSendPayload';
__typename?: "PaymentSendPayload";
status?: PaymentSendResult | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -912,14 +912,14 @@ }>;

type LnInvoiceCreateMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
lnInvoiceCreate: {
__typename?: 'LnInvoicePayload';
__typename?: "LnInvoicePayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
invoice?: {
__typename?: 'LnInvoice';
__typename?: "LnInvoice";
paymentRequest: string;

@@ -934,11 +934,11 @@ paymentHash: string;

type LnInvoiceFeeProbeMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
lnInvoiceFeeProbe: {
__typename?: 'SatAmountPayload';
__typename?: "SatAmountPayload";
amount?: number | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -952,11 +952,11 @@ }>;

type LnInvoicePaymentSendMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
lnInvoicePaymentSend: {
__typename?: 'PaymentSendPayload';
__typename?: "PaymentSendPayload";
status?: PaymentSendResult | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -970,14 +970,14 @@ }>;

type LnNoAmountInvoiceCreateMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
lnNoAmountInvoiceCreate: {
__typename?: 'LnNoAmountInvoicePayload';
__typename?: "LnNoAmountInvoicePayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
invoice?: {
__typename?: 'LnNoAmountInvoice';
__typename?: "LnNoAmountInvoice";
paymentRequest: string;

@@ -992,11 +992,11 @@ paymentHash: string;

type LnNoAmountInvoiceFeeProbeMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
lnNoAmountInvoiceFeeProbe: {
__typename?: 'SatAmountPayload';
__typename?: "SatAmountPayload";
amount?: number | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -1010,11 +1010,11 @@ }>;

type LnNoAmountInvoicePaymentSendMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
lnNoAmountInvoicePaymentSend: {
__typename?: 'PaymentSendPayload';
__typename?: "PaymentSendPayload";
status?: PaymentSendResult | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -1028,11 +1028,11 @@ }>;

type OnChainAddressCurrentMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
onChainAddressCurrent: {
__typename?: 'OnChainAddressPayload';
__typename?: "OnChainAddressPayload";
address?: string | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -1046,11 +1046,11 @@ }>;

type OnChainPaymentSendMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
onChainPaymentSend: {
__typename?: 'PaymentSendPayload';
__typename?: "PaymentSendPayload";
status?: PaymentSendResult | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -1064,10 +1064,10 @@ }>;

type UserContactUpdateAliasMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
userContactUpdateAlias: {
__typename?: 'UserContactUpdateAliasPayload';
__typename?: "UserContactUpdateAliasPayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -1081,11 +1081,11 @@ }>;

type UserLoginMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
userLogin: {
__typename?: 'AuthTokenPayload';
__typename?: "AuthTokenPayload";
authToken?: string | null | undefined;
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;

@@ -1099,17 +1099,17 @@ }>;

type UserQuizQuestionUpdateCompletedMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
userQuizQuestionUpdateCompleted: {
__typename?: 'UserQuizQuestionUpdateCompletedPayload';
__typename?: "UserQuizQuestionUpdateCompletedPayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
userQuizQuestion?: {
__typename?: 'UserQuizQuestion';
__typename?: "UserQuizQuestion";
completed: boolean;
question: {
__typename?: 'QuizQuestion';
__typename?: "QuizQuestion";
id: string;

@@ -1122,17 +1122,17 @@ earnAmount: number;

type UpdateLanguageMutationVariables = Exact<{
language: Scalars['Language'];
language: Scalars["Language"];
}>;
type UpdateLanguageMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
userUpdateLanguage: {
__typename?: 'UserUpdateLanguagePayload';
__typename?: "UserUpdateLanguagePayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
user?: {
__typename?: 'User';
__typename?: "User";
id: string;

@@ -1144,17 +1144,17 @@ language: string;

type UpdateUsernameMutationVariables = Exact<{
username: Scalars['Username'];
username: Scalars["Username"];
}>;
type UpdateUsernameMutation = {
__typename?: 'Mutation';
__typename?: "Mutation";
userUpdateUsername: {
__typename?: 'UserUpdateUsernamePayload';
__typename?: "UserUpdateUsernamePayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
user?: {
__typename?: 'User';
__typename?: "User";
id: string;

@@ -1169,8 +1169,8 @@ username?: string | null | undefined;

type BtcPriceListQuery = {
__typename?: 'Query';
__typename?: "Query";
btcPriceList?: Array<{
__typename?: 'PricePoint';
__typename?: "PricePoint";
timestamp: number;
price: {
__typename?: 'Price';
__typename?: "Price";
base: number;

@@ -1187,11 +1187,11 @@ offset: number;

type BusinessMapMarkersQuery = {
__typename?: 'Query';
__typename?: "Query";
businessMapMarkers?: Array<{
__typename?: 'MapMarker';
__typename?: "MapMarker";
username?: string | null | undefined;
mapInfo: {
__typename?: 'MapInfo';
__typename?: "MapInfo";
title: string;
coordinates: {
__typename?: 'Coordinates';
__typename?: "Coordinates";
longitude: number;

@@ -1207,8 +1207,8 @@ latitude: number;

type ContactsQuery = {
__typename?: 'Query';
__typename?: "Query";
me?: {
__typename?: 'User';
__typename?: "User";
id: string;
contacts: Array<{
__typename?: 'UserContact';
__typename?: "UserContact";
username: string;

@@ -1221,11 +1221,11 @@ alias?: string | null | undefined;

type GetWalletCsvTransactionsQueryVariables = Exact<{
defaultWalletId: Scalars['WalletId'];
defaultWalletId: Scalars["WalletId"];
}>;
type GetWalletCsvTransactionsQuery = {
__typename?: 'Query';
__typename?: "Query";
me?: {
__typename?: 'User';
__typename?: "User";
id: string;
defaultAccount: {
__typename?: 'ConsumerAccount';
__typename?: "ConsumerAccount";
id: string;

@@ -1237,12 +1237,12 @@ csvTransactions: string;

type MainQueryVariables = Exact<{
hasToken: Scalars['Boolean'];
hasToken: Scalars["Boolean"];
}>;
type MainQuery = {
__typename?: 'Query';
__typename?: "Query";
globals?: {
__typename?: 'Globals';
__typename?: "Globals";
nodesIds: Array<string>;
} | null | undefined;
btcPrice?: {
__typename?: 'Price';
__typename?: "Price";
base: number;

@@ -1254,3 +1254,3 @@ offset: number;

me?: {
__typename?: 'User';
__typename?: "User";
id: string;

@@ -1260,6 +1260,6 @@ username?: string | null | undefined;

defaultAccount: {
__typename?: 'ConsumerAccount';
__typename?: "ConsumerAccount";
id: string;
wallets: Array<{
__typename?: 'BTCWallet';
__typename?: "BTCWallet";
id: string;

@@ -1272,11 +1272,11 @@ balance: number;

type OnChainTxFeeQueryVariables = Exact<{
walletId: Scalars['WalletId'];
address: Scalars['OnChainAddress'];
amount: Scalars['SatAmount'];
targetConfirmations?: InputMaybe<Scalars['TargetConfirmations']>;
walletId: Scalars["WalletId"];
address: Scalars["OnChainAddress"];
amount: Scalars["SatAmount"];
targetConfirmations?: InputMaybe<Scalars["TargetConfirmations"]>;
}>;
type OnChainTxFeeQuery = {
__typename?: 'Query';
__typename?: "Query";
onChainTxFee: {
__typename?: 'OnChainTxFee';
__typename?: "OnChainTxFee";
amount: number;

@@ -1290,5 +1290,5 @@ targetConfirmations: number;

type QuizQuestionsQuery = {
__typename?: 'Query';
__typename?: "Query";
quizQuestions?: Array<{
__typename?: 'QuizQuestion';
__typename?: "QuizQuestion";
id: string;

@@ -1299,24 +1299,24 @@ earnAmount: number;

type TransactionsListForContactQueryVariables = Exact<{
username: Scalars['Username'];
first?: InputMaybe<Scalars['Int']>;
after?: InputMaybe<Scalars['String']>;
username: Scalars["Username"];
first?: InputMaybe<Scalars["Int"]>;
after?: InputMaybe<Scalars["String"]>;
}>;
type TransactionsListForContactQuery = {
__typename?: 'Query';
__typename?: "Query";
me?: {
__typename?: 'User';
__typename?: "User";
id: string;
contactByUsername: {
__typename?: 'UserContact';
__typename?: "UserContact";
transactions?: {
__typename?: 'TransactionConnection';
__typename?: "TransactionConnection";
pageInfo: {
__typename?: 'PageInfo';
__typename?: "PageInfo";
hasNextPage: boolean;
};
edges?: Array<{
__typename?: 'TransactionEdge';
__typename?: "TransactionEdge";
cursor: string;
node?: {
__typename: 'Transaction';
__typename: "Transaction";
id: string;

@@ -1330,3 +1330,3 @@ status: TxStatus;

settlementPrice: {
__typename?: 'Price';
__typename?: "Price";
base: number;

@@ -1336,21 +1336,21 @@ offset: number;

initiationVia: {
__typename: 'InitiationViaIntraLedger';
__typename: "InitiationViaIntraLedger";
counterPartyWalletId?: string | null | undefined;
counterPartyUsername?: string | null | undefined;
} | {
__typename: 'InitiationViaLn';
__typename: "InitiationViaLn";
paymentHash: string;
} | {
__typename: 'InitiationViaOnChain';
__typename: "InitiationViaOnChain";
address: string;
};
settlementVia: {
__typename: 'SettlementViaIntraLedger';
__typename: "SettlementViaIntraLedger";
counterPartyWalletId?: string | null | undefined;
counterPartyUsername?: string | null | undefined;
} | {
__typename: 'SettlementViaLn';
__typename: "SettlementViaLn";
paymentSecret?: string | null | undefined;
} | {
__typename: 'SettlementViaOnChain';
__typename: "SettlementViaOnChain";
transactionHash: string;

@@ -1365,27 +1365,27 @@ };

type TransactionListQueryVariables = Exact<{
first?: InputMaybe<Scalars['Int']>;
after?: InputMaybe<Scalars['String']>;
first?: InputMaybe<Scalars["Int"]>;
after?: InputMaybe<Scalars["String"]>;
}>;
type TransactionListQuery = {
__typename?: 'Query';
__typename?: "Query";
me?: {
__typename?: 'User';
__typename?: "User";
id: string;
defaultAccount: {
__typename?: 'ConsumerAccount';
__typename?: "ConsumerAccount";
id: string;
wallets: Array<{
__typename?: 'BTCWallet';
__typename?: "BTCWallet";
id: string;
transactions?: {
__typename?: 'TransactionConnection';
__typename?: "TransactionConnection";
pageInfo: {
__typename?: 'PageInfo';
__typename?: "PageInfo";
hasNextPage: boolean;
};
edges?: Array<{
__typename?: 'TransactionEdge';
__typename?: "TransactionEdge";
cursor: string;
node?: {
__typename: 'Transaction';
__typename: "Transaction";
id: string;

@@ -1399,3 +1399,3 @@ status: TxStatus;

settlementPrice: {
__typename?: 'Price';
__typename?: "Price";
base: number;

@@ -1405,21 +1405,21 @@ offset: number;

initiationVia: {
__typename: 'InitiationViaIntraLedger';
__typename: "InitiationViaIntraLedger";
counterPartyWalletId?: string | null | undefined;
counterPartyUsername?: string | null | undefined;
} | {
__typename: 'InitiationViaLn';
__typename: "InitiationViaLn";
paymentHash: string;
} | {
__typename: 'InitiationViaOnChain';
__typename: "InitiationViaOnChain";
address: string;
};
settlementVia: {
__typename: 'SettlementViaIntraLedger';
__typename: "SettlementViaIntraLedger";
counterPartyWalletId?: string | null | undefined;
counterPartyUsername?: string | null | undefined;
} | {
__typename: 'SettlementViaLn';
__typename: "SettlementViaLn";
paymentSecret?: string | null | undefined;
} | {
__typename: 'SettlementViaOnChain';
__typename: "SettlementViaOnChain";
transactionHash: string;

@@ -1435,13 +1435,13 @@ };

type UserDefaultWalletIdQueryVariables = Exact<{
username: Scalars['Username'];
username: Scalars["Username"];
}>;
type UserDefaultWalletIdQuery = {
__typename?: 'Query';
__typename?: "Query";
userDefaultWalletId: string;
};
type UsernameAvailableQueryVariables = Exact<{
username: Scalars['Username'];
username: Scalars["Username"];
}>;
type UsernameAvailableQuery = {
__typename?: 'Query';
__typename?: "Query";
usernameAvailable?: boolean | null | undefined;

@@ -1453,20 +1453,20 @@ };

type MyUpdatesSubscription = {
__typename?: 'Subscription';
__typename?: "Subscription";
myUpdates: {
__typename?: 'MyUpdatesPayload';
__typename?: "MyUpdatesPayload";
errors: Array<{
__typename?: 'InputError';
__typename?: "InputError";
message: string;
} | {
__typename?: 'PaymentError';
__typename?: "PaymentError";
message: string;
}>;
me?: {
__typename?: 'User';
__typename?: "User";
id: string;
defaultAccount: {
__typename?: 'ConsumerAccount';
__typename?: "ConsumerAccount";
id: string;
wallets: Array<{
__typename?: 'BTCWallet';
__typename?: "BTCWallet";
id: string;

@@ -1479,14 +1479,17 @@ walletCurrency: WalletCurrency;

update?: {
__typename?: 'IntraLedgerUpdate';
__typename?: "IntraLedgerUpdate";
walletId: string;
txNotificationType: TxNotificationType;
amount: number;
usdPerSat: number;
type: 'IntraLedgerUpdate';
type: "IntraLedgerUpdate";
} | {
__typename?: 'LnUpdate';
__typename?: "LnUpdate";
walletId: string;
paymentHash: string;
status: InvoicePaymentStatus;
type: 'LnUpdate';
type: "LnUpdate";
} | {
__typename?: 'OnChainUpdate';
__typename?: "OnChainUpdate";
walletId: string;
txNotificationType: TxNotificationType;

@@ -1496,5 +1499,5 @@ txHash: string;

usdPerSat: number;
type: 'OnChainUpdate';
type: "OnChainUpdate";
} | {
__typename?: 'Price';
__typename?: "Price";
base: number;

@@ -1504,3 +1507,3 @@ offset: number;

formattedAmount: string;
type: 'Price';
type: "Price";
} | null | undefined;

@@ -1507,0 +1510,0 @@ };

export declare const VERSION = "0.0.11";
import * as lightningPayReq from "bolt11";
export * from "./parse-payment-destination";
export * from "./graphql/index";
export * from "./translate/index";
export declare const getDescription: (decoded: lightningPayReq.PaymentRequestObject) => string | undefined;
export declare const getDestination: (decoded: lightningPayReq.PaymentRequestObject) => string | undefined;
export declare const getHashFromInvoice: (invoice: string) => string | undefined;
export * from "./client/index";
export * from "./graphql/index";
export * from "./translate/index";
export * from "./parse-payment-destination";

@@ -28,5 +28,2 @@ "use strict";

var lightningPayReq = __importStar(require("bolt11"));
__exportStar(require("./parse-payment-destination"), exports);
__exportStar(require("./graphql/index"), exports);
__exportStar(require("./translate/index"), exports);
var getDescription = function (decoded) {

@@ -51,1 +48,5 @@ var _a;

exports.getHashFromInvoice = getHashFromInvoice;
__exportStar(require("./client/index"), exports);
__exportStar(require("./graphql/index"), exports);
__exportStar(require("./translate/index"), exports);
__exportStar(require("./parse-payment-destination"), exports);

@@ -53,2 +53,3 @@ "use strict";

paymentType: "lightning",
paymentRequest: destinationText,
errorMessage: "Invalid lightning invoice for ".concat(network, " network"),

@@ -62,6 +63,7 @@ };

catch (err) {
console.error(err);
console.debug("[Parse error: decode]:", err);
return {
valid: false,
paymentType: "lightning",
paymentRequest: destinationText,
errorMessage: err instanceof Error ? err.message : "Invalid lightning invoice",

@@ -77,4 +79,7 @@ };

valid: false,
paymentType: "lightning",
sameNode: sameNode,
amount: amount,
paymentRequest: destinationText,
errorMessage: "invoice has expired",
paymentType: "lightning",
};

@@ -86,6 +91,6 @@ }

paymentRequest: destinationText,
sameNode: sameNode,
amount: amount,
memo: memo,
paymentType: "lightning",
sameNode: sameNode,
};

@@ -108,6 +113,7 @@ }

catch (err) {
console.error("can't decode amount ".concat(err));
console.debug("[Parse error: amount]:", err);
return {
valid: false,
errorMessage: "Invalid amount in destination",
address: path,
errorMessage: "Invalid amount in payment destination",
};

@@ -125,3 +131,3 @@ }

catch (err) {
console.error("issue with payment destination: ".concat(err));
console.debug("[Parse error: onchain]:", err);
return {

@@ -135,8 +141,14 @@ valid: false,

var handle = protocol.match(/^(http|\/\/)/iu) ? data.split("/").at(-1) : protocol;
if (handle === null || handle === void 0 ? void 0 : handle.match(/(?!^(1|3|bc1|lnbc1))^[0-9a-z_]{3,50}$/iu)) {
return {
valid: true,
paymentType: "intraledger",
handle: handle,
};
}
return {
valid: true,
paymentType: "intraledger",
handle: handle,
valid: false,
errorMessage: "Invaild payment destination",
};
};
exports.parsePaymentDestination = parsePaymentDestination;

@@ -16,2 +16,3 @@ declare const ES: {

readonly "Invoice has been copied to the clipboard": "";
readonly "Invoice is already paid": "";
readonly "Invoice value is now %{value}": "";

@@ -25,2 +26,3 @@ readonly Lightning: "";

readonly "Payment amount exceeds balance of %{balance} sats": "";
readonly "Payment failed": "";
readonly "Please try again later.": "";

@@ -27,0 +29,0 @@ readonly "Powered By": "";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// prettier-ignore
var ES = {

@@ -18,2 +19,3 @@ "Address has been copied to the clipboard": "",

"Invoice has been copied to the clipboard": "",
"Invoice is already paid": "",
"Invoice value is now %{value}": "",

@@ -27,2 +29,3 @@ "Lightning": "",

"Payment amount exceeds balance of %{balance} sats": "",
"Payment failed": "",
"Please try again later.": "",

@@ -29,0 +32,0 @@ "Powered By": "",

{
"name": "@galoymoney/client",
"version": "0.0.12",
"version": "0.0.13",
"main": "dist/index.js",

@@ -27,2 +27,3 @@ "license": "MIT",

"react": "^18.0.0-rc.0-next-2ed58eb88-20220126",
"react-dom": "^18.0.0-rc.0-next-2ed58eb88-20220126",
"url": "^0.11.0"

@@ -29,0 +30,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc