@singi-labs/sifa-sdk 0.19.73 → 0.19.75
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 +63 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/logic/index.js +26 -0
- package/dist/logic/index.js.map +1 -1
- package/dist/logic/site-activity-preset.js +68 -0
- package/dist/logic/site-activity-preset.js.map +1 -0
- package/dist/{network-map-D-VXi2yc.d.ts → network-map-73EK_ow8.d.ts} +4 -2
- package/dist/{network-map-DfXwB2Eq.d.cts → network-map-DPt0o-vA.d.cts} +4 -2
- package/dist/{org-A9Tz-Uv9.d.cts → org-Bb1cRhJu.d.cts} +63 -3
- package/dist/{org-Spq8yU-B.d.ts → org-aUopODEW.d.ts} +63 -3
- package/dist/{profile-summary-6GySSJvO.d.ts → profile-summary-8TYJWh1y.d.ts} +1 -1
- package/dist/{profile-summary-X4MGExfS.d.cts → profile-summary-CaPVQo_x.d.cts} +1 -1
- package/dist/query/fetchers/activity-preferences.js +43 -0
- package/dist/query/fetchers/activity-preferences.js.map +1 -0
- package/dist/query/fetchers/activity.js +3 -0
- package/dist/query/fetchers/activity.js.map +1 -1
- package/dist/query/fetchers/index.cjs +48 -1
- 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 +8 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/rpg.js +5 -0
- package/dist/query/fetchers/rpg.js.map +1 -1
- package/dist/query/hooks/index.cjs +76 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +8 -0
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-activity-preferences.js +53 -0
- package/dist/query/hooks/use-activity-preferences.js.map +1 -0
- package/dist/query/hooks/use-activity.js.map +1 -1
- package/dist/query/index.cjs +82 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/query/index.js +16 -0
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +4 -1
- package/dist/query/keys.js.map +1 -1
- package/dist/{types-DXep6553.d.cts → types-BY3qFPDf.d.cts} +67 -1
- package/dist/{types-DxMMqOJo.d.ts → types-Dl-uk0Ds.d.ts} +67 -1
- package/dist/{use-org-notification-emails-CfDfHwBl.d.ts → use-org-notification-emails-ObFoUWP3.d.ts} +11 -4
- package/dist/{use-org-notification-emails-5V3ZAlRd.d.cts → use-org-notification-emails-u0AQu9Ez.d.cts} +11 -4
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-
|
|
4
|
-
export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as
|
|
1
|
+
import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a2 as CreateResult, a3 as WriteResult } from '../../types-BY3qFPDf.cjs';
|
|
2
|
+
export { a4 as ApiError, ai as CompanySearchFilters, aj as CompanySearchResponse, ak as CompanySearchResult, a5 as FilterOptions, a6 as ProfileSearchResult, a7 as ProfileSearchSuggestion, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, aa as apiFetch, ab as apiFetchOrNull, ac as apiWrite, ad as apiWriteCreate, al as fetchSearchCompanies, ae as fetchSearchFilters, af as fetchSearchProfiles, ag as fetchSkillSuggestions, ah as searchSkills } from '../../types-BY3qFPDf.cjs';
|
|
3
|
+
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-DPt0o-vA.cjs';
|
|
4
|
+
export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityPreferences, g as ActivityTeaserResponse, h as AdminReviewQueues, i as AppRegistryEntry, B as BulkHideProfileItemInput, j as CastRoadmapVoteResult, k as CheckAppAccountOptions, C as ConfirmEndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissUnlinkedPositionInput, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchAccountsOptions, t as FetchActivityFeedOptions, u as FetchActivityPreferencesOptions, v as FetchActivityTeaserOptions, w as FetchConfirmationsOptions, x as FetchFollowListOptions, y as FetchFollowProfilePageOptions, z as FetchFollowingFeedOptions, G as FetchHiddenActivityItemsOptions, H as FetchHiddenAppsOptions, I as FetchInboxCountsOptions, J as FetchMyGithubPullRequestsOptions, K as FetchMyRoadmapVotesOptions, L as FetchProfileCompletenessOptions, M as FetchReactionStatusOptions, N as FetchSuggestionsOptions, O as FetchUnlinkedPositionsOptions, P as FollowListPage, Q as FollowProfile, R as FollowProfilePageResponse, S as FollowUserResult, T as FollowingFeedApp, U as FollowingFeedBuild, V as FollowingFeedEmptyReason, W as FollowingFeedResponse, X as FollowingFeedVersion, Y as FollowingResponse, Z as GetAdminReviewQueuesOptions, _ as GithubPullRequest, $ as GivenConfirmation, a0 as HIDDEN_ITEM_SOURCES, a1 as HIDDEN_ITEM_TYPES, a2 as HeatmapDay, a3 as HeatmapResponse, a4 as HiddenActivityItem, a5 as HiddenApp, a6 as HiddenItemSource, a7 as HiddenItemType, a8 as HideActivityItemInput, a9 as HideProfileItemInput, aa as InboxCounts, ab as ListFeatureAllowlistOptions, ac as MyGithubPullRequestsResponse, ad as OrgClaimBinding, ae as OrgClaimResult, af as OrgDomainChallengeResult, ag as OrgDomainVerifyResult, ah as OrgNotificationEmailAddResult, ai as OrgNotificationEmailRemoveResult, aj as OrgProfileEcho, ak as OrgProfileUpdateResult, al as PROFILE_COMPLETENESS_SIGNALS, am as PdsWipeOutcome, an as PendingConfirmation, ao as PendingConfirmationsPage, ap as PrimarySection, aq as ProfileCompleteness, ar as ProfileCompletenessSignal, as as ProfileIndustryInput, at as ProfileLocationAddress, au as ProfileLocationInput, av as ProfileSelfLocation, aw as QUOTED_POSTS_BATCH_MAX, ax as QuotedPostAuthor, ay as QuotedPostImage, az as QuotedPostResult, aA as QuotedPostView, aB as ReactionError, aC as ReactionResult, aD as ReactionStatus, aE as RefreshOrcidPublicationsResult, aF as RefreshPdsResult, aG as RepoDeleteInput, aH as ResetProfileResult, aI as ResolveQuotedPostsOptions, aJ as RoadmapVoteError, aK as RoadmapVoteResult, aL as RoadmapVoter, aM as RoadmapVotesResponse, aN as SifaQueryKey, aO as SimilarProfile, aP as SiteActivityPresetResponse, aQ as StatsResponse, aS as SuggestionProfile, aT as SuggestionsResponse, aU as UnhideActivityItemInput, aV as UnlinkedPosition, aW as UnlinkedPositionsResult, aX as UpdateActivityPreferencesInput, aY as UpdateProfileOverrideInput, aZ as UpdateProfileSelfInput, a_ as UploadAvatarResult, a$ as UploadPronunciationAudioResult, b0 as VerifyExternalAccountResult, b1 as WipePreview, b2 as addFeatureAllowlist, b3 as addOrgNotificationEmail, b4 as bulkHideProfileItems, b5 as bulkHideStandardPublications, b6 as bulkUnhideProfileItems, b7 as bulkUnhideStandardPublications, b8 as castRoadmapVote, b9 as checkAppAccount, ba as confirmEndorsement, bb as createConfirmation, bc as createEndorsement, bd as createExternalAccount, be as createProfileLocation, bf as createReaction, bg as createSkill, bh as deleteAccount, bi as deleteAvatarOverride, bj as deleteExternalAccount, bk as deleteNamePronunciationAudio, bl as deleteProfileLocation, bm as deleteReaction, bn as deleteRepoRecords, bo as deleteSkill, bp as dismissConfirmation, bq as dismissUnlinkedPosition, br as fetchAccounts, bs as fetchActivityFeed, bt as fetchActivityPreferences, bu as fetchActivityTeaser, bv as fetchAppsRegistry, bw as fetchExternalAccounts, bx as fetchFeaturedProfile, by as fetchFollowing, bz as fetchFollowingFeed, bA as fetchFollowingFeedVersion, bB as fetchGivenConfirmations, bC as fetchHeatmapData, bD as fetchHiddenActivityItems, bE as fetchHiddenApps, bF as fetchInboxCounts, bG as fetchMyGithubPullRequests, bH as fetchMyRoadmapVotes, bI as fetchPendingConfirmations, bJ as fetchProfileCompleteness, bK as fetchReactionStatus, bL as fetchRepoInventory, bM as fetchRoadmapVotes, bN as fetchSimilarProfiles, bO as fetchSiteActivityPreset, bP as fetchStats, bQ as fetchSuggestionCount, bR as fetchSuggestions, bS as fetchUnlinkedPositions, bT as fetchViewerPositionConfirmations, bU as fetchWipePreview, bV as followUser, bW as getAdminReviewQueues, bX as getBlueskySuggestions, bY as getFollowers, bZ as getFollowing, b_ as getMutuals, b$ as hideActivityItem, c0 as hideOrcidPublication, c1 as hideProfileItem, c2 as hideSifaPublication, c3 as hideStandardPublication, c4 as isNewerFollowingFeed, c5 as listFeatureAllowlist, c6 as refreshOrcidPublications, c7 as refreshPds, c8 as removeFeatureAllowlist, c9 as removeOrgNotificationEmail, ca as repoExportUrl, cb as requestOrgDomainChallenge, cc as resetProfile, cd as resolveQuotedPosts, ce as retractRoadmapVote, cf as revokeConfirmation, cg as setExternalAccountPrimary, ch as setSectionPrimary, s as sifaQueryKeys, ci as submitOrgClaim, cj as switchAccount, ck as unfollowUser, cl as unhideActivityItem, cm as unhideOrcidPublication, cn as unhideProfileItem, co as unhideSifaPublication, cp as unhideStandardPublication, cq as unsetExternalAccountPrimary, cr as unsetSectionPrimary, cs as updateActivityPreferences, ct as updateExternalAccount, cu as updateOrgProfile, cv as updateProfileLocation, cw as updateProfileOverride, cx as updateProfileSelf, cy as updateSkill, cA as uploadAvatar, cB as uploadNamePronunciationAudio, cC as verifyExternalAccount, cD as verifyOrgDomain } from '../../org-Bb1cRhJu.cjs';
|
|
5
5
|
import '../../index-BzkaABDb.cjs';
|
|
6
6
|
import '../../verification-providers-7il3kPQS.cjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../profile-summary-
|
|
8
|
+
import '../../profile-summary-CaPVQo_x.cjs';
|
|
9
9
|
import '../../follow-profile-CQ3DTTak.cjs';
|
|
10
10
|
import '../../org-settings-C73Sin5E.cjs';
|
|
11
11
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-
|
|
4
|
-
export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as
|
|
1
|
+
import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a2 as CreateResult, a3 as WriteResult } from '../../types-Dl-uk0Ds.js';
|
|
2
|
+
export { a4 as ApiError, ai as CompanySearchFilters, aj as CompanySearchResponse, ak as CompanySearchResult, a5 as FilterOptions, a6 as ProfileSearchResult, a7 as ProfileSearchSuggestion, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, aa as apiFetch, ab as apiFetchOrNull, ac as apiWrite, ad as apiWriteCreate, al as fetchSearchCompanies, ae as fetchSearchFilters, af as fetchSearchProfiles, ag as fetchSkillSuggestions, ah as searchSkills } from '../../types-Dl-uk0Ds.js';
|
|
3
|
+
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-73EK_ow8.js';
|
|
4
|
+
export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityPreferences, g as ActivityTeaserResponse, h as AdminReviewQueues, i as AppRegistryEntry, B as BulkHideProfileItemInput, j as CastRoadmapVoteResult, k as CheckAppAccountOptions, C as ConfirmEndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissUnlinkedPositionInput, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchAccountsOptions, t as FetchActivityFeedOptions, u as FetchActivityPreferencesOptions, v as FetchActivityTeaserOptions, w as FetchConfirmationsOptions, x as FetchFollowListOptions, y as FetchFollowProfilePageOptions, z as FetchFollowingFeedOptions, G as FetchHiddenActivityItemsOptions, H as FetchHiddenAppsOptions, I as FetchInboxCountsOptions, J as FetchMyGithubPullRequestsOptions, K as FetchMyRoadmapVotesOptions, L as FetchProfileCompletenessOptions, M as FetchReactionStatusOptions, N as FetchSuggestionsOptions, O as FetchUnlinkedPositionsOptions, P as FollowListPage, Q as FollowProfile, R as FollowProfilePageResponse, S as FollowUserResult, T as FollowingFeedApp, U as FollowingFeedBuild, V as FollowingFeedEmptyReason, W as FollowingFeedResponse, X as FollowingFeedVersion, Y as FollowingResponse, Z as GetAdminReviewQueuesOptions, _ as GithubPullRequest, $ as GivenConfirmation, a0 as HIDDEN_ITEM_SOURCES, a1 as HIDDEN_ITEM_TYPES, a2 as HeatmapDay, a3 as HeatmapResponse, a4 as HiddenActivityItem, a5 as HiddenApp, a6 as HiddenItemSource, a7 as HiddenItemType, a8 as HideActivityItemInput, a9 as HideProfileItemInput, aa as InboxCounts, ab as ListFeatureAllowlistOptions, ac as MyGithubPullRequestsResponse, ad as OrgClaimBinding, ae as OrgClaimResult, af as OrgDomainChallengeResult, ag as OrgDomainVerifyResult, ah as OrgNotificationEmailAddResult, ai as OrgNotificationEmailRemoveResult, aj as OrgProfileEcho, ak as OrgProfileUpdateResult, al as PROFILE_COMPLETENESS_SIGNALS, am as PdsWipeOutcome, an as PendingConfirmation, ao as PendingConfirmationsPage, ap as PrimarySection, aq as ProfileCompleteness, ar as ProfileCompletenessSignal, as as ProfileIndustryInput, at as ProfileLocationAddress, au as ProfileLocationInput, av as ProfileSelfLocation, aw as QUOTED_POSTS_BATCH_MAX, ax as QuotedPostAuthor, ay as QuotedPostImage, az as QuotedPostResult, aA as QuotedPostView, aB as ReactionError, aC as ReactionResult, aD as ReactionStatus, aE as RefreshOrcidPublicationsResult, aF as RefreshPdsResult, aG as RepoDeleteInput, aH as ResetProfileResult, aI as ResolveQuotedPostsOptions, aJ as RoadmapVoteError, aK as RoadmapVoteResult, aL as RoadmapVoter, aM as RoadmapVotesResponse, aN as SifaQueryKey, aO as SimilarProfile, aP as SiteActivityPresetResponse, aQ as StatsResponse, aS as SuggestionProfile, aT as SuggestionsResponse, aU as UnhideActivityItemInput, aV as UnlinkedPosition, aW as UnlinkedPositionsResult, aX as UpdateActivityPreferencesInput, aY as UpdateProfileOverrideInput, aZ as UpdateProfileSelfInput, a_ as UploadAvatarResult, a$ as UploadPronunciationAudioResult, b0 as VerifyExternalAccountResult, b1 as WipePreview, b2 as addFeatureAllowlist, b3 as addOrgNotificationEmail, b4 as bulkHideProfileItems, b5 as bulkHideStandardPublications, b6 as bulkUnhideProfileItems, b7 as bulkUnhideStandardPublications, b8 as castRoadmapVote, b9 as checkAppAccount, ba as confirmEndorsement, bb as createConfirmation, bc as createEndorsement, bd as createExternalAccount, be as createProfileLocation, bf as createReaction, bg as createSkill, bh as deleteAccount, bi as deleteAvatarOverride, bj as deleteExternalAccount, bk as deleteNamePronunciationAudio, bl as deleteProfileLocation, bm as deleteReaction, bn as deleteRepoRecords, bo as deleteSkill, bp as dismissConfirmation, bq as dismissUnlinkedPosition, br as fetchAccounts, bs as fetchActivityFeed, bt as fetchActivityPreferences, bu as fetchActivityTeaser, bv as fetchAppsRegistry, bw as fetchExternalAccounts, bx as fetchFeaturedProfile, by as fetchFollowing, bz as fetchFollowingFeed, bA as fetchFollowingFeedVersion, bB as fetchGivenConfirmations, bC as fetchHeatmapData, bD as fetchHiddenActivityItems, bE as fetchHiddenApps, bF as fetchInboxCounts, bG as fetchMyGithubPullRequests, bH as fetchMyRoadmapVotes, bI as fetchPendingConfirmations, bJ as fetchProfileCompleteness, bK as fetchReactionStatus, bL as fetchRepoInventory, bM as fetchRoadmapVotes, bN as fetchSimilarProfiles, bO as fetchSiteActivityPreset, bP as fetchStats, bQ as fetchSuggestionCount, bR as fetchSuggestions, bS as fetchUnlinkedPositions, bT as fetchViewerPositionConfirmations, bU as fetchWipePreview, bV as followUser, bW as getAdminReviewQueues, bX as getBlueskySuggestions, bY as getFollowers, bZ as getFollowing, b_ as getMutuals, b$ as hideActivityItem, c0 as hideOrcidPublication, c1 as hideProfileItem, c2 as hideSifaPublication, c3 as hideStandardPublication, c4 as isNewerFollowingFeed, c5 as listFeatureAllowlist, c6 as refreshOrcidPublications, c7 as refreshPds, c8 as removeFeatureAllowlist, c9 as removeOrgNotificationEmail, ca as repoExportUrl, cb as requestOrgDomainChallenge, cc as resetProfile, cd as resolveQuotedPosts, ce as retractRoadmapVote, cf as revokeConfirmation, cg as setExternalAccountPrimary, ch as setSectionPrimary, s as sifaQueryKeys, ci as submitOrgClaim, cj as switchAccount, ck as unfollowUser, cl as unhideActivityItem, cm as unhideOrcidPublication, cn as unhideProfileItem, co as unhideSifaPublication, cp as unhideStandardPublication, cq as unsetExternalAccountPrimary, cr as unsetSectionPrimary, cs as updateActivityPreferences, ct as updateExternalAccount, cu as updateOrgProfile, cv as updateProfileLocation, cw as updateProfileOverride, cx as updateProfileSelf, cy as updateSkill, cA as uploadAvatar, cB as uploadNamePronunciationAudio, cC as verifyExternalAccount, cD as verifyOrgDomain } from '../../org-aUopODEW.js';
|
|
5
5
|
import '../../index-BFdNI6jA.js';
|
|
6
6
|
import '../../verification-providers-7il3kPQS.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../profile-summary-
|
|
8
|
+
import '../../profile-summary-8TYJWh1y.js';
|
|
9
9
|
import '../../follow-profile-ceqefXAw.js';
|
|
10
10
|
import '../../org-settings-BShvhyFp.js';
|
|
11
11
|
|
|
@@ -101,6 +101,11 @@ import {
|
|
|
101
101
|
hideActivityItem,
|
|
102
102
|
unhideActivityItem
|
|
103
103
|
} from "./activity-items-hide.js";
|
|
104
|
+
import {
|
|
105
|
+
fetchActivityPreferences,
|
|
106
|
+
fetchSiteActivityPreset,
|
|
107
|
+
updateActivityPreferences
|
|
108
|
+
} from "./activity-preferences.js";
|
|
104
109
|
import { fetchStats } from "./stats.js";
|
|
105
110
|
import {
|
|
106
111
|
fetchAppsRegistry,
|
|
@@ -257,6 +262,7 @@ export {
|
|
|
257
262
|
dismissUnlinkedPosition,
|
|
258
263
|
fetchAccounts,
|
|
259
264
|
fetchActivityFeed,
|
|
265
|
+
fetchActivityPreferences,
|
|
260
266
|
fetchActivityTeaser,
|
|
261
267
|
fetchAppsRegistry,
|
|
262
268
|
fetchAtFundLink,
|
|
@@ -292,6 +298,7 @@ export {
|
|
|
292
298
|
fetchSearchFilters,
|
|
293
299
|
fetchSearchProfiles,
|
|
294
300
|
fetchSimilarProfiles,
|
|
301
|
+
fetchSiteActivityPreset,
|
|
295
302
|
fetchSkillSuggestions,
|
|
296
303
|
fetchSpeakers,
|
|
297
304
|
fetchStats,
|
|
@@ -350,6 +357,7 @@ export {
|
|
|
350
357
|
unsetExternalAccountPrimary,
|
|
351
358
|
unsetPositionPrimary,
|
|
352
359
|
unsetSectionPrimary,
|
|
360
|
+
updateActivityPreferences,
|
|
353
361
|
updateEducation,
|
|
354
362
|
updateExternalAccount,
|
|
355
363
|
updateInvestment,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/query/fetchers/index.ts"],"sourcesContent":["/**\n * Fetcher-only barrel for `@singi-labs/sifa-sdk/query/fetchers`.\n *\n * Pure, no React imports. Safe to import from Next.js React Server\n * Components, edge runtimes, and any other context where React hooks\n * are unavailable. Client components should import from\n * `@singi-labs/sifa-sdk/query` to get hooks + Provider too.\n *\n * Keep in sync with `../index.ts`: every fetcher exported there should\n * also be exported here. Hooks and the Provider live only in the\n * `/query` barrel.\n */\n\nexport {\n ApiError,\n apiFetch,\n apiFetchOrNull,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\nexport { fetchAtFundLink, fetchProfile } from './profile.js';\nexport { fetchGetProfileView } from './get-profile-view.js';\nexport {\n deleteAvatarOverride,\n deleteNamePronunciationAudio,\n refreshPds,\n updateProfileOverride,\n updateProfileSelf,\n uploadAvatar,\n uploadNamePronunciationAudio,\n type ProfileIndustryInput,\n type ProfileSelfLocation,\n type RefreshPdsResult,\n type UpdateProfileOverrideInput,\n type UpdateProfileSelfInput,\n type UploadAvatarResult,\n type UploadPronunciationAudioResult,\n} from './profile-mutations.js';\nexport {\n createPosition,\n deletePosition,\n linkSkillToPosition,\n setPositionPrimary,\n unlinkSkillFromPosition,\n unsetPositionPrimary,\n updatePosition,\n} from './positions.js';\nexport { createEducation, deleteEducation, updateEducation } from './education.js';\nexport { setSectionPrimary, unsetSectionPrimary, type PrimarySection } from './section-primary.js';\nexport { createSkill, deleteSkill, updateSkill } from './skills.js';\nexport { createRecord, deleteRecord, updateRecord } from './records.js';\nexport {\n createProfileLocation,\n deleteProfileLocation,\n updateProfileLocation,\n type ProfileLocationAddress,\n type ProfileLocationInput,\n} from './profile-locations.js';\nexport {\n createExternalAccount,\n deleteExternalAccount,\n fetchExternalAccounts,\n setExternalAccountPrimary,\n unsetExternalAccountPrimary,\n updateExternalAccount,\n verifyExternalAccount,\n type CreateExternalAccountResult,\n type ExternalAccountInput,\n type VerifyExternalAccountResult,\n} from './external-accounts.js';\nexport {\n createEndorsement,\n confirmEndorsement,\n type EndorsementInput,\n type ConfirmEndorsementInput,\n} from './endorsements.js';\nexport {\n fetchReceivedEndorsements,\n type ReceivedEndorsement,\n type ReceivedEndorsementsPage,\n} from './received-endorsements.js';\nexport {\n fetchReciprocityCandidate,\n type ReciprocityCandidate,\n type ReciprocitySkill,\n} from './reciprocity.js';\nexport {\n fetchPendingEndorsements,\n dismissEndorsement,\n type PendingEndorsement,\n type PendingEndorsementsPage,\n type DismissEndorsementInput,\n type FetchPendingEndorsementsOptions,\n} from './endorsement-inbox.js';\nexport {\n fetchPendingConfirmations,\n fetchGivenConfirmations,\n fetchViewerPositionConfirmations,\n createConfirmation,\n dismissConfirmation,\n revokeConfirmation,\n type PendingConfirmation,\n type PendingConfirmationsPage,\n type GivenConfirmation,\n type ConfirmationInput,\n type ConfirmationSubjectInput,\n type FetchConfirmationsOptions,\n} from './confirmations.js';\nexport { fetchInboxCounts, type InboxCounts, type FetchInboxCountsOptions } from './inbox.js';\nexport {\n fetchUnlinkedPositions,\n dismissUnlinkedPosition,\n type UnlinkedPosition,\n type UnlinkedPositionsResult,\n type FetchUnlinkedPositionsOptions,\n type DismissUnlinkedPositionInput,\n} from './unlinked-positions.js';\nexport {\n fetchProfileCompleteness,\n PROFILE_COMPLETENESS_SIGNALS,\n type ProfileCompleteness,\n type ProfileCompletenessSignal,\n type FetchProfileCompletenessOptions,\n} from './profile-completeness.js';\nexport { hideKeytraceClaim, unhideKeytraceClaim } from './keytrace-claims.js';\nexport { revealMarqueDomain, unrevealMarqueDomain } from './marque-domains.js';\nexport {\n bulkHideStandardPublications,\n bulkUnhideStandardPublications,\n hideOrcidPublication,\n hideSifaPublication,\n hideStandardPublication,\n refreshOrcidPublications,\n unhideOrcidPublication,\n unhideSifaPublication,\n unhideStandardPublication,\n type RefreshOrcidPublicationsResult,\n} from './publications.js';\nexport {\n bulkHideProfileItems,\n bulkUnhideProfileItems,\n hideProfileItem,\n unhideProfileItem,\n HIDDEN_ITEM_SOURCES,\n HIDDEN_ITEM_TYPES,\n type BulkHideProfileItemInput,\n type HiddenItemSource,\n type HiddenItemType,\n type HideProfileItemInput,\n} from './profile-items-hide.js';\nexport {\n fetchHiddenActivityItems,\n hideActivityItem,\n unhideActivityItem,\n type FetchHiddenActivityItemsOptions,\n type HiddenActivityItem,\n type HideActivityItemInput,\n type UnhideActivityItemInput,\n} from './activity-items-hide.js';\nexport { fetchStats, type StatsResponse } from './stats.js';\nexport {\n fetchAppsRegistry,\n fetchHiddenApps,\n type AppRegistryEntry,\n type FetchHiddenAppsOptions,\n type HiddenApp,\n} from './apps.js';\nexport {\n fetchAccounts,\n switchAccount,\n type AccountSummary,\n type FetchAccountsOptions,\n} from './accounts.js';\nexport {\n fetchSearchCompanies,\n fetchSearchFilters,\n fetchSearchProfiles,\n fetchSkillSuggestions,\n searchSkills,\n type CompanySearchFilters,\n type CompanySearchResponse,\n type CompanySearchResult,\n type FilterOptions,\n type ProfileSearchResult,\n type ProfileSearchSuggestion,\n type SearchFilters,\n type SearchResponse,\n type SkillSearchResult,\n} from './search.js';\nexport {\n fetchSpeakers,\n fetchTalks,\n type SpeakerCard,\n type SpeakerGroup,\n type SpeakerDirectoryFilters,\n type SpeakersResponse,\n type TalkEvent,\n type TalkRow,\n type TalkSpeaker,\n type TalksResponse,\n} from './speakers.js';\nexport {\n fetchFeaturedProfile,\n fetchSimilarProfiles,\n fetchSuggestionCount,\n fetchSuggestions,\n type FeaturedProfile,\n type FetchSuggestionsOptions,\n type SimilarProfile,\n type SuggestionProfile,\n type SuggestionsResponse,\n} from './discovery.js';\nexport {\n fetchFollowing,\n followUser,\n getFollowers,\n getFollowing,\n fetchFollowingFeed,\n fetchFollowingFeedVersion,\n isNewerFollowingFeed,\n type FollowingFeedVersion,\n type FollowingFeedBuild,\n unfollowUser,\n type FetchFollowListOptions,\n type FetchFollowingFeedOptions,\n type FollowingFeedApp,\n type FollowingFeedEmptyReason,\n type FollowingFeedResponse,\n type FollowListPage,\n type FollowProfile,\n type FollowUserResult,\n type FollowingResponse,\n} from './follow.js';\nexport {\n getBlueskySuggestions,\n getMutuals,\n type FetchFollowProfilePageOptions,\n type FollowProfilePageResponse,\n} from './follow-extras.js';\nexport {\n addFeatureAllowlist,\n listFeatureAllowlist,\n removeFeatureAllowlist,\n type FeatureAllowlistResponse,\n type ListFeatureAllowlistOptions,\n} from './admin-feature-allowlists.js';\nexport {\n getAdminReviewQueues,\n type AdminReviewQueues,\n type GetAdminReviewQueuesOptions,\n} from './admin-review-queues.js';\nexport {\n fetchActivityFeed,\n fetchActivityTeaser,\n fetchHeatmapData,\n type ActivityFeedResponse,\n type ActivityItem,\n type ActivityItemLinkHealth,\n type ActivityTeaserResponse,\n type FetchActivityFeedOptions,\n type FetchActivityTeaserOptions,\n type HeatmapDay,\n type HeatmapResponse,\n} from './activity.js';\nexport {\n fetchMyGithubPullRequests,\n type GithubPullRequest,\n type MyGithubPullRequestsResponse,\n type FetchMyGithubPullRequestsOptions,\n} from './github-prs.js';\nexport {\n fetchRpgStatus,\n RpgItemStatusSchema,\n RpgStatusResponseSchema,\n type RpgItemStatus,\n type RpgStatusResponse,\n type FetchRpgStatusOptions,\n} from './rpg.js';\nexport { fetchEndorsementCount } from './endorsement.js';\nexport { fetchNetworkStreamCount, type FetchNetworkStreamCountOptions } from './stream.js';\nexport {\n checkAppAccount,\n createReaction,\n deleteReaction,\n fetchReactionStatus,\n type AccountCheckResult,\n type CheckAppAccountOptions,\n type FetchReactionStatusOptions,\n type ReactionError,\n type ReactionResult,\n type ReactionStatus,\n} from './reactions.js';\nexport {\n QUOTED_POSTS_BATCH_MAX,\n resolveQuotedPosts,\n type QuotedPostAuthor,\n type QuotedPostImage,\n type QuotedPostResult,\n type QuotedPostView,\n type ResolveQuotedPostsOptions,\n} from './quoted-posts.js';\nexport {\n castRoadmapVote,\n fetchMyRoadmapVotes,\n fetchRoadmapVotes,\n retractRoadmapVote,\n type CastRoadmapVoteResult,\n type FetchMyRoadmapVotesOptions,\n type RoadmapVoteError,\n type RoadmapVoteResult,\n type RoadmapVoter,\n type RoadmapVotesResponse,\n} from './roadmap.js';\nexport {\n deleteAccount,\n fetchWipePreview,\n resetProfile,\n type DeleteAccountResult,\n type ResetProfileResult,\n type PdsWipeOutcome,\n type WipePreview,\n} from './destructive.js';\nexport {\n deleteRepoRecords,\n fetchRepoInventory,\n repoExportUrl,\n type RepoDeleteInput,\n} from './repo-inventory.js';\nexport {\n checkNetworkMapJobStatus,\n fetchNetworkMap,\n initiateNetworkMapGeneration,\n isNetworkMapResponse,\n type NetworkMapEdge,\n type NetworkMapGenerationJob,\n type NetworkMapGraphData,\n type NetworkMapNode,\n type NetworkMapPendingJob,\n type NetworkMapResponse,\n} from './network-map.js';\n\nexport { fetchEntitySearch, selectEntity, importSearchEntities } from './entities.js';\n\nexport {\n submitOrgClaim,\n updateOrgProfile,\n requestOrgDomainChallenge,\n verifyOrgDomain,\n addOrgNotificationEmail,\n removeOrgNotificationEmail,\n type OrgClaimBinding,\n type OrgProfileEcho,\n type OrgClaimResult,\n type OrgProfileUpdateResult,\n type OrgDomainChallengeResult,\n type OrgDomainVerifyResult,\n type OrgNotificationEmailAddResult,\n type OrgNotificationEmailRemoveResult,\n} from './org.js';\n\nexport { fetchProfileSummary } from './profile-summary.js';\n\nexport { sifaQueryKeys, type SifaQueryKey } from '../keys.js';\nexport { createInvestment, updateInvestment, deleteInvestment } from './investments.js';\n"],"mappings":"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","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/query/fetchers/index.ts"],"sourcesContent":["/**\n * Fetcher-only barrel for `@singi-labs/sifa-sdk/query/fetchers`.\n *\n * Pure, no React imports. Safe to import from Next.js React Server\n * Components, edge runtimes, and any other context where React hooks\n * are unavailable. Client components should import from\n * `@singi-labs/sifa-sdk/query` to get hooks + Provider too.\n *\n * Keep in sync with `../index.ts`: every fetcher exported there should\n * also be exported here. Hooks and the Provider live only in the\n * `/query` barrel.\n */\n\nexport {\n ApiError,\n apiFetch,\n apiFetchOrNull,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\nexport { fetchAtFundLink, fetchProfile } from './profile.js';\nexport { fetchGetProfileView } from './get-profile-view.js';\nexport {\n deleteAvatarOverride,\n deleteNamePronunciationAudio,\n refreshPds,\n updateProfileOverride,\n updateProfileSelf,\n uploadAvatar,\n uploadNamePronunciationAudio,\n type ProfileIndustryInput,\n type ProfileSelfLocation,\n type RefreshPdsResult,\n type UpdateProfileOverrideInput,\n type UpdateProfileSelfInput,\n type UploadAvatarResult,\n type UploadPronunciationAudioResult,\n} from './profile-mutations.js';\nexport {\n createPosition,\n deletePosition,\n linkSkillToPosition,\n setPositionPrimary,\n unlinkSkillFromPosition,\n unsetPositionPrimary,\n updatePosition,\n} from './positions.js';\nexport { createEducation, deleteEducation, updateEducation } from './education.js';\nexport { setSectionPrimary, unsetSectionPrimary, type PrimarySection } from './section-primary.js';\nexport { createSkill, deleteSkill, updateSkill } from './skills.js';\nexport { createRecord, deleteRecord, updateRecord } from './records.js';\nexport {\n createProfileLocation,\n deleteProfileLocation,\n updateProfileLocation,\n type ProfileLocationAddress,\n type ProfileLocationInput,\n} from './profile-locations.js';\nexport {\n createExternalAccount,\n deleteExternalAccount,\n fetchExternalAccounts,\n setExternalAccountPrimary,\n unsetExternalAccountPrimary,\n updateExternalAccount,\n verifyExternalAccount,\n type CreateExternalAccountResult,\n type ExternalAccountInput,\n type VerifyExternalAccountResult,\n} from './external-accounts.js';\nexport {\n createEndorsement,\n confirmEndorsement,\n type EndorsementInput,\n type ConfirmEndorsementInput,\n} from './endorsements.js';\nexport {\n fetchReceivedEndorsements,\n type ReceivedEndorsement,\n type ReceivedEndorsementsPage,\n} from './received-endorsements.js';\nexport {\n fetchReciprocityCandidate,\n type ReciprocityCandidate,\n type ReciprocitySkill,\n} from './reciprocity.js';\nexport {\n fetchPendingEndorsements,\n dismissEndorsement,\n type PendingEndorsement,\n type PendingEndorsementsPage,\n type DismissEndorsementInput,\n type FetchPendingEndorsementsOptions,\n} from './endorsement-inbox.js';\nexport {\n fetchPendingConfirmations,\n fetchGivenConfirmations,\n fetchViewerPositionConfirmations,\n createConfirmation,\n dismissConfirmation,\n revokeConfirmation,\n type PendingConfirmation,\n type PendingConfirmationsPage,\n type GivenConfirmation,\n type ConfirmationInput,\n type ConfirmationSubjectInput,\n type FetchConfirmationsOptions,\n} from './confirmations.js';\nexport { fetchInboxCounts, type InboxCounts, type FetchInboxCountsOptions } from './inbox.js';\nexport {\n fetchUnlinkedPositions,\n dismissUnlinkedPosition,\n type UnlinkedPosition,\n type UnlinkedPositionsResult,\n type FetchUnlinkedPositionsOptions,\n type DismissUnlinkedPositionInput,\n} from './unlinked-positions.js';\nexport {\n fetchProfileCompleteness,\n PROFILE_COMPLETENESS_SIGNALS,\n type ProfileCompleteness,\n type ProfileCompletenessSignal,\n type FetchProfileCompletenessOptions,\n} from './profile-completeness.js';\nexport { hideKeytraceClaim, unhideKeytraceClaim } from './keytrace-claims.js';\nexport { revealMarqueDomain, unrevealMarqueDomain } from './marque-domains.js';\nexport {\n bulkHideStandardPublications,\n bulkUnhideStandardPublications,\n hideOrcidPublication,\n hideSifaPublication,\n hideStandardPublication,\n refreshOrcidPublications,\n unhideOrcidPublication,\n unhideSifaPublication,\n unhideStandardPublication,\n type RefreshOrcidPublicationsResult,\n} from './publications.js';\nexport {\n bulkHideProfileItems,\n bulkUnhideProfileItems,\n hideProfileItem,\n unhideProfileItem,\n HIDDEN_ITEM_SOURCES,\n HIDDEN_ITEM_TYPES,\n type BulkHideProfileItemInput,\n type HiddenItemSource,\n type HiddenItemType,\n type HideProfileItemInput,\n} from './profile-items-hide.js';\nexport {\n fetchHiddenActivityItems,\n hideActivityItem,\n unhideActivityItem,\n type FetchHiddenActivityItemsOptions,\n type HiddenActivityItem,\n type HideActivityItemInput,\n type UnhideActivityItemInput,\n} from './activity-items-hide.js';\nexport {\n fetchActivityPreferences,\n fetchSiteActivityPreset,\n updateActivityPreferences,\n type ActivityPreferences,\n type FetchActivityPreferencesOptions,\n type SiteActivityPresetResponse,\n type UpdateActivityPreferencesInput,\n} from './activity-preferences.js';\nexport { fetchStats, type StatsResponse } from './stats.js';\nexport {\n fetchAppsRegistry,\n fetchHiddenApps,\n type AppRegistryEntry,\n type FetchHiddenAppsOptions,\n type HiddenApp,\n} from './apps.js';\nexport {\n fetchAccounts,\n switchAccount,\n type AccountSummary,\n type FetchAccountsOptions,\n} from './accounts.js';\nexport {\n fetchSearchCompanies,\n fetchSearchFilters,\n fetchSearchProfiles,\n fetchSkillSuggestions,\n searchSkills,\n type CompanySearchFilters,\n type CompanySearchResponse,\n type CompanySearchResult,\n type FilterOptions,\n type ProfileSearchResult,\n type ProfileSearchSuggestion,\n type SearchFilters,\n type SearchResponse,\n type SkillSearchResult,\n} from './search.js';\nexport {\n fetchSpeakers,\n fetchTalks,\n type SpeakerCard,\n type SpeakerGroup,\n type SpeakerDirectoryFilters,\n type SpeakersResponse,\n type TalkEvent,\n type TalkRow,\n type TalkSpeaker,\n type TalksResponse,\n} from './speakers.js';\nexport {\n fetchFeaturedProfile,\n fetchSimilarProfiles,\n fetchSuggestionCount,\n fetchSuggestions,\n type FeaturedProfile,\n type FetchSuggestionsOptions,\n type SimilarProfile,\n type SuggestionProfile,\n type SuggestionsResponse,\n} from './discovery.js';\nexport {\n fetchFollowing,\n followUser,\n getFollowers,\n getFollowing,\n fetchFollowingFeed,\n fetchFollowingFeedVersion,\n isNewerFollowingFeed,\n type FollowingFeedVersion,\n type FollowingFeedBuild,\n unfollowUser,\n type FetchFollowListOptions,\n type FetchFollowingFeedOptions,\n type FollowingFeedApp,\n type FollowingFeedEmptyReason,\n type FollowingFeedResponse,\n type FollowListPage,\n type FollowProfile,\n type FollowUserResult,\n type FollowingResponse,\n} from './follow.js';\nexport {\n getBlueskySuggestions,\n getMutuals,\n type FetchFollowProfilePageOptions,\n type FollowProfilePageResponse,\n} from './follow-extras.js';\nexport {\n addFeatureAllowlist,\n listFeatureAllowlist,\n removeFeatureAllowlist,\n type FeatureAllowlistResponse,\n type ListFeatureAllowlistOptions,\n} from './admin-feature-allowlists.js';\nexport {\n getAdminReviewQueues,\n type AdminReviewQueues,\n type GetAdminReviewQueuesOptions,\n} from './admin-review-queues.js';\nexport {\n fetchActivityFeed,\n fetchActivityTeaser,\n fetchHeatmapData,\n type ActivityFeedResponse,\n type ActivityItem,\n type ActivityItemLinkHealth,\n type ActivityTeaserResponse,\n type FetchActivityFeedOptions,\n type FetchActivityTeaserOptions,\n type HeatmapDay,\n type HeatmapResponse,\n} from './activity.js';\nexport {\n fetchMyGithubPullRequests,\n type GithubPullRequest,\n type MyGithubPullRequestsResponse,\n type FetchMyGithubPullRequestsOptions,\n} from './github-prs.js';\nexport {\n fetchRpgStatus,\n RpgItemStatusSchema,\n RpgStatusResponseSchema,\n type RpgItemStatus,\n type RpgStatusResponse,\n type FetchRpgStatusOptions,\n} from './rpg.js';\nexport { fetchEndorsementCount } from './endorsement.js';\nexport { fetchNetworkStreamCount, type FetchNetworkStreamCountOptions } from './stream.js';\nexport {\n checkAppAccount,\n createReaction,\n deleteReaction,\n fetchReactionStatus,\n type AccountCheckResult,\n type CheckAppAccountOptions,\n type FetchReactionStatusOptions,\n type ReactionError,\n type ReactionResult,\n type ReactionStatus,\n} from './reactions.js';\nexport {\n QUOTED_POSTS_BATCH_MAX,\n resolveQuotedPosts,\n type QuotedPostAuthor,\n type QuotedPostImage,\n type QuotedPostResult,\n type QuotedPostView,\n type ResolveQuotedPostsOptions,\n} from './quoted-posts.js';\nexport {\n castRoadmapVote,\n fetchMyRoadmapVotes,\n fetchRoadmapVotes,\n retractRoadmapVote,\n type CastRoadmapVoteResult,\n type FetchMyRoadmapVotesOptions,\n type RoadmapVoteError,\n type RoadmapVoteResult,\n type RoadmapVoter,\n type RoadmapVotesResponse,\n} from './roadmap.js';\nexport {\n deleteAccount,\n fetchWipePreview,\n resetProfile,\n type DeleteAccountResult,\n type ResetProfileResult,\n type PdsWipeOutcome,\n type WipePreview,\n} from './destructive.js';\nexport {\n deleteRepoRecords,\n fetchRepoInventory,\n repoExportUrl,\n type RepoDeleteInput,\n} from './repo-inventory.js';\nexport {\n checkNetworkMapJobStatus,\n fetchNetworkMap,\n initiateNetworkMapGeneration,\n isNetworkMapResponse,\n type NetworkMapEdge,\n type NetworkMapGenerationJob,\n type NetworkMapGraphData,\n type NetworkMapNode,\n type NetworkMapPendingJob,\n type NetworkMapResponse,\n} from './network-map.js';\n\nexport { fetchEntitySearch, selectEntity, importSearchEntities } from './entities.js';\n\nexport {\n submitOrgClaim,\n updateOrgProfile,\n requestOrgDomainChallenge,\n verifyOrgDomain,\n addOrgNotificationEmail,\n removeOrgNotificationEmail,\n type OrgClaimBinding,\n type OrgProfileEcho,\n type OrgClaimResult,\n type OrgProfileUpdateResult,\n type OrgDomainChallengeResult,\n type OrgDomainVerifyResult,\n type OrgNotificationEmailAddResult,\n type OrgNotificationEmailRemoveResult,\n} from './org.js';\n\nexport { fetchProfileSummary } from './profile-summary.js';\n\nexport { sifaQueryKeys, type SifaQueryKey } from '../keys.js';\nexport { createInvestment, updateInvestment, deleteInvestment } from './investments.js';\n"],"mappings":"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","names":[]}
|
|
@@ -8,6 +8,11 @@ var RpgItemStatusSchema = z.object({
|
|
|
8
8
|
category: z.string(),
|
|
9
9
|
earned: z.boolean(),
|
|
10
10
|
state: z.enum(["locked", "earned", "given", "claimed"]),
|
|
11
|
+
/**
|
|
12
|
+
* True when the viewer's rpg.actor character wears this (claimed) item.
|
|
13
|
+
* Defaults to false for an older API that does not send it.
|
|
14
|
+
*/
|
|
15
|
+
worn: z.boolean().default(false),
|
|
11
16
|
iconUrl: z.string().url().nullable()
|
|
12
17
|
});
|
|
13
18
|
var RpgStatusResponseSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/query/fetchers/rpg.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/** One rpg.actor item and the viewer's progress on it, as served by `GET /api/rpg/status`. */\nexport const RpgItemStatusSchema = z.object({\n id: z.string(),\n title: z.string(),\n description: z.string(),\n category: z.string(),\n earned: z.boolean(),\n state: z.enum(['locked', 'earned', 'given', 'claimed']),\n iconUrl: z.string().url().nullable(),\n});\nexport type RpgItemStatus = z.infer<typeof RpgItemStatusSchema>;\n\nexport const RpgStatusResponseSchema = z.object({\n hasCharacter: z.boolean(),\n /** True when the user granted the `repo:equipment.rpg.item` OAuth scope. */\n canWriteItems: z.boolean(),\n /** True when collecting (Sifa writing the gift) is switched on for this user. */\n canCollect: z.boolean().default(false),\n items: z.array(RpgItemStatusSchema),\n});\nexport type RpgStatusResponse = z.infer<typeof RpgStatusResponseSchema>;\n\nexport interface FetchRpgStatusOptions extends ApiFetchOptions {\n /** Forwarded as the `cookie` header for server-side (SSR) calls. */\n cookieHeader?: string;\n}\n\n/**\n * Fetch the authenticated viewer's rpg.actor item status. Auth-scoped: relies\n * on the session cookie (`credentials: 'include'`).\n */\nexport async function fetchRpgStatus(\n config: SifaApiConfig,\n options: FetchRpgStatusOptions = {},\n): Promise<RpgStatusResponse> {\n const { cookieHeader, ...fetchOptions } = options;\n\n const headers: Record<string, string> = { ...(options.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n\n const data = await apiFetch<unknown>(config, '/api/rpg/status', {\n credentials: 'include',\n cache: 'no-store',\n ...fetchOptions,\n headers,\n });\n\n return RpgStatusResponseSchema.parse(data);\n}\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,gBAA0D;AAG5D,IAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,IAAI,EAAE,OAAO;AAAA,EACb,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO;AAAA,EACtB,UAAU,EAAE,OAAO;AAAA,EACnB,QAAQ,EAAE,QAAQ;AAAA,EAClB,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,SAAS,SAAS,CAAC;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../src/query/fetchers/rpg.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/** One rpg.actor item and the viewer's progress on it, as served by `GET /api/rpg/status`. */\nexport const RpgItemStatusSchema = z.object({\n id: z.string(),\n title: z.string(),\n description: z.string(),\n category: z.string(),\n earned: z.boolean(),\n state: z.enum(['locked', 'earned', 'given', 'claimed']),\n /**\n * True when the viewer's rpg.actor character wears this (claimed) item.\n * Defaults to false for an older API that does not send it.\n */\n worn: z.boolean().default(false),\n iconUrl: z.string().url().nullable(),\n});\nexport type RpgItemStatus = z.infer<typeof RpgItemStatusSchema>;\n\nexport const RpgStatusResponseSchema = z.object({\n hasCharacter: z.boolean(),\n /** True when the user granted the `repo:equipment.rpg.item` OAuth scope. */\n canWriteItems: z.boolean(),\n /** True when collecting (Sifa writing the gift) is switched on for this user. */\n canCollect: z.boolean().default(false),\n items: z.array(RpgItemStatusSchema),\n});\nexport type RpgStatusResponse = z.infer<typeof RpgStatusResponseSchema>;\n\nexport interface FetchRpgStatusOptions extends ApiFetchOptions {\n /** Forwarded as the `cookie` header for server-side (SSR) calls. */\n cookieHeader?: string;\n}\n\n/**\n * Fetch the authenticated viewer's rpg.actor item status. Auth-scoped: relies\n * on the session cookie (`credentials: 'include'`).\n */\nexport async function fetchRpgStatus(\n config: SifaApiConfig,\n options: FetchRpgStatusOptions = {},\n): Promise<RpgStatusResponse> {\n const { cookieHeader, ...fetchOptions } = options;\n\n const headers: Record<string, string> = { ...(options.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n\n const data = await apiFetch<unknown>(config, '/api/rpg/status', {\n credentials: 'include',\n cache: 'no-store',\n ...fetchOptions,\n headers,\n });\n\n return RpgStatusResponseSchema.parse(data);\n}\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,gBAA0D;AAG5D,IAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,IAAI,EAAE,OAAO;AAAA,EACb,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO;AAAA,EACtB,UAAU,EAAE,OAAO;AAAA,EACnB,QAAQ,EAAE,QAAQ;AAAA,EAClB,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,SAAS,SAAS,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtD,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EAC/B,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AACrC,CAAC;AAGM,IAAM,0BAA0B,EAAE,OAAO;AAAA,EAC9C,cAAc,EAAE,QAAQ;AAAA;AAAA,EAExB,eAAe,EAAE,QAAQ;AAAA;AAAA,EAEzB,YAAY,EAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EACrC,OAAO,EAAE,MAAM,mBAAmB;AACpC,CAAC;AAYD,eAAsB,eACpB,QACA,UAAiC,CAAC,GACN;AAC5B,QAAM,EAAE,cAAc,GAAG,aAAa,IAAI;AAE1C,QAAM,UAAkC,EAAE,GAAI,QAAQ,WAAW,CAAC,EAAG;AACrE,MAAI,aAAc,SAAQ,SAAS;AAEnC,QAAM,OAAO,MAAM,SAAkB,QAAQ,mBAAmB;AAAA,IAC9D,aAAa;AAAA,IACb,OAAO;AAAA,IACP,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO,wBAAwB,MAAM,IAAI;AAC3C;","names":[]}
|
|
@@ -255,7 +255,10 @@ var sifaQueryKeys = {
|
|
|
255
255
|
feed: (handleOrDid, opts) => ["sifa", "activity", "feed", handleOrDid, opts],
|
|
256
256
|
// Session-scoped: the AppView reads the caller's own hides from their
|
|
257
257
|
// cookie, so there is only ever one list per client.
|
|
258
|
-
hiddenItems: () => ["sifa", "activity", "hidden-items"]
|
|
258
|
+
hiddenItems: () => ["sifa", "activity", "hidden-items"],
|
|
259
|
+
// Session-scoped, like hiddenItems: the caller's own preferences.
|
|
260
|
+
preferences: () => ["sifa", "activity", "preferences"],
|
|
261
|
+
sitePreset: (handleOrDid) => ["sifa", "activity", "site-preset", handleOrDid]
|
|
259
262
|
},
|
|
260
263
|
github: {
|
|
261
264
|
all: () => ["sifa", "github"],
|
|
@@ -2133,6 +2136,72 @@ var useUnhideActivityItem = makeHideHook(
|
|
|
2133
2136
|
(config, input) => unhideActivityItem(config, input)
|
|
2134
2137
|
);
|
|
2135
2138
|
|
|
2139
|
+
// src/query/fetchers/activity-preferences.ts
|
|
2140
|
+
async function fetchActivityPreferences(config, options = {}) {
|
|
2141
|
+
const headers = { ...options.headers ?? {} };
|
|
2142
|
+
if (options.cookieHeader) headers.cookie = options.cookieHeader;
|
|
2143
|
+
try {
|
|
2144
|
+
return await apiFetch(config, "/api/activity-preferences", {
|
|
2145
|
+
credentials: "include",
|
|
2146
|
+
cache: "no-store",
|
|
2147
|
+
...options,
|
|
2148
|
+
headers
|
|
2149
|
+
});
|
|
2150
|
+
} catch {
|
|
2151
|
+
return null;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
function updateActivityPreferences(config, input, options = {}) {
|
|
2155
|
+
return apiWrite(config, "/api/activity-preferences", "PUT", {
|
|
2156
|
+
...options,
|
|
2157
|
+
body: input
|
|
2158
|
+
});
|
|
2159
|
+
}
|
|
2160
|
+
async function fetchSiteActivityPreset(config, handleOrDid, options = {}) {
|
|
2161
|
+
try {
|
|
2162
|
+
return await apiFetch(
|
|
2163
|
+
config,
|
|
2164
|
+
`/api/activity-preferences/site-preset/${encodeIdentifier(handleOrDid)}`,
|
|
2165
|
+
options
|
|
2166
|
+
);
|
|
2167
|
+
} catch {
|
|
2168
|
+
return null;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
// src/query/hooks/use-activity-preferences.ts
|
|
2173
|
+
function useActivityPreferences(options) {
|
|
2174
|
+
const config = useSifaConfig();
|
|
2175
|
+
return reactQuery.useQuery({
|
|
2176
|
+
queryKey: sifaQueryKeys.activity.preferences(),
|
|
2177
|
+
queryFn: () => fetchActivityPreferences(config),
|
|
2178
|
+
...options
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
function useSiteActivityPreset(handleOrDid, options) {
|
|
2182
|
+
const config = useSifaConfig();
|
|
2183
|
+
return reactQuery.useQuery({
|
|
2184
|
+
queryKey: sifaQueryKeys.activity.sitePreset(handleOrDid ?? ""),
|
|
2185
|
+
queryFn: () => fetchSiteActivityPreset(config, handleOrDid ?? ""),
|
|
2186
|
+
enabled: Boolean(handleOrDid) && (options?.enabled ?? true),
|
|
2187
|
+
...options
|
|
2188
|
+
});
|
|
2189
|
+
}
|
|
2190
|
+
function useUpdateActivityPreferences(options) {
|
|
2191
|
+
const config = useSifaConfig();
|
|
2192
|
+
const queryClient = reactQuery.useQueryClient();
|
|
2193
|
+
return reactQuery.useMutation({
|
|
2194
|
+
...options,
|
|
2195
|
+
mutationFn: (input) => updateActivityPreferences(config, input),
|
|
2196
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
2197
|
+
if (result.success) {
|
|
2198
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.activity.all() });
|
|
2199
|
+
}
|
|
2200
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2136
2205
|
// src/query/fetchers/stats.ts
|
|
2137
2206
|
async function fetchStats(config, options = {}) {
|
|
2138
2207
|
try {
|
|
@@ -2904,6 +2973,9 @@ async function fetchActivityTeaser(config, handleOrDid, options = {}) {
|
|
|
2904
2973
|
async function fetchActivityFeed(config, handleOrDid, options = {}) {
|
|
2905
2974
|
const params = new URLSearchParams();
|
|
2906
2975
|
if (options.category) params.set("category", options.category);
|
|
2976
|
+
if (options.categories?.length) params.set("categories", options.categories.join(","));
|
|
2977
|
+
if (options.tags?.length) params.set("tags", options.tags.join(","));
|
|
2978
|
+
if (options.preset) params.set("preset", options.preset);
|
|
2907
2979
|
if (options.limit) params.set("limit", String(options.limit));
|
|
2908
2980
|
if (options.cursor) params.set("cursor", options.cursor);
|
|
2909
2981
|
const qs = params.toString();
|
|
@@ -3859,6 +3931,7 @@ exports.SifaProvider = SifaProvider;
|
|
|
3859
3931
|
exports.sifaQueryKeys = sifaQueryKeys;
|
|
3860
3932
|
exports.useAccounts = useAccounts;
|
|
3861
3933
|
exports.useActivityFeed = useActivityFeed;
|
|
3934
|
+
exports.useActivityPreferences = useActivityPreferences;
|
|
3862
3935
|
exports.useActivityTeaser = useActivityTeaser;
|
|
3863
3936
|
exports.useAddFeatureAllowlist = useAddFeatureAllowlist;
|
|
3864
3937
|
exports.useAddOrgNotificationEmail = useAddOrgNotificationEmail;
|
|
@@ -3961,6 +4034,7 @@ exports.useSetPositionPrimary = useSetPositionPrimary;
|
|
|
3961
4034
|
exports.useSetSectionPrimary = useSetSectionPrimary;
|
|
3962
4035
|
exports.useSifaConfig = useSifaConfig;
|
|
3963
4036
|
exports.useSimilarProfiles = useSimilarProfiles;
|
|
4037
|
+
exports.useSiteActivityPreset = useSiteActivityPreset;
|
|
3964
4038
|
exports.useSkillSuggestions = useSkillSuggestions;
|
|
3965
4039
|
exports.useStats = useStats;
|
|
3966
4040
|
exports.useSuggestionCount = useSuggestionCount;
|
|
@@ -3978,6 +4052,7 @@ exports.useUnrevealMarqueDomain = useUnrevealMarqueDomain;
|
|
|
3978
4052
|
exports.useUnsetExternalAccountPrimary = useUnsetExternalAccountPrimary;
|
|
3979
4053
|
exports.useUnsetPositionPrimary = useUnsetPositionPrimary;
|
|
3980
4054
|
exports.useUnsetSectionPrimary = useUnsetSectionPrimary;
|
|
4055
|
+
exports.useUpdateActivityPreferences = useUpdateActivityPreferences;
|
|
3981
4056
|
exports.useUpdateEducation = useUpdateEducation;
|
|
3982
4057
|
exports.useUpdateExternalAccount = useUpdateExternalAccount;
|
|
3983
4058
|
exports.useUpdateInvestment = useUpdateInvestment;
|