@lightsparkdev/lightspark-sdk 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{Withdrawal-f68ab02c.d.ts → Withdrawal-82dbbfd6.d.ts} +29 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +1 -1
- package/package.json +2 -2
- package/src/objects/CreateTestModeInvoiceInput.ts +29 -0
- package/src/objects/CreateTestModeInvoiceOutput.ts +22 -0
- package/src/objects/CreateTestModePaymentInput.ts +27 -0
- package/src/objects/CreateTestModePaymentoutput.ts +24 -0
- package/src/objects/index.ts +4 -0
- /package/dist/{chunk-OKTW3ZBO.js → chunk-2T6E6TXJ.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 0.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [34118ba]
|
|
8
|
+
- @lightsparkdev/core@0.2.4
|
|
9
|
+
|
|
10
|
+
## 0.2.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- f2c65f3: Release
|
|
15
|
+
- Regenerate the SDKs and fix a circular dep in the internal-sdk (#4762)
|
|
16
|
+
|
|
3
17
|
## 0.2.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1388,6 +1388,34 @@ type CreateNodeWalletAddressOutput = {
|
|
|
1388
1388
|
walletAddress: string;
|
|
1389
1389
|
};
|
|
1390
1390
|
|
|
1391
|
+
type CreateTestModeInvoiceInput = {
|
|
1392
|
+
localNodeId: string;
|
|
1393
|
+
amountMsats: number;
|
|
1394
|
+
memo?: string;
|
|
1395
|
+
invoiceType?: InvoiceType;
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
type CreateTestModeInvoiceOutput = {
|
|
1399
|
+
encodedPaymentRequest: string;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
type CreateTestModePaymentInput = {
|
|
1403
|
+
/** The node to where you want to send the payment. **/
|
|
1404
|
+
localNodeId: string;
|
|
1405
|
+
/** The invoice you want to be paid (as defined by the BOLT11 standard). **/
|
|
1406
|
+
encodedInvoice: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* The amount you will be paid for this invoice, expressed in msats. It should ONLY be set when the
|
|
1409
|
+
* invoice amount is zero.
|
|
1410
|
+
**/
|
|
1411
|
+
amountMsats?: number;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
type CreateTestModePaymentoutput = {
|
|
1415
|
+
/** The payment that has been sent. **/
|
|
1416
|
+
paymentId: string;
|
|
1417
|
+
};
|
|
1418
|
+
|
|
1391
1419
|
type DeleteApiTokenInput = {
|
|
1392
1420
|
apiTokenId: string;
|
|
1393
1421
|
};
|
|
@@ -1736,4 +1764,4 @@ type Withdrawal = OnChainTransaction & Transaction & Entity & {
|
|
|
1736
1764
|
};
|
|
1737
1765
|
declare const getWithdrawalQuery: (id: string) => Query<Withdrawal>;
|
|
1738
1766
|
|
|
1739
|
-
export {
|
|
1767
|
+
export { InvoiceType as $, Account as A, Balances as B, Channel as C, CreateTestModePaymentoutput as D, CurrencyAmount as E, CurrencyUnit as F, DeleteApiTokenInput as G, DeleteApiTokenOutput as H, Deposit as I, getDepositQuery as J, Entity as K, LightsparkClient as L, FeeEstimate as M, FundNodeInput as N, FundNodeOutput as O, GraphNode as P, Hop as Q, getHopQuery as R, HtlcAttemptFailureCode as S, IncomingPayment as T, IncomingPaymentAttempt as U, getIncomingPaymentAttemptQuery as V, IncomingPaymentAttemptStatus as W, IncomingPaymentToAttemptsConnection as X, Invoice as Y, getInvoiceQuery as Z, InvoiceData as _, AccountToApiTokensConnection as a, LightningFeeEstimateForInvoiceInput as a0, LightningFeeEstimateForNodeInput as a1, LightningFeeEstimateOutput as a2, LightningTransaction as a3, getLightningTransactionQuery as a4, LightsparkNode as a5, LightsparkNodePurpose as a6, LightsparkNodeStatus as a7, LightsparkNodeToChannelsConnection as a8, Node as a9, SendPaymentInput as aA, SendPaymentOutput as aB, SingleNodeDashboard as aC, Transaction as aD, getTransactionQuery as aE, TransactionFailures as aF, TransactionStatus as aG, TransactionType as aH, TransactionUpdate as aI, Wallet as aJ, WebhookEventType as aK, Withdrawal as aL, getWithdrawalQuery as aM, WithdrawalMode as aN, WithdrawalRequest as aO, WithdrawalRequestStatus as aP, WithdrawalRequestToChannelClosingTransactionsConnection as aQ, WithdrawalRequestToChannelOpeningTransactionsConnection as aR, NodeAddress as aa, NodeAddressType as ab, NodeToAddressesConnection as ac, OnChainTransaction as ad, getOnChainTransactionQuery as ae, OutgoingPayment as af, OutgoingPaymentAttempt as ag, OutgoingPaymentAttemptStatus as ah, OutgoingPaymentAttemptToHopsConnection as ai, OutgoingPaymentToAttemptsConnection as aj, PageInfo as ak, PayInvoiceInput as al, PayInvoiceOutput as am, PaymentFailureReason as an, PaymentRequest as ao, getPaymentRequestQuery as ap, PaymentRequestData as aq, PaymentRequestStatus as ar, Permission as as, RequestWithdrawalInput as at, RequestWithdrawalOutput as au, RichText as av, RoutingTransaction as aw, getRoutingTransactionQuery as ax, RoutingTransactionFailureReason as ay, Secret as az, AccountToChannelsConnection as b, AccountToNodesConnection as c, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, ApiToken as g, getApiTokenQuery as h, BitcoinNetwork as i, BlockchainBalance as j, ChannelClosingTransaction as k, getChannelClosingTransactionQuery as l, ChannelFees as m, ChannelOpeningTransaction as n, getChannelOpeningTransactionQuery as o, ChannelStatus as p, ChannelToTransactionsConnection as q, CreateApiTokenInput as r, CreateApiTokenOutput as s, CreateInvoiceInput as t, CreateInvoiceOutput as u, CreateNodeWalletAddressInput as v, CreateNodeWalletAddressOutput as w, CreateTestModeInvoiceInput as x, CreateTestModeInvoiceOutput as y, CreateTestModePaymentInput as z };
|
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@lightsparkdev/lightspark-sdk",
|
|
38
|
-
version: "0.2.
|
|
38
|
+
version: "0.2.7",
|
|
39
39
|
description: "Lightspark JS SDK",
|
|
40
40
|
author: "Lightspark Inc.",
|
|
41
41
|
keywords: [
|
|
@@ -103,7 +103,7 @@ var require_package = __commonJS({
|
|
|
103
103
|
},
|
|
104
104
|
license: "Apache-2.0",
|
|
105
105
|
dependencies: {
|
|
106
|
-
"@lightsparkdev/core": "
|
|
106
|
+
"@lightsparkdev/core": "0.2.4",
|
|
107
107
|
"auto-bind": "^5.0.1",
|
|
108
108
|
crypto: "^1.0.1",
|
|
109
109
|
"crypto-browserify": "^3.12.0",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as ApiToken, B as Balances, i as BitcoinNetwork, j as BlockchainBalance, C as Channel, k as ChannelClosingTransaction, m as ChannelFees, n as ChannelOpeningTransaction, p as ChannelStatus, q as ChannelToTransactionsConnection, r as CreateApiTokenInput, s as CreateApiTokenOutput, t as CreateInvoiceInput, u as CreateInvoiceOutput, v as CreateNodeWalletAddressInput, w as CreateNodeWalletAddressOutput, x as
|
|
2
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as ApiToken, B as Balances, i as BitcoinNetwork, j as BlockchainBalance, C as Channel, k as ChannelClosingTransaction, m as ChannelFees, n as ChannelOpeningTransaction, p as ChannelStatus, q as ChannelToTransactionsConnection, r as CreateApiTokenInput, s as CreateApiTokenOutput, t as CreateInvoiceInput, u as CreateInvoiceOutput, v as CreateNodeWalletAddressInput, w as CreateNodeWalletAddressOutput, x as CreateTestModeInvoiceInput, y as CreateTestModeInvoiceOutput, z as CreateTestModePaymentInput, D as CreateTestModePaymentoutput, E as CurrencyAmount, F as CurrencyUnit, G as DeleteApiTokenInput, H as DeleteApiTokenOutput, I as Deposit, K as Entity, M as FeeEstimate, N as FundNodeInput, O as FundNodeOutput, P as GraphNode, Q as Hop, S as HtlcAttemptFailureCode, T as IncomingPayment, U as IncomingPaymentAttempt, W as IncomingPaymentAttemptStatus, X as IncomingPaymentToAttemptsConnection, Y as Invoice, _ as InvoiceData, $ as InvoiceType, a0 as LightningFeeEstimateForInvoiceInput, a1 as LightningFeeEstimateForNodeInput, a2 as LightningFeeEstimateOutput, a3 as LightningTransaction, L as LightsparkClient, a5 as LightsparkNode, a6 as LightsparkNodePurpose, a7 as LightsparkNodeStatus, a8 as LightsparkNodeToChannelsConnection, a9 as Node, aa as NodeAddress, ab as NodeAddressType, ac as NodeToAddressesConnection, ad as OnChainTransaction, af as OutgoingPayment, ag as OutgoingPaymentAttempt, ah as OutgoingPaymentAttemptStatus, ai as OutgoingPaymentAttemptToHopsConnection, aj as OutgoingPaymentToAttemptsConnection, ak as PageInfo, al as PayInvoiceInput, am as PayInvoiceOutput, an as PaymentFailureReason, ao as PaymentRequest, aq as PaymentRequestData, ar as PaymentRequestStatus, as as Permission, at as RequestWithdrawalInput, au as RequestWithdrawalOutput, av as RichText, aw as RoutingTransaction, ay as RoutingTransactionFailureReason, az as Secret, aA as SendPaymentInput, aB as SendPaymentOutput, aC as SingleNodeDashboard, aD as Transaction, aF as TransactionFailures, aG as TransactionStatus, aH as TransactionType, aI as TransactionUpdate, aJ as Wallet, aK as WebhookEventType, aL as Withdrawal, aN as WithdrawalMode, aO as WithdrawalRequest, aP as WithdrawalRequestStatus, aQ as WithdrawalRequestToChannelClosingTransactionsConnection, aR as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, l as getChannelClosingTransactionQuery, o as getChannelOpeningTransactionQuery, J as getDepositQuery, R as getHopQuery, V as getIncomingPaymentAttemptQuery, Z as getInvoiceQuery, a4 as getLightningTransactionQuery, ae as getOnChainTransactionQuery, ap as getPaymentRequestQuery, ax as getRoutingTransactionQuery, aE as getTransactionQuery, aM as getWithdrawalQuery } from './Withdrawal-82dbbfd6.js';
|
|
3
3
|
import 'zen-observable';
|
|
4
4
|
|
|
5
5
|
declare class AccountTokenAuthProvider implements AuthProvider {
|
package/dist/index.js
CHANGED
|
@@ -60,14 +60,14 @@ import {
|
|
|
60
60
|
getRoutingTransactionQuery,
|
|
61
61
|
getTransactionQuery,
|
|
62
62
|
getWithdrawalQuery
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2T6E6TXJ.js";
|
|
64
64
|
|
|
65
65
|
// package.json
|
|
66
66
|
var require_package = __commonJS({
|
|
67
67
|
"package.json"(exports, module) {
|
|
68
68
|
module.exports = {
|
|
69
69
|
name: "@lightsparkdev/lightspark-sdk",
|
|
70
|
-
version: "0.2.
|
|
70
|
+
version: "0.2.7",
|
|
71
71
|
description: "Lightspark JS SDK",
|
|
72
72
|
author: "Lightspark Inc.",
|
|
73
73
|
keywords: [
|
|
@@ -135,7 +135,7 @@ var require_package = __commonJS({
|
|
|
135
135
|
},
|
|
136
136
|
license: "Apache-2.0",
|
|
137
137
|
dependencies: {
|
|
138
|
-
"@lightsparkdev/core": "
|
|
138
|
+
"@lightsparkdev/core": "0.2.4",
|
|
139
139
|
"auto-bind": "^5.0.1",
|
|
140
140
|
crypto: "^1.0.1",
|
|
141
141
|
"crypto-browserify": "^3.12.0",
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as ApiToken, B as Balances, i as BitcoinNetwork, j as BlockchainBalance, C as Channel, k as ChannelClosingTransaction, m as ChannelFees, n as ChannelOpeningTransaction, p as ChannelStatus, q as ChannelToTransactionsConnection, r as CreateApiTokenInput, s as CreateApiTokenOutput, t as CreateInvoiceInput, u as CreateInvoiceOutput, v as CreateNodeWalletAddressInput, w as CreateNodeWalletAddressOutput, x as
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as ApiToken, B as Balances, i as BitcoinNetwork, j as BlockchainBalance, C as Channel, k as ChannelClosingTransaction, m as ChannelFees, n as ChannelOpeningTransaction, p as ChannelStatus, q as ChannelToTransactionsConnection, r as CreateApiTokenInput, s as CreateApiTokenOutput, t as CreateInvoiceInput, u as CreateInvoiceOutput, v as CreateNodeWalletAddressInput, w as CreateNodeWalletAddressOutput, x as CreateTestModeInvoiceInput, y as CreateTestModeInvoiceOutput, z as CreateTestModePaymentInput, D as CreateTestModePaymentoutput, E as CurrencyAmount, F as CurrencyUnit, G as DeleteApiTokenInput, H as DeleteApiTokenOutput, I as Deposit, K as Entity, M as FeeEstimate, N as FundNodeInput, O as FundNodeOutput, P as GraphNode, Q as Hop, S as HtlcAttemptFailureCode, T as IncomingPayment, U as IncomingPaymentAttempt, W as IncomingPaymentAttemptStatus, X as IncomingPaymentToAttemptsConnection, Y as Invoice, _ as InvoiceData, $ as InvoiceType, a0 as LightningFeeEstimateForInvoiceInput, a1 as LightningFeeEstimateForNodeInput, a2 as LightningFeeEstimateOutput, a3 as LightningTransaction, a5 as LightsparkNode, a6 as LightsparkNodePurpose, a7 as LightsparkNodeStatus, a8 as LightsparkNodeToChannelsConnection, a9 as Node, aa as NodeAddress, ab as NodeAddressType, ac as NodeToAddressesConnection, ad as OnChainTransaction, af as OutgoingPayment, ag as OutgoingPaymentAttempt, ah as OutgoingPaymentAttemptStatus, ai as OutgoingPaymentAttemptToHopsConnection, aj as OutgoingPaymentToAttemptsConnection, ak as PageInfo, al as PayInvoiceInput, am as PayInvoiceOutput, an as PaymentFailureReason, ao as PaymentRequest, aq as PaymentRequestData, ar as PaymentRequestStatus, as as Permission, at as RequestWithdrawalInput, au as RequestWithdrawalOutput, av as RichText, aw as RoutingTransaction, ay as RoutingTransactionFailureReason, az as Secret, aA as SendPaymentInput, aB as SendPaymentOutput, aC as SingleNodeDashboard, aD as Transaction, aF as TransactionFailures, aG as TransactionStatus, aH as TransactionType, aI as TransactionUpdate, aJ as Wallet, aK as WebhookEventType, aL as Withdrawal, aN as WithdrawalMode, aO as WithdrawalRequest, aP as WithdrawalRequestStatus, aQ as WithdrawalRequestToChannelClosingTransactionsConnection, aR as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, l as getChannelClosingTransactionQuery, o as getChannelOpeningTransactionQuery, J as getDepositQuery, R as getHopQuery, V as getIncomingPaymentAttemptQuery, Z as getInvoiceQuery, a4 as getLightningTransactionQuery, ae as getOnChainTransactionQuery, ap as getPaymentRequestQuery, ax as getRoutingTransactionQuery, aE as getTransactionQuery, aM as getWithdrawalQuery } from '../Withdrawal-82dbbfd6.js';
|
|
2
2
|
import '@lightsparkdev/core';
|
|
3
3
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
getRoutingTransactionQuery,
|
|
43
43
|
getTransactionQuery,
|
|
44
44
|
getWithdrawalQuery
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-2T6E6TXJ.js";
|
|
46
46
|
export {
|
|
47
47
|
Account_default as Account,
|
|
48
48
|
AccountToChannelsConnection_default as AccountToChannelsConnection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"license": "Apache-2.0",
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@lightsparkdev/core": "
|
|
71
|
+
"@lightsparkdev/core": "0.2.4",
|
|
72
72
|
"auto-bind": "^5.0.1",
|
|
73
73
|
"crypto": "^1.0.1",
|
|
74
74
|
"crypto-browserify": "^3.12.0",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
import InvoiceType from "./InvoiceType.js";
|
|
4
|
+
|
|
5
|
+
type CreateTestModeInvoiceInput = {
|
|
6
|
+
localNodeId: string;
|
|
7
|
+
|
|
8
|
+
amountMsats: number;
|
|
9
|
+
|
|
10
|
+
memo?: string;
|
|
11
|
+
|
|
12
|
+
invoiceType?: InvoiceType;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const CreateTestModeInvoiceInputFromJson = (
|
|
16
|
+
obj: any
|
|
17
|
+
): CreateTestModeInvoiceInput => {
|
|
18
|
+
return {
|
|
19
|
+
localNodeId: obj["create_test_mode_invoice_input_local_node_id"],
|
|
20
|
+
amountMsats: obj["create_test_mode_invoice_input_amount_msats"],
|
|
21
|
+
memo: obj["create_test_mode_invoice_input_memo"],
|
|
22
|
+
invoiceType: !!obj["create_test_mode_invoice_input_invoice_type"]
|
|
23
|
+
? InvoiceType[obj["create_test_mode_invoice_input_invoice_type"]] ??
|
|
24
|
+
InvoiceType.FUTURE_VALUE
|
|
25
|
+
: null,
|
|
26
|
+
} as CreateTestModeInvoiceInput;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default CreateTestModeInvoiceInput;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type CreateTestModeInvoiceOutput = {
|
|
4
|
+
encodedPaymentRequest: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const CreateTestModeInvoiceOutputFromJson = (
|
|
8
|
+
obj: any
|
|
9
|
+
): CreateTestModeInvoiceOutput => {
|
|
10
|
+
return {
|
|
11
|
+
encodedPaymentRequest:
|
|
12
|
+
obj["create_test_mode_invoice_output_encoded_payment_request"],
|
|
13
|
+
} as CreateTestModeInvoiceOutput;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const FRAGMENT = `
|
|
17
|
+
fragment CreateTestModeInvoiceOutputFragment on CreateTestModeInvoiceOutput {
|
|
18
|
+
__typename
|
|
19
|
+
create_test_mode_invoice_output_encoded_payment_request: encoded_payment_request
|
|
20
|
+
}`;
|
|
21
|
+
|
|
22
|
+
export default CreateTestModeInvoiceOutput;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type CreateTestModePaymentInput = {
|
|
4
|
+
/** The node to where you want to send the payment. **/
|
|
5
|
+
localNodeId: string;
|
|
6
|
+
|
|
7
|
+
/** The invoice you want to be paid (as defined by the BOLT11 standard). **/
|
|
8
|
+
encodedInvoice: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The amount you will be paid for this invoice, expressed in msats. It should ONLY be set when the
|
|
12
|
+
* invoice amount is zero.
|
|
13
|
+
**/
|
|
14
|
+
amountMsats?: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const CreateTestModePaymentInputFromJson = (
|
|
18
|
+
obj: any
|
|
19
|
+
): CreateTestModePaymentInput => {
|
|
20
|
+
return {
|
|
21
|
+
localNodeId: obj["create_test_mode_payment_input_local_node_id"],
|
|
22
|
+
encodedInvoice: obj["create_test_mode_payment_input_encoded_invoice"],
|
|
23
|
+
amountMsats: obj["create_test_mode_payment_input_amount_msats"],
|
|
24
|
+
} as CreateTestModePaymentInput;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default CreateTestModePaymentInput;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type CreateTestModePaymentoutput = {
|
|
4
|
+
/** The payment that has been sent. **/
|
|
5
|
+
paymentId: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const CreateTestModePaymentoutputFromJson = (
|
|
9
|
+
obj: any
|
|
10
|
+
): CreateTestModePaymentoutput => {
|
|
11
|
+
return {
|
|
12
|
+
paymentId: obj["create_test_mode_paymentoutput_payment"].id,
|
|
13
|
+
} as CreateTestModePaymentoutput;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const FRAGMENT = `
|
|
17
|
+
fragment CreateTestModePaymentoutputFragment on CreateTestModePaymentoutput {
|
|
18
|
+
__typename
|
|
19
|
+
create_test_mode_paymentoutput_payment: payment {
|
|
20
|
+
id
|
|
21
|
+
}
|
|
22
|
+
}`;
|
|
23
|
+
|
|
24
|
+
export default CreateTestModePaymentoutput;
|
package/src/objects/index.ts
CHANGED
|
@@ -27,6 +27,10 @@ export { default as CreateInvoiceInput } from "./CreateInvoiceInput.js";
|
|
|
27
27
|
export { default as CreateInvoiceOutput } from "./CreateInvoiceOutput.js";
|
|
28
28
|
export { default as CreateNodeWalletAddressInput } from "./CreateNodeWalletAddressInput.js";
|
|
29
29
|
export { default as CreateNodeWalletAddressOutput } from "./CreateNodeWalletAddressOutput.js";
|
|
30
|
+
export { default as CreateTestModeInvoiceInput } from "./CreateTestModeInvoiceInput.js";
|
|
31
|
+
export { default as CreateTestModeInvoiceOutput } from "./CreateTestModeInvoiceOutput.js";
|
|
32
|
+
export { default as CreateTestModePaymentInput } from "./CreateTestModePaymentInput.js";
|
|
33
|
+
export { default as CreateTestModePaymentoutput } from "./CreateTestModePaymentoutput.js";
|
|
30
34
|
export { default as CurrencyAmount } from "./CurrencyAmount.js";
|
|
31
35
|
export { default as CurrencyUnit } from "./CurrencyUnit.js";
|
|
32
36
|
export { default as DeleteApiTokenInput } from "./DeleteApiTokenInput.js";
|
|
File without changes
|