@lightsparkdev/lightspark-sdk 1.1.0 → 1.1.1
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 +6 -0
- package/dist/{chunk-AXCZMV2D.js → chunk-PZMOKVDK.js} +6 -4
- package/dist/{index-bddc6d51.d.ts → index-95299cb4.d.ts} +10 -0
- package/dist/index.cjs +2121 -2065
- package/dist/index.d.ts +2 -2
- package/dist/index.js +65 -7
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +1 -1
- package/package.json +4 -2
- package/src/client.ts +33 -0
- package/src/graphql/PaymentRequestsForNode.ts +33 -0
- package/src/tests/integration/client.test.ts +60 -0
package/CHANGELOG.md
CHANGED
|
@@ -8838,22 +8838,24 @@ export {
|
|
|
8838
8838
|
OutgoingPaymentFromJson,
|
|
8839
8839
|
FRAGMENT15 as FRAGMENT8,
|
|
8840
8840
|
OutgoingPayment_default,
|
|
8841
|
+
PaymentRequestFromJson,
|
|
8842
|
+
FRAGMENT10 as FRAGMENT9,
|
|
8843
|
+
getPaymentRequestQuery,
|
|
8841
8844
|
WithdrawalMode_default,
|
|
8842
8845
|
WithdrawalRequestStatus_default,
|
|
8843
8846
|
getChannelClosingTransactionQuery,
|
|
8844
8847
|
getChannelOpeningTransactionQuery,
|
|
8845
8848
|
WithdrawalRequestFromJson,
|
|
8846
|
-
FRAGMENT33 as
|
|
8849
|
+
FRAGMENT33 as FRAGMENT10,
|
|
8847
8850
|
WithdrawalRequest_default,
|
|
8848
8851
|
RoutingTransactionFailureReason_default,
|
|
8849
8852
|
TransactionFromJson,
|
|
8850
|
-
FRAGMENT16 as
|
|
8853
|
+
FRAGMENT16 as FRAGMENT11,
|
|
8851
8854
|
getTransactionQuery,
|
|
8852
8855
|
TransactionUpdateFromJson,
|
|
8853
|
-
FRAGMENT31 as
|
|
8856
|
+
FRAGMENT31 as FRAGMENT12,
|
|
8854
8857
|
AccountToChannelsConnection_default,
|
|
8855
8858
|
LightsparkNode_default,
|
|
8856
|
-
getPaymentRequestQuery,
|
|
8857
8859
|
WalletStatus_default,
|
|
8858
8860
|
Wallet_default,
|
|
8859
8861
|
Account_default,
|
|
@@ -1420,6 +1420,16 @@ declare class LightsparkClient {
|
|
|
1420
1420
|
* @returns An array of transactions for the given node ID.
|
|
1421
1421
|
*/
|
|
1422
1422
|
getRecentTransactions(nodeId: string, numTransactions?: number, bitcoinNetwork?: BitcoinNetwork, afterDate?: Maybe<string>): Promise<Transaction[]>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Retrieves the most recent payment requests for a given node.
|
|
1425
|
+
*
|
|
1426
|
+
* @param nodeId The node ID for which to read transactions
|
|
1427
|
+
* @param numTransactions The maximum number of transactions to read. Defaults to 20.
|
|
1428
|
+
* @param bitcoinNetwork The bitcoin network on which to read transactions. Defaults to MAINNET.
|
|
1429
|
+
* @param afterDate Filters transactions to those after the given date. Defaults to undefined (no limit).
|
|
1430
|
+
* @returns An array of payment requests for the given node ID.
|
|
1431
|
+
*/
|
|
1432
|
+
getRecentPaymentRequests(nodeId: string, numTransactions?: number, bitcoinNetwork?: BitcoinNetwork, afterDate?: Maybe<string>): Promise<Transaction[]>;
|
|
1423
1433
|
/**
|
|
1424
1434
|
* Starts listening for new transactions or updates to existing transactions for a list of nodes.
|
|
1425
1435
|
*
|