@lightsparkdev/lightspark-sdk 0.1.6 → 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 +19 -0
- package/README.md +1 -1
- package/dist/{Withdrawal-17e1c8af.d.ts → Withdrawal-ebb4865c.d.ts} +393 -377
- package/dist/{chunk-N27QHRE4.js → chunk-XFOVS6EY.js} +56 -40
- 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 +7 -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/.fossa.yml +0 -6
- package/.prettierrc +0 -1
- package/.turbo/turbo-build.log +0 -19
- package/.turbo/turbo-lint.log +0 -3
- package/dist/chunk-AGEUDR2V.js +0 -4498
- package/dist/client-3bba3f64.d.ts +0 -1302
- package/examples/node-scripts/authHelpers.ts +0 -20
- package/examples/node-scripts/createInvoice.ts +0 -64
- package/examples/node-scripts/example.ts +0 -288
- package/examples/node-scripts/getAccountDashboard.ts +0 -24
- package/examples/node-scripts/getNodeChannels.ts +0 -34
- package/examples/node-scripts/internalAuthHelpers.ts +0 -26
- package/examples/node-scripts/internal_example.ts +0 -296
- package/examples/node-scripts/package-lock.json +0 -887
- package/examples/node-scripts/package.json +0 -22
- package/examples/node-scripts/prettyPrintJsonForDocs.ts +0 -62
- package/examples/node-scripts/tsconfig.json +0 -27
- package/examples/oauth-example/README.md +0 -19
- package/examples/oauth-example/package-lock.json +0 -16071
- package/examples/oauth-example/package.json +0 -50
- package/examples/oauth-example/public/favicon.ico +0 -0
- package/examples/oauth-example/public/index.html +0 -43
- package/examples/oauth-example/public/logo192.png +0 -0
- package/examples/oauth-example/public/logo512.png +0 -0
- package/examples/oauth-example/public/manifest.json +0 -25
- package/examples/oauth-example/public/robots.txt +0 -3
- package/examples/oauth-example/src/App.css +0 -7
- package/examples/oauth-example/src/App.test.tsx +0 -12
- package/examples/oauth-example/src/App.tsx +0 -16
- package/examples/oauth-example/src/auth/AuthContext.ts +0 -8
- package/examples/oauth-example/src/auth/AuthProvider.tsx +0 -44
- package/examples/oauth-example/src/auth/RequireAuth.tsx +0 -19
- package/examples/oauth-example/src/auth/oauthProvider.ts +0 -35
- package/examples/oauth-example/src/components/Button.tsx +0 -39
- package/examples/oauth-example/src/components/CurrencyAmount.tsx +0 -117
- package/examples/oauth-example/src/components/Dashboard.tsx +0 -158
- package/examples/oauth-example/src/components/Table.tsx +0 -22
- package/examples/oauth-example/src/hooks/useAccountInfo.tsx +0 -31
- package/examples/oauth-example/src/icons/BitcoinB.tsx +0 -20
- package/examples/oauth-example/src/icons/Icon.tsx +0 -121
- package/examples/oauth-example/src/icons/Satoshi.tsx +0 -28
- package/examples/oauth-example/src/index.css +0 -13
- package/examples/oauth-example/src/index.tsx +0 -23
- package/examples/oauth-example/src/lightsparkclient/LightsparkClientContext.ts +0 -10
- package/examples/oauth-example/src/lightsparkclient/LightsparkClientProvider.tsx +0 -53
- package/examples/oauth-example/src/logo.svg +0 -1
- package/examples/oauth-example/src/pages/DashboardPage.tsx +0 -71
- package/examples/oauth-example/src/pages/LoginPage.tsx +0 -63
- package/examples/oauth-example/src/react-app-env.d.ts +0 -1
- package/examples/oauth-example/src/reportWebVitals.ts +0 -15
- package/examples/oauth-example/src/routes/index.tsx +0 -15
- package/examples/oauth-example/src/setupTests.ts +0 -5
- package/examples/oauth-example/src/utils/currency.ts +0 -483
- package/examples/oauth-example/tsconfig.json +0 -20
- package/examples/streaming-wallet-extension/.fossa.yml +0 -6
- package/examples/streaming-wallet-extension/README.md +0 -17
- package/examples/streaming-wallet-extension/craco.config.js +0 -58
- package/examples/streaming-wallet-extension/package-lock.json +0 -18260
- package/examples/streaming-wallet-extension/package.json +0 -77
- package/examples/streaming-wallet-extension/public/index.html +0 -24
- package/examples/streaming-wallet-extension/public/lightspark_full.png +0 -0
- package/examples/streaming-wallet-extension/public/lightspark_icon_circle.png +0 -0
- package/examples/streaming-wallet-extension/public/manifest.json +0 -43
- package/examples/streaming-wallet-extension/public/robots.txt +0 -3
- package/examples/streaming-wallet-extension/src/App.css +0 -53
- package/examples/streaming-wallet-extension/src/App.tsx +0 -425
- package/examples/streaming-wallet-extension/src/auth/AccountStorage.ts +0 -28
- package/examples/streaming-wallet-extension/src/auth/DemoAccountProvider.ts +0 -99
- package/examples/streaming-wallet-extension/src/auth/StreamingDemoCredentials.ts +0 -10
- package/examples/streaming-wallet-extension/src/background/PaymentStrategy.ts +0 -36
- package/examples/streaming-wallet-extension/src/background/PlaybackRange.ts +0 -31
- package/examples/streaming-wallet-extension/src/background/StreamingInvoiceHolder.ts +0 -33
- package/examples/streaming-wallet-extension/src/background/TransactionObserver.ts +0 -66
- package/examples/streaming-wallet-extension/src/background/VideoPlaybackRanges.ts +0 -38
- package/examples/streaming-wallet-extension/src/background/VideoProgressCache.ts +0 -87
- package/examples/streaming-wallet-extension/src/background/background.ts +0 -145
- package/examples/streaming-wallet-extension/src/background/messageHandling.ts +0 -185
- package/examples/streaming-wallet-extension/src/common/datetimes.ts +0 -28
- package/examples/streaming-wallet-extension/src/common/settings.ts +0 -12
- package/examples/streaming-wallet-extension/src/common/storage.ts +0 -8
- package/examples/streaming-wallet-extension/src/common/streamingTabs.ts +0 -27
- package/examples/streaming-wallet-extension/src/common/types.tsx +0 -23
- package/examples/streaming-wallet-extension/src/components/CirclePlusIcon.tsx +0 -19
- package/examples/streaming-wallet-extension/src/components/CurrencyAmount.tsx +0 -110
- package/examples/streaming-wallet-extension/src/components/CurrencyAmountRaw.tsx +0 -195
- package/examples/streaming-wallet-extension/src/components/LeftArrow.tsx +0 -21
- package/examples/streaming-wallet-extension/src/components/Loading.tsx +0 -151
- package/examples/streaming-wallet-extension/src/components/StreamingTransactionChip.tsx +0 -95
- package/examples/streaming-wallet-extension/src/components/TransactionRow.tsx +0 -93
- package/examples/streaming-wallet-extension/src/contentscript/content.ts +0 -123
- package/examples/streaming-wallet-extension/src/contentscript/lightsparkDemoDom.tsx +0 -113
- package/examples/streaming-wallet-extension/src/contentscript/videoElementParsers.ts +0 -92
- package/examples/streaming-wallet-extension/src/index.css +0 -16
- package/examples/streaming-wallet-extension/src/index.tsx +0 -11
- package/examples/streaming-wallet-extension/src/lightsparkClientProvider.tsx +0 -26
- package/examples/streaming-wallet-extension/src/react-app-env.d.ts +0 -1
- package/examples/streaming-wallet-extension/src/types/Messages.ts +0 -17
- package/examples/streaming-wallet-extension/tsconfig.json +0 -20
- package/tsconfig.json +0 -5
|
@@ -461,6 +461,7 @@ var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
|
|
|
461
461
|
LightsparkNodeStatus2["READY"] = "READY";
|
|
462
462
|
LightsparkNodeStatus2["STOPPED"] = "STOPPED";
|
|
463
463
|
LightsparkNodeStatus2["TERMINATED"] = "TERMINATED";
|
|
464
|
+
LightsparkNodeStatus2["TERMINATING"] = "TERMINATING";
|
|
464
465
|
LightsparkNodeStatus2["WALLET_LOCKED"] = "WALLET_LOCKED";
|
|
465
466
|
LightsparkNodeStatus2["FAILED_TO_DEPLOY"] = "FAILED_TO_DEPLOY";
|
|
466
467
|
return LightsparkNodeStatus2;
|
|
@@ -1200,6 +1201,7 @@ fragment InvoiceDataFragment on InvoiceData {
|
|
|
1200
1201
|
}
|
|
1201
1202
|
invoice_data_created_at: created_at
|
|
1202
1203
|
invoice_data_expires_at: expires_at
|
|
1204
|
+
invoice_data_memo: memo
|
|
1203
1205
|
invoice_data_destination: destination {
|
|
1204
1206
|
__typename
|
|
1205
1207
|
... on GraphNode {
|
|
@@ -1320,7 +1322,6 @@ fragment InvoiceDataFragment on InvoiceData {
|
|
|
1320
1322
|
lightspark_node_status: status
|
|
1321
1323
|
}
|
|
1322
1324
|
}
|
|
1323
|
-
invoice_data_memo: memo
|
|
1324
1325
|
}`;
|
|
1325
1326
|
|
|
1326
1327
|
// src/objects/PaymentRequestStatus.ts
|
|
@@ -1373,6 +1374,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1373
1374
|
}
|
|
1374
1375
|
invoice_data_created_at: created_at
|
|
1375
1376
|
invoice_data_expires_at: expires_at
|
|
1377
|
+
invoice_data_memo: memo
|
|
1376
1378
|
invoice_data_destination: destination {
|
|
1377
1379
|
__typename
|
|
1378
1380
|
... on GraphNode {
|
|
@@ -1493,7 +1495,6 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1493
1495
|
lightspark_node_status: status
|
|
1494
1496
|
}
|
|
1495
1497
|
}
|
|
1496
|
-
invoice_data_memo: memo
|
|
1497
1498
|
}
|
|
1498
1499
|
invoice_status: status
|
|
1499
1500
|
invoice_amount_paid: amount_paid {
|
|
@@ -2206,6 +2207,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2206
2207
|
}
|
|
2207
2208
|
invoice_data_created_at: created_at
|
|
2208
2209
|
invoice_data_expires_at: expires_at
|
|
2210
|
+
invoice_data_memo: memo
|
|
2209
2211
|
invoice_data_destination: destination {
|
|
2210
2212
|
__typename
|
|
2211
2213
|
... on GraphNode {
|
|
@@ -2326,7 +2328,6 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2326
2328
|
lightspark_node_status: status
|
|
2327
2329
|
}
|
|
2328
2330
|
}
|
|
2329
|
-
invoice_data_memo: memo
|
|
2330
2331
|
}
|
|
2331
2332
|
}
|
|
2332
2333
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -2650,6 +2651,7 @@ fragment TransactionFragment on Transaction {
|
|
|
2650
2651
|
}
|
|
2651
2652
|
invoice_data_created_at: created_at
|
|
2652
2653
|
invoice_data_expires_at: expires_at
|
|
2654
|
+
invoice_data_memo: memo
|
|
2653
2655
|
invoice_data_destination: destination {
|
|
2654
2656
|
__typename
|
|
2655
2657
|
... on GraphNode {
|
|
@@ -2770,7 +2772,6 @@ fragment TransactionFragment on Transaction {
|
|
|
2770
2772
|
lightspark_node_status: status
|
|
2771
2773
|
}
|
|
2772
2774
|
}
|
|
2773
|
-
invoice_data_memo: memo
|
|
2774
2775
|
}
|
|
2775
2776
|
}
|
|
2776
2777
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -3557,6 +3558,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
3557
3558
|
}
|
|
3558
3559
|
invoice_data_created_at: created_at
|
|
3559
3560
|
invoice_data_expires_at: expires_at
|
|
3561
|
+
invoice_data_memo: memo
|
|
3560
3562
|
invoice_data_destination: destination {
|
|
3561
3563
|
__typename
|
|
3562
3564
|
... on GraphNode {
|
|
@@ -3677,7 +3679,6 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
3677
3679
|
lightspark_node_status: status
|
|
3678
3680
|
}
|
|
3679
3681
|
}
|
|
3680
|
-
invoice_data_memo: memo
|
|
3681
3682
|
}
|
|
3682
3683
|
}
|
|
3683
3684
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -3815,6 +3816,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
3815
3816
|
}
|
|
3816
3817
|
invoice_data_created_at: created_at
|
|
3817
3818
|
invoice_data_expires_at: expires_at
|
|
3819
|
+
invoice_data_memo: memo
|
|
3818
3820
|
invoice_data_destination: destination {
|
|
3819
3821
|
__typename
|
|
3820
3822
|
... on GraphNode {
|
|
@@ -3935,7 +3937,6 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
3935
3937
|
lightspark_node_status: status
|
|
3936
3938
|
}
|
|
3937
3939
|
}
|
|
3938
|
-
invoice_data_memo: memo
|
|
3939
3940
|
}
|
|
3940
3941
|
invoice_status: status
|
|
3941
3942
|
invoice_amount_paid: amount_paid {
|
|
@@ -4291,6 +4292,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
4291
4292
|
}
|
|
4292
4293
|
invoice_data_created_at: created_at
|
|
4293
4294
|
invoice_data_expires_at: expires_at
|
|
4295
|
+
invoice_data_memo: memo
|
|
4294
4296
|
invoice_data_destination: destination {
|
|
4295
4297
|
__typename
|
|
4296
4298
|
... on GraphNode {
|
|
@@ -4411,7 +4413,6 @@ fragment InvoiceFragment on Invoice {
|
|
|
4411
4413
|
lightspark_node_status: status
|
|
4412
4414
|
}
|
|
4413
4415
|
}
|
|
4414
|
-
invoice_data_memo: memo
|
|
4415
4416
|
}
|
|
4416
4417
|
invoice_status: status
|
|
4417
4418
|
invoice_amount_paid: amount_paid {
|
|
@@ -4591,6 +4592,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
4591
4592
|
}
|
|
4592
4593
|
invoice_data_created_at: created_at
|
|
4593
4594
|
invoice_data_expires_at: expires_at
|
|
4595
|
+
invoice_data_memo: memo
|
|
4594
4596
|
invoice_data_destination: destination {
|
|
4595
4597
|
__typename
|
|
4596
4598
|
... on GraphNode {
|
|
@@ -4711,7 +4713,6 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
4711
4713
|
lightspark_node_status: status
|
|
4712
4714
|
}
|
|
4713
4715
|
}
|
|
4714
|
-
invoice_data_memo: memo
|
|
4715
4716
|
}
|
|
4716
4717
|
}
|
|
4717
4718
|
outgoing_payment_failure_reason: failure_reason
|
|
@@ -5141,6 +5142,11 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
5141
5142
|
WebhookEventType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
5142
5143
|
WebhookEventType2["PAYMENT_FINISHED"] = "PAYMENT_FINISHED";
|
|
5143
5144
|
WebhookEventType2["NODE_STATUS"] = "NODE_STATUS";
|
|
5145
|
+
WebhookEventType2["WALLET_STATUS"] = "WALLET_STATUS";
|
|
5146
|
+
WebhookEventType2["WALLET_OUTGOING_PAYMENT_FINISHED"] = "WALLET_OUTGOING_PAYMENT_FINISHED";
|
|
5147
|
+
WebhookEventType2["WALLET_INCOMING_PAYMENT_FINISHED"] = "WALLET_INCOMING_PAYMENT_FINISHED";
|
|
5148
|
+
WebhookEventType2["WALLET_WITHDRAWAL_FINISHED"] = "WALLET_WITHDRAWAL_FINISHED";
|
|
5149
|
+
WebhookEventType2["WALLET_FUNDS_RECEIVED"] = "WALLET_FUNDS_RECEIVED";
|
|
5144
5150
|
return WebhookEventType2;
|
|
5145
5151
|
})(WebhookEventType || {});
|
|
5146
5152
|
var WebhookEventType_default = WebhookEventType;
|
|
@@ -5252,7 +5258,7 @@ var WithdrawalRequestToChannelOpeningTransactionsConnectionFromJson = (obj) => {
|
|
|
5252
5258
|
|
|
5253
5259
|
// src/objects/WithdrawalRequest.ts
|
|
5254
5260
|
var WithdrawalRequest = class {
|
|
5255
|
-
constructor(id, createdAt, updatedAt, amount, bitcoinAddress, withdrawalMode, status, typename, completedAt, withdrawalId) {
|
|
5261
|
+
constructor(id, createdAt, updatedAt, amount, bitcoinAddress, withdrawalMode, status, typename, estimatedAmount, completedAt, withdrawalId) {
|
|
5256
5262
|
this.id = id;
|
|
5257
5263
|
this.createdAt = createdAt;
|
|
5258
5264
|
this.updatedAt = updatedAt;
|
|
@@ -5261,6 +5267,7 @@ var WithdrawalRequest = class {
|
|
|
5261
5267
|
this.withdrawalMode = withdrawalMode;
|
|
5262
5268
|
this.status = status;
|
|
5263
5269
|
this.typename = typename;
|
|
5270
|
+
this.estimatedAmount = estimatedAmount;
|
|
5264
5271
|
this.completedAt = completedAt;
|
|
5265
5272
|
this.withdrawalId = withdrawalId;
|
|
5266
5273
|
autoBind10(this);
|
|
@@ -5417,6 +5424,7 @@ var WithdrawalRequestFromJson = (obj) => {
|
|
|
5417
5424
|
WithdrawalMode_default[obj["withdrawal_request_withdrawal_mode"]] ?? WithdrawalMode_default.FUTURE_VALUE,
|
|
5418
5425
|
WithdrawalRequestStatus_default[obj["withdrawal_request_status"]] ?? WithdrawalRequestStatus_default.FUTURE_VALUE,
|
|
5419
5426
|
"WithdrawalRequest",
|
|
5427
|
+
!!obj["withdrawal_request_estimated_amount"] ? CurrencyAmountFromJson(obj["withdrawal_request_estimated_amount"]) : void 0,
|
|
5420
5428
|
obj["withdrawal_request_completed_at"],
|
|
5421
5429
|
obj["withdrawal_request_withdrawal"]?.id ?? void 0
|
|
5422
5430
|
);
|
|
@@ -5435,6 +5443,14 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
|
5435
5443
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5436
5444
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5437
5445
|
}
|
|
5446
|
+
withdrawal_request_estimated_amount: estimated_amount {
|
|
5447
|
+
__typename
|
|
5448
|
+
currency_amount_original_value: original_value
|
|
5449
|
+
currency_amount_original_unit: original_unit
|
|
5450
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5451
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5452
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5453
|
+
}
|
|
5438
5454
|
withdrawal_request_bitcoin_address: bitcoin_address
|
|
5439
5455
|
withdrawal_request_withdrawal_mode: withdrawal_mode
|
|
5440
5456
|
withdrawal_request_status: status
|
|
@@ -5446,63 +5462,63 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
|
5446
5462
|
var WithdrawalRequest_default = WithdrawalRequest;
|
|
5447
5463
|
|
|
5448
5464
|
export {
|
|
5465
|
+
CurrencyUnit_default,
|
|
5466
|
+
CurrencyAmountFromJson,
|
|
5467
|
+
FRAGMENT2 as FRAGMENT,
|
|
5468
|
+
FeeEstimateFromJson,
|
|
5469
|
+
FRAGMENT19 as FRAGMENT2,
|
|
5449
5470
|
Permission_default,
|
|
5450
5471
|
ApiTokenFromJson,
|
|
5451
|
-
FRAGMENT,
|
|
5472
|
+
FRAGMENT as FRAGMENT3,
|
|
5452
5473
|
getApiTokenQuery,
|
|
5453
|
-
CurrencyUnit_default,
|
|
5454
|
-
CurrencyAmountFromJson,
|
|
5455
|
-
FRAGMENT2,
|
|
5456
|
-
ChannelStatus_default,
|
|
5457
|
-
Channel_default,
|
|
5458
|
-
AccountToChannelsConnection_default,
|
|
5459
5474
|
BitcoinNetwork_default,
|
|
5475
|
+
NodeAddressType_default,
|
|
5476
|
+
GraphNode_default,
|
|
5460
5477
|
LightsparkNodePurpose_default,
|
|
5461
5478
|
LightsparkNodeStatus_default,
|
|
5462
|
-
|
|
5479
|
+
ChannelStatus_default,
|
|
5480
|
+
Channel_default,
|
|
5463
5481
|
LightsparkNode_default,
|
|
5464
|
-
GraphNode_default,
|
|
5465
5482
|
Node_default,
|
|
5466
5483
|
InvoiceDataFromJson,
|
|
5467
|
-
FRAGMENT7 as
|
|
5468
|
-
|
|
5469
|
-
getPaymentRequestQuery,
|
|
5470
|
-
IncomingPaymentAttemptStatus_default,
|
|
5471
|
-
getIncomingPaymentAttemptQuery,
|
|
5472
|
-
TransactionStatus_default,
|
|
5473
|
-
IncomingPayment_default,
|
|
5484
|
+
FRAGMENT7 as FRAGMENT4,
|
|
5485
|
+
FRAGMENT21 as FRAGMENT5,
|
|
5474
5486
|
HtlcAttemptFailureCode_default,
|
|
5475
5487
|
OutgoingPaymentAttemptStatus_default,
|
|
5476
5488
|
getHopQuery,
|
|
5477
5489
|
OutgoingPaymentAttempt_default,
|
|
5478
5490
|
PaymentFailureReason_default,
|
|
5491
|
+
TransactionStatus_default,
|
|
5479
5492
|
OutgoingPaymentFromJson,
|
|
5480
|
-
FRAGMENT13 as
|
|
5493
|
+
FRAGMENT13 as FRAGMENT6,
|
|
5481
5494
|
OutgoingPayment_default,
|
|
5495
|
+
WithdrawalMode_default,
|
|
5496
|
+
WithdrawalRequestStatus_default,
|
|
5497
|
+
getChannelClosingTransactionQuery,
|
|
5498
|
+
getChannelOpeningTransactionQuery,
|
|
5499
|
+
WithdrawalRequestFromJson,
|
|
5500
|
+
FRAGMENT27 as FRAGMENT7,
|
|
5501
|
+
WithdrawalRequest_default,
|
|
5502
|
+
IncomingPaymentAttemptStatus_default,
|
|
5503
|
+
getIncomingPaymentAttemptQuery,
|
|
5504
|
+
IncomingPayment_default,
|
|
5482
5505
|
RoutingTransactionFailureReason_default,
|
|
5483
5506
|
TransactionFromJson,
|
|
5484
|
-
FRAGMENT14 as
|
|
5507
|
+
FRAGMENT14 as FRAGMENT8,
|
|
5485
5508
|
getTransactionQuery,
|
|
5509
|
+
TransactionUpdateFromJson,
|
|
5510
|
+
FRAGMENT25 as FRAGMENT9,
|
|
5511
|
+
AccountToChannelsConnection_default,
|
|
5512
|
+
PaymentRequestStatus_default,
|
|
5513
|
+
getPaymentRequestQuery,
|
|
5486
5514
|
Account_default,
|
|
5487
|
-
getChannelClosingTransactionQuery,
|
|
5488
|
-
getChannelOpeningTransactionQuery,
|
|
5489
5515
|
InvoiceType_default,
|
|
5490
5516
|
getDepositQuery,
|
|
5491
|
-
FeeEstimateFromJson,
|
|
5492
|
-
FRAGMENT19 as FRAGMENT6,
|
|
5493
5517
|
getInvoiceQuery,
|
|
5494
|
-
FRAGMENT21 as FRAGMENT7,
|
|
5495
5518
|
getLightningTransactionQuery,
|
|
5496
5519
|
getOnChainTransactionQuery,
|
|
5497
|
-
WithdrawalMode_default,
|
|
5498
5520
|
getRoutingTransactionQuery,
|
|
5499
5521
|
TransactionType_default,
|
|
5500
|
-
TransactionUpdateFromJson,
|
|
5501
|
-
FRAGMENT25 as FRAGMENT8,
|
|
5502
5522
|
WebhookEventType_default,
|
|
5503
|
-
getWithdrawalQuery
|
|
5504
|
-
WithdrawalRequestStatus_default,
|
|
5505
|
-
WithdrawalRequestFromJson,
|
|
5506
|
-
FRAGMENT27 as FRAGMENT9,
|
|
5507
|
-
WithdrawalRequest_default
|
|
5523
|
+
getWithdrawalQuery
|
|
5508
5524
|
};
|
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,
|