@singi-labs/sifa-sdk 0.12.30 → 0.12.32
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/README.md +1 -1
- package/dist/{index-CZAG8uku.d.ts → index-CQx2Yk7v.d.ts} +1 -1
- package/dist/{index-ZoAKneCP.d.ts → index-D4DUzpXJ.d.ts} +11 -2
- package/dist/{index-O2oJHRq0.d.cts → index-DX-0n-2z.d.cts} +1 -1
- package/dist/{index-C95t5Gg5.d.cts → index-XXLVtfGw.d.cts} +11 -2
- package/dist/index.cjs +100 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +98 -2
- package/dist/index.js.map +1 -1
- package/dist/{org-Octhy3vS.d.ts → org-5dARVOZ9.d.ts} +32 -2
- package/dist/{org-DWAqK-TV.d.cts → org-DOQL077g.d.cts} +32 -2
- package/dist/query/fetchers/index.cjs +11 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +11 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +21 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +21 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +22 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +4 -4
- package/dist/query/index.d.ts +4 -4
- package/dist/query/index.js +21 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +6 -6
package/dist/query/index.cjs
CHANGED
|
@@ -1278,6 +1278,12 @@ function retractRoadmapVote(config, key, options = {}) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
// src/query/fetchers/destructive.ts
|
|
1281
|
+
function fetchWipePreview(config, options = {}) {
|
|
1282
|
+
return apiFetch(config, "/api/profile/wipe-preview", {
|
|
1283
|
+
credentials: "include",
|
|
1284
|
+
...options
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1281
1287
|
function resetProfile(config, deletePdsData, options = {}) {
|
|
1282
1288
|
return apiWrite(config, "/api/profile/reset", "DELETE", {
|
|
1283
1289
|
body: { deletePdsData },
|
|
@@ -1410,6 +1416,10 @@ var sifaQueryKeys = {
|
|
|
1410
1416
|
bskyPreferences: {
|
|
1411
1417
|
all: () => ["sifa", "bsky-preferences"],
|
|
1412
1418
|
contentLabels: () => ["sifa", "bsky-preferences", "content-labels"]
|
|
1419
|
+
},
|
|
1420
|
+
destructive: {
|
|
1421
|
+
all: () => ["sifa", "destructive"],
|
|
1422
|
+
wipePreview: () => ["sifa", "destructive", "wipe-preview"]
|
|
1413
1423
|
}
|
|
1414
1424
|
};
|
|
1415
1425
|
|
|
@@ -2556,6 +2566,16 @@ function useRetractRoadmapVote(options) {
|
|
|
2556
2566
|
...options
|
|
2557
2567
|
});
|
|
2558
2568
|
}
|
|
2569
|
+
function useWipePreview(options) {
|
|
2570
|
+
const config = useSifaConfig();
|
|
2571
|
+
return reactQuery.useQuery({
|
|
2572
|
+
queryKey: sifaQueryKeys.destructive.wipePreview(),
|
|
2573
|
+
queryFn: () => fetchWipePreview(config),
|
|
2574
|
+
staleTime: 0,
|
|
2575
|
+
gcTime: 0,
|
|
2576
|
+
...options
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2559
2579
|
function useResetProfile(options) {
|
|
2560
2580
|
const config = useSifaConfig();
|
|
2561
2581
|
const queryClient = reactQuery.useQueryClient();
|
|
@@ -2836,6 +2856,7 @@ exports.fetchSkillSuggestions = fetchSkillSuggestions;
|
|
|
2836
2856
|
exports.fetchStats = fetchStats;
|
|
2837
2857
|
exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
2838
2858
|
exports.fetchSuggestions = fetchSuggestions;
|
|
2859
|
+
exports.fetchWipePreview = fetchWipePreview;
|
|
2839
2860
|
exports.followUser = followUser;
|
|
2840
2861
|
exports.getBlueskySuggestions = getBlueskySuggestions;
|
|
2841
2862
|
exports.getFollowers = getFollowers;
|
|
@@ -2997,6 +3018,7 @@ exports.useUpdateRecord = useUpdateRecord;
|
|
|
2997
3018
|
exports.useUpdateSkill = useUpdateSkill;
|
|
2998
3019
|
exports.useUploadAvatar = useUploadAvatar;
|
|
2999
3020
|
exports.useVerifyExternalAccount = useVerifyExternalAccount;
|
|
3021
|
+
exports.useWipePreview = useWipePreview;
|
|
3000
3022
|
exports.verifyExternalAccount = verifyExternalAccount;
|
|
3001
3023
|
exports.verifyOrgDomain = verifyOrgDomain;
|
|
3002
3024
|
//# sourceMappingURL=index.cjs.map
|