@singi-labs/sifa-sdk 0.18.13 → 0.18.15
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 +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{network-map-Cwv7SsL0.d.cts → network-map-B2VRYlgb.d.cts} +7 -3
- package/dist/{network-map-5WbfyFed.d.ts → network-map-CfAPUSb6.d.ts} +7 -3
- package/dist/{org-Bgz5parA.d.ts → org-C3e5hz3h.d.ts} +13 -2
- package/dist/{org-BHz9ymjp.d.cts → org-CLi7-wje.d.cts} +13 -2
- package/dist/{profile-summary-BnydsN4P.d.cts → profile-summary-B9EQmnC7.d.cts} +1 -1
- package/dist/{profile-summary-H-R1juYp.d.ts → profile-summary-nbzILRkf.d.ts} +1 -1
- package/dist/query/fetchers/index.cjs +4 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +5 -5
- package/dist/query/fetchers/index.d.ts +5 -5
- package/dist/query/fetchers/index.js +4 -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 +4 -4
- package/dist/query/hooks/index.d.ts +4 -4
- 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 +7 -7
- package/dist/query/index.d.ts +7 -7
- package/dist/query/index.js +21 -1
- package/dist/query/index.js.map +1 -1
- package/dist/{types-Co7D0VfD.d.ts → types-DqVbTzXo.d.ts} +8 -0
- package/dist/{types-LElwqDU4.d.cts → types-XejLm3AA.d.cts} +8 -0
- package/dist/{use-org-notification-emails-C9CWyhSC.d.ts → use-org-notification-emails-6VO57byN.d.ts} +9 -3
- package/dist/{use-org-notification-emails-vNekuQKF.d.cts → use-org-notification-emails-DHLosH0F.d.cts} +9 -3
- package/package.json +1 -1
|
@@ -1410,6 +1410,9 @@ async function fetchUnlinkedPositions(config, options = {}) {
|
|
|
1410
1410
|
return { positions: [] };
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
|
+
function dismissUnlinkedPosition(config, data, options = {}) {
|
|
1414
|
+
return apiWrite(config, "/api/positions/unlinked/dismiss", "POST", { body: data, ...options });
|
|
1415
|
+
}
|
|
1413
1416
|
|
|
1414
1417
|
// src/query/hooks/use-unlinked-positions.ts
|
|
1415
1418
|
function useUnlinkedPositions(options) {
|
|
@@ -1420,6 +1423,23 @@ function useUnlinkedPositions(options) {
|
|
|
1420
1423
|
...options
|
|
1421
1424
|
});
|
|
1422
1425
|
}
|
|
1426
|
+
function useDismissUnlinkedPosition(options) {
|
|
1427
|
+
const config = useSifaConfig();
|
|
1428
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1429
|
+
return reactQuery.useMutation({
|
|
1430
|
+
// Spread first: a consumer-supplied handler would otherwise replace the
|
|
1431
|
+
// one below and silently drop cache invalidation (#453).
|
|
1432
|
+
...options,
|
|
1433
|
+
mutationFn: (data) => dismissUnlinkedPosition(config, data),
|
|
1434
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
1435
|
+
if (result.success) {
|
|
1436
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.position.unlinked() });
|
|
1437
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.inbox.counts() });
|
|
1438
|
+
}
|
|
1439
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1423
1443
|
|
|
1424
1444
|
// src/query/fetchers/profile-completeness.ts
|
|
1425
1445
|
var PROFILE_COMPLETENESS_SIGNALS = [
|
|
@@ -3511,6 +3531,7 @@ exports.useDeleteRecord = useDeleteRecord;
|
|
|
3511
3531
|
exports.useDeleteRepoRecords = useDeleteRepoRecords;
|
|
3512
3532
|
exports.useDeleteSkill = useDeleteSkill;
|
|
3513
3533
|
exports.useDismissConfirmation = useDismissConfirmation;
|
|
3534
|
+
exports.useDismissUnlinkedPosition = useDismissUnlinkedPosition;
|
|
3514
3535
|
exports.useEndorsementCount = useEndorsementCount;
|
|
3515
3536
|
exports.useEntitySearch = useEntitySearch;
|
|
3516
3537
|
exports.useExternalAccounts = useExternalAccounts;
|