@sollinked/sdk
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -109,5 +109,7 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
let user = userRes.data.data; | ||
let signatures = cookies['signatures']; | ||
setCookie("signatures", { ...signatures, [auth.address]: sigToVerify }, { path: '/' }); | ||
setUser(user ?? DEFAULT_USER); | ||
return user; | ||
}, [auth, signature]); | ||
}, [auth, signature, cookies]); | ||
const updateAccount = useCallback(async (params) => { | ||
@@ -122,2 +124,5 @@ if (!user) { | ||
let res = await account.update(user.id, { address, message, signature, ...params }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -135,2 +140,5 @@ return res; | ||
let res = await mail.setTiers(user.id, { address, message, signature, tiers }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -148,2 +156,5 @@ return res; | ||
let res = await mail.claim(user.id, { address, message, signature, mailId: id, claimToAddress }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -161,2 +172,5 @@ return res; | ||
let res = await mail.claimAll(user.id, { address, message, signature, claimToAddress }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -174,2 +188,5 @@ return res; | ||
let res = await calendar.setPresetPrice(user.id, { address, message, signature, reservationSettings }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -187,2 +204,5 @@ return res; | ||
let res = await calendar.setCustomPrice({ address, message, signature, ...params }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -200,2 +220,5 @@ return res; | ||
let res = await github.create({ ...params, address, message, signature, user_id: user.id }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -213,2 +236,5 @@ return res; | ||
let res = await github.update(githubSettingId, { address, message, signature, ...params }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -226,2 +252,5 @@ return res; | ||
let res = await github.del(githubSettingId, { address, message, signature }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -239,2 +268,5 @@ return res; | ||
let res = await github.toggle(githubSettingId, { address, message, signature }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -258,2 +290,5 @@ return res; | ||
let res = await integration.update(webhookId, { ...params, address, message, signature }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -271,2 +306,5 @@ return res; | ||
let res = await integration.test(webhookId, { address, message, signature }); | ||
if (typeof res === 'string') { | ||
return res; | ||
} | ||
await me(); | ||
@@ -273,0 +311,0 @@ return res; |
{ | ||
"name": "@sollinked/sdk", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "SDK for Sollinked", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84000
2139