@lightsparkdev/lightspark-sdk 0.3.0 → 0.3.2
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 +15 -0
- package/dist/chunk-NIMBE7W3.js +8 -0
- package/dist/{chunk-7GDCZ2RB.js → chunk-PD33OHE4.js} +1 -6
- package/dist/{Withdrawal-e4b8b697.d.ts → index-d2343f8f.d.ts} +1 -1
- package/dist/index.cjs +1842 -7
- package/dist/index.d.ts +13 -2
- package/dist/index.js +39 -8
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +2 -1
- package/dist/text-encoding-MDIPJAHL.js +1808 -0
- package/package.json +6 -5
- package/src/__tests__/webhooks.test.ts +26 -0
- package/src/index.ts +1 -0
- package/src/webhooks.ts +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b28feac: Fix jwt signing key generation docs in JS
|
|
8
|
+
Add webhooks support to the ts lightspark-sdk
|
|
9
|
+
|
|
10
|
+
## 0.3.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- b21bf7b: Release
|
|
15
|
+
- Updated dependencies [b21bf7b]
|
|
16
|
+
- @lightsparkdev/core@0.3.1
|
|
17
|
+
|
|
3
18
|
## 0.3.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
1
|
// src/objects/Account.ts
|
|
7
2
|
import autoBind10 from "auto-bind";
|
|
8
3
|
|
|
@@ -5692,7 +5687,6 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
|
5692
5687
|
var WithdrawalRequest_default = WithdrawalRequest;
|
|
5693
5688
|
|
|
5694
5689
|
export {
|
|
5695
|
-
__commonJS,
|
|
5696
5690
|
CurrencyUnit_default,
|
|
5697
5691
|
CurrencyAmountFromJson,
|
|
5698
5692
|
FRAGMENT2 as FRAGMENT,
|
|
@@ -5751,6 +5745,7 @@ export {
|
|
|
5751
5745
|
getOnChainTransactionQuery,
|
|
5752
5746
|
getRoutingTransactionQuery,
|
|
5753
5747
|
TransactionType_default,
|
|
5748
|
+
WebhookEventType,
|
|
5754
5749
|
WebhookEventType_default,
|
|
5755
5750
|
getWithdrawalQuery
|
|
5756
5751
|
};
|
|
@@ -1789,4 +1789,4 @@ type Withdrawal = OnChainTransaction & Transaction & Entity & {
|
|
|
1789
1789
|
};
|
|
1790
1790
|
declare const getWithdrawalQuery: (id: string) => Query<Withdrawal>;
|
|
1791
1791
|
|
|
1792
|
-
export {
|
|
1792
|
+
export { InvoiceData as $, Account as A, Balances as B, Channel as C, CreateTestModePaymentoutput as D, CurrencyAmount as E, CurrencyUnit as F, DeleteApiTokenInput as G, DeleteApiTokenOutput as H, Deposit as I, getDepositQuery as J, Entity as K, LightsparkClient as L, FeeEstimate as M, FundNodeInput as N, FundNodeOutput as O, GraphNode as P, Hop as Q, getHopQuery as R, HtlcAttemptFailureCode as S, IncomingPayment as T, IncomingPaymentAttempt as U, getIncomingPaymentAttemptQuery as V, WebhookEventType as W, IncomingPaymentAttemptStatus as X, IncomingPaymentToAttemptsConnection as Y, Invoice as Z, getInvoiceQuery as _, AccountToApiTokensConnection as a, InvoiceType as a0, LightningFeeEstimateForInvoiceInput as a1, LightningFeeEstimateForNodeInput as a2, LightningFeeEstimateOutput as a3, LightningTransaction as a4, getLightningTransactionQuery as a5, LightsparkNode as a6, LightsparkNodePurpose as a7, LightsparkNodeStatus as a8, LightsparkNodeToChannelsConnection as a9, Secret as aA, SendPaymentInput as aB, SendPaymentOutput as aC, SingleNodeDashboard as aD, Transaction as aE, getTransactionQuery as aF, TransactionFailures as aG, TransactionStatus as aH, TransactionType as aI, TransactionUpdate as aJ, Wallet as aK, Withdrawal as aL, getWithdrawalQuery as aM, WithdrawalMode as aN, WithdrawalRequest as aO, WithdrawalRequestStatus as aP, WithdrawalRequestToChannelClosingTransactionsConnection as aQ, WithdrawalRequestToChannelOpeningTransactionsConnection as aR, Node as aa, NodeAddress as ab, NodeAddressType as ac, NodeToAddressesConnection as ad, OnChainTransaction as ae, getOnChainTransactionQuery as af, OutgoingPayment as ag, OutgoingPaymentAttempt as ah, OutgoingPaymentAttemptStatus as ai, OutgoingPaymentAttemptToHopsConnection as aj, OutgoingPaymentToAttemptsConnection as ak, PageInfo as al, PayInvoiceInput as am, PayInvoiceOutput as an, PaymentFailureReason as ao, PaymentRequest as ap, getPaymentRequestQuery as aq, PaymentRequestData as ar, PaymentRequestStatus as as, Permission as at, RequestWithdrawalInput as au, RequestWithdrawalOutput as av, RichText as aw, RoutingTransaction as ax, getRoutingTransactionQuery as ay, RoutingTransactionFailureReason as az, AccountToChannelsConnection as b, AccountToNodesConnection as c, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, ApiToken as g, getApiTokenQuery as h, BitcoinNetwork as i, BlockchainBalance as j, ChannelClosingTransaction as k, getChannelClosingTransactionQuery as l, ChannelFees as m, ChannelOpeningTransaction as n, getChannelOpeningTransactionQuery as o, ChannelStatus as p, ChannelToTransactionsConnection as q, CreateApiTokenInput as r, CreateApiTokenOutput as s, CreateInvoiceInput as t, CreateInvoiceOutput as u, CreateNodeWalletAddressInput as v, CreateNodeWalletAddressOutput as w, CreateTestModeInvoiceInput as x, CreateTestModeInvoiceOutput as y, CreateTestModePaymentInput as z };
|