@turtleclub/hooks 0.5.0-beta.26 → 0.5.0-beta.28
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/dist/index.cjs +19 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/v2/streams/hooks.ts +33 -11
package/dist/index.cjs
CHANGED
|
@@ -2580,21 +2580,35 @@ function useGeocheck(options = {}) {
|
|
|
2580
2580
|
|
|
2581
2581
|
// src/v2/streams/hooks.ts
|
|
2582
2582
|
var import_react_query14 = require("@tanstack/react-query");
|
|
2583
|
-
function useStreams(
|
|
2583
|
+
function useStreams({
|
|
2584
|
+
query,
|
|
2585
|
+
options
|
|
2586
|
+
} = {}) {
|
|
2584
2587
|
return (0, import_react_query14.useQuery)(createQueryOptions(streamsQueries.list(query), options));
|
|
2585
2588
|
}
|
|
2586
|
-
function useStreamWallets(
|
|
2589
|
+
function useStreamWallets({
|
|
2590
|
+
streamId,
|
|
2591
|
+
options
|
|
2592
|
+
}) {
|
|
2587
2593
|
return (0, import_react_query14.useQuery)(createQueryOptions(streamsQueries.wallets(streamId), options));
|
|
2588
2594
|
}
|
|
2589
|
-
function useStreamWalletDetails(
|
|
2595
|
+
function useStreamWalletDetails({
|
|
2596
|
+
streamId,
|
|
2597
|
+
userAddress,
|
|
2598
|
+
options
|
|
2599
|
+
}) {
|
|
2590
2600
|
return (0, import_react_query14.useQuery)(
|
|
2591
2601
|
createQueryOptions(streamsQueries.walletDetails({ streamId, userAddress }), options)
|
|
2592
2602
|
);
|
|
2593
2603
|
}
|
|
2594
|
-
function useStreamSupportedChains(
|
|
2604
|
+
function useStreamSupportedChains({
|
|
2605
|
+
options
|
|
2606
|
+
} = {}) {
|
|
2595
2607
|
return (0, import_react_query14.useQuery)(createQueryOptions(streamsQueries.supportedChains, options));
|
|
2596
2608
|
}
|
|
2597
|
-
function useRequestStreamSignature(
|
|
2609
|
+
function useRequestStreamSignature({
|
|
2610
|
+
options
|
|
2611
|
+
} = {}) {
|
|
2598
2612
|
return (0, import_react_query14.useMutation)({
|
|
2599
2613
|
mutationFn: ({ organizationId, data }) => requestStreamSignature(organizationId, data),
|
|
2600
2614
|
...options
|