@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
|
@@ -235,6 +235,10 @@ var sifaQueryKeys = {
|
|
|
235
235
|
bskyPreferences: {
|
|
236
236
|
all: () => ["sifa", "bsky-preferences"],
|
|
237
237
|
contentLabels: () => ["sifa", "bsky-preferences", "content-labels"]
|
|
238
|
+
},
|
|
239
|
+
destructive: {
|
|
240
|
+
all: () => ["sifa", "destructive"],
|
|
241
|
+
wipePreview: () => ["sifa", "destructive", "wipe-preview"]
|
|
238
242
|
}
|
|
239
243
|
};
|
|
240
244
|
|
|
@@ -2320,6 +2324,12 @@ function useRetractRoadmapVote(options) {
|
|
|
2320
2324
|
}
|
|
2321
2325
|
|
|
2322
2326
|
// src/query/fetchers/destructive.ts
|
|
2327
|
+
function fetchWipePreview(config, options = {}) {
|
|
2328
|
+
return apiFetch(config, "/api/profile/wipe-preview", {
|
|
2329
|
+
credentials: "include",
|
|
2330
|
+
...options
|
|
2331
|
+
});
|
|
2332
|
+
}
|
|
2323
2333
|
function resetProfile(config, deletePdsData, options = {}) {
|
|
2324
2334
|
return apiWrite(config, "/api/profile/reset", "DELETE", {
|
|
2325
2335
|
body: { deletePdsData },
|
|
@@ -2339,6 +2349,16 @@ function deleteAccount(config, deletePdsData, options = {}) {
|
|
|
2339
2349
|
}
|
|
2340
2350
|
|
|
2341
2351
|
// src/query/hooks/use-destructive.ts
|
|
2352
|
+
function useWipePreview(options) {
|
|
2353
|
+
const config = useSifaConfig();
|
|
2354
|
+
return reactQuery.useQuery({
|
|
2355
|
+
queryKey: sifaQueryKeys.destructive.wipePreview(),
|
|
2356
|
+
queryFn: () => fetchWipePreview(config),
|
|
2357
|
+
staleTime: 0,
|
|
2358
|
+
gcTime: 0,
|
|
2359
|
+
...options
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2342
2362
|
function useResetProfile(options) {
|
|
2343
2363
|
const config = useSifaConfig();
|
|
2344
2364
|
const queryClient = reactQuery.useQueryClient();
|
|
@@ -2703,5 +2723,6 @@ exports.useUpdateRecord = useUpdateRecord;
|
|
|
2703
2723
|
exports.useUpdateSkill = useUpdateSkill;
|
|
2704
2724
|
exports.useUploadAvatar = useUploadAvatar;
|
|
2705
2725
|
exports.useVerifyExternalAccount = useVerifyExternalAccount;
|
|
2726
|
+
exports.useWipePreview = useWipePreview;
|
|
2706
2727
|
//# sourceMappingURL=index.cjs.map
|
|
2707
2728
|
//# sourceMappingURL=index.cjs.map
|