Socket
Socket
Sign inDemoInstall

@galoymoney/client

Package Overview
Dependencies
202
Maintainers
5
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.65 to 0.1.66

babel.config.json

4

dist/admin/graphql/use-mutation.d.ts
export declare const MUTATIONS: {
accountUpdateStatus: any;
accountUpdateLevel: any;
accountUpdateStatus: import("graphql").DocumentNode;
accountUpdateLevel: import("graphql").DocumentNode;
};
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MUTATIONS = void 0;
var load_files_1 = require("@graphql-tools/load-files");
var accountUpdateStatus = (0, load_files_1.loadFilesSync)("./mutations/account-update-status.gql")[0];
var accountUpdateLevel = (0, load_files_1.loadFilesSync)("./mutations/account-update-level.gql")[0];
var account_update_level_1 = __importDefault(require("./mutations/account-update-level"));
var account_update_status_1 = __importDefault(require("./mutations/account-update-status"));
exports.MUTATIONS = {
accountUpdateStatus: accountUpdateStatus,
accountUpdateLevel: accountUpdateLevel,
accountUpdateStatus: account_update_status_1.default,
accountUpdateLevel: account_update_level_1.default,
};
export declare const QUERIES: {
accountDetailsByUserPhone: any;
accountDetailsByUsername: any;
accountDetailsByUserPhone: import("graphql").DocumentNode;
accountDetailsByUsername: import("graphql").DocumentNode;
};
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.QUERIES = void 0;
var load_files_1 = require("@graphql-tools/load-files");
var accountDetailsByUserPhone = (0, load_files_1.loadFilesSync)("./queries/account-details-by-user-phone.gql")[0];
var accountDetailsByUsername = (0, load_files_1.loadFilesSync)("./queries/account-details-by-username.gql")[0];
var account_details_by_user_phone_1 = __importDefault(require("./queries/account-details-by-user-phone"));
var account_details_by_username_1 = __importDefault(require("./queries/account-details-by-username"));
exports.QUERIES = {
accountDetailsByUserPhone: accountDetailsByUserPhone,
accountDetailsByUsername: accountDetailsByUsername,
accountDetailsByUserPhone: account_details_by_user_phone_1.default,
accountDetailsByUsername: account_details_by_username_1.default,
};
import { MutationFunctionOptions, MutationHookOptions, MutationResult } from "@apollo/client";
import { GaloyGQL } from "../index";
export declare const MUTATIONS: {
accountUpdateDefaultWalletId: any;
userLoginUpgrade: any;
userDeviceAccountCreate: any;
captchaCreateChallenge: any;
captchaRequestAuthCode: any;
deviceNotificationTokenCreate: any;
intraLedgerPaymentSend: any;
intraLedgerUsdPaymentSend: any;
lnInvoiceCreate: any;
lnInvoiceCreateOnBehalfOfRecipient: any;
lnInvoiceFeeProbe: any;
lnInvoicePaymentSend: any;
lnNoAmountInvoiceCreate: any;
lnNoAmountInvoiceFeeProbe: any;
lnNoAmountInvoicePaymentSend: any;
lnNoAmountUsdInvoiceFeeProbe: any;
lnNoAmountUsdInvoicePaymentSend: any;
lnUsdInvoiceCreate: any;
lnUsdInvoiceCreateOnBehalfOfRecipient: any;
lnUsdInvoiceFeeProbe: any;
onChainAddressCurrent: any;
onChainPaymentSend: any;
userContactUpdateAlias: any;
userLogin: any;
userQuizQuestionUpdateCompleted: any;
userUpdateLanguage: any;
userUpdateUsername: any;
};
type MutationHelpers = {

@@ -33,0 +4,0 @@ errorsMessage?: string;

@@ -50,66 +50,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.useMutation = exports.MUTATIONS = void 0;
exports.useMutation = void 0;
var client_1 = require("@apollo/client");
var react_1 = require("react");
var index_1 = require("../index");
var load_files_1 = require("@graphql-tools/load-files");
var accountUpdateDefaultWalletId = (0, load_files_1.loadFilesSync)("./mutations/account-update-default-wallet-id.gql")[0];
var userLoginUpgrade = (0, load_files_1.loadFilesSync)("./mutations/user-login-upgrade.gql")[0];
var userDeviceAccountCreate = (0, load_files_1.loadFilesSync)("./mutations/user-device-account-create.gql")[0];
var captchaCreateChallenge = (0, load_files_1.loadFilesSync)("./mutations/captcha-create-challenge.gql")[0];
var captchaRequestAuthCode = (0, load_files_1.loadFilesSync)("./mutations/captcha-request-auth-code.gql")[0];
var deviceNotificationTokenCreate = (0, load_files_1.loadFilesSync)("./mutations/device-notification-token-create.gql")[0];
var intraLedgerPaymentSend = (0, load_files_1.loadFilesSync)("./mutations/intra-ledger-paymest-send.gql")[0];
var intraLedgerUsdPaymentSend = (0, load_files_1.loadFilesSync)("./mutations/intra-ledger-usd-payment-send.gql")[0];
var lnInvoiceCreate = (0, load_files_1.loadFilesSync)("./mutations/ln-invoice-create.gql")[0];
var lnInvoiceCreateOnBehalfOfRecipient = (0, load_files_1.loadFilesSync)("./mutations/ln-invoice-create-on-behalf-of-recipient.gql")[0];
var lnInvoiceFeeProbe = (0, load_files_1.loadFilesSync)("./mutations/ln-invoice-fee-probe.gql")[0];
var lnInvoicePaymentSend = (0, load_files_1.loadFilesSync)("./mutations/ln-invoice-payment-send.gql")[0];
var lnNoAmountInvoiceCreate = (0, load_files_1.loadFilesSync)("./mutations/ln-no-amount-invoice-create.gql")[0];
var lnNoAmountInvoiceFeeProbe = (0, load_files_1.loadFilesSync)("./mutations/ln-no-amount-invoice-fee-probe.gql")[0];
var lnNoAmountInvoicePaymentSend = (0, load_files_1.loadFilesSync)("./mutations/ln-no-amount-invoice-payment-send.gql")[0];
var lnNoAmountUsdInvoiceFeeProbe = (0, load_files_1.loadFilesSync)("./mutations/ln-no-amount-usd-invoice-fee-probe.gql")[0];
var lnNoAmountUsdInvoicePaymentSend = (0, load_files_1.loadFilesSync)("./mutations/ln-no-amount-usd-invoice-payment-send.gql")[0];
var lnUsdInvoiceCreate = (0, load_files_1.loadFilesSync)("./mutations/ln-usd-invoice-create.gql")[0];
var lnUsdInvoiceCreateOnBehalfOfRecipient = (0, load_files_1.loadFilesSync)("./mutations/ln-usd-invoice-create-on-behalf-of-recipient.gql")[0];
var lnUsdInvoiceFeeProbe = (0, load_files_1.loadFilesSync)("./mutations/ln-usd-invoice-fee-probe.gql")[0];
var onChainAddressCurrent = (0, load_files_1.loadFilesSync)("./mutations/on-chain-address-current.gql")[0];
var onChainPaymentSend = (0, load_files_1.loadFilesSync)("./mutations/on-chain-payment-send.gql")[0];
var userContactUpdateAlias = (0, load_files_1.loadFilesSync)("./mutations/user-contact-update-alias.gql")[0];
var userLogin = (0, load_files_1.loadFilesSync)("./mutations/user-login.gql")[0];
var userQuizQuestionUpdateCompleted = (0, load_files_1.loadFilesSync)("./mutations/user-quiz-question-update-completed.gql")[0];
var userUpdateLanguage = (0, load_files_1.loadFilesSync)("./mutations/user-update-language.gql")[0];
var userUpdateUsername = (0, load_files_1.loadFilesSync)("./mutations/user-update-username.gql")[0];
exports.MUTATIONS = {
accountUpdateDefaultWalletId: accountUpdateDefaultWalletId,
userLoginUpgrade: userLoginUpgrade,
userDeviceAccountCreate: userDeviceAccountCreate,
captchaCreateChallenge: captchaCreateChallenge,
captchaRequestAuthCode: captchaRequestAuthCode,
deviceNotificationTokenCreate: deviceNotificationTokenCreate,
intraLedgerPaymentSend: intraLedgerPaymentSend,
intraLedgerUsdPaymentSend: intraLedgerUsdPaymentSend,
lnInvoiceCreate: lnInvoiceCreate,
lnInvoiceCreateOnBehalfOfRecipient: lnInvoiceCreateOnBehalfOfRecipient,
lnInvoiceFeeProbe: lnInvoiceFeeProbe,
lnInvoicePaymentSend: lnInvoicePaymentSend,
lnNoAmountInvoiceCreate: lnNoAmountInvoiceCreate,
lnNoAmountInvoiceFeeProbe: lnNoAmountInvoiceFeeProbe,
lnNoAmountInvoicePaymentSend: lnNoAmountInvoicePaymentSend,
lnNoAmountUsdInvoiceFeeProbe: lnNoAmountUsdInvoiceFeeProbe,
lnNoAmountUsdInvoicePaymentSend: lnNoAmountUsdInvoicePaymentSend,
lnUsdInvoiceCreate: lnUsdInvoiceCreate,
lnUsdInvoiceCreateOnBehalfOfRecipient: lnUsdInvoiceCreateOnBehalfOfRecipient,
lnUsdInvoiceFeeProbe: lnUsdInvoiceFeeProbe,
onChainAddressCurrent: onChainAddressCurrent,
onChainPaymentSend: onChainPaymentSend,
userContactUpdateAlias: userContactUpdateAlias,
userLogin: userLogin,
userQuizQuestionUpdateCompleted: userQuizQuestionUpdateCompleted,
userUpdateLanguage: userUpdateLanguage,
userUpdateUsername: userUpdateUsername,
};
var import_1 = require("./import");
var useMutationWrapper = function (mutationName, config) {
var _a, _b, _c;
var _d = (0, client_1.useMutation)(exports.MUTATIONS[mutationName], config), mutationFunction = _d[0], result = _d[1];
var _d = (0, client_1.useMutation)(import_1.MUTATIONS[mutationName], config), mutationFunction = _d[0], result = _d[1];
var errors = (_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a[mutationName]) === null || _b === void 0 ? void 0 : _b.errors;

@@ -116,0 +60,0 @@ var errorsMessage = ((_c = result === null || result === void 0 ? void 0 : result.error) === null || _c === void 0 ? void 0 : _c.message) || (0, index_1.joinErrorsMessages)(errors);

import { QueryResult, QueryHookOptions, QueryOptions } from "@apollo/client";
import { GaloyGQL } from "../index";
export declare const QUERIES: {
accountDefaultWallet: any;
btcPriceList: any;
businessMapMarkers: any;
contacts: any;
getWalletCsvTransactions: any;
main: any;
onChainTxFee: any;
quizQuestions: any;
transactionList: any;
transactionListForContact: any;
transactionListForDefaultAccount: any;
userDefaultWalletId: any;
usernameAvailable: any;
currencyList: any;
};
type QueryHelpers = {

@@ -20,0 +4,0 @@ errorsMessage?: string;

@@ -50,40 +50,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.useDelayedQuery = exports.useQuery = exports.QUERIES = void 0;
exports.useDelayedQuery = exports.useQuery = void 0;
var client_1 = require("@apollo/client");
var react_1 = require("react");
var index_1 = require("../index");
var load_files_1 = require("@graphql-tools/load-files");
var main = (0, load_files_1.loadFilesSync)("./queries/main.gql")[0];
var transactionList = (0, load_files_1.loadFilesSync)("./queries/transaction-list.gql")[0];
var transactionListForContact = (0, load_files_1.loadFilesSync)("./queries/transaction-list.gql")[0];
var transactionListForDefaultAccount = (0, load_files_1.loadFilesSync)("./queries/transaction-list.gql")[0];
var accountDefaultWallet = (0, load_files_1.loadFilesSync)("./queries/account-default-wallet.gql")[0];
var btcPriceList = (0, load_files_1.loadFilesSync)("./queries/btc-price-list.gql")[0];
var businessMapMarkers = (0, load_files_1.loadFilesSync)("./queries/business-map-markers.gql")[0];
var contacts = (0, load_files_1.loadFilesSync)("./queries/contacts.gql")[0];
var getWalletCsvTransactions = (0, load_files_1.loadFilesSync)("./queries/get-wallet-csv-transactions.gql")[0];
var onChainTxFee = (0, load_files_1.loadFilesSync)("./queries/on-chain-tx-fee.gql")[0];
var quizQuestions = (0, load_files_1.loadFilesSync)("./queries/quiz-questions.gql")[0];
var userDefaultWalletId = (0, load_files_1.loadFilesSync)("./queries/user-default-wallet-id.gql")[0];
var usernameAvailable = (0, load_files_1.loadFilesSync)("./queries/username-available.gql")[0];
var currencyList = (0, load_files_1.loadFilesSync)("./queries/currency-list.gql")[0];
exports.QUERIES = {
accountDefaultWallet: accountDefaultWallet,
btcPriceList: btcPriceList,
businessMapMarkers: businessMapMarkers,
contacts: contacts,
getWalletCsvTransactions: getWalletCsvTransactions,
main: main,
onChainTxFee: onChainTxFee,
quizQuestions: quizQuestions,
transactionList: transactionList,
transactionListForContact: transactionListForContact,
transactionListForDefaultAccount: transactionListForDefaultAccount,
userDefaultWalletId: userDefaultWalletId,
usernameAvailable: usernameAvailable,
currencyList: currencyList,
};
var import_1 = require("./import");
var useQueryWrapper = function (queryName, config) {
var _a;
var result = (0, client_1.useQuery)(exports.QUERIES[queryName], config);
var result = (0, client_1.useQuery)(import_1.QUERIES[queryName], config);
var data = result.data, error = result.error;

@@ -138,3 +108,3 @@ var errors = (_a = data === null || data === void 0 ? void 0 : data[queryName]) === null || _a === void 0 ? void 0 : _a.errors;

_b.trys.push([1, 3, , 4]);
return [4 /*yield*/, client.query(__assign({ query: exports.QUERIES[queryName], variables: variables }, config))];
return [4 /*yield*/, client.query(__assign({ query: import_1.QUERIES[queryName], variables: variables }, config))];
case 2:

@@ -141,0 +111,0 @@ result = _b.sent();

import { SubscriptionHookOptions, SubscriptionResult } from "@apollo/client";
import { GaloyGQL } from "../index";
export declare const SUBSCRIPTIONS: {
myUpdates: any;
lnInvoicePaymentStatus: any;
};
type SubscriptionHelpers = {

@@ -8,0 +4,0 @@ errorsMessage?: string;

@@ -14,15 +14,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.useSubscription = exports.SUBSCRIPTIONS = void 0;
exports.useSubscription = void 0;
var client_1 = require("@apollo/client");
var index_1 = require("../index");
var load_files_1 = require("@graphql-tools/load-files");
var myUpdates = (0, load_files_1.loadFilesSync)("./subscriptions/my-updates.gql")[0];
var lnInvoicePaymentStatus = (0, load_files_1.loadFilesSync)("./subscriptions/my-updates.gql")[0];
exports.SUBSCRIPTIONS = {
myUpdates: myUpdates,
lnInvoicePaymentStatus: lnInvoicePaymentStatus,
};
var import_1 = require("./import");
var useSubscriptionWrapper = function (subscriptionName, config) {
var _a;
var result = (0, client_1.useSubscription)(exports.SUBSCRIPTIONS[subscriptionName], config);
var result = (0, client_1.useSubscription)(import_1.SUBSCRIPTIONS[subscriptionName], config);
var data = result.data, error = result.error;

@@ -29,0 +23,0 @@ var errors = (_a = data === null || data === void 0 ? void 0 : data[subscriptionName]) === null || _a === void 0 ? void 0 : _a.errors;

{
"name": "@galoymoney/client",
"main": "dist/index.js",
"version": "0.1.65",
"version": "0.1.66",
"license": "MIT",

@@ -9,2 +9,3 @@ "repository": "https://github.com/galoymoney/galoy-client",

"build": "yarn install && rm -rf dist && tsc --sourceMap false --skipLibCheck true",
"prebuild": "yarn babel src/graphql/import.ts.source --out-file src/graphql/import.ts && prettier --write .",
"code:check": "yarn tsc:check && yarn eslint:check && yarn prettier:check",

@@ -22,3 +23,2 @@ "dev:codegen": "graphql-codegen --config codegen.yml",

"@apollo/client": ">=3.6.0",
"@graphql-tools/load-files": "^6.6.1",
"bitcoinjs-lib": "~6.0.2",

@@ -41,3 +41,2 @@ "bolt11": "~1.3.4",

"@graphql-codegen/typescript-operations": "^2.5.11",
"@graphql-tools/load-files": "^6.6.1",
"@types/jest": "^28.1.4",

@@ -64,3 +63,10 @@ "@types/react": "^18.0.15",

},
"dependencies": {}
"dependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.7",
"babel-plugin-import-graphql": "^2.8.1"
},
"resolutions": {
"**/**/json5": ">=2.2.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc