@lightsparkdev/lightspark-sdk 0.1.7 → 0.2.0
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 +11 -0
- package/dist/Withdrawal-ebb4865c.d.ts +1688 -0
- package/dist/chunk-XFOVS6EY.js +5524 -0
- package/dist/index.cjs +25 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/objects/index.cjs +24 -8
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +1 -1
- package/package.json +2 -2
- package/src/client.ts +0 -1
- package/src/objects/Account.ts +2 -2
- package/src/objects/Entity.ts +10 -2
- package/src/objects/Invoice.ts +1 -1
- package/src/objects/InvoiceData.ts +10 -1
- package/src/objects/LightningTransaction.ts +1 -1
- package/src/objects/LightsparkNodeStatus.ts +2 -0
- package/src/objects/OutgoingPayment.ts +1 -1
- package/src/objects/PaymentRequest.ts +1 -1
- package/src/objects/PaymentRequestData.ts +1 -1
- package/src/objects/Transaction.ts +1 -1
- package/src/objects/WebhookEventType.ts +10 -0
- package/src/objects/WithdrawalRequest.ts +12 -0
package/dist/index.cjs
CHANGED
|
@@ -465,6 +465,7 @@ var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
|
|
|
465
465
|
LightsparkNodeStatus2["READY"] = "READY";
|
|
466
466
|
LightsparkNodeStatus2["STOPPED"] = "STOPPED";
|
|
467
467
|
LightsparkNodeStatus2["TERMINATED"] = "TERMINATED";
|
|
468
|
+
LightsparkNodeStatus2["TERMINATING"] = "TERMINATING";
|
|
468
469
|
LightsparkNodeStatus2["WALLET_LOCKED"] = "WALLET_LOCKED";
|
|
469
470
|
LightsparkNodeStatus2["FAILED_TO_DEPLOY"] = "FAILED_TO_DEPLOY";
|
|
470
471
|
return LightsparkNodeStatus2;
|
|
@@ -1353,6 +1354,7 @@ fragment InvoiceDataFragment on InvoiceData {
|
|
|
1353
1354
|
}
|
|
1354
1355
|
invoice_data_created_at: created_at
|
|
1355
1356
|
invoice_data_expires_at: expires_at
|
|
1357
|
+
invoice_data_memo: memo
|
|
1356
1358
|
invoice_data_destination: destination {
|
|
1357
1359
|
__typename
|
|
1358
1360
|
... on GraphNode {
|
|
@@ -1473,7 +1475,6 @@ fragment InvoiceDataFragment on InvoiceData {
|
|
|
1473
1475
|
lightspark_node_status: status
|
|
1474
1476
|
}
|
|
1475
1477
|
}
|
|
1476
|
-
invoice_data_memo: memo
|
|
1477
1478
|
}`;
|
|
1478
1479
|
|
|
1479
1480
|
// src/graphql/DecodeInvoice.ts
|
|
@@ -2120,6 +2121,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2120
2121
|
}
|
|
2121
2122
|
invoice_data_created_at: created_at
|
|
2122
2123
|
invoice_data_expires_at: expires_at
|
|
2124
|
+
invoice_data_memo: memo
|
|
2123
2125
|
invoice_data_destination: destination {
|
|
2124
2126
|
__typename
|
|
2125
2127
|
... on GraphNode {
|
|
@@ -2240,7 +2242,6 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2240
2242
|
lightspark_node_status: status
|
|
2241
2243
|
}
|
|
2242
2244
|
}
|
|
2243
|
-
invoice_data_memo: memo
|
|
2244
2245
|
}
|
|
2245
2246
|
}
|
|
2246
2247
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -2479,7 +2480,7 @@ var WithdrawalRequestToChannelOpeningTransactionsConnectionFromJson = (obj) => {
|
|
|
2479
2480
|
|
|
2480
2481
|
// src/objects/WithdrawalRequest.ts
|
|
2481
2482
|
var WithdrawalRequest = class {
|
|
2482
|
-
constructor(id, createdAt, updatedAt, amount, bitcoinAddress, withdrawalMode, status, typename, completedAt, withdrawalId) {
|
|
2483
|
+
constructor(id, createdAt, updatedAt, amount, bitcoinAddress, withdrawalMode, status, typename, estimatedAmount, completedAt, withdrawalId) {
|
|
2483
2484
|
this.id = id;
|
|
2484
2485
|
this.createdAt = createdAt;
|
|
2485
2486
|
this.updatedAt = updatedAt;
|
|
@@ -2488,6 +2489,7 @@ var WithdrawalRequest = class {
|
|
|
2488
2489
|
this.withdrawalMode = withdrawalMode;
|
|
2489
2490
|
this.status = status;
|
|
2490
2491
|
this.typename = typename;
|
|
2492
|
+
this.estimatedAmount = estimatedAmount;
|
|
2491
2493
|
this.completedAt = completedAt;
|
|
2492
2494
|
this.withdrawalId = withdrawalId;
|
|
2493
2495
|
(0, import_auto_bind8.default)(this);
|
|
@@ -2644,6 +2646,7 @@ var WithdrawalRequestFromJson = (obj) => {
|
|
|
2644
2646
|
WithdrawalMode_default[obj["withdrawal_request_withdrawal_mode"]] ?? WithdrawalMode_default.FUTURE_VALUE,
|
|
2645
2647
|
WithdrawalRequestStatus_default[obj["withdrawal_request_status"]] ?? WithdrawalRequestStatus_default.FUTURE_VALUE,
|
|
2646
2648
|
"WithdrawalRequest",
|
|
2649
|
+
!!obj["withdrawal_request_estimated_amount"] ? CurrencyAmountFromJson(obj["withdrawal_request_estimated_amount"]) : void 0,
|
|
2647
2650
|
obj["withdrawal_request_completed_at"],
|
|
2648
2651
|
obj["withdrawal_request_withdrawal"]?.id ?? void 0
|
|
2649
2652
|
);
|
|
@@ -2662,6 +2665,14 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
|
2662
2665
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2663
2666
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2664
2667
|
}
|
|
2668
|
+
withdrawal_request_estimated_amount: estimated_amount {
|
|
2669
|
+
__typename
|
|
2670
|
+
currency_amount_original_value: original_value
|
|
2671
|
+
currency_amount_original_unit: original_unit
|
|
2672
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2673
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2674
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2675
|
+
}
|
|
2665
2676
|
withdrawal_request_bitcoin_address: bitcoin_address
|
|
2666
2677
|
withdrawal_request_withdrawal_mode: withdrawal_mode
|
|
2667
2678
|
withdrawal_request_status: status
|
|
@@ -3231,6 +3242,7 @@ fragment TransactionFragment on Transaction {
|
|
|
3231
3242
|
}
|
|
3232
3243
|
invoice_data_created_at: created_at
|
|
3233
3244
|
invoice_data_expires_at: expires_at
|
|
3245
|
+
invoice_data_memo: memo
|
|
3234
3246
|
invoice_data_destination: destination {
|
|
3235
3247
|
__typename
|
|
3236
3248
|
... on GraphNode {
|
|
@@ -3351,7 +3363,6 @@ fragment TransactionFragment on Transaction {
|
|
|
3351
3363
|
lightspark_node_status: status
|
|
3352
3364
|
}
|
|
3353
3365
|
}
|
|
3354
|
-
invoice_data_memo: memo
|
|
3355
3366
|
}
|
|
3356
3367
|
}
|
|
3357
3368
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -3745,6 +3756,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
3745
3756
|
}
|
|
3746
3757
|
invoice_data_created_at: created_at
|
|
3747
3758
|
invoice_data_expires_at: expires_at
|
|
3759
|
+
invoice_data_memo: memo
|
|
3748
3760
|
invoice_data_destination: destination {
|
|
3749
3761
|
__typename
|
|
3750
3762
|
... on GraphNode {
|
|
@@ -3865,7 +3877,6 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
3865
3877
|
lightspark_node_status: status
|
|
3866
3878
|
}
|
|
3867
3879
|
}
|
|
3868
|
-
invoice_data_memo: memo
|
|
3869
3880
|
}
|
|
3870
3881
|
invoice_status: status
|
|
3871
3882
|
invoice_amount_paid: amount_paid {
|
|
@@ -4600,6 +4611,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4600
4611
|
}
|
|
4601
4612
|
invoice_data_created_at: created_at
|
|
4602
4613
|
invoice_data_expires_at: expires_at
|
|
4614
|
+
invoice_data_memo: memo
|
|
4603
4615
|
invoice_data_destination: destination {
|
|
4604
4616
|
__typename
|
|
4605
4617
|
... on GraphNode {
|
|
@@ -4720,7 +4732,6 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4720
4732
|
lightspark_node_status: status
|
|
4721
4733
|
}
|
|
4722
4734
|
}
|
|
4723
|
-
invoice_data_memo: memo
|
|
4724
4735
|
}
|
|
4725
4736
|
}
|
|
4726
4737
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -4858,6 +4869,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4858
4869
|
}
|
|
4859
4870
|
invoice_data_created_at: created_at
|
|
4860
4871
|
invoice_data_expires_at: expires_at
|
|
4872
|
+
invoice_data_memo: memo
|
|
4861
4873
|
invoice_data_destination: destination {
|
|
4862
4874
|
__typename
|
|
4863
4875
|
... on GraphNode {
|
|
@@ -4978,7 +4990,6 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4978
4990
|
lightspark_node_status: status
|
|
4979
4991
|
}
|
|
4980
4992
|
}
|
|
4981
|
-
invoice_data_memo: memo
|
|
4982
4993
|
}
|
|
4983
4994
|
invoice_status: status
|
|
4984
4995
|
invoice_amount_paid: amount_paid {
|
|
@@ -5716,6 +5727,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
5716
5727
|
}
|
|
5717
5728
|
invoice_data_created_at: created_at
|
|
5718
5729
|
invoice_data_expires_at: expires_at
|
|
5730
|
+
invoice_data_memo: memo
|
|
5719
5731
|
invoice_data_destination: destination {
|
|
5720
5732
|
__typename
|
|
5721
5733
|
... on GraphNode {
|
|
@@ -5836,7 +5848,6 @@ fragment InvoiceFragment on Invoice {
|
|
|
5836
5848
|
lightspark_node_status: status
|
|
5837
5849
|
}
|
|
5838
5850
|
}
|
|
5839
|
-
invoice_data_memo: memo
|
|
5840
5851
|
}
|
|
5841
5852
|
invoice_status: status
|
|
5842
5853
|
invoice_amount_paid: amount_paid {
|
|
@@ -6002,6 +6013,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
6002
6013
|
}
|
|
6003
6014
|
invoice_data_created_at: created_at
|
|
6004
6015
|
invoice_data_expires_at: expires_at
|
|
6016
|
+
invoice_data_memo: memo
|
|
6005
6017
|
invoice_data_destination: destination {
|
|
6006
6018
|
__typename
|
|
6007
6019
|
... on GraphNode {
|
|
@@ -6122,7 +6134,6 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
6122
6134
|
lightspark_node_status: status
|
|
6123
6135
|
}
|
|
6124
6136
|
}
|
|
6125
|
-
invoice_data_memo: memo
|
|
6126
6137
|
}
|
|
6127
6138
|
}
|
|
6128
6139
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -6511,6 +6522,11 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
6511
6522
|
WebhookEventType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
6512
6523
|
WebhookEventType2["PAYMENT_FINISHED"] = "PAYMENT_FINISHED";
|
|
6513
6524
|
WebhookEventType2["NODE_STATUS"] = "NODE_STATUS";
|
|
6525
|
+
WebhookEventType2["WALLET_STATUS"] = "WALLET_STATUS";
|
|
6526
|
+
WebhookEventType2["WALLET_OUTGOING_PAYMENT_FINISHED"] = "WALLET_OUTGOING_PAYMENT_FINISHED";
|
|
6527
|
+
WebhookEventType2["WALLET_INCOMING_PAYMENT_FINISHED"] = "WALLET_INCOMING_PAYMENT_FINISHED";
|
|
6528
|
+
WebhookEventType2["WALLET_WITHDRAWAL_FINISHED"] = "WALLET_WITHDRAWAL_FINISHED";
|
|
6529
|
+
WebhookEventType2["WALLET_FUNDS_RECEIVED"] = "WALLET_FUNDS_RECEIVED";
|
|
6514
6530
|
return WebhookEventType2;
|
|
6515
6531
|
})(WebhookEventType || {});
|
|
6516
6532
|
var WebhookEventType_default = WebhookEventType;
|
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 ApiToken, B as BitcoinNetwork, h as BlockchainBalance, C as Channel, i as ChannelClosingTransaction, k as ChannelFees, l as ChannelOpeningTransaction, n as ChannelStatus, o as ChannelToTransactionsConnection, p as CreateApiTokenInput, q as CreateApiTokenOutput, r as CreateInvoiceInput, s as CreateInvoiceOutput, t as CreateNodeWalletAddressInput, u as CreateNodeWalletAddressOutput, v as CurrencyAmount, w as CurrencyUnit, D as DeleteApiTokenInput, x as DeleteApiTokenOutput, y as Deposit, E as Entity, F as FeeEstimate, G as FundNodeInput, H as FundNodeOutput, I as GraphNode, J as Hop, M as HtlcAttemptFailureCode, N as IncomingPayment, O as IncomingPaymentAttempt, Q as IncomingPaymentAttemptStatus, R as IncomingPaymentToAttemptsConnection, S as Invoice, U as InvoiceData, V as InvoiceType, W as LightningFeeEstimateForInvoiceInput, X as LightningFeeEstimateForNodeInput, Y as LightningFeeEstimateOutput, Z as LightningTransaction, L as LightsparkClient, $ as LightsparkNode, a0 as LightsparkNodePurpose, a1 as LightsparkNodeStatus, a2 as LightsparkNodeToChannelsConnection, a3 as Node, a4 as NodeAddress, a5 as NodeAddressType, a6 as NodeToAddressesConnection, a7 as OnChainTransaction, a9 as OutgoingPayment, aa as OutgoingPaymentAttempt, ab as OutgoingPaymentAttemptStatus, ac as OutgoingPaymentAttemptToHopsConnection, ad as OutgoingPaymentToAttemptsConnection, ae as PageInfo, af as PayInvoiceInput, ag as PayInvoiceOutput, ah as PaymentFailureReason, ai as PaymentRequest, ak as PaymentRequestData, al as PaymentRequestStatus, am as Permission, an as RequestWithdrawalInput, ao as RequestWithdrawalOutput, ap as RichText, aq as RoutingTransaction, as as RoutingTransactionFailureReason, at as Secret, au as SendPaymentInput, av as SendPaymentOutput, aw as Transaction, ay as TransactionFailures, az as TransactionStatus, aA as TransactionType, aB as TransactionUpdate, aC as WalletDashboard, aD as WebhookEventType, aE as Withdrawal, aG as WithdrawalMode, aH as WithdrawalRequest, aI as WithdrawalRequestStatus, aJ as WithdrawalRequestToChannelClosingTransactionsConnection, aK as WithdrawalRequestToChannelOpeningTransactionsConnection, g as getApiTokenQuery, j as getChannelClosingTransactionQuery, m as getChannelOpeningTransactionQuery, z as getDepositQuery, K as getHopQuery, P as getIncomingPaymentAttemptQuery, T as getInvoiceQuery, _ as getLightningTransactionQuery, a8 as getOnChainTransactionQuery, aj as getPaymentRequestQuery, ar as getRoutingTransactionQuery, ax as getTransactionQuery, aF as getWithdrawalQuery } from './Withdrawal-
|
|
2
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as ApiToken, B as BitcoinNetwork, h as BlockchainBalance, C as Channel, i as ChannelClosingTransaction, k as ChannelFees, l as ChannelOpeningTransaction, n as ChannelStatus, o as ChannelToTransactionsConnection, p as CreateApiTokenInput, q as CreateApiTokenOutput, r as CreateInvoiceInput, s as CreateInvoiceOutput, t as CreateNodeWalletAddressInput, u as CreateNodeWalletAddressOutput, v as CurrencyAmount, w as CurrencyUnit, D as DeleteApiTokenInput, x as DeleteApiTokenOutput, y as Deposit, E as Entity, F as FeeEstimate, G as FundNodeInput, H as FundNodeOutput, I as GraphNode, J as Hop, M as HtlcAttemptFailureCode, N as IncomingPayment, O as IncomingPaymentAttempt, Q as IncomingPaymentAttemptStatus, R as IncomingPaymentToAttemptsConnection, S as Invoice, U as InvoiceData, V as InvoiceType, W as LightningFeeEstimateForInvoiceInput, X as LightningFeeEstimateForNodeInput, Y as LightningFeeEstimateOutput, Z as LightningTransaction, L as LightsparkClient, $ as LightsparkNode, a0 as LightsparkNodePurpose, a1 as LightsparkNodeStatus, a2 as LightsparkNodeToChannelsConnection, a3 as Node, a4 as NodeAddress, a5 as NodeAddressType, a6 as NodeToAddressesConnection, a7 as OnChainTransaction, a9 as OutgoingPayment, aa as OutgoingPaymentAttempt, ab as OutgoingPaymentAttemptStatus, ac as OutgoingPaymentAttemptToHopsConnection, ad as OutgoingPaymentToAttemptsConnection, ae as PageInfo, af as PayInvoiceInput, ag as PayInvoiceOutput, ah as PaymentFailureReason, ai as PaymentRequest, ak as PaymentRequestData, al as PaymentRequestStatus, am as Permission, an as RequestWithdrawalInput, ao as RequestWithdrawalOutput, ap as RichText, aq as RoutingTransaction, as as RoutingTransactionFailureReason, at as Secret, au as SendPaymentInput, av as SendPaymentOutput, aw as Transaction, ay as TransactionFailures, az as TransactionStatus, aA as TransactionType, aB as TransactionUpdate, aC as WalletDashboard, aD as WebhookEventType, aE as Withdrawal, aG as WithdrawalMode, aH as WithdrawalRequest, aI as WithdrawalRequestStatus, aJ as WithdrawalRequestToChannelClosingTransactionsConnection, aK as WithdrawalRequestToChannelOpeningTransactionsConnection, g as getApiTokenQuery, j as getChannelClosingTransactionQuery, m as getChannelOpeningTransactionQuery, z as getDepositQuery, K as getHopQuery, P as getIncomingPaymentAttemptQuery, T as getInvoiceQuery, _ as getLightningTransactionQuery, a8 as getOnChainTransactionQuery, aj as getPaymentRequestQuery, ar as getRoutingTransactionQuery, ax as getTransactionQuery, aF as getWithdrawalQuery } from './Withdrawal-ebb4865c.js';
|
|
3
3
|
import 'zen-observable';
|
|
4
4
|
|
|
5
5
|
declare class AccountTokenAuthProvider implements AuthProvider {
|
package/dist/index.js
CHANGED
package/dist/objects/index.cjs
CHANGED
|
@@ -529,6 +529,7 @@ var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
|
|
|
529
529
|
LightsparkNodeStatus2["READY"] = "READY";
|
|
530
530
|
LightsparkNodeStatus2["STOPPED"] = "STOPPED";
|
|
531
531
|
LightsparkNodeStatus2["TERMINATED"] = "TERMINATED";
|
|
532
|
+
LightsparkNodeStatus2["TERMINATING"] = "TERMINATING";
|
|
532
533
|
LightsparkNodeStatus2["WALLET_LOCKED"] = "WALLET_LOCKED";
|
|
533
534
|
LightsparkNodeStatus2["FAILED_TO_DEPLOY"] = "FAILED_TO_DEPLOY";
|
|
534
535
|
return LightsparkNodeStatus2;
|
|
@@ -1303,6 +1304,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1303
1304
|
}
|
|
1304
1305
|
invoice_data_created_at: created_at
|
|
1305
1306
|
invoice_data_expires_at: expires_at
|
|
1307
|
+
invoice_data_memo: memo
|
|
1306
1308
|
invoice_data_destination: destination {
|
|
1307
1309
|
__typename
|
|
1308
1310
|
... on GraphNode {
|
|
@@ -1423,7 +1425,6 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1423
1425
|
lightspark_node_status: status
|
|
1424
1426
|
}
|
|
1425
1427
|
}
|
|
1426
|
-
invoice_data_memo: memo
|
|
1427
1428
|
}
|
|
1428
1429
|
invoice_status: status
|
|
1429
1430
|
invoice_amount_paid: amount_paid {
|
|
@@ -2136,6 +2137,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2136
2137
|
}
|
|
2137
2138
|
invoice_data_created_at: created_at
|
|
2138
2139
|
invoice_data_expires_at: expires_at
|
|
2140
|
+
invoice_data_memo: memo
|
|
2139
2141
|
invoice_data_destination: destination {
|
|
2140
2142
|
__typename
|
|
2141
2143
|
... on GraphNode {
|
|
@@ -2256,7 +2258,6 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2256
2258
|
lightspark_node_status: status
|
|
2257
2259
|
}
|
|
2258
2260
|
}
|
|
2259
|
-
invoice_data_memo: memo
|
|
2260
2261
|
}
|
|
2261
2262
|
}
|
|
2262
2263
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -2580,6 +2581,7 @@ fragment TransactionFragment on Transaction {
|
|
|
2580
2581
|
}
|
|
2581
2582
|
invoice_data_created_at: created_at
|
|
2582
2583
|
invoice_data_expires_at: expires_at
|
|
2584
|
+
invoice_data_memo: memo
|
|
2583
2585
|
invoice_data_destination: destination {
|
|
2584
2586
|
__typename
|
|
2585
2587
|
... on GraphNode {
|
|
@@ -2700,7 +2702,6 @@ fragment TransactionFragment on Transaction {
|
|
|
2700
2702
|
lightspark_node_status: status
|
|
2701
2703
|
}
|
|
2702
2704
|
}
|
|
2703
|
-
invoice_data_memo: memo
|
|
2704
2705
|
}
|
|
2705
2706
|
}
|
|
2706
2707
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -3487,6 +3488,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
3487
3488
|
}
|
|
3488
3489
|
invoice_data_created_at: created_at
|
|
3489
3490
|
invoice_data_expires_at: expires_at
|
|
3491
|
+
invoice_data_memo: memo
|
|
3490
3492
|
invoice_data_destination: destination {
|
|
3491
3493
|
__typename
|
|
3492
3494
|
... on GraphNode {
|
|
@@ -3607,7 +3609,6 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
3607
3609
|
lightspark_node_status: status
|
|
3608
3610
|
}
|
|
3609
3611
|
}
|
|
3610
|
-
invoice_data_memo: memo
|
|
3611
3612
|
}
|
|
3612
3613
|
}
|
|
3613
3614
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -3745,6 +3746,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
3745
3746
|
}
|
|
3746
3747
|
invoice_data_created_at: created_at
|
|
3747
3748
|
invoice_data_expires_at: expires_at
|
|
3749
|
+
invoice_data_memo: memo
|
|
3748
3750
|
invoice_data_destination: destination {
|
|
3749
3751
|
__typename
|
|
3750
3752
|
... on GraphNode {
|
|
@@ -3865,7 +3867,6 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
3865
3867
|
lightspark_node_status: status
|
|
3866
3868
|
}
|
|
3867
3869
|
}
|
|
3868
|
-
invoice_data_memo: memo
|
|
3869
3870
|
}
|
|
3870
3871
|
invoice_status: status
|
|
3871
3872
|
invoice_amount_paid: amount_paid {
|
|
@@ -4193,6 +4194,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
4193
4194
|
}
|
|
4194
4195
|
invoice_data_created_at: created_at
|
|
4195
4196
|
invoice_data_expires_at: expires_at
|
|
4197
|
+
invoice_data_memo: memo
|
|
4196
4198
|
invoice_data_destination: destination {
|
|
4197
4199
|
__typename
|
|
4198
4200
|
... on GraphNode {
|
|
@@ -4313,7 +4315,6 @@ fragment InvoiceFragment on Invoice {
|
|
|
4313
4315
|
lightspark_node_status: status
|
|
4314
4316
|
}
|
|
4315
4317
|
}
|
|
4316
|
-
invoice_data_memo: memo
|
|
4317
4318
|
}
|
|
4318
4319
|
invoice_status: status
|
|
4319
4320
|
invoice_amount_paid: amount_paid {
|
|
@@ -4479,6 +4480,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
4479
4480
|
}
|
|
4480
4481
|
invoice_data_created_at: created_at
|
|
4481
4482
|
invoice_data_expires_at: expires_at
|
|
4483
|
+
invoice_data_memo: memo
|
|
4482
4484
|
invoice_data_destination: destination {
|
|
4483
4485
|
__typename
|
|
4484
4486
|
... on GraphNode {
|
|
@@ -4599,7 +4601,6 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
4599
4601
|
lightspark_node_status: status
|
|
4600
4602
|
}
|
|
4601
4603
|
}
|
|
4602
|
-
invoice_data_memo: memo
|
|
4603
4604
|
}
|
|
4604
4605
|
}
|
|
4605
4606
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -4997,6 +4998,11 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
4997
4998
|
WebhookEventType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
4998
4999
|
WebhookEventType2["PAYMENT_FINISHED"] = "PAYMENT_FINISHED";
|
|
4999
5000
|
WebhookEventType2["NODE_STATUS"] = "NODE_STATUS";
|
|
5001
|
+
WebhookEventType2["WALLET_STATUS"] = "WALLET_STATUS";
|
|
5002
|
+
WebhookEventType2["WALLET_OUTGOING_PAYMENT_FINISHED"] = "WALLET_OUTGOING_PAYMENT_FINISHED";
|
|
5003
|
+
WebhookEventType2["WALLET_INCOMING_PAYMENT_FINISHED"] = "WALLET_INCOMING_PAYMENT_FINISHED";
|
|
5004
|
+
WebhookEventType2["WALLET_WITHDRAWAL_FINISHED"] = "WALLET_WITHDRAWAL_FINISHED";
|
|
5005
|
+
WebhookEventType2["WALLET_FUNDS_RECEIVED"] = "WALLET_FUNDS_RECEIVED";
|
|
5000
5006
|
return WebhookEventType2;
|
|
5001
5007
|
})(WebhookEventType || {});
|
|
5002
5008
|
var WebhookEventType_default = WebhookEventType;
|
|
@@ -5108,7 +5114,7 @@ var WithdrawalRequestToChannelOpeningTransactionsConnectionFromJson = (obj) => {
|
|
|
5108
5114
|
|
|
5109
5115
|
// src/objects/WithdrawalRequest.ts
|
|
5110
5116
|
var WithdrawalRequest = class {
|
|
5111
|
-
constructor(id, createdAt, updatedAt, amount, bitcoinAddress, withdrawalMode, status, typename, completedAt, withdrawalId) {
|
|
5117
|
+
constructor(id, createdAt, updatedAt, amount, bitcoinAddress, withdrawalMode, status, typename, estimatedAmount, completedAt, withdrawalId) {
|
|
5112
5118
|
this.id = id;
|
|
5113
5119
|
this.createdAt = createdAt;
|
|
5114
5120
|
this.updatedAt = updatedAt;
|
|
@@ -5117,6 +5123,7 @@ var WithdrawalRequest = class {
|
|
|
5117
5123
|
this.withdrawalMode = withdrawalMode;
|
|
5118
5124
|
this.status = status;
|
|
5119
5125
|
this.typename = typename;
|
|
5126
|
+
this.estimatedAmount = estimatedAmount;
|
|
5120
5127
|
this.completedAt = completedAt;
|
|
5121
5128
|
this.withdrawalId = withdrawalId;
|
|
5122
5129
|
(0, import_auto_bind10.default)(this);
|
|
@@ -5273,6 +5280,7 @@ var WithdrawalRequestFromJson = (obj) => {
|
|
|
5273
5280
|
WithdrawalMode_default[obj["withdrawal_request_withdrawal_mode"]] ?? WithdrawalMode_default.FUTURE_VALUE,
|
|
5274
5281
|
WithdrawalRequestStatus_default[obj["withdrawal_request_status"]] ?? WithdrawalRequestStatus_default.FUTURE_VALUE,
|
|
5275
5282
|
"WithdrawalRequest",
|
|
5283
|
+
!!obj["withdrawal_request_estimated_amount"] ? CurrencyAmountFromJson(obj["withdrawal_request_estimated_amount"]) : void 0,
|
|
5276
5284
|
obj["withdrawal_request_completed_at"],
|
|
5277
5285
|
obj["withdrawal_request_withdrawal"]?.id ?? void 0
|
|
5278
5286
|
);
|
|
@@ -5291,6 +5299,14 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
|
5291
5299
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5292
5300
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5293
5301
|
}
|
|
5302
|
+
withdrawal_request_estimated_amount: estimated_amount {
|
|
5303
|
+
__typename
|
|
5304
|
+
currency_amount_original_value: original_value
|
|
5305
|
+
currency_amount_original_unit: original_unit
|
|
5306
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5307
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5308
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5309
|
+
}
|
|
5294
5310
|
withdrawal_request_bitcoin_address: bitcoin_address
|
|
5295
5311
|
withdrawal_request_withdrawal_mode: withdrawal_mode
|
|
5296
5312
|
withdrawal_request_status: status
|
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 ApiToken, B as BitcoinNetwork, h as BlockchainBalance, C as Channel, i as ChannelClosingTransaction, k as ChannelFees, l as ChannelOpeningTransaction, n as ChannelStatus, o as ChannelToTransactionsConnection, p as CreateApiTokenInput, q as CreateApiTokenOutput, r as CreateInvoiceInput, s as CreateInvoiceOutput, t as CreateNodeWalletAddressInput, u as CreateNodeWalletAddressOutput, v as CurrencyAmount, w as CurrencyUnit, D as DeleteApiTokenInput, x as DeleteApiTokenOutput, y as Deposit, E as Entity, F as FeeEstimate, G as FundNodeInput, H as FundNodeOutput, I as GraphNode, J as Hop, M as HtlcAttemptFailureCode, N as IncomingPayment, O as IncomingPaymentAttempt, Q as IncomingPaymentAttemptStatus, R as IncomingPaymentToAttemptsConnection, S as Invoice, U as InvoiceData, V as InvoiceType, W as LightningFeeEstimateForInvoiceInput, X as LightningFeeEstimateForNodeInput, Y as LightningFeeEstimateOutput, Z as LightningTransaction, $ as LightsparkNode, a0 as LightsparkNodePurpose, a1 as LightsparkNodeStatus, a2 as LightsparkNodeToChannelsConnection, a3 as Node, a4 as NodeAddress, a5 as NodeAddressType, a6 as NodeToAddressesConnection, a7 as OnChainTransaction, a9 as OutgoingPayment, aa as OutgoingPaymentAttempt, ab as OutgoingPaymentAttemptStatus, ac as OutgoingPaymentAttemptToHopsConnection, ad as OutgoingPaymentToAttemptsConnection, ae as PageInfo, af as PayInvoiceInput, ag as PayInvoiceOutput, ah as PaymentFailureReason, ai as PaymentRequest, ak as PaymentRequestData, al as PaymentRequestStatus, am as Permission, an as RequestWithdrawalInput, ao as RequestWithdrawalOutput, ap as RichText, aq as RoutingTransaction, as as RoutingTransactionFailureReason, at as Secret, au as SendPaymentInput, av as SendPaymentOutput, aw as Transaction, ay as TransactionFailures, az as TransactionStatus, aA as TransactionType, aB as TransactionUpdate, aC as WalletDashboard, aD as WebhookEventType, aE as Withdrawal, aG as WithdrawalMode, aH as WithdrawalRequest, aI as WithdrawalRequestStatus, aJ as WithdrawalRequestToChannelClosingTransactionsConnection, aK as WithdrawalRequestToChannelOpeningTransactionsConnection, g as getApiTokenQuery, j as getChannelClosingTransactionQuery, m as getChannelOpeningTransactionQuery, z as getDepositQuery, K as getHopQuery, P as getIncomingPaymentAttemptQuery, T as getInvoiceQuery, _ as getLightningTransactionQuery, a8 as getOnChainTransactionQuery, aj as getPaymentRequestQuery, ar as getRoutingTransactionQuery, ax as getTransactionQuery, aF as getWithdrawalQuery } from '../Withdrawal-
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as ApiToken, B as BitcoinNetwork, h as BlockchainBalance, C as Channel, i as ChannelClosingTransaction, k as ChannelFees, l as ChannelOpeningTransaction, n as ChannelStatus, o as ChannelToTransactionsConnection, p as CreateApiTokenInput, q as CreateApiTokenOutput, r as CreateInvoiceInput, s as CreateInvoiceOutput, t as CreateNodeWalletAddressInput, u as CreateNodeWalletAddressOutput, v as CurrencyAmount, w as CurrencyUnit, D as DeleteApiTokenInput, x as DeleteApiTokenOutput, y as Deposit, E as Entity, F as FeeEstimate, G as FundNodeInput, H as FundNodeOutput, I as GraphNode, J as Hop, M as HtlcAttemptFailureCode, N as IncomingPayment, O as IncomingPaymentAttempt, Q as IncomingPaymentAttemptStatus, R as IncomingPaymentToAttemptsConnection, S as Invoice, U as InvoiceData, V as InvoiceType, W as LightningFeeEstimateForInvoiceInput, X as LightningFeeEstimateForNodeInput, Y as LightningFeeEstimateOutput, Z as LightningTransaction, $ as LightsparkNode, a0 as LightsparkNodePurpose, a1 as LightsparkNodeStatus, a2 as LightsparkNodeToChannelsConnection, a3 as Node, a4 as NodeAddress, a5 as NodeAddressType, a6 as NodeToAddressesConnection, a7 as OnChainTransaction, a9 as OutgoingPayment, aa as OutgoingPaymentAttempt, ab as OutgoingPaymentAttemptStatus, ac as OutgoingPaymentAttemptToHopsConnection, ad as OutgoingPaymentToAttemptsConnection, ae as PageInfo, af as PayInvoiceInput, ag as PayInvoiceOutput, ah as PaymentFailureReason, ai as PaymentRequest, ak as PaymentRequestData, al as PaymentRequestStatus, am as Permission, an as RequestWithdrawalInput, ao as RequestWithdrawalOutput, ap as RichText, aq as RoutingTransaction, as as RoutingTransactionFailureReason, at as Secret, au as SendPaymentInput, av as SendPaymentOutput, aw as Transaction, ay as TransactionFailures, az as TransactionStatus, aA as TransactionType, aB as TransactionUpdate, aC as WalletDashboard, aD as WebhookEventType, aE as Withdrawal, aG as WithdrawalMode, aH as WithdrawalRequest, aI as WithdrawalRequestStatus, aJ as WithdrawalRequestToChannelClosingTransactionsConnection, aK as WithdrawalRequestToChannelOpeningTransactionsConnection, g as getApiTokenQuery, j as getChannelClosingTransactionQuery, m as getChannelOpeningTransactionQuery, z as getDepositQuery, K as getHopQuery, P as getIncomingPaymentAttemptQuery, T as getInvoiceQuery, _ as getLightningTransactionQuery, a8 as getOnChainTransactionQuery, aj as getPaymentRequestQuery, ar as getRoutingTransactionQuery, ax as getTransactionQuery, aF as getWithdrawalQuery } from '../Withdrawal-ebb4865c.js';
|
|
2
2
|
import '@lightsparkdev/core';
|
|
3
3
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getRoutingTransactionQuery,
|
|
42
42
|
getTransactionQuery,
|
|
43
43
|
getWithdrawalQuery
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-XFOVS6EY.js";
|
|
45
45
|
export {
|
|
46
46
|
Account_default as Account,
|
|
47
47
|
AccountToChannelsConnection_default as AccountToChannelsConnection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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": "^0.
|
|
71
|
+
"@lightsparkdev/core": "^0.2.0",
|
|
72
72
|
"auto-bind": "^5.0.1",
|
|
73
73
|
"crypto": "^1.0.1",
|
|
74
74
|
"crypto-browserify": "^3.12.0",
|
package/src/client.ts
CHANGED
|
@@ -98,7 +98,6 @@ class LightsparkClient {
|
|
|
98
98
|
constructor(
|
|
99
99
|
private authProvider: AuthProvider = new StubAuthProvider(),
|
|
100
100
|
private readonly serverUrl: string = "api.lightspark.com",
|
|
101
|
-
// TODO(Jeremy): Figure out a way to avoid needing this from the wallet client.
|
|
102
101
|
private readonly nodeKeyCache: NodeKeyCache = new NodeKeyCache()
|
|
103
102
|
) {
|
|
104
103
|
this.requester = new Requester(
|
package/src/objects/Account.ts
CHANGED
|
@@ -754,6 +754,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
754
754
|
}
|
|
755
755
|
invoice_data_created_at: created_at
|
|
756
756
|
invoice_data_expires_at: expires_at
|
|
757
|
+
invoice_data_memo: memo
|
|
757
758
|
invoice_data_destination: destination {
|
|
758
759
|
__typename
|
|
759
760
|
... on GraphNode {
|
|
@@ -874,7 +875,6 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
874
875
|
lightspark_node_status: status
|
|
875
876
|
}
|
|
876
877
|
}
|
|
877
|
-
invoice_data_memo: memo
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -1021,6 +1021,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1021
1021
|
}
|
|
1022
1022
|
invoice_data_created_at: created_at
|
|
1023
1023
|
invoice_data_expires_at: expires_at
|
|
1024
|
+
invoice_data_memo: memo
|
|
1024
1025
|
invoice_data_destination: destination {
|
|
1025
1026
|
__typename
|
|
1026
1027
|
... on GraphNode {
|
|
@@ -1141,7 +1142,6 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1141
1142
|
lightspark_node_status: status
|
|
1142
1143
|
}
|
|
1143
1144
|
}
|
|
1144
|
-
invoice_data_memo: memo
|
|
1145
1145
|
}
|
|
1146
1146
|
invoice_status: status
|
|
1147
1147
|
invoice_amount_paid: amount_paid {
|
package/src/objects/Entity.ts
CHANGED
|
@@ -332,6 +332,7 @@ fragment EntityFragment on Entity {
|
|
|
332
332
|
}
|
|
333
333
|
invoice_data_created_at: created_at
|
|
334
334
|
invoice_data_expires_at: expires_at
|
|
335
|
+
invoice_data_memo: memo
|
|
335
336
|
invoice_data_destination: destination {
|
|
336
337
|
__typename
|
|
337
338
|
... on GraphNode {
|
|
@@ -452,7 +453,6 @@ fragment EntityFragment on Entity {
|
|
|
452
453
|
lightspark_node_status: status
|
|
453
454
|
}
|
|
454
455
|
}
|
|
455
|
-
invoice_data_memo: memo
|
|
456
456
|
}
|
|
457
457
|
invoice_status: status
|
|
458
458
|
invoice_amount_paid: amount_paid {
|
|
@@ -616,6 +616,7 @@ fragment EntityFragment on Entity {
|
|
|
616
616
|
}
|
|
617
617
|
invoice_data_created_at: created_at
|
|
618
618
|
invoice_data_expires_at: expires_at
|
|
619
|
+
invoice_data_memo: memo
|
|
619
620
|
invoice_data_destination: destination {
|
|
620
621
|
__typename
|
|
621
622
|
... on GraphNode {
|
|
@@ -736,7 +737,6 @@ fragment EntityFragment on Entity {
|
|
|
736
737
|
lightspark_node_status: status
|
|
737
738
|
}
|
|
738
739
|
}
|
|
739
|
-
invoice_data_memo: memo
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -855,6 +855,14 @@ fragment EntityFragment on Entity {
|
|
|
855
855
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
856
856
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
857
857
|
}
|
|
858
|
+
withdrawal_request_estimated_amount: estimated_amount {
|
|
859
|
+
__typename
|
|
860
|
+
currency_amount_original_value: original_value
|
|
861
|
+
currency_amount_original_unit: original_unit
|
|
862
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
863
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
864
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
865
|
+
}
|
|
858
866
|
withdrawal_request_bitcoin_address: bitcoin_address
|
|
859
867
|
withdrawal_request_withdrawal_mode: withdrawal_mode
|
|
860
868
|
withdrawal_request_status: status
|
package/src/objects/Invoice.ts
CHANGED
|
@@ -72,6 +72,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
72
72
|
}
|
|
73
73
|
invoice_data_created_at: created_at
|
|
74
74
|
invoice_data_expires_at: expires_at
|
|
75
|
+
invoice_data_memo: memo
|
|
75
76
|
invoice_data_destination: destination {
|
|
76
77
|
__typename
|
|
77
78
|
... on GraphNode {
|
|
@@ -192,7 +193,6 @@ fragment InvoiceFragment on Invoice {
|
|
|
192
193
|
lightspark_node_status: status
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
|
-
invoice_data_memo: memo
|
|
196
196
|
}
|
|
197
197
|
invoice_status: status
|
|
198
198
|
invoice_amount_paid: amount_paid {
|
|
@@ -11,19 +11,28 @@ type InvoiceData = PaymentRequestData & {
|
|
|
11
11
|
|
|
12
12
|
bitcoinNetwork: BitcoinNetwork;
|
|
13
13
|
|
|
14
|
+
/** The payment hash of this invoice. **/
|
|
14
15
|
paymentHash: string;
|
|
15
16
|
|
|
17
|
+
/**
|
|
18
|
+
* The requested amount in this invoice. If it is equal to 0, the sender should choose the amount to
|
|
19
|
+
* send.
|
|
20
|
+
**/
|
|
16
21
|
amount: CurrencyAmount;
|
|
17
22
|
|
|
23
|
+
/** The date and time when this invoice was created. **/
|
|
18
24
|
createdAt: string;
|
|
19
25
|
|
|
26
|
+
/** The date and time when this invoice will expire. **/
|
|
20
27
|
expiresAt: string;
|
|
21
28
|
|
|
29
|
+
/** The lightning node that will be paid when fulfilling this invoice. **/
|
|
22
30
|
destination: Node;
|
|
23
31
|
|
|
24
32
|
/** The typename of the object **/
|
|
25
33
|
typename: string;
|
|
26
34
|
|
|
35
|
+
/** A short, UTF-8 encoded, description of the purpose of this invoice. **/
|
|
27
36
|
memo?: string;
|
|
28
37
|
};
|
|
29
38
|
|
|
@@ -59,6 +68,7 @@ fragment InvoiceDataFragment on InvoiceData {
|
|
|
59
68
|
}
|
|
60
69
|
invoice_data_created_at: created_at
|
|
61
70
|
invoice_data_expires_at: expires_at
|
|
71
|
+
invoice_data_memo: memo
|
|
62
72
|
invoice_data_destination: destination {
|
|
63
73
|
__typename
|
|
64
74
|
... on GraphNode {
|
|
@@ -179,7 +189,6 @@ fragment InvoiceDataFragment on InvoiceData {
|
|
|
179
189
|
lightspark_node_status: status
|
|
180
190
|
}
|
|
181
191
|
}
|
|
182
|
-
invoice_data_memo: memo
|
|
183
192
|
}`;
|
|
184
193
|
|
|
185
194
|
export default InvoiceData;
|
|
@@ -203,6 +203,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
203
203
|
}
|
|
204
204
|
invoice_data_created_at: created_at
|
|
205
205
|
invoice_data_expires_at: expires_at
|
|
206
|
+
invoice_data_memo: memo
|
|
206
207
|
invoice_data_destination: destination {
|
|
207
208
|
__typename
|
|
208
209
|
... on GraphNode {
|
|
@@ -323,7 +324,6 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
323
324
|
lightspark_node_status: status
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
|
-
invoice_data_memo: memo
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -186,6 +186,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
186
186
|
}
|
|
187
187
|
invoice_data_created_at: created_at
|
|
188
188
|
invoice_data_expires_at: expires_at
|
|
189
|
+
invoice_data_memo: memo
|
|
189
190
|
invoice_data_destination: destination {
|
|
190
191
|
__typename
|
|
191
192
|
... on GraphNode {
|
|
@@ -306,7 +307,6 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
306
307
|
lightspark_node_status: status
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
|
-
invoice_data_memo: memo
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -76,6 +76,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
76
76
|
}
|
|
77
77
|
invoice_data_created_at: created_at
|
|
78
78
|
invoice_data_expires_at: expires_at
|
|
79
|
+
invoice_data_memo: memo
|
|
79
80
|
invoice_data_destination: destination {
|
|
80
81
|
__typename
|
|
81
82
|
... on GraphNode {
|
|
@@ -196,7 +197,6 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
196
197
|
lightspark_node_status: status
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
|
-
invoice_data_memo: memo
|
|
200
200
|
}
|
|
201
201
|
invoice_status: status
|
|
202
202
|
invoice_amount_paid: amount_paid {
|
|
@@ -56,6 +56,7 @@ fragment PaymentRequestDataFragment on PaymentRequestData {
|
|
|
56
56
|
}
|
|
57
57
|
invoice_data_created_at: created_at
|
|
58
58
|
invoice_data_expires_at: expires_at
|
|
59
|
+
invoice_data_memo: memo
|
|
59
60
|
invoice_data_destination: destination {
|
|
60
61
|
__typename
|
|
61
62
|
... on GraphNode {
|
|
@@ -176,7 +177,6 @@ fragment PaymentRequestDataFragment on PaymentRequestData {
|
|
|
176
177
|
lightspark_node_status: status
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
|
-
invoice_data_memo: memo
|
|
180
180
|
}
|
|
181
181
|
}`;
|
|
182
182
|
|
|
@@ -389,6 +389,7 @@ fragment TransactionFragment on Transaction {
|
|
|
389
389
|
}
|
|
390
390
|
invoice_data_created_at: created_at
|
|
391
391
|
invoice_data_expires_at: expires_at
|
|
392
|
+
invoice_data_memo: memo
|
|
392
393
|
invoice_data_destination: destination {
|
|
393
394
|
__typename
|
|
394
395
|
... on GraphNode {
|
|
@@ -509,7 +510,6 @@ fragment TransactionFragment on Transaction {
|
|
|
509
510
|
lightspark_node_status: status
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
|
-
invoice_data_memo: memo
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
outgoing_payment_failure_reason: failure_reason
|