@galoymoney/client
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -8,4 +8,4 @@ "use strict"; | ||
var client_1 = require("@apollo/client"); | ||
var lnInvoiceCreate = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation lnInvoiceCreate($input: LnInvoiceCreateInput!) {\n lnInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentRequest\n paymentHash\n }\n }\n }\n"], ["\n mutation lnInvoiceCreate($input: LnInvoiceCreateInput!) {\n lnInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentRequest\n paymentHash\n }\n }\n }\n"]))); | ||
var lnInvoiceCreate = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation lnInvoiceCreate($input: LnInvoiceCreateInput!) {\n lnInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentHash\n paymentRequest\n paymentSecret\n satoshis\n }\n }\n }\n"], ["\n mutation lnInvoiceCreate($input: LnInvoiceCreateInput!) {\n lnInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentHash\n paymentRequest\n paymentSecret\n satoshis\n }\n }\n }\n"]))); | ||
exports.default = lnInvoiceCreate; | ||
var templateObject_1; |
@@ -8,4 +8,4 @@ "use strict"; | ||
var client_1 = require("@apollo/client"); | ||
var lnNoAmountInvoiceCreate = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation lnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {\n lnNoAmountInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentRequest\n paymentHash\n }\n }\n }\n"], ["\n mutation lnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {\n lnNoAmountInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentRequest\n paymentHash\n }\n }\n }\n"]))); | ||
var lnNoAmountInvoiceCreate = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation lnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {\n lnNoAmountInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentHash\n paymentRequest\n paymentSecret\n }\n }\n }\n"], ["\n mutation lnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {\n lnNoAmountInvoiceCreate(input: $input) {\n errors {\n message\n }\n invoice {\n paymentHash\n paymentRequest\n paymentSecret\n }\n }\n }\n"]))); | ||
exports.default = lnNoAmountInvoiceCreate; | ||
var templateObject_1; |
@@ -14,2 +14,5 @@ import { MutationFunctionOptions, MutationHookOptions, MutationResult } from "@apollo/client"; | ||
lnNoAmountInvoicePaymentSend: import("@apollo/client").DocumentNode; | ||
lnNoAmountUsdInvoicePaymentSend: import("@apollo/client").DocumentNode; | ||
lnUsdInvoiceCreate: import("@apollo/client").DocumentNode; | ||
lnUsdInvoiceCreateOnBehalfOfRecipient: import("@apollo/client").DocumentNode; | ||
onChainAddressCurrent: import("@apollo/client").DocumentNode; | ||
@@ -21,2 +24,3 @@ onChainPaymentSend: import("@apollo/client").DocumentNode; | ||
userUpdateLanguage: import("@apollo/client").DocumentNode; | ||
userUpdateUsername: import("@apollo/client").DocumentNode; | ||
}; | ||
@@ -63,7 +67,2 @@ declare type MutationHelpers = { | ||
}>>, MutationResult<GaloyGQL.LnNoAmountInvoiceCreateMutation> & MutationHelpers]; | ||
userUpdateLanguage: (config?: MutationHookOptions<GaloyGQL.UserUpdateLanguageMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.UserUpdateLanguageInput; | ||
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => [MutationFunction<GaloyGQL.UserUpdateLanguageMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.UserUpdateLanguageInput; | ||
}>>, MutationResult<GaloyGQL.UserUpdateLanguageMutation> & MutationHelpers]; | ||
lnNoAmountInvoiceFeeProbe: (config?: MutationHookOptions<GaloyGQL.LnNoAmountInvoiceFeeProbeMutation, GaloyGQL.Exact<{ | ||
@@ -79,2 +78,17 @@ input: GaloyGQL.LnNoAmountInvoiceFeeProbeInput; | ||
}>>, MutationResult<GaloyGQL.LnNoAmountInvoicePaymentSendMutation> & MutationHelpers]; | ||
lnNoAmountUsdInvoicePaymentSend: (config?: MutationHookOptions<GaloyGQL.LnNoAmountUsdInvoicePaymentSendMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.LnNoAmountUsdInvoicePaymentInput; | ||
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => [MutationFunction<GaloyGQL.LnNoAmountUsdInvoicePaymentSendMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.LnNoAmountUsdInvoicePaymentInput; | ||
}>>, MutationResult<GaloyGQL.LnNoAmountUsdInvoicePaymentSendMutation> & MutationHelpers]; | ||
lnUsdInvoiceCreate: (config?: MutationHookOptions<GaloyGQL.LnUsdInvoiceCreateMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.LnUsdInvoiceCreateInput; | ||
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => [MutationFunction<GaloyGQL.LnUsdInvoiceCreateMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.LnUsdInvoiceCreateInput; | ||
}>>, MutationResult<GaloyGQL.LnUsdInvoiceCreateMutation> & MutationHelpers]; | ||
lnUsdInvoiceCreateOnBehalfOfRecipient: (config?: MutationHookOptions<GaloyGQL.LnUsdInvoiceCreateOnBehalfOfRecipientMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.LnUsdInvoiceCreateOnBehalfOfRecipientInput; | ||
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => [MutationFunction<GaloyGQL.LnUsdInvoiceCreateOnBehalfOfRecipientMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.LnUsdInvoiceCreateOnBehalfOfRecipientInput; | ||
}>>, MutationResult<GaloyGQL.LnUsdInvoiceCreateOnBehalfOfRecipientMutation> & MutationHelpers]; | ||
onChainAddressCurrent: (config?: MutationHookOptions<GaloyGQL.OnChainAddressCurrentMutation, GaloyGQL.Exact<{ | ||
@@ -90,3 +104,13 @@ input: GaloyGQL.OnChainAddressCurrentInput; | ||
}>>, MutationResult<GaloyGQL.OnChainPaymentSendMutation> & MutationHelpers]; | ||
userUpdateLanguage: (config?: MutationHookOptions<GaloyGQL.UserUpdateLanguageMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.UserUpdateLanguageInput; | ||
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => [MutationFunction<GaloyGQL.UserUpdateLanguageMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.UserUpdateLanguageInput; | ||
}>>, MutationResult<GaloyGQL.UserUpdateLanguageMutation> & MutationHelpers]; | ||
userUpdateUsername: (config?: MutationHookOptions<GaloyGQL.UserUpdateUsernameMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.UserUpdateUsernameInput; | ||
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined) => [MutationFunction<GaloyGQL.UserUpdateUsernameMutation, GaloyGQL.Exact<{ | ||
input: GaloyGQL.UserUpdateUsernameInput; | ||
}>>, MutationResult<GaloyGQL.UserUpdateUsernameMutation> & MutationHelpers]; | ||
}; | ||
export {}; |
@@ -67,2 +67,5 @@ "use strict"; | ||
var ln_no_amount_invoice_payment_send_1 = __importDefault(require("./mutations/ln-no-amount-invoice-payment-send")); | ||
var ln_no_amount_usd_invoice_payment_send_1 = __importDefault(require("./mutations/ln-no-amount-usd-invoice-payment-send")); | ||
var ln_usd_invoice_create_1 = __importDefault(require("./mutations/ln-usd-invoice-create")); | ||
var ln_usd_invoice_create_on_behalf_of_recipient_1 = __importDefault(require("./mutations/ln-usd-invoice-create-on-behalf-of-recipient")); | ||
var on_chain_address_current_1 = __importDefault(require("./mutations/on-chain-address-current")); | ||
@@ -74,2 +77,3 @@ var on_chain_payment_send_1 = __importDefault(require("./mutations/on-chain-payment-send")); | ||
var user_update_language_1 = __importDefault(require("./mutations/user-update-language")); | ||
var user_update_username_1 = __importDefault(require("./mutations/user-update-username")); | ||
exports.MUTATIONS = { | ||
@@ -86,2 +90,5 @@ captchaCreateChallenge: captcha_create_challenge_1.default, | ||
lnNoAmountInvoicePaymentSend: ln_no_amount_invoice_payment_send_1.default, | ||
lnNoAmountUsdInvoicePaymentSend: ln_no_amount_usd_invoice_payment_send_1.default, | ||
lnUsdInvoiceCreate: ln_usd_invoice_create_1.default, | ||
lnUsdInvoiceCreateOnBehalfOfRecipient: ln_usd_invoice_create_on_behalf_of_recipient_1.default, | ||
onChainAddressCurrent: on_chain_address_current_1.default, | ||
@@ -93,2 +100,3 @@ onChainPaymentSend: on_chain_payment_send_1.default, | ||
userUpdateLanguage: user_update_language_1.default, | ||
userUpdateUsername: user_update_username_1.default, | ||
}; | ||
@@ -135,6 +143,10 @@ var useMutationWrapper = function (mutationName, config) { | ||
var lnInvoiceFeeProbeMutation = defineMutation("lnInvoiceFeeProbe"); | ||
var onChainPaymentSendMutation = defineMutation("onChainPaymentSend"); | ||
var lnNoAmountInvoicePaymentSendMutation = defineMutation("lnNoAmountInvoicePaymentSend"); | ||
var lnNoAmountInvoiceFeeProbeMutation = defineMutation("lnNoAmountInvoiceFeeProbe"); | ||
var lnNoAmountUsdInvoicePaymentSendMutation = defineMutation("lnNoAmountUsdInvoicePaymentSend"); | ||
var lnUsdInvoiceCreateMutation = defineMutation("lnUsdInvoiceCreate"); | ||
var lnUsdInvoiceCreateOnBehalfOfRecipientMutation = defineMutation("lnUsdInvoiceCreateOnBehalfOfRecipient"); | ||
var onChainPaymentSendMutation = defineMutation("onChainPaymentSend"); | ||
var userUpdateLanguageMutation = defineMutation("userUpdateLanguage"); | ||
var userUpdateUsernameMutation = defineMutation("userUpdateUsername"); | ||
exports.useMutation = { | ||
@@ -148,7 +160,11 @@ captchaCreateChallenge: captchaCreateChallengeMutation, | ||
lnNoAmountInvoiceCreate: lnNoAmountInvoiceCreateMutation, | ||
userUpdateLanguage: userUpdateLanguageMutation, | ||
lnNoAmountInvoiceFeeProbe: lnNoAmountInvoiceFeeProbeMutation, | ||
lnNoAmountInvoicePaymentSend: lnNoAmountInvoicePaymentSendMutation, | ||
lnNoAmountUsdInvoicePaymentSend: lnNoAmountUsdInvoicePaymentSendMutation, | ||
lnUsdInvoiceCreate: lnUsdInvoiceCreateMutation, | ||
lnUsdInvoiceCreateOnBehalfOfRecipient: lnUsdInvoiceCreateOnBehalfOfRecipientMutation, | ||
onChainAddressCurrent: onChainAddressCurrentMutation, | ||
onChainPaymentSend: onChainPaymentSendMutation, | ||
userUpdateLanguage: userUpdateLanguageMutation, | ||
userUpdateUsername: userUpdateUsernameMutation, | ||
}; |
@@ -8,2 +8,4 @@ import i18n from "i18n-js"; | ||
export declare const setLocale: (langauge: string | undefined) => void; | ||
export declare const getLocale: () => string; | ||
export { toNumber as toLocaleNumber } from "i18n-js"; | ||
export * from "./es"; |
@@ -24,2 +24,14 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -32,7 +44,9 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.setLocale = exports.translateUnknown = exports.translate = void 0; | ||
exports.toLocaleNumber = exports.getLocale = exports.setLocale = exports.translateUnknown = exports.translate = void 0; | ||
var i18n_js_1 = __importDefault(require("i18n-js")); | ||
var es_1 = __importDefault(require("./es")); | ||
var es = __importStar(require("./es-m")); | ||
var en = __importStar(require("./en-m")); | ||
i18n_js_1.default.fallbacks = true; | ||
i18n_js_1.default.translations = { es: es_1.default }; | ||
i18n_js_1.default.translations = { es: __assign(__assign({}, es), es_1.default), en: en }; | ||
var translate = function (scope, options) { | ||
@@ -54,2 +68,8 @@ var translation = i18n_js_1.default.t(scope, __assign({ defaultValue: scope }, options)); | ||
exports.setLocale = setLocale; | ||
var getLocale = function () { | ||
return i18n_js_1.default.locale; | ||
}; | ||
exports.getLocale = getLocale; | ||
var i18n_js_2 = require("i18n-js"); | ||
Object.defineProperty(exports, "toLocaleNumber", { enumerable: true, get: function () { return i18n_js_2.toNumber; } }); | ||
__exportStar(require("./es"), exports); |
{ | ||
"name": "@galoymoney/client", | ||
"main": "dist/index.js", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"license": "MIT", | ||
@@ -26,4 +26,4 @@ "repository": "https://github.com/galoymoney/galoy-client", | ||
"i18n-js": "^3.8.0", | ||
"react": "^18.0.0-rc.2-next-2bf7c02f0-20220314", | ||
"react-dom": "^18.0.0-rc.2-next-2bf7c02f0-20220314", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"url": "^0.11.0" | ||
@@ -38,17 +38,17 @@ }, | ||
"@graphql-codegen/cli": "2.6.2", | ||
"@graphql-codegen/typescript": "2.4.7", | ||
"@graphql-codegen/typescript-operations": "^2.2.1", | ||
"@graphql-codegen/typescript": "2.4.8", | ||
"@graphql-codegen/typescript-operations": "^2.3.5", | ||
"@types/i18n-js": "^3.8.2", | ||
"@types/jest": "^27.4.0", | ||
"@types/react": "^17.0.38", | ||
"@typescript-eslint/eslint-plugin": "^5.10.1", | ||
"@typescript-eslint/parser": "^5.10.1", | ||
"@types/react": "^17.0.43", | ||
"@typescript-eslint/eslint-plugin": "^5.17.0", | ||
"@typescript-eslint/parser": "^5.17.0", | ||
"babel-jest": "^27.4.5", | ||
"eslint": "^8.8.0", | ||
"eslint": "^8.12.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"jest": "^27.4.5", | ||
"prettier": "^2.5.1", | ||
"ts-jest": "^27.1.2", | ||
"typescript": "^4.5.4" | ||
"prettier": "^2.6.1", | ||
"ts-jest": "^27.1.4", | ||
"typescript": "^4.6.3" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
346790
125
6328
Updatedreact@^18.0.0
Updatedreact-dom@^18.0.0