@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
package/dist/query/index.cjs
CHANGED
|
@@ -618,6 +618,9 @@ async function fetchUnlinkedPositions(config, options = {}) {
|
|
|
618
618
|
return { positions: [] };
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
+
function dismissUnlinkedPosition(config, data, options = {}) {
|
|
622
|
+
return apiWrite(config, "/api/positions/unlinked/dismiss", "POST", { body: data, ...options });
|
|
623
|
+
}
|
|
621
624
|
|
|
622
625
|
// src/query/fetchers/profile-completeness.ts
|
|
623
626
|
var PROFILE_COMPLETENESS_SIGNALS = [
|
|
@@ -2659,6 +2662,23 @@ function useUnlinkedPositions(options) {
|
|
|
2659
2662
|
...options
|
|
2660
2663
|
});
|
|
2661
2664
|
}
|
|
2665
|
+
function useDismissUnlinkedPosition(options) {
|
|
2666
|
+
const config = useSifaConfig();
|
|
2667
|
+
const queryClient = reactQuery.useQueryClient();
|
|
2668
|
+
return reactQuery.useMutation({
|
|
2669
|
+
// Spread first: a consumer-supplied handler would otherwise replace the
|
|
2670
|
+
// one below and silently drop cache invalidation (#453).
|
|
2671
|
+
...options,
|
|
2672
|
+
mutationFn: (data) => dismissUnlinkedPosition(config, data),
|
|
2673
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
2674
|
+
if (result.success) {
|
|
2675
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.position.unlinked() });
|
|
2676
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.inbox.counts() });
|
|
2677
|
+
}
|
|
2678
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
2679
|
+
}
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2662
2682
|
function useProfileCompleteness(options) {
|
|
2663
2683
|
const config = useSifaConfig();
|
|
2664
2684
|
return reactQuery.useQuery({
|
|
@@ -3660,6 +3680,7 @@ exports.deleteRepoRecords = deleteRepoRecords;
|
|
|
3660
3680
|
exports.deleteSkill = deleteSkill;
|
|
3661
3681
|
exports.dismissConfirmation = dismissConfirmation;
|
|
3662
3682
|
exports.dismissEndorsement = dismissEndorsement;
|
|
3683
|
+
exports.dismissUnlinkedPosition = dismissUnlinkedPosition;
|
|
3663
3684
|
exports.effectiveContentVisibility = effectiveContentVisibility;
|
|
3664
3685
|
exports.fetchAccounts = fetchAccounts;
|
|
3665
3686
|
exports.fetchActivityFeed = fetchActivityFeed;
|
|
@@ -3809,6 +3830,7 @@ exports.useDeleteRepoRecords = useDeleteRepoRecords;
|
|
|
3809
3830
|
exports.useDeleteSkill = useDeleteSkill;
|
|
3810
3831
|
exports.useDismissConfirmation = useDismissConfirmation;
|
|
3811
3832
|
exports.useDismissEndorsement = useDismissEndorsement;
|
|
3833
|
+
exports.useDismissUnlinkedPosition = useDismissUnlinkedPosition;
|
|
3812
3834
|
exports.useEndorsementCount = useEndorsementCount;
|
|
3813
3835
|
exports.useEntitySearch = useEntitySearch;
|
|
3814
3836
|
exports.useExternalAccounts = useExternalAccounts;
|