@agg-build/hooks 4.26.1 → 4.27.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/dist/deposit.d.mts +142 -138
- package/dist/deposit.d.mts.map +1 -0
- package/dist/deposit.d.ts +142 -138
- package/dist/deposit.d.ts.map +1 -0
- package/dist/deposit.js +751 -2414
- package/dist/deposit.mjs +744 -727
- package/dist/deposit.mjs.map +1 -0
- package/dist/index-CbNR3EIA.d.mts +341 -0
- package/dist/index-CbNR3EIA.d.mts.map +1 -0
- package/dist/index-CsP1jRMD.d.ts +341 -0
- package/dist/index-CsP1jRMD.d.ts.map +1 -0
- package/dist/index-D0fXU85a.d.mts +743 -0
- package/dist/index-D0fXU85a.d.mts.map +1 -0
- package/dist/index-D0fXU85a.d.ts +743 -0
- package/dist/index-D0fXU85a.d.ts.map +1 -0
- package/dist/index.d.mts +6458 -7515
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +6458 -7515
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7451 -11417
- package/dist/index.mjs +7154 -5221
- package/dist/index.mjs.map +1 -0
- package/dist/use-ramp-session-7RAG9tvY.js +30 -0
- package/dist/use-ramp-session-BFWHCtuc.mjs +21 -0
- package/dist/use-ramp-session-BFWHCtuc.mjs.map +1 -0
- package/dist/use-sync-balances-BkcqInJh.mjs +1779 -0
- package/dist/use-sync-balances-BkcqInJh.mjs.map +1 -0
- package/dist/{use-sync-balances-CeD8qZWP.d.ts → use-sync-balances-CVEg__2V.d.mts} +7 -8
- package/dist/use-sync-balances-CVEg__2V.d.mts.map +1 -0
- package/dist/{use-sync-balances-CeD8qZWP.d.mts → use-sync-balances-CVEg__2V.d.ts} +7 -8
- package/dist/use-sync-balances-CVEg__2V.d.ts.map +1 -0
- package/dist/use-sync-balances-HryB8Q7F.js +1974 -0
- package/dist/withdraw--f5kYKJA.mjs +1474 -0
- package/dist/withdraw--f5kYKJA.mjs.map +1 -0
- package/dist/withdraw-BXWZYmJa.js +1591 -0
- package/dist/withdraw.d.mts +3 -351
- package/dist/withdraw.d.ts +3 -351
- package/dist/withdraw.js +10 -2229
- package/dist/withdraw.mjs +3 -20
- package/package.json +7 -6
- package/dist/chunk-JFJNW2PD.mjs +0 -5649
- package/dist/chunk-LNIAMJTZ.mjs +0 -505
- package/dist/chunk-OZQ3K47U.mjs +0 -31
- package/dist/use-deposit-addresses-B9ICS-3U.d.mts +0 -236
- package/dist/use-deposit-addresses-B9ICS-3U.d.ts +0 -236
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_use_sync_balances = require("./use-sync-balances-HryB8Q7F.js");
|
|
2
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
3
|
+
//#region src/use-ramp-quotes.ts
|
|
4
|
+
function useRampQuotes() {
|
|
5
|
+
const client = require_use_sync_balances.useAggClient();
|
|
6
|
+
return (0, _tanstack_react_query.useMutation)({ mutationFn: async (params) => {
|
|
7
|
+
return client.getRampQuotes(params);
|
|
8
|
+
} });
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/use-ramp-session.ts
|
|
12
|
+
function useRampSession() {
|
|
13
|
+
const client = require_use_sync_balances.useAggClient();
|
|
14
|
+
return (0, _tanstack_react_query.useMutation)({ mutationFn: async (params) => {
|
|
15
|
+
return client.createRampSession(params);
|
|
16
|
+
} });
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
Object.defineProperty(exports, "useRampQuotes", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return useRampQuotes;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "useRampSession", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function() {
|
|
28
|
+
return useRampSession;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { l as useAggClient } from "./use-sync-balances-BkcqInJh.mjs";
|
|
2
|
+
import { useMutation } from "@tanstack/react-query";
|
|
3
|
+
//#region src/use-ramp-quotes.ts
|
|
4
|
+
function useRampQuotes() {
|
|
5
|
+
const client = useAggClient();
|
|
6
|
+
return useMutation({ mutationFn: async (params) => {
|
|
7
|
+
return client.getRampQuotes(params);
|
|
8
|
+
} });
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/use-ramp-session.ts
|
|
12
|
+
function useRampSession() {
|
|
13
|
+
const client = useAggClient();
|
|
14
|
+
return useMutation({ mutationFn: async (params) => {
|
|
15
|
+
return client.createRampSession(params);
|
|
16
|
+
} });
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { useRampQuotes as n, useRampSession as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=use-ramp-session-BFWHCtuc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-ramp-session-BFWHCtuc.mjs","names":["useMutation","RampQuoteRequest","RampQuote","useAggClient","useRampQuotes","client","mutationFn","params","Promise","getRampQuotes","useMutation","RampSessionRequest","RampWidgetSession","useAggClient","useRampSession","client","mutationFn","params","Promise","createRampSession"],"sources":["../src/use-ramp-quotes.ts","../src/use-ramp-session.ts"],"sourcesContent":["import { useMutation } from \"@tanstack/react-query\";\nimport type { RampQuoteRequest, RampQuote } from \"@agg-build/sdk\";\nimport { useAggClient } from \"./core/provider\";\n\nexport function useRampQuotes() {\n const client = useAggClient();\n\n return useMutation({\n mutationFn: async (params: RampQuoteRequest): Promise<RampQuote[]> => {\n return client.getRampQuotes(params);\n },\n });\n}\n","import { useMutation } from \"@tanstack/react-query\";\nimport type { RampSessionRequest, RampWidgetSession } from \"@agg-build/sdk\";\nimport { useAggClient } from \"./core/provider\";\n\nexport function useRampSession() {\n const client = useAggClient();\n\n return useMutation({\n mutationFn: async (params: RampSessionRequest): Promise<RampWidgetSession> => {\n return client.createRampSession(params);\n },\n });\n}\n"],"mappings":";;;AAIA,SAAgBI,gBAAgB;CAC9B,MAAMC,SAASF,aAAa;CAE5B,OAAOH,YAAY,EACjBM,YAAY,OAAOC,WAAmD;EACpE,OAAOF,OAAOI,cAAcF,MAAM;CACpC,EACF,CAAC;AACH;;;ACRA,SAAgBO,iBAAiB;CAC/B,MAAMC,SAASF,aAAa;CAE5B,OAAOH,YAAY,EACjBM,YAAY,OAAOC,WAA2D;EAC5E,OAAOF,OAAOI,kBAAkBF,MAAM;CACxC,EACF,CAAC;AACH"}
|