@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lightsparkdev/lightspark-sdk
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e6da1d8: Add getRecentPaymentRequests
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
@@ -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 FRAGMENT9,
8849
+ FRAGMENT33 as FRAGMENT10,
8847
8850
  WithdrawalRequest_default,
8848
8851
  RoutingTransactionFailureReason_default,
8849
8852
  TransactionFromJson,
8850
- FRAGMENT16 as FRAGMENT10,
8853
+ FRAGMENT16 as FRAGMENT11,
8851
8854
  getTransactionQuery,
8852
8855
  TransactionUpdateFromJson,
8853
- FRAGMENT31 as FRAGMENT11,
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
  *