@singi-labs/sifa-sdk 0.20.1 → 0.21.0
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 +53 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -16
- package/dist/index.d.ts +13 -16
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs +40 -32
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +1 -1
- package/dist/query/fetchers/index.d.ts +1 -1
- package/dist/query/fetchers/index.js +6 -8
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/roadmap.js +41 -25
- package/dist/query/fetchers/roadmap.js.map +1 -1
- package/dist/query/hooks/index.cjs +31 -81
- 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 +3 -6
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-roadmap-mutations.js +9 -31
- package/dist/query/hooks/use-roadmap-mutations.js.map +1 -1
- package/dist/query/index.cjs +46 -77
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +12 -14
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +0 -5
- package/dist/query/keys.js.map +1 -1
- package/dist/roadmap/board-body.js +55 -0
- package/dist/roadmap/board-body.js.map +1 -0
- package/dist/roadmap/index.js +0 -91
- package/dist/roadmap/index.js.map +1 -1
- package/dist/{use-user-settings-YIv1C3qN.d.cts → use-user-settings-Bn6g8bgr.d.cts} +11 -14
- package/dist/{use-user-settings-CrS3ZXoW.d.ts → use-user-settings-DQ6Dyby7.d.ts} +11 -14
- package/dist/{user-settings-Bvafly0r.d.ts → user-settings-BdNrDa9O.d.ts} +54 -37
- package/dist/{user-settings-DWq91Gj-.d.cts → user-settings-C8JUD4DM.d.cts} +54 -37
- package/package.json +1 -1
- package/dist/query/hooks/use-roadmap.js +0 -31
- package/dist/query/hooks/use-roadmap.js.map +0 -1
package/dist/query/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a0 as ApiFetchOptions, a1 as SifaApiConfig, a2 as WriteResult, a3 as CreateResult, c as AdultContentLabel } from '../types-JydVIhN5.cjs';
|
|
2
2
|
export { a4 as ApiError, 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, ae as fetchSearchFilters, af as fetchSearchProfiles, ag as fetchSkillSuggestions, ah as searchSkills } from '../types-JydVIhN5.cjs';
|
|
3
|
-
export { A as AddFeatureAllowlistVariables, a as AttestationRequest, b as AttestationRequestSchema, c as AttestationStatus, C as CreateOrgAttestationInput, d as CreateOrgAttestationResult, e as CreateReactionVariables, f as CreateRecordVariables, D as DeleteReactionVariables, g as DeleteRecordVariables, F as FetchOrgAttestationOptions, h as FetchProfileEmailsOptions, i as FetchVerificationLogOptions, j as FollowVariables, O as OrgAttestation, k as OrgAttestationSchema, P as PositionSkillLinkVariables, l as ProfileEmail, m as ProfileEmailSchema, n as ProfileEmailSendStatus, o as ProfileEmails, R as RemoveFeatureAllowlistVariables, p as RequestEmploymentConfirmationInput, q as RequestEmploymentConfirmationResult, S as SifaProvider, r as SifaProviderProps, U as UnfollowVariables, s as UpdateEducationVariables, t as UpdateExternalAccountVariables, u as UpdatePositionVariables, v as UpdateProfileLocationVariables, w as UpdateRecordVariables, x as UpdateSkillSubCategoriesVariables, y as UpdateSkillVariables, z as UseEntitySearchOptions, B as UseMyGithubPullRequestsParams, V as VERIFICATION_EVENT_KINDS, E as VerificationEventKind, G as VerificationLog, H as VerificationLogEntry, I as VerificationLogEntrySchema, J as VerificationLogSchema, K as addProfileEmail, L as createOrgAttestation, M as fetchAttestationRequests, N as fetchOrgAttestations, Q as fetchProfileEmails, T as fetchVerificationLog, W as offboardOrgAttestation, X as rejectAttestationRequest, Y as removeProfileEmail, Z as requestEmploymentConfirmation, _ as resendProfileEmailVerification, $ as revokeOrgAttestation, a0 as useAccounts, a1 as useActivityFeed, a2 as useActivityPreferences, a3 as useActivityTeaser, a4 as useAddFeatureAllowlist, a5 as useAddOrgNotificationEmail, a6 as useAddProfileEmail, a7 as useAdminReviewQueues, a8 as useAppAccountCheck, a9 as useAppsRegistry, aa as useAtFundLink, ab as useAttestationRequests, ac as useBlueskySuggestions, ad as useBulkHideProfileItems, ae as useBulkHideStandardPublications, af as useBulkUnhideProfileItems, ag as useBulkUnhideStandardPublications, ah as useCanonicalSkillSearch, ai as
|
|
3
|
+
export { A as AddFeatureAllowlistVariables, a as AttestationRequest, b as AttestationRequestSchema, c as AttestationStatus, C as CreateOrgAttestationInput, d as CreateOrgAttestationResult, e as CreateReactionVariables, f as CreateRecordVariables, D as DeleteReactionVariables, g as DeleteRecordVariables, F as FetchOrgAttestationOptions, h as FetchProfileEmailsOptions, i as FetchVerificationLogOptions, j as FollowVariables, O as OrgAttestation, k as OrgAttestationSchema, P as PositionSkillLinkVariables, l as ProfileEmail, m as ProfileEmailSchema, n as ProfileEmailSendStatus, o as ProfileEmails, R as RemoveFeatureAllowlistVariables, p as RequestEmploymentConfirmationInput, q as RequestEmploymentConfirmationResult, S as SifaProvider, r as SifaProviderProps, U as UnfollowVariables, s as UpdateEducationVariables, t as UpdateExternalAccountVariables, u as UpdatePositionVariables, v as UpdateProfileLocationVariables, w as UpdateRecordVariables, x as UpdateSkillSubCategoriesVariables, y as UpdateSkillVariables, z as UseEntitySearchOptions, B as UseMyGithubPullRequestsParams, V as VERIFICATION_EVENT_KINDS, E as VerificationEventKind, G as VerificationLog, H as VerificationLogEntry, I as VerificationLogEntrySchema, J as VerificationLogSchema, K as addProfileEmail, L as createOrgAttestation, M as fetchAttestationRequests, N as fetchOrgAttestations, Q as fetchProfileEmails, T as fetchVerificationLog, W as offboardOrgAttestation, X as rejectAttestationRequest, Y as removeProfileEmail, Z as requestEmploymentConfirmation, _ as resendProfileEmailVerification, $ as revokeOrgAttestation, a0 as useAccounts, a1 as useActivityFeed, a2 as useActivityPreferences, a3 as useActivityTeaser, a4 as useAddFeatureAllowlist, a5 as useAddOrgNotificationEmail, a6 as useAddProfileEmail, a7 as useAdminReviewQueues, a8 as useAppAccountCheck, a9 as useAppsRegistry, aa as useAtFundLink, ab as useAttestationRequests, ac as useBlueskySuggestions, ad as useBulkHideProfileItems, ae as useBulkHideStandardPublications, af as useBulkUnhideProfileItems, ag as useBulkUnhideStandardPublications, ah as useCanonicalSkillSearch, ai as useCastRoadmapItemVote, aj as useClearCompletenessDismissals, ak as useCreateConfirmation, al as useCreateEducation, am as useCreateEndorsement, an as useCreateExternalAccount, ao as useCreateOrgAttestation, ap as useCreatePosition, aq as useCreateProfileLocation, ar as useCreateReaction, as as useCreateRecord, at as useCreateSkill, au as useDebouncedValue, av as useDeleteAccount, aw as useDeleteAvatarOverride, ax as useDeleteEducation, ay as useDeleteExternalAccount, az as useDeleteNamePronunciationAudio, aA as useDeletePosition, aB as useDeleteProfileLocation, aC as useDeleteReaction, aD as useDeleteRecord, aE as useDeleteRepoRecords, aF as useDeleteSkill, aG as useDismissCompletenessSignal, aH as useDismissConfirmation, aI as useDismissUnlinkedPosition, aJ as useEndorsementCount, aK as useEntitySearch, aL as useExternalAccounts, aM as useFeatureAllowlist, aN as useFeaturedProfile, aO as useFollow, aP as useFollowers, aQ as useFollowing, aR as useFollowingFeed, aS as useFollowingFeedVersion, aT as useFollowingList, aU as useGetProfileView, aV as useGivenConfirmations, aW as useHeatmapData, aX as useHiddenActivityItems, aY as useHiddenApps, aZ as useHideActivityItem, a_ as useHideKeytraceClaim, a$ as useHideOrcidPublication, b0 as useHideProfileItem, b1 as useHideSifaPublication, b2 as useHideStandardPublication, b3 as useImportSearchEntities, b4 as useInboxCounts, b5 as useLinkSkillToPosition, b6 as useMintEntityDomain, b7 as useMutuals, b8 as useMyGithubPullRequests, b9 as useNetworkStreamCount, ba as useOffboardOrgAttestation, bb as useOrgAttestations, bc as useOrgClaim, bd as useOrgDomainChallenge, be as useOrgDomainVerify, bf as useOrgProfile, bg as usePendingConfirmations, bh as useProfile, bi as useProfileCompleteness, bj as useProfileEmails, bk as useReactionStatus, bl as useRefreshOrcidPublications, bm as useRefreshPds, bn as useRejectAttestationRequest, bo as useRemoveFeatureAllowlist, bp as useRemoveOrgNotificationEmail, bq as useRemoveProfileEmail, br as useRepoInventory, bs as useRequestEmploymentConfirmation, bt as useResendProfileEmailVerification, bu as useResetProfile, bv as useResolveEntityDomain, bw as useRetractRoadmapItemVote, bx as useRevealMarqueDomain, by as useRevokeConfirmation, bz as useRevokeOrgAttestation, bA as useRpgClaimable, bB as useRpgStatus, bC as useSearchFilters, bD as useSearchProfiles, bE as useSelectEntity, bF as useSetExternalAccountPrimary, bG as useSetPositionPrimary, bH as useSetSectionPrimary, bI as useSifaConfig, bJ as useSimilarProfiles, bK as useSiteActivityPreset, bL as useSkillSuggestions, bM as useStats, bN as useSuggestionCount, bO as useSuggestions, bP as useUnfollow, bQ as useUnhideActivityItem, bR as useUnhideKeytraceClaim, bS as useUnhideOrcidPublication, bT as useUnhideProfileItem, bU as useUnhideSifaPublication, bV as useUnhideStandardPublication, bW as useUnlinkSkillFromPosition, bX as useUnlinkedPositions, bY as useUnrevealMarqueDomain, bZ as useUnsetExternalAccountPrimary, b_ as useUnsetPositionPrimary, b$ as useUnsetSectionPrimary, c0 as useUpdateActivityPreferences, c1 as useUpdateEducation, c2 as useUpdateExternalAccount, c3 as useUpdateOrgProfile, c4 as useUpdatePosition, c5 as useUpdateProfileLocation, c6 as useUpdateProfileOverride, c7 as useUpdateProfileSelf, c8 as useUpdateRecord, c9 as useUpdateSkill, ca as useUpdateSkillSubCategories, cb as useUpdateUserSettings, cc as useUploadAvatar, cd as useUploadNamePronunciationAudio, ce as useUserSettings, cf as useVerificationLog, cg as useVerifyExternalAccount, ch as useWipePreview } from '../use-user-settings-Bn6g8bgr.cjs';
|
|
4
4
|
import { R as ReceivedEndorsementsPage, a as ReciprocityCandidate, D as DismissEndorsementInput, P as PendingEndorsementsPage } from '../network-map-DJonNOl0.cjs';
|
|
5
5
|
export { F as FetchGermMessageLinkOptions, b as FetchNetworkStreamCountOptions, c as FetchPendingEndorsementsOptions, G as GermMessageLink, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, j as ReceivedEndorsement, k as ReciprocitySkill, S as SpeakerCard, l as SpeakerDirectoryFilters, m as SpeakerGroup, n as SpeakersResponse, T as TalkEvent, o as TalkRow, p as TalkSpeaker, q as TalksResponse, r as checkNetworkMapJobStatus, s as createEducation, t as createPosition, u as createRecord, v as deleteEducation, w as deletePosition, x as deleteRecord, y as dismissEndorsement, z as fetchAtFundLink, A as fetchEndorsementCount, B as fetchEntitySearch, C as fetchGermMessageLink, E as fetchGetProfileView, H as fetchNetworkMap, I as fetchNetworkStreamCount, J as fetchPendingEndorsements, K as fetchProfile, L as fetchProfileSummary, M as fetchReceivedEndorsements, O as fetchReciprocityCandidate, Q as fetchSpeakers, U as fetchTalks, V as germRedirectPath, W as hideKeytraceClaim, X as importSearchEntities, Y as initiateNetworkMapGeneration, Z as isNetworkMapResponse, _ as linkSkillToPosition, $ as mintEntityDomain, a0 as resolveEntityDomain, a1 as revealMarqueDomain, a2 as selectEntity, a3 as setPositionPrimary, a4 as unhideKeytraceClaim, a5 as unlinkSkillFromPosition, a6 as unrevealMarqueDomain, a7 as unsetPositionPrimary, a8 as updateEducation, a9 as updatePosition, aa as updateRecord } from '../network-map-DJonNOl0.cjs';
|
|
6
|
-
import { s as sifaQueryKeys, C as ConfirmEndorsementInput, a as ConfirmEndorsementResult } from '../user-settings-
|
|
7
|
-
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, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissCompletenessSignalInput, p as DismissUnlinkedPositionInput, E as EndorsementInput, q as ExternalAccountInput, F as FeatureAllowlistResponse, r as FeaturedProfile, t as FetchAccountsOptions, u as FetchActivityFeedOptions, v as FetchActivityPreferencesOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as
|
|
6
|
+
import { s as sifaQueryKeys, C as ConfirmEndorsementInput, a as ConfirmEndorsementResult } from '../user-settings-C8JUD4DM.cjs';
|
|
7
|
+
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, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissCompletenessSignalInput, p as DismissUnlinkedPositionInput, E as EndorsementInput, q as ExternalAccountInput, F as FeatureAllowlistResponse, r as FeaturedProfile, t as FetchAccountsOptions, u as FetchActivityFeedOptions, v as FetchActivityPreferencesOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as FetchProfileCompletenessOptions, M as FetchReactionStatusOptions, N as FetchRoadmapOptions, O as FetchRpgClaimableOptions, P as FetchRpgStatusOptions, Q as FetchSuggestionsOptions, R as FetchUnlinkedPositionsOptions, S as FetchUserSettingsOptions, T as FollowListPage, U as FollowProfile, V as FollowProfilePageResponse, W as FollowUserResult, X as FollowingFeedApp, Y as FollowingFeedBuild, Z as FollowingFeedEmptyReason, _ as FollowingFeedResponse, $ as FollowingFeedVersion, a0 as FollowingResponse, a1 as GetAdminReviewQueuesOptions, a2 as GithubPullRequest, a3 as GivenConfirmation, a4 as HIDDEN_ITEM_SOURCES, a5 as HIDDEN_ITEM_TYPES, a6 as HeatmapDay, a7 as HeatmapResponse, a8 as HiddenActivityItem, a9 as HiddenApp, aa as HiddenItemSource, ab as HiddenItemType, ac as HideActivityItemInput, ad as HideProfileItemInput, ae as InboxCounts, af as ListFeatureAllowlistOptions, ag as MyGithubPullRequestsResponse, ah as OrgClaimBinding, ai as OrgClaimResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, an as OrgProfileEcho, ao as OrgProfileUpdateResult, ap as PROFILE_COMPLETENESS_SIGNALS, aq as PdsWipeOutcome, ar as PendingConfirmation, as as PendingConfirmationsPage, at as PrimarySection, au as ProfileCompleteness, av as ProfileCompletenessSignal, aw as ProfileIndustryInput, ax as ProfileLocationAddress, ay as ProfileLocationInput, az as ProfileSelfLocation, aA as QUOTED_POSTS_BATCH_MAX, aB as QuotedPostAuthor, aC as QuotedPostImage, aD as QuotedPostResult, aE as QuotedPostView, aF as ReactionError, aG as ReactionResult, aH as ReactionStatus, aI as RefreshOrcidPublicationsResult, aJ as RefreshPdsResult, aK as RepoDeleteInput, aL as ResetProfileResult, aM as ResolveQuotedPostsOptions, aN as RoadmapBoardItem, aO as RoadmapBoardSize, aP as RoadmapBoardStatus, aQ as RoadmapItemRef, aR as RoadmapVoteError, aS as RoadmapVoteResult, aT as RoadmapVoter, aU as RpgClaimableResponse, aV as RpgClaimableResponseSchema, aW as RpgItemStatus, aX as RpgItemStatusSchema, aY as RpgStatusResponse, aZ as RpgStatusResponseSchema, a_ as SifaQueryKey, a$ as SimilarProfile, b0 as SiteActivityPresetResponse, b1 as StatsResponse, b2 as SubCategoryBulkResult, b3 as SuggestionProfile, b4 as SuggestionsResponse, b5 as UnhideActivityItemInput, b6 as UnlinkedPosition, b7 as UnlinkedPositionsResult, b8 as UpdateActivityPreferencesInput, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, bd as UserSettings, be as UserSettingsPatch, bf as UserSettingsSchema, bg as VerifyExternalAccountResult, bh as WipePreview, bi as addFeatureAllowlist, bj as addOrgNotificationEmail, bk as bulkHideProfileItems, bl as bulkHideStandardPublications, bm as bulkUnhideProfileItems, bn as bulkUnhideStandardPublications, bo as castRoadmapItemVote, bp as checkAppAccount, bq as clearCompletenessDismissals, br as confirmEndorsement, bs as createConfirmation, bt as createEndorsement, bu as createExternalAccount, bv as createProfileLocation, bw as createReaction, bx as createSkill, by as deleteAccount, bz as deleteAvatarOverride, bA as deleteExternalAccount, bB as deleteNamePronunciationAudio, bC as deleteProfileLocation, bD as deleteReaction, bE as deleteRepoRecords, bF as deleteSkill, bG as dismissCompletenessSignal, bH as dismissConfirmation, bI as dismissUnlinkedPosition, bJ as fetchAccounts, bK as fetchActivityFeed, bL as fetchActivityPreferences, bM as fetchActivityTeaser, bN as fetchAppsRegistry, bO as fetchExternalAccounts, bP as fetchFeaturedProfile, bQ as fetchFollowing, bR as fetchFollowingFeed, bS as fetchFollowingFeedVersion, bT as fetchGivenConfirmations, bU as fetchHeatmapData, bV as fetchHiddenActivityItems, bW as fetchHiddenApps, bX as fetchInboxCounts, bY as fetchMyGithubPullRequests, bZ as fetchPendingConfirmations, b_ as fetchProfileCompleteness, b$ as fetchReactionStatus, c0 as fetchRepoInventory, c1 as fetchRoadmap, c2 as fetchRpgClaimable, c3 as fetchRpgStatus, c4 as fetchSimilarProfiles, c5 as fetchSiteActivityPreset, c6 as fetchStats, c7 as fetchSuggestionCount, c8 as fetchSuggestions, c9 as fetchUnlinkedPositions, ca as fetchUserSettings, cb as fetchViewerPositionConfirmations, cc as fetchWipePreview, cd as followUser, ce as getAdminReviewQueues, cf as getBlueskySuggestions, cg as getFollowers, ch as getFollowing, ci as getMutuals, cj as hideActivityItem, ck as hideOrcidPublication, cl as hideProfileItem, cm as hideSifaPublication, cn as hideStandardPublication, co as isNewerFollowingFeed, cp as listFeatureAllowlist, cq as refreshOrcidPublications, cr as refreshPds, cs as removeFeatureAllowlist, ct as removeOrgNotificationEmail, cu as repoExportUrl, cv as requestOrgDomainChallenge, cw as resetProfile, cx as resolveQuotedPosts, cy as retractRoadmapItemVote, cz as revokeConfirmation, cA as setExternalAccountPrimary, cB as setSectionPrimary, cC as submitOrgClaim, cD as switchAccount, cE as unfollowUser, cF as unhideActivityItem, cG as unhideOrcidPublication, cH as unhideProfileItem, cI as unhideSifaPublication, cJ as unhideStandardPublication, cK as unsetExternalAccountPrimary, cL as unsetSectionPrimary, cM as updateActivityPreferences, cN as updateExternalAccount, cO as updateOrgProfile, cP as updateProfileLocation, cQ as updateProfileOverride, cR as updateProfileSelf, cS as updateSkill, cT as updateSkillSubCategories, cU as updateUserSettings, cV as uploadAvatar, cW as uploadNamePronunciationAudio, cX as verifyExternalAccount, cY as verifyOrgDomain } from '../user-settings-C8JUD4DM.cjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { C as CoSpeaker, m as ActorCard } from '../index-BQAKeEoj.cjs';
|
|
10
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
package/dist/query/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a0 as ApiFetchOptions, a1 as SifaApiConfig, a2 as WriteResult, a3 as CreateResult, c as AdultContentLabel } from '../types-CkomzDlY.js';
|
|
2
2
|
export { a4 as ApiError, 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, ae as fetchSearchFilters, af as fetchSearchProfiles, ag as fetchSkillSuggestions, ah as searchSkills } from '../types-CkomzDlY.js';
|
|
3
|
-
export { A as AddFeatureAllowlistVariables, a as AttestationRequest, b as AttestationRequestSchema, c as AttestationStatus, C as CreateOrgAttestationInput, d as CreateOrgAttestationResult, e as CreateReactionVariables, f as CreateRecordVariables, D as DeleteReactionVariables, g as DeleteRecordVariables, F as FetchOrgAttestationOptions, h as FetchProfileEmailsOptions, i as FetchVerificationLogOptions, j as FollowVariables, O as OrgAttestation, k as OrgAttestationSchema, P as PositionSkillLinkVariables, l as ProfileEmail, m as ProfileEmailSchema, n as ProfileEmailSendStatus, o as ProfileEmails, R as RemoveFeatureAllowlistVariables, p as RequestEmploymentConfirmationInput, q as RequestEmploymentConfirmationResult, S as SifaProvider, r as SifaProviderProps, U as UnfollowVariables, s as UpdateEducationVariables, t as UpdateExternalAccountVariables, u as UpdatePositionVariables, v as UpdateProfileLocationVariables, w as UpdateRecordVariables, x as UpdateSkillSubCategoriesVariables, y as UpdateSkillVariables, z as UseEntitySearchOptions, B as UseMyGithubPullRequestsParams, V as VERIFICATION_EVENT_KINDS, E as VerificationEventKind, G as VerificationLog, H as VerificationLogEntry, I as VerificationLogEntrySchema, J as VerificationLogSchema, K as addProfileEmail, L as createOrgAttestation, M as fetchAttestationRequests, N as fetchOrgAttestations, Q as fetchProfileEmails, T as fetchVerificationLog, W as offboardOrgAttestation, X as rejectAttestationRequest, Y as removeProfileEmail, Z as requestEmploymentConfirmation, _ as resendProfileEmailVerification, $ as revokeOrgAttestation, a0 as useAccounts, a1 as useActivityFeed, a2 as useActivityPreferences, a3 as useActivityTeaser, a4 as useAddFeatureAllowlist, a5 as useAddOrgNotificationEmail, a6 as useAddProfileEmail, a7 as useAdminReviewQueues, a8 as useAppAccountCheck, a9 as useAppsRegistry, aa as useAtFundLink, ab as useAttestationRequests, ac as useBlueskySuggestions, ad as useBulkHideProfileItems, ae as useBulkHideStandardPublications, af as useBulkUnhideProfileItems, ag as useBulkUnhideStandardPublications, ah as useCanonicalSkillSearch, ai as
|
|
3
|
+
export { A as AddFeatureAllowlistVariables, a as AttestationRequest, b as AttestationRequestSchema, c as AttestationStatus, C as CreateOrgAttestationInput, d as CreateOrgAttestationResult, e as CreateReactionVariables, f as CreateRecordVariables, D as DeleteReactionVariables, g as DeleteRecordVariables, F as FetchOrgAttestationOptions, h as FetchProfileEmailsOptions, i as FetchVerificationLogOptions, j as FollowVariables, O as OrgAttestation, k as OrgAttestationSchema, P as PositionSkillLinkVariables, l as ProfileEmail, m as ProfileEmailSchema, n as ProfileEmailSendStatus, o as ProfileEmails, R as RemoveFeatureAllowlistVariables, p as RequestEmploymentConfirmationInput, q as RequestEmploymentConfirmationResult, S as SifaProvider, r as SifaProviderProps, U as UnfollowVariables, s as UpdateEducationVariables, t as UpdateExternalAccountVariables, u as UpdatePositionVariables, v as UpdateProfileLocationVariables, w as UpdateRecordVariables, x as UpdateSkillSubCategoriesVariables, y as UpdateSkillVariables, z as UseEntitySearchOptions, B as UseMyGithubPullRequestsParams, V as VERIFICATION_EVENT_KINDS, E as VerificationEventKind, G as VerificationLog, H as VerificationLogEntry, I as VerificationLogEntrySchema, J as VerificationLogSchema, K as addProfileEmail, L as createOrgAttestation, M as fetchAttestationRequests, N as fetchOrgAttestations, Q as fetchProfileEmails, T as fetchVerificationLog, W as offboardOrgAttestation, X as rejectAttestationRequest, Y as removeProfileEmail, Z as requestEmploymentConfirmation, _ as resendProfileEmailVerification, $ as revokeOrgAttestation, a0 as useAccounts, a1 as useActivityFeed, a2 as useActivityPreferences, a3 as useActivityTeaser, a4 as useAddFeatureAllowlist, a5 as useAddOrgNotificationEmail, a6 as useAddProfileEmail, a7 as useAdminReviewQueues, a8 as useAppAccountCheck, a9 as useAppsRegistry, aa as useAtFundLink, ab as useAttestationRequests, ac as useBlueskySuggestions, ad as useBulkHideProfileItems, ae as useBulkHideStandardPublications, af as useBulkUnhideProfileItems, ag as useBulkUnhideStandardPublications, ah as useCanonicalSkillSearch, ai as useCastRoadmapItemVote, aj as useClearCompletenessDismissals, ak as useCreateConfirmation, al as useCreateEducation, am as useCreateEndorsement, an as useCreateExternalAccount, ao as useCreateOrgAttestation, ap as useCreatePosition, aq as useCreateProfileLocation, ar as useCreateReaction, as as useCreateRecord, at as useCreateSkill, au as useDebouncedValue, av as useDeleteAccount, aw as useDeleteAvatarOverride, ax as useDeleteEducation, ay as useDeleteExternalAccount, az as useDeleteNamePronunciationAudio, aA as useDeletePosition, aB as useDeleteProfileLocation, aC as useDeleteReaction, aD as useDeleteRecord, aE as useDeleteRepoRecords, aF as useDeleteSkill, aG as useDismissCompletenessSignal, aH as useDismissConfirmation, aI as useDismissUnlinkedPosition, aJ as useEndorsementCount, aK as useEntitySearch, aL as useExternalAccounts, aM as useFeatureAllowlist, aN as useFeaturedProfile, aO as useFollow, aP as useFollowers, aQ as useFollowing, aR as useFollowingFeed, aS as useFollowingFeedVersion, aT as useFollowingList, aU as useGetProfileView, aV as useGivenConfirmations, aW as useHeatmapData, aX as useHiddenActivityItems, aY as useHiddenApps, aZ as useHideActivityItem, a_ as useHideKeytraceClaim, a$ as useHideOrcidPublication, b0 as useHideProfileItem, b1 as useHideSifaPublication, b2 as useHideStandardPublication, b3 as useImportSearchEntities, b4 as useInboxCounts, b5 as useLinkSkillToPosition, b6 as useMintEntityDomain, b7 as useMutuals, b8 as useMyGithubPullRequests, b9 as useNetworkStreamCount, ba as useOffboardOrgAttestation, bb as useOrgAttestations, bc as useOrgClaim, bd as useOrgDomainChallenge, be as useOrgDomainVerify, bf as useOrgProfile, bg as usePendingConfirmations, bh as useProfile, bi as useProfileCompleteness, bj as useProfileEmails, bk as useReactionStatus, bl as useRefreshOrcidPublications, bm as useRefreshPds, bn as useRejectAttestationRequest, bo as useRemoveFeatureAllowlist, bp as useRemoveOrgNotificationEmail, bq as useRemoveProfileEmail, br as useRepoInventory, bs as useRequestEmploymentConfirmation, bt as useResendProfileEmailVerification, bu as useResetProfile, bv as useResolveEntityDomain, bw as useRetractRoadmapItemVote, bx as useRevealMarqueDomain, by as useRevokeConfirmation, bz as useRevokeOrgAttestation, bA as useRpgClaimable, bB as useRpgStatus, bC as useSearchFilters, bD as useSearchProfiles, bE as useSelectEntity, bF as useSetExternalAccountPrimary, bG as useSetPositionPrimary, bH as useSetSectionPrimary, bI as useSifaConfig, bJ as useSimilarProfiles, bK as useSiteActivityPreset, bL as useSkillSuggestions, bM as useStats, bN as useSuggestionCount, bO as useSuggestions, bP as useUnfollow, bQ as useUnhideActivityItem, bR as useUnhideKeytraceClaim, bS as useUnhideOrcidPublication, bT as useUnhideProfileItem, bU as useUnhideSifaPublication, bV as useUnhideStandardPublication, bW as useUnlinkSkillFromPosition, bX as useUnlinkedPositions, bY as useUnrevealMarqueDomain, bZ as useUnsetExternalAccountPrimary, b_ as useUnsetPositionPrimary, b$ as useUnsetSectionPrimary, c0 as useUpdateActivityPreferences, c1 as useUpdateEducation, c2 as useUpdateExternalAccount, c3 as useUpdateOrgProfile, c4 as useUpdatePosition, c5 as useUpdateProfileLocation, c6 as useUpdateProfileOverride, c7 as useUpdateProfileSelf, c8 as useUpdateRecord, c9 as useUpdateSkill, ca as useUpdateSkillSubCategories, cb as useUpdateUserSettings, cc as useUploadAvatar, cd as useUploadNamePronunciationAudio, ce as useUserSettings, cf as useVerificationLog, cg as useVerifyExternalAccount, ch as useWipePreview } from '../use-user-settings-DQ6Dyby7.js';
|
|
4
4
|
import { R as ReceivedEndorsementsPage, a as ReciprocityCandidate, D as DismissEndorsementInput, P as PendingEndorsementsPage } from '../network-map-2OKh3wSB.js';
|
|
5
5
|
export { F as FetchGermMessageLinkOptions, b as FetchNetworkStreamCountOptions, c as FetchPendingEndorsementsOptions, G as GermMessageLink, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, j as ReceivedEndorsement, k as ReciprocitySkill, S as SpeakerCard, l as SpeakerDirectoryFilters, m as SpeakerGroup, n as SpeakersResponse, T as TalkEvent, o as TalkRow, p as TalkSpeaker, q as TalksResponse, r as checkNetworkMapJobStatus, s as createEducation, t as createPosition, u as createRecord, v as deleteEducation, w as deletePosition, x as deleteRecord, y as dismissEndorsement, z as fetchAtFundLink, A as fetchEndorsementCount, B as fetchEntitySearch, C as fetchGermMessageLink, E as fetchGetProfileView, H as fetchNetworkMap, I as fetchNetworkStreamCount, J as fetchPendingEndorsements, K as fetchProfile, L as fetchProfileSummary, M as fetchReceivedEndorsements, O as fetchReciprocityCandidate, Q as fetchSpeakers, U as fetchTalks, V as germRedirectPath, W as hideKeytraceClaim, X as importSearchEntities, Y as initiateNetworkMapGeneration, Z as isNetworkMapResponse, _ as linkSkillToPosition, $ as mintEntityDomain, a0 as resolveEntityDomain, a1 as revealMarqueDomain, a2 as selectEntity, a3 as setPositionPrimary, a4 as unhideKeytraceClaim, a5 as unlinkSkillFromPosition, a6 as unrevealMarqueDomain, a7 as unsetPositionPrimary, a8 as updateEducation, a9 as updatePosition, aa as updateRecord } from '../network-map-2OKh3wSB.js';
|
|
6
|
-
import { s as sifaQueryKeys, C as ConfirmEndorsementInput, a as ConfirmEndorsementResult } from '../user-settings-
|
|
7
|
-
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, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissCompletenessSignalInput, p as DismissUnlinkedPositionInput, E as EndorsementInput, q as ExternalAccountInput, F as FeatureAllowlistResponse, r as FeaturedProfile, t as FetchAccountsOptions, u as FetchActivityFeedOptions, v as FetchActivityPreferencesOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as
|
|
6
|
+
import { s as sifaQueryKeys, C as ConfirmEndorsementInput, a as ConfirmEndorsementResult } from '../user-settings-BdNrDa9O.js';
|
|
7
|
+
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, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissCompletenessSignalInput, p as DismissUnlinkedPositionInput, E as EndorsementInput, q as ExternalAccountInput, F as FeatureAllowlistResponse, r as FeaturedProfile, t as FetchAccountsOptions, u as FetchActivityFeedOptions, v as FetchActivityPreferencesOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as FetchProfileCompletenessOptions, M as FetchReactionStatusOptions, N as FetchRoadmapOptions, O as FetchRpgClaimableOptions, P as FetchRpgStatusOptions, Q as FetchSuggestionsOptions, R as FetchUnlinkedPositionsOptions, S as FetchUserSettingsOptions, T as FollowListPage, U as FollowProfile, V as FollowProfilePageResponse, W as FollowUserResult, X as FollowingFeedApp, Y as FollowingFeedBuild, Z as FollowingFeedEmptyReason, _ as FollowingFeedResponse, $ as FollowingFeedVersion, a0 as FollowingResponse, a1 as GetAdminReviewQueuesOptions, a2 as GithubPullRequest, a3 as GivenConfirmation, a4 as HIDDEN_ITEM_SOURCES, a5 as HIDDEN_ITEM_TYPES, a6 as HeatmapDay, a7 as HeatmapResponse, a8 as HiddenActivityItem, a9 as HiddenApp, aa as HiddenItemSource, ab as HiddenItemType, ac as HideActivityItemInput, ad as HideProfileItemInput, ae as InboxCounts, af as ListFeatureAllowlistOptions, ag as MyGithubPullRequestsResponse, ah as OrgClaimBinding, ai as OrgClaimResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, an as OrgProfileEcho, ao as OrgProfileUpdateResult, ap as PROFILE_COMPLETENESS_SIGNALS, aq as PdsWipeOutcome, ar as PendingConfirmation, as as PendingConfirmationsPage, at as PrimarySection, au as ProfileCompleteness, av as ProfileCompletenessSignal, aw as ProfileIndustryInput, ax as ProfileLocationAddress, ay as ProfileLocationInput, az as ProfileSelfLocation, aA as QUOTED_POSTS_BATCH_MAX, aB as QuotedPostAuthor, aC as QuotedPostImage, aD as QuotedPostResult, aE as QuotedPostView, aF as ReactionError, aG as ReactionResult, aH as ReactionStatus, aI as RefreshOrcidPublicationsResult, aJ as RefreshPdsResult, aK as RepoDeleteInput, aL as ResetProfileResult, aM as ResolveQuotedPostsOptions, aN as RoadmapBoardItem, aO as RoadmapBoardSize, aP as RoadmapBoardStatus, aQ as RoadmapItemRef, aR as RoadmapVoteError, aS as RoadmapVoteResult, aT as RoadmapVoter, aU as RpgClaimableResponse, aV as RpgClaimableResponseSchema, aW as RpgItemStatus, aX as RpgItemStatusSchema, aY as RpgStatusResponse, aZ as RpgStatusResponseSchema, a_ as SifaQueryKey, a$ as SimilarProfile, b0 as SiteActivityPresetResponse, b1 as StatsResponse, b2 as SubCategoryBulkResult, b3 as SuggestionProfile, b4 as SuggestionsResponse, b5 as UnhideActivityItemInput, b6 as UnlinkedPosition, b7 as UnlinkedPositionsResult, b8 as UpdateActivityPreferencesInput, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, bd as UserSettings, be as UserSettingsPatch, bf as UserSettingsSchema, bg as VerifyExternalAccountResult, bh as WipePreview, bi as addFeatureAllowlist, bj as addOrgNotificationEmail, bk as bulkHideProfileItems, bl as bulkHideStandardPublications, bm as bulkUnhideProfileItems, bn as bulkUnhideStandardPublications, bo as castRoadmapItemVote, bp as checkAppAccount, bq as clearCompletenessDismissals, br as confirmEndorsement, bs as createConfirmation, bt as createEndorsement, bu as createExternalAccount, bv as createProfileLocation, bw as createReaction, bx as createSkill, by as deleteAccount, bz as deleteAvatarOverride, bA as deleteExternalAccount, bB as deleteNamePronunciationAudio, bC as deleteProfileLocation, bD as deleteReaction, bE as deleteRepoRecords, bF as deleteSkill, bG as dismissCompletenessSignal, bH as dismissConfirmation, bI as dismissUnlinkedPosition, bJ as fetchAccounts, bK as fetchActivityFeed, bL as fetchActivityPreferences, bM as fetchActivityTeaser, bN as fetchAppsRegistry, bO as fetchExternalAccounts, bP as fetchFeaturedProfile, bQ as fetchFollowing, bR as fetchFollowingFeed, bS as fetchFollowingFeedVersion, bT as fetchGivenConfirmations, bU as fetchHeatmapData, bV as fetchHiddenActivityItems, bW as fetchHiddenApps, bX as fetchInboxCounts, bY as fetchMyGithubPullRequests, bZ as fetchPendingConfirmations, b_ as fetchProfileCompleteness, b$ as fetchReactionStatus, c0 as fetchRepoInventory, c1 as fetchRoadmap, c2 as fetchRpgClaimable, c3 as fetchRpgStatus, c4 as fetchSimilarProfiles, c5 as fetchSiteActivityPreset, c6 as fetchStats, c7 as fetchSuggestionCount, c8 as fetchSuggestions, c9 as fetchUnlinkedPositions, ca as fetchUserSettings, cb as fetchViewerPositionConfirmations, cc as fetchWipePreview, cd as followUser, ce as getAdminReviewQueues, cf as getBlueskySuggestions, cg as getFollowers, ch as getFollowing, ci as getMutuals, cj as hideActivityItem, ck as hideOrcidPublication, cl as hideProfileItem, cm as hideSifaPublication, cn as hideStandardPublication, co as isNewerFollowingFeed, cp as listFeatureAllowlist, cq as refreshOrcidPublications, cr as refreshPds, cs as removeFeatureAllowlist, ct as removeOrgNotificationEmail, cu as repoExportUrl, cv as requestOrgDomainChallenge, cw as resetProfile, cx as resolveQuotedPosts, cy as retractRoadmapItemVote, cz as revokeConfirmation, cA as setExternalAccountPrimary, cB as setSectionPrimary, cC as submitOrgClaim, cD as switchAccount, cE as unfollowUser, cF as unhideActivityItem, cG as unhideOrcidPublication, cH as unhideProfileItem, cI as unhideSifaPublication, cJ as unhideStandardPublication, cK as unsetExternalAccountPrimary, cL as unsetSectionPrimary, cM as updateActivityPreferences, cN as updateExternalAccount, cO as updateOrgProfile, cP as updateProfileLocation, cQ as updateProfileOverride, cR as updateProfileSelf, cS as updateSkill, cT as updateSkillSubCategories, cU as updateUserSettings, cV as uploadAvatar, cW as uploadNamePronunciationAudio, cX as verifyExternalAccount, cY as verifyOrgDomain } from '../user-settings-BdNrDa9O.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { C as CoSpeaker, m as ActorCard } from '../index-DDh2RLvx.js';
|
|
10
10
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
package/dist/query/index.js
CHANGED
|
@@ -238,10 +238,9 @@ import {
|
|
|
238
238
|
resolveQuotedPosts
|
|
239
239
|
} from "./fetchers/quoted-posts.js";
|
|
240
240
|
import {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
retractRoadmapVote
|
|
241
|
+
castRoadmapItemVote,
|
|
242
|
+
fetchRoadmap,
|
|
243
|
+
retractRoadmapItemVote
|
|
245
244
|
} from "./fetchers/roadmap.js";
|
|
246
245
|
import {
|
|
247
246
|
deleteAccount,
|
|
@@ -435,8 +434,10 @@ import {
|
|
|
435
434
|
useCreateReaction,
|
|
436
435
|
useDeleteReaction
|
|
437
436
|
} from "./hooks/use-reaction-mutations.js";
|
|
438
|
-
import {
|
|
439
|
-
|
|
437
|
+
import {
|
|
438
|
+
useCastRoadmapItemVote,
|
|
439
|
+
useRetractRoadmapItemVote
|
|
440
|
+
} from "./hooks/use-roadmap-mutations.js";
|
|
440
441
|
import { useDeleteAccount, useResetProfile, useWipePreview } from "./hooks/use-destructive.js";
|
|
441
442
|
import { useDeleteRepoRecords, useRepoInventory } from "./hooks/use-repo-inventory.js";
|
|
442
443
|
import {
|
|
@@ -501,7 +502,7 @@ export {
|
|
|
501
502
|
bulkHideStandardPublications,
|
|
502
503
|
bulkUnhideProfileItems,
|
|
503
504
|
bulkUnhideStandardPublications,
|
|
504
|
-
|
|
505
|
+
castRoadmapItemVote,
|
|
505
506
|
checkAppAccount,
|
|
506
507
|
checkNetworkMapJobStatus,
|
|
507
508
|
clearCompletenessDismissals,
|
|
@@ -556,7 +557,6 @@ export {
|
|
|
556
557
|
fetchHiddenApps,
|
|
557
558
|
fetchInboxCounts,
|
|
558
559
|
fetchMyGithubPullRequests,
|
|
559
|
-
fetchMyRoadmapVotes,
|
|
560
560
|
fetchNetworkMap,
|
|
561
561
|
fetchNetworkStreamCount,
|
|
562
562
|
fetchOrgAttestations,
|
|
@@ -571,7 +571,7 @@ export {
|
|
|
571
571
|
fetchReciprocityCandidate,
|
|
572
572
|
fetchRepoInventory,
|
|
573
573
|
fetchResolveActor,
|
|
574
|
-
|
|
574
|
+
fetchRoadmap,
|
|
575
575
|
fetchRpgClaimable,
|
|
576
576
|
fetchRpgStatus,
|
|
577
577
|
fetchSearchFilters,
|
|
@@ -626,7 +626,7 @@ export {
|
|
|
626
626
|
resetProfile,
|
|
627
627
|
resolveEntityDomain,
|
|
628
628
|
resolveQuotedPosts,
|
|
629
|
-
|
|
629
|
+
retractRoadmapItemVote,
|
|
630
630
|
revealMarqueDomain,
|
|
631
631
|
revokeConfirmation,
|
|
632
632
|
revokeOrgAttestation,
|
|
@@ -686,7 +686,7 @@ export {
|
|
|
686
686
|
useBulkUnhideProfileItems,
|
|
687
687
|
useBulkUnhideStandardPublications,
|
|
688
688
|
useCanonicalSkillSearch,
|
|
689
|
-
|
|
689
|
+
useCastRoadmapItemVote,
|
|
690
690
|
useClearCompletenessDismissals,
|
|
691
691
|
useConfirmEndorsement,
|
|
692
692
|
useCreateConfirmation,
|
|
@@ -743,7 +743,6 @@ export {
|
|
|
743
743
|
useMintEntityDomain,
|
|
744
744
|
useMutuals,
|
|
745
745
|
useMyGithubPullRequests,
|
|
746
|
-
useMyRoadmapVotes,
|
|
747
746
|
useNetworkStreamCount,
|
|
748
747
|
useOffboardOrgAttestation,
|
|
749
748
|
useOrgAttestations,
|
|
@@ -770,11 +769,10 @@ export {
|
|
|
770
769
|
useResendProfileEmailVerification,
|
|
771
770
|
useResetProfile,
|
|
772
771
|
useResolveEntityDomain,
|
|
773
|
-
|
|
772
|
+
useRetractRoadmapItemVote,
|
|
774
773
|
useRevealMarqueDomain,
|
|
775
774
|
useRevokeConfirmation,
|
|
776
775
|
useRevokeOrgAttestation,
|
|
777
|
-
useRoadmapVotes,
|
|
778
776
|
useRpgClaimable,
|
|
779
777
|
useRpgStatus,
|
|
780
778
|
useSearchFilters,
|
package/dist/query/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/query/index.ts"],"sourcesContent":["export {\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';\nexport { SifaProvider, useSifaConfig, type SifaProviderProps } from './config.js';\n\nexport { fetchAtFundLink, fetchProfile } from './fetchers/profile.js';\nexport {\n fetchGermMessageLink,\n germRedirectPath,\n type FetchGermMessageLinkOptions,\n type GermMessageLink,\n} from './fetchers/germ.js';\nexport { fetchGetProfileView } from './fetchers/get-profile-view.js';\nexport { fetchProfileSummary } from './fetchers/profile-summary.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 './fetchers/profile-mutations.js';\nexport {\n createPosition,\n deletePosition,\n linkSkillToPosition,\n setPositionPrimary,\n unlinkSkillFromPosition,\n unsetPositionPrimary,\n updatePosition,\n} from './fetchers/positions.js';\nexport { createEducation, deleteEducation, updateEducation } from './fetchers/education.js';\nexport {\n setSectionPrimary,\n unsetSectionPrimary,\n type PrimarySection,\n} from './fetchers/section-primary.js';\nexport {\n createSkill,\n deleteSkill,\n updateSkill,\n updateSkillSubCategories,\n type SubCategoryBulkResult,\n} from './fetchers/skills.js';\nexport { createRecord, deleteRecord, updateRecord } from './fetchers/records.js';\nexport {\n createProfileLocation,\n deleteProfileLocation,\n updateProfileLocation,\n type ProfileLocationAddress,\n type ProfileLocationInput,\n} from './fetchers/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 './fetchers/external-accounts.js';\nexport {\n createEndorsement,\n confirmEndorsement,\n type EndorsementInput,\n type ConfirmEndorsementInput,\n} from './fetchers/endorsements.js';\nexport {\n fetchReceivedEndorsements,\n type ReceivedEndorsement,\n type ReceivedEndorsementsPage,\n} from './fetchers/received-endorsements.js';\nexport {\n fetchReciprocityCandidate,\n type ReciprocityCandidate,\n type ReciprocitySkill,\n} from './fetchers/reciprocity.js';\nexport {\n fetchPendingEndorsements,\n dismissEndorsement,\n type PendingEndorsement,\n type PendingEndorsementsPage,\n type DismissEndorsementInput,\n type FetchPendingEndorsementsOptions,\n} from './fetchers/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 './fetchers/confirmations.js';\nexport {\n fetchVerificationLog,\n VERIFICATION_EVENT_KINDS,\n VerificationLogEntrySchema,\n VerificationLogSchema,\n type FetchVerificationLogOptions,\n type VerificationEventKind,\n type VerificationLog,\n type VerificationLogEntry,\n} from './fetchers/verification.js';\nexport {\n fetchProfileEmails,\n addProfileEmail,\n resendProfileEmailVerification,\n removeProfileEmail,\n ProfileEmailSchema,\n type FetchProfileEmailsOptions,\n type ProfileEmail,\n type ProfileEmails,\n type ProfileEmailSendStatus,\n} from './fetchers/profile-emails.js';\nexport {\n fetchEmailVerificationLinks,\n linkEmailToPosition,\n unlinkEmailFromPosition,\n requestEmailReverification,\n EmailVerificationLinkSchema,\n type EmailBadgeRefusal,\n type EmailVerificationLink,\n type FetchEmailVerificationLinksOptions,\n type LinkEmailResult,\n} from './fetchers/email-verification.js';\nexport {\n createOrgAttestation,\n offboardOrgAttestation,\n revokeOrgAttestation,\n fetchOrgAttestations,\n fetchAttestationRequests,\n rejectAttestationRequest,\n requestEmploymentConfirmation,\n OrgAttestationSchema,\n AttestationRequestSchema,\n type AttestationStatus,\n type AttestationRequest,\n type CreateOrgAttestationInput,\n type CreateOrgAttestationResult,\n type FetchOrgAttestationOptions,\n type OrgAttestation,\n type RequestEmploymentConfirmationInput,\n type RequestEmploymentConfirmationResult,\n} from './fetchers/org-attestations.js';\nexport {\n fetchInboxCounts,\n type InboxCounts,\n type FetchInboxCountsOptions,\n} from './fetchers/inbox.js';\nexport {\n fetchUnlinkedPositions,\n dismissUnlinkedPosition,\n type UnlinkedPosition,\n type UnlinkedPositionsResult,\n type FetchUnlinkedPositionsOptions,\n type DismissUnlinkedPositionInput,\n} from './fetchers/unlinked-positions.js';\nexport {\n fetchProfileCompleteness,\n dismissCompletenessSignal,\n clearCompletenessDismissals,\n PROFILE_COMPLETENESS_SIGNALS,\n type ProfileCompleteness,\n type ProfileCompletenessSignal,\n type FetchProfileCompletenessOptions,\n type DismissCompletenessSignalInput,\n} from './fetchers/profile-completeness.js';\nexport { fetchResolveActor, fetchTypeaheadActors } from './fetchers/actor.js';\nexport { hideKeytraceClaim, unhideKeytraceClaim } from './fetchers/keytrace-claims.js';\nexport { revealMarqueDomain, unrevealMarqueDomain } from './fetchers/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 './fetchers/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 './fetchers/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 './fetchers/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 './fetchers/activity-preferences.js';\nexport { fetchStats, type StatsResponse } from './fetchers/stats.js';\nexport {\n fetchAppsRegistry,\n fetchHiddenApps,\n type AppRegistryEntry,\n type FetchHiddenAppsOptions,\n type HiddenApp,\n} from './fetchers/apps.js';\nexport {\n fetchAccounts,\n switchAccount,\n type AccountSummary,\n type FetchAccountsOptions,\n} from './fetchers/accounts.js';\nexport {\n fetchSearchFilters,\n fetchSearchProfiles,\n fetchSkillSuggestions,\n searchSkills,\n type FilterOptions,\n type ProfileSearchResult,\n type ProfileSearchSuggestion,\n type SearchFilters,\n type SearchResponse,\n type SkillSearchResult,\n} from './fetchers/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 './fetchers/speakers.js';\nexport {\n fetchEntitySearch,\n selectEntity,\n importSearchEntities,\n resolveEntityDomain,\n mintEntityDomain,\n} from './fetchers/entities.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 './fetchers/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 './fetchers/follow.js';\nexport {\n getBlueskySuggestions,\n getMutuals,\n type FetchFollowProfilePageOptions,\n type FollowProfilePageResponse,\n} from './fetchers/follow-extras.js';\nexport {\n addFeatureAllowlist,\n listFeatureAllowlist,\n removeFeatureAllowlist,\n type FeatureAllowlistResponse,\n type ListFeatureAllowlistOptions,\n} from './fetchers/admin-feature-allowlists.js';\nexport {\n getAdminReviewQueues,\n type AdminReviewQueues,\n type GetAdminReviewQueuesOptions,\n} from './fetchers/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 './fetchers/activity.js';\nexport {\n fetchMyGithubPullRequests,\n type GithubPullRequest,\n type MyGithubPullRequestsResponse,\n type FetchMyGithubPullRequestsOptions,\n} from './fetchers/github-prs.js';\nexport {\n fetchRpgStatus,\n fetchRpgClaimable,\n RpgItemStatusSchema,\n RpgStatusResponseSchema,\n RpgClaimableResponseSchema,\n type RpgItemStatus,\n type RpgStatusResponse,\n type FetchRpgStatusOptions,\n type RpgClaimableResponse,\n type FetchRpgClaimableOptions,\n} from './fetchers/rpg.js';\nexport { fetchEndorsementCount } from './fetchers/endorsement.js';\nexport { fetchNetworkStreamCount, type FetchNetworkStreamCountOptions } from './fetchers/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 './fetchers/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 './fetchers/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 './fetchers/roadmap.js';\nexport {\n deleteAccount,\n fetchWipePreview,\n resetProfile,\n type DeleteAccountResult,\n type ResetProfileResult,\n type PdsWipeOutcome,\n type WipePreview,\n} from './fetchers/destructive.js';\nexport {\n deleteRepoRecords,\n fetchRepoInventory,\n repoExportUrl,\n type RepoDeleteInput,\n} from './fetchers/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 './fetchers/network-map.js';\n\nexport { useAtFundLink, useProfile } from './hooks/use-profile.js';\nexport { useGetProfileView } from './hooks/use-get-profile-view.js';\nexport {\n useDeleteAvatarOverride,\n useDeleteNamePronunciationAudio,\n useRefreshPds,\n useUpdateProfileOverride,\n useUpdateProfileSelf,\n useUploadAvatar,\n useUploadNamePronunciationAudio,\n} from './hooks/use-profile-mutations.js';\nexport { useCreatePosition } from './hooks/use-create-position.js';\nexport {\n useDeletePosition,\n useLinkSkillToPosition,\n useSetPositionPrimary,\n useUnlinkSkillFromPosition,\n useUnsetPositionPrimary,\n useUpdatePosition,\n type PositionSkillLinkVariables,\n type UpdatePositionVariables,\n} from './hooks/use-position-mutations.js';\nexport {\n useCreateEducation,\n useDeleteEducation,\n useUpdateEducation,\n type UpdateEducationVariables,\n} from './hooks/use-education-mutations.js';\nexport {\n useSetSectionPrimary,\n useUnsetSectionPrimary,\n} from './hooks/use-section-primary-mutations.js';\nexport {\n useCreateSkill,\n useDeleteSkill,\n useUpdateSkill,\n useUpdateSkillSubCategories,\n type UpdateSkillVariables,\n type UpdateSkillSubCategoriesVariables,\n} from './hooks/use-skill-mutations.js';\nexport {\n useCreateRecord,\n useDeleteRecord,\n useUpdateRecord,\n type CreateRecordVariables,\n type DeleteRecordVariables,\n type UpdateRecordVariables,\n} from './hooks/use-record-mutations.js';\nexport {\n useCreateProfileLocation,\n useDeleteProfileLocation,\n useUpdateProfileLocation,\n type UpdateProfileLocationVariables,\n} from './hooks/use-location-mutations.js';\nexport {\n useCreateExternalAccount,\n useDeleteExternalAccount,\n useExternalAccounts,\n useSetExternalAccountPrimary,\n useUnsetExternalAccountPrimary,\n useUpdateExternalAccount,\n useVerifyExternalAccount,\n type UpdateExternalAccountVariables,\n} from './hooks/use-external-accounts.js';\nexport { useCreateEndorsement } from './hooks/use-endorsement-mutations.js';\nexport { useReceivedEndorsements } from './hooks/use-received-endorsements.js';\nexport { useReciprocityCandidate } from './hooks/use-reciprocity.js';\nexport {\n usePendingEndorsements,\n useConfirmEndorsement,\n useDismissEndorsement,\n} from './hooks/use-endorsement-inbox.js';\nexport {\n usePendingConfirmations,\n useGivenConfirmations,\n useCreateConfirmation,\n useDismissConfirmation,\n useRevokeConfirmation,\n} from './hooks/use-confirmations.js';\nexport { useInboxCounts } from './hooks/use-inbox.js';\nexport { useVerificationLog } from './hooks/use-verification.js';\nexport {\n useProfileEmails,\n useAddProfileEmail,\n useResendProfileEmailVerification,\n useRemoveProfileEmail,\n} from './hooks/use-profile-emails.js';\nexport {\n useOrgAttestations,\n useAttestationRequests,\n useCreateOrgAttestation,\n useOffboardOrgAttestation,\n useRevokeOrgAttestation,\n useRejectAttestationRequest,\n useRequestEmploymentConfirmation,\n} from './hooks/use-org-attestations.js';\nexport {\n useUnlinkedPositions,\n useDismissUnlinkedPosition,\n} from './hooks/use-unlinked-positions.js';\nexport {\n useProfileCompleteness,\n useDismissCompletenessSignal,\n useClearCompletenessDismissals,\n} from './hooks/use-profile-completeness.js';\nexport { useRpgClaimable } from './hooks/use-rpg-claimable.js';\nexport { useRpgStatus } from './hooks/use-rpg-status.js';\nexport { useHideKeytraceClaim, useUnhideKeytraceClaim } from './hooks/use-keytrace-claims.js';\nexport { useRevealMarqueDomain, useUnrevealMarqueDomain } from './hooks/use-marque-domains.js';\nexport {\n useBulkHideStandardPublications,\n useBulkUnhideStandardPublications,\n useHideOrcidPublication,\n useHideSifaPublication,\n useHideStandardPublication,\n useRefreshOrcidPublications,\n useUnhideOrcidPublication,\n useUnhideSifaPublication,\n useUnhideStandardPublication,\n} from './hooks/use-publication-mutations.js';\nexport {\n useBulkHideProfileItems,\n useBulkUnhideProfileItems,\n useHideProfileItem,\n useUnhideProfileItem,\n} from './hooks/use-profile-items-hide.js';\nexport {\n useHiddenActivityItems,\n useHideActivityItem,\n useUnhideActivityItem,\n} from './hooks/use-activity-items-hide.js';\nexport {\n useActivityPreferences,\n useSiteActivityPreset,\n useUpdateActivityPreferences,\n} from './hooks/use-activity-preferences.js';\nexport { useStats } from './hooks/use-stats.js';\nexport { useAppsRegistry, useHiddenApps } from './hooks/use-apps.js';\nexport { useAccounts } from './hooks/use-accounts.js';\nexport {\n useCanonicalSkillSearch,\n useSearchFilters,\n useSearchProfiles,\n useSkillSuggestions,\n} from './hooks/use-search.js';\nexport {\n useEntitySearch,\n useSelectEntity,\n useImportSearchEntities,\n useResolveEntityDomain,\n useMintEntityDomain,\n useDebouncedValue,\n type UseEntitySearchOptions,\n} from './hooks/use-entity-search.js';\nexport {\n useFeaturedProfile,\n useSimilarProfiles,\n useSuggestionCount,\n useSuggestions,\n} from './hooks/use-discovery.js';\nexport {\n useFollow,\n useFollowers,\n useFollowing,\n useFollowingFeed,\n useFollowingFeedVersion,\n useFollowingList,\n useUnfollow,\n type FollowVariables,\n type UnfollowVariables,\n} from './hooks/use-follow.js';\nexport { useBlueskySuggestions, useMutuals } from './hooks/use-follow-extras.js';\nexport {\n useAddFeatureAllowlist,\n useFeatureAllowlist,\n useRemoveFeatureAllowlist,\n type AddFeatureAllowlistVariables,\n type RemoveFeatureAllowlistVariables,\n} from './hooks/use-feature-allowlist.js';\nexport { useAdminReviewQueues } from './hooks/use-admin-review-queues.js';\nexport { useActivityFeed, useActivityTeaser, useHeatmapData } from './hooks/use-activity.js';\nexport {\n useMyGithubPullRequests,\n type UseMyGithubPullRequestsParams,\n} from './hooks/use-github-prs.js';\nexport { useEndorsementCount } from './hooks/use-endorsement.js';\nexport { useNetworkStreamCount } from './hooks/use-stream.js';\nexport { useAppAccountCheck, useReactionStatus } from './hooks/use-reactions.js';\nexport {\n useCreateReaction,\n useDeleteReaction,\n type CreateReactionVariables,\n type DeleteReactionVariables,\n} from './hooks/use-reaction-mutations.js';\nexport { useMyRoadmapVotes, useRoadmapVotes } from './hooks/use-roadmap.js';\nexport { useCastRoadmapVote, useRetractRoadmapVote } from './hooks/use-roadmap-mutations.js';\nexport { useDeleteAccount, useResetProfile, useWipePreview } from './hooks/use-destructive.js';\nexport { useDeleteRepoRecords, useRepoInventory } from './hooks/use-repo-inventory.js';\nexport {\n fetchBskyContentLabelPrefs,\n updateBskyContentLabelPrefs,\n effectiveContentVisibility,\n shouldGateAdultMedia,\n type BskyContentLabelPrefs,\n type BskyContentLabelPrefsResponse,\n type BskyContentLabelVisibility,\n type BskyPrefsScopeError,\n type UpdateBskyContentLabelPrefsBody,\n} from './fetchers/bsky-preferences.js';\nexport {\n useBskyContentLabelPrefs,\n useUpdateBskyContentLabelPrefs,\n} from './hooks/use-bsky-content-prefs.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 './fetchers/org.js';\nexport { useOrgProfile } from './hooks/use-org-profile.js';\nexport { useOrgClaim } from './hooks/use-org-claim.js';\nexport { useUpdateOrgProfile } from './hooks/use-org-profile-settings.js';\nexport { useOrgDomainChallenge, useOrgDomainVerify } from './hooks/use-org-domains.js';\nexport {\n useAddOrgNotificationEmail,\n useRemoveOrgNotificationEmail,\n} from './hooks/use-org-notification-emails.js';\n\nexport {\n fetchUserSettings,\n updateUserSettings,\n UserSettingsSchema,\n type FetchUserSettingsOptions,\n type UserSettings,\n type UserSettingsPatch,\n} from './fetchers/user-settings.js';\nexport { useUpdateUserSettings, useUserSettings } from './hooks/use-user-settings.js';\n\nexport { sifaQueryKeys, type SifaQueryKey } from './keys.js';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP,SAAS,cAAc,qBAA6C;AAEpE,SAAS,iBAAiB,oBAAoB;AAC9C;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB,iBAAiB,uBAAuB;AAClE;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,cAAc,cAAc,oBAAoB;AACzD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;A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6BAA6B;AAC1D,SAAS,kBAAkB,iBAAiB,sBAAsB;AAClE,SAAS,sBAAsB,wBAAwB;AACvD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASK;AACP,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;AAC5B,SAAS,2BAA2B;AACpC,SAAS,uBAAuB,0BAA0B;AAC1D;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP,SAAS,uBAAuB,uBAAuB;AAEvD,SAAS,qBAAwC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/query/index.ts"],"sourcesContent":["export {\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';\nexport { SifaProvider, useSifaConfig, type SifaProviderProps } from './config.js';\n\nexport { fetchAtFundLink, fetchProfile } from './fetchers/profile.js';\nexport {\n fetchGermMessageLink,\n germRedirectPath,\n type FetchGermMessageLinkOptions,\n type GermMessageLink,\n} from './fetchers/germ.js';\nexport { fetchGetProfileView } from './fetchers/get-profile-view.js';\nexport { fetchProfileSummary } from './fetchers/profile-summary.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 './fetchers/profile-mutations.js';\nexport {\n createPosition,\n deletePosition,\n linkSkillToPosition,\n setPositionPrimary,\n unlinkSkillFromPosition,\n unsetPositionPrimary,\n updatePosition,\n} from './fetchers/positions.js';\nexport { createEducation, deleteEducation, updateEducation } from './fetchers/education.js';\nexport {\n setSectionPrimary,\n unsetSectionPrimary,\n type PrimarySection,\n} from './fetchers/section-primary.js';\nexport {\n createSkill,\n deleteSkill,\n updateSkill,\n updateSkillSubCategories,\n type SubCategoryBulkResult,\n} from './fetchers/skills.js';\nexport { createRecord, deleteRecord, updateRecord } from './fetchers/records.js';\nexport {\n createProfileLocation,\n deleteProfileLocation,\n updateProfileLocation,\n type ProfileLocationAddress,\n type ProfileLocationInput,\n} from './fetchers/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 './fetchers/external-accounts.js';\nexport {\n createEndorsement,\n confirmEndorsement,\n type EndorsementInput,\n type ConfirmEndorsementInput,\n} from './fetchers/endorsements.js';\nexport {\n fetchReceivedEndorsements,\n type ReceivedEndorsement,\n type ReceivedEndorsementsPage,\n} from './fetchers/received-endorsements.js';\nexport {\n fetchReciprocityCandidate,\n type ReciprocityCandidate,\n type ReciprocitySkill,\n} from './fetchers/reciprocity.js';\nexport {\n fetchPendingEndorsements,\n dismissEndorsement,\n type PendingEndorsement,\n type PendingEndorsementsPage,\n type DismissEndorsementInput,\n type FetchPendingEndorsementsOptions,\n} from './fetchers/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 './fetchers/confirmations.js';\nexport {\n fetchVerificationLog,\n VERIFICATION_EVENT_KINDS,\n VerificationLogEntrySchema,\n VerificationLogSchema,\n type FetchVerificationLogOptions,\n type VerificationEventKind,\n type VerificationLog,\n type VerificationLogEntry,\n} from './fetchers/verification.js';\nexport {\n fetchProfileEmails,\n addProfileEmail,\n resendProfileEmailVerification,\n removeProfileEmail,\n ProfileEmailSchema,\n type FetchProfileEmailsOptions,\n type ProfileEmail,\n type ProfileEmails,\n type ProfileEmailSendStatus,\n} from './fetchers/profile-emails.js';\nexport {\n fetchEmailVerificationLinks,\n linkEmailToPosition,\n unlinkEmailFromPosition,\n requestEmailReverification,\n EmailVerificationLinkSchema,\n type EmailBadgeRefusal,\n type EmailVerificationLink,\n type FetchEmailVerificationLinksOptions,\n type LinkEmailResult,\n} from './fetchers/email-verification.js';\nexport {\n createOrgAttestation,\n offboardOrgAttestation,\n revokeOrgAttestation,\n fetchOrgAttestations,\n fetchAttestationRequests,\n rejectAttestationRequest,\n requestEmploymentConfirmation,\n OrgAttestationSchema,\n AttestationRequestSchema,\n type AttestationStatus,\n type AttestationRequest,\n type CreateOrgAttestationInput,\n type CreateOrgAttestationResult,\n type FetchOrgAttestationOptions,\n type OrgAttestation,\n type RequestEmploymentConfirmationInput,\n type RequestEmploymentConfirmationResult,\n} from './fetchers/org-attestations.js';\nexport {\n fetchInboxCounts,\n type InboxCounts,\n type FetchInboxCountsOptions,\n} from './fetchers/inbox.js';\nexport {\n fetchUnlinkedPositions,\n dismissUnlinkedPosition,\n type UnlinkedPosition,\n type UnlinkedPositionsResult,\n type FetchUnlinkedPositionsOptions,\n type DismissUnlinkedPositionInput,\n} from './fetchers/unlinked-positions.js';\nexport {\n fetchProfileCompleteness,\n dismissCompletenessSignal,\n clearCompletenessDismissals,\n PROFILE_COMPLETENESS_SIGNALS,\n type ProfileCompleteness,\n type ProfileCompletenessSignal,\n type FetchProfileCompletenessOptions,\n type DismissCompletenessSignalInput,\n} from './fetchers/profile-completeness.js';\nexport { fetchResolveActor, fetchTypeaheadActors } from './fetchers/actor.js';\nexport { hideKeytraceClaim, unhideKeytraceClaim } from './fetchers/keytrace-claims.js';\nexport { revealMarqueDomain, unrevealMarqueDomain } from './fetchers/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 './fetchers/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 './fetchers/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 './fetchers/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 './fetchers/activity-preferences.js';\nexport { fetchStats, type StatsResponse } from './fetchers/stats.js';\nexport {\n fetchAppsRegistry,\n fetchHiddenApps,\n type AppRegistryEntry,\n type FetchHiddenAppsOptions,\n type HiddenApp,\n} from './fetchers/apps.js';\nexport {\n fetchAccounts,\n switchAccount,\n type AccountSummary,\n type FetchAccountsOptions,\n} from './fetchers/accounts.js';\nexport {\n fetchSearchFilters,\n fetchSearchProfiles,\n fetchSkillSuggestions,\n searchSkills,\n type FilterOptions,\n type ProfileSearchResult,\n type ProfileSearchSuggestion,\n type SearchFilters,\n type SearchResponse,\n type SkillSearchResult,\n} from './fetchers/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 './fetchers/speakers.js';\nexport {\n fetchEntitySearch,\n selectEntity,\n importSearchEntities,\n resolveEntityDomain,\n mintEntityDomain,\n} from './fetchers/entities.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 './fetchers/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 './fetchers/follow.js';\nexport {\n getBlueskySuggestions,\n getMutuals,\n type FetchFollowProfilePageOptions,\n type FollowProfilePageResponse,\n} from './fetchers/follow-extras.js';\nexport {\n addFeatureAllowlist,\n listFeatureAllowlist,\n removeFeatureAllowlist,\n type FeatureAllowlistResponse,\n type ListFeatureAllowlistOptions,\n} from './fetchers/admin-feature-allowlists.js';\nexport {\n getAdminReviewQueues,\n type AdminReviewQueues,\n type GetAdminReviewQueuesOptions,\n} from './fetchers/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 './fetchers/activity.js';\nexport {\n fetchMyGithubPullRequests,\n type GithubPullRequest,\n type MyGithubPullRequestsResponse,\n type FetchMyGithubPullRequestsOptions,\n} from './fetchers/github-prs.js';\nexport {\n fetchRpgStatus,\n fetchRpgClaimable,\n RpgItemStatusSchema,\n RpgStatusResponseSchema,\n RpgClaimableResponseSchema,\n type RpgItemStatus,\n type RpgStatusResponse,\n type FetchRpgStatusOptions,\n type RpgClaimableResponse,\n type FetchRpgClaimableOptions,\n} from './fetchers/rpg.js';\nexport { fetchEndorsementCount } from './fetchers/endorsement.js';\nexport { fetchNetworkStreamCount, type FetchNetworkStreamCountOptions } from './fetchers/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 './fetchers/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 './fetchers/quoted-posts.js';\nexport {\n castRoadmapItemVote,\n fetchRoadmap,\n retractRoadmapItemVote,\n type CastRoadmapVoteResult,\n type FetchRoadmapOptions,\n type RoadmapBoardItem,\n type RoadmapBoardSize,\n type RoadmapBoardStatus,\n type RoadmapItemRef,\n type RoadmapVoteError,\n type RoadmapVoteResult,\n type RoadmapVoter,\n} from './fetchers/roadmap.js';\nexport {\n deleteAccount,\n fetchWipePreview,\n resetProfile,\n type DeleteAccountResult,\n type ResetProfileResult,\n type PdsWipeOutcome,\n type WipePreview,\n} from './fetchers/destructive.js';\nexport {\n deleteRepoRecords,\n fetchRepoInventory,\n repoExportUrl,\n type RepoDeleteInput,\n} from './fetchers/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 './fetchers/network-map.js';\n\nexport { useAtFundLink, useProfile } from './hooks/use-profile.js';\nexport { useGetProfileView } from './hooks/use-get-profile-view.js';\nexport {\n useDeleteAvatarOverride,\n useDeleteNamePronunciationAudio,\n useRefreshPds,\n useUpdateProfileOverride,\n useUpdateProfileSelf,\n useUploadAvatar,\n useUploadNamePronunciationAudio,\n} from './hooks/use-profile-mutations.js';\nexport { useCreatePosition } from './hooks/use-create-position.js';\nexport {\n useDeletePosition,\n useLinkSkillToPosition,\n useSetPositionPrimary,\n useUnlinkSkillFromPosition,\n useUnsetPositionPrimary,\n useUpdatePosition,\n type PositionSkillLinkVariables,\n type UpdatePositionVariables,\n} from './hooks/use-position-mutations.js';\nexport {\n useCreateEducation,\n useDeleteEducation,\n useUpdateEducation,\n type UpdateEducationVariables,\n} from './hooks/use-education-mutations.js';\nexport {\n useSetSectionPrimary,\n useUnsetSectionPrimary,\n} from './hooks/use-section-primary-mutations.js';\nexport {\n useCreateSkill,\n useDeleteSkill,\n useUpdateSkill,\n useUpdateSkillSubCategories,\n type UpdateSkillVariables,\n type UpdateSkillSubCategoriesVariables,\n} from './hooks/use-skill-mutations.js';\nexport {\n useCreateRecord,\n useDeleteRecord,\n useUpdateRecord,\n type CreateRecordVariables,\n type DeleteRecordVariables,\n type UpdateRecordVariables,\n} from './hooks/use-record-mutations.js';\nexport {\n useCreateProfileLocation,\n useDeleteProfileLocation,\n useUpdateProfileLocation,\n type UpdateProfileLocationVariables,\n} from './hooks/use-location-mutations.js';\nexport {\n useCreateExternalAccount,\n useDeleteExternalAccount,\n useExternalAccounts,\n useSetExternalAccountPrimary,\n useUnsetExternalAccountPrimary,\n useUpdateExternalAccount,\n useVerifyExternalAccount,\n type UpdateExternalAccountVariables,\n} from './hooks/use-external-accounts.js';\nexport { useCreateEndorsement } from './hooks/use-endorsement-mutations.js';\nexport { useReceivedEndorsements } from './hooks/use-received-endorsements.js';\nexport { useReciprocityCandidate } from './hooks/use-reciprocity.js';\nexport {\n usePendingEndorsements,\n useConfirmEndorsement,\n useDismissEndorsement,\n} from './hooks/use-endorsement-inbox.js';\nexport {\n usePendingConfirmations,\n useGivenConfirmations,\n useCreateConfirmation,\n useDismissConfirmation,\n useRevokeConfirmation,\n} from './hooks/use-confirmations.js';\nexport { useInboxCounts } from './hooks/use-inbox.js';\nexport { useVerificationLog } from './hooks/use-verification.js';\nexport {\n useProfileEmails,\n useAddProfileEmail,\n useResendProfileEmailVerification,\n useRemoveProfileEmail,\n} from './hooks/use-profile-emails.js';\nexport {\n useOrgAttestations,\n useAttestationRequests,\n useCreateOrgAttestation,\n useOffboardOrgAttestation,\n useRevokeOrgAttestation,\n useRejectAttestationRequest,\n useRequestEmploymentConfirmation,\n} from './hooks/use-org-attestations.js';\nexport {\n useUnlinkedPositions,\n useDismissUnlinkedPosition,\n} from './hooks/use-unlinked-positions.js';\nexport {\n useProfileCompleteness,\n useDismissCompletenessSignal,\n useClearCompletenessDismissals,\n} from './hooks/use-profile-completeness.js';\nexport { useRpgClaimable } from './hooks/use-rpg-claimable.js';\nexport { useRpgStatus } from './hooks/use-rpg-status.js';\nexport { useHideKeytraceClaim, useUnhideKeytraceClaim } from './hooks/use-keytrace-claims.js';\nexport { useRevealMarqueDomain, useUnrevealMarqueDomain } from './hooks/use-marque-domains.js';\nexport {\n useBulkHideStandardPublications,\n useBulkUnhideStandardPublications,\n useHideOrcidPublication,\n useHideSifaPublication,\n useHideStandardPublication,\n useRefreshOrcidPublications,\n useUnhideOrcidPublication,\n useUnhideSifaPublication,\n useUnhideStandardPublication,\n} from './hooks/use-publication-mutations.js';\nexport {\n useBulkHideProfileItems,\n useBulkUnhideProfileItems,\n useHideProfileItem,\n useUnhideProfileItem,\n} from './hooks/use-profile-items-hide.js';\nexport {\n useHiddenActivityItems,\n useHideActivityItem,\n useUnhideActivityItem,\n} from './hooks/use-activity-items-hide.js';\nexport {\n useActivityPreferences,\n useSiteActivityPreset,\n useUpdateActivityPreferences,\n} from './hooks/use-activity-preferences.js';\nexport { useStats } from './hooks/use-stats.js';\nexport { useAppsRegistry, useHiddenApps } from './hooks/use-apps.js';\nexport { useAccounts } from './hooks/use-accounts.js';\nexport {\n useCanonicalSkillSearch,\n useSearchFilters,\n useSearchProfiles,\n useSkillSuggestions,\n} from './hooks/use-search.js';\nexport {\n useEntitySearch,\n useSelectEntity,\n useImportSearchEntities,\n useResolveEntityDomain,\n useMintEntityDomain,\n useDebouncedValue,\n type UseEntitySearchOptions,\n} from './hooks/use-entity-search.js';\nexport {\n useFeaturedProfile,\n useSimilarProfiles,\n useSuggestionCount,\n useSuggestions,\n} from './hooks/use-discovery.js';\nexport {\n useFollow,\n useFollowers,\n useFollowing,\n useFollowingFeed,\n useFollowingFeedVersion,\n useFollowingList,\n useUnfollow,\n type FollowVariables,\n type UnfollowVariables,\n} from './hooks/use-follow.js';\nexport { useBlueskySuggestions, useMutuals } from './hooks/use-follow-extras.js';\nexport {\n useAddFeatureAllowlist,\n useFeatureAllowlist,\n useRemoveFeatureAllowlist,\n type AddFeatureAllowlistVariables,\n type RemoveFeatureAllowlistVariables,\n} from './hooks/use-feature-allowlist.js';\nexport { useAdminReviewQueues } from './hooks/use-admin-review-queues.js';\nexport { useActivityFeed, useActivityTeaser, useHeatmapData } from './hooks/use-activity.js';\nexport {\n useMyGithubPullRequests,\n type UseMyGithubPullRequestsParams,\n} from './hooks/use-github-prs.js';\nexport { useEndorsementCount } from './hooks/use-endorsement.js';\nexport { useNetworkStreamCount } from './hooks/use-stream.js';\nexport { useAppAccountCheck, useReactionStatus } from './hooks/use-reactions.js';\nexport {\n useCreateReaction,\n useDeleteReaction,\n type CreateReactionVariables,\n type DeleteReactionVariables,\n} from './hooks/use-reaction-mutations.js';\nexport {\n useCastRoadmapItemVote,\n useRetractRoadmapItemVote,\n} from './hooks/use-roadmap-mutations.js';\nexport { useDeleteAccount, useResetProfile, useWipePreview } from './hooks/use-destructive.js';\nexport { useDeleteRepoRecords, useRepoInventory } from './hooks/use-repo-inventory.js';\nexport {\n fetchBskyContentLabelPrefs,\n updateBskyContentLabelPrefs,\n effectiveContentVisibility,\n shouldGateAdultMedia,\n type BskyContentLabelPrefs,\n type BskyContentLabelPrefsResponse,\n type BskyContentLabelVisibility,\n type BskyPrefsScopeError,\n type UpdateBskyContentLabelPrefsBody,\n} from './fetchers/bsky-preferences.js';\nexport {\n useBskyContentLabelPrefs,\n useUpdateBskyContentLabelPrefs,\n} from './hooks/use-bsky-content-prefs.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 './fetchers/org.js';\nexport { useOrgProfile } from './hooks/use-org-profile.js';\nexport { useOrgClaim } from './hooks/use-org-claim.js';\nexport { useUpdateOrgProfile } from './hooks/use-org-profile-settings.js';\nexport { useOrgDomainChallenge, useOrgDomainVerify } from './hooks/use-org-domains.js';\nexport {\n useAddOrgNotificationEmail,\n useRemoveOrgNotificationEmail,\n} from './hooks/use-org-notification-emails.js';\n\nexport {\n fetchUserSettings,\n updateUserSettings,\n UserSettingsSchema,\n type FetchUserSettingsOptions,\n type UserSettings,\n type UserSettingsPatch,\n} from './fetchers/user-settings.js';\nexport { useUpdateUserSettings, useUserSettings } from './hooks/use-user-settings.js';\n\nexport { sifaQueryKeys, type SifaQueryKey } from './keys.js';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP,SAAS,cAAc,qBAA6C;AAEpE,SAAS,iBAAiB,oBAAoB;AAC9C;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA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uB,0BAA0B;AAC1D;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP,SAAS,uBAAuB,uBAAuB;AAEvD,SAAS,qBAAwC;","names":[]}
|
package/dist/query/keys.js
CHANGED
|
@@ -142,11 +142,6 @@ var sifaQueryKeys = {
|
|
|
142
142
|
status: (uris) => ["sifa", "reactions", "status", uris],
|
|
143
143
|
accountCheck: (appId) => ["sifa", "reactions", "account-check", appId]
|
|
144
144
|
},
|
|
145
|
-
roadmap: {
|
|
146
|
-
all: () => ["sifa", "roadmap"],
|
|
147
|
-
votes: () => ["sifa", "roadmap", "votes"],
|
|
148
|
-
myVotes: () => ["sifa", "roadmap", "my-votes"]
|
|
149
|
-
},
|
|
150
145
|
bskyPreferences: {
|
|
151
146
|
all: () => ["sifa", "bsky-preferences"],
|
|
152
147
|
contentLabels: () => ["sifa", "bsky-preferences", "content-labels"]
|
package/dist/query/keys.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/query/keys.ts"],"sourcesContent":["/**\n * Query key factory for TanStack Query.\n *\n * Keys are read-only tuples; the hierarchy matches the SDK's fetcher\n * grouping. Use these instead of inline arrays so consumers can target\n * `queryClient.invalidateQueries({ queryKey: keys.profile.all() })` and\n * similar patterns without typos.\n *\n * Convention: every leaf key starts with the namespace ('sifa') so\n * consumers can invalidate everything Sifa-related in one call.\n */\nexport const sifaQueryKeys = {\n all: () => ['sifa'] as const,\n\n profile: {\n all: () => ['sifa', 'profile'] as const,\n byHandle: (handleOrDid: string) => ['sifa', 'profile', handleOrDid] as const,\n atFundLink: (did: string) => ['sifa', 'profile', 'at-fund-link', did] as const,\n view: (actor: string) => ['sifa', 'profile', 'view', actor] as const,\n externalAccounts: (handleOrDid: string) =>\n ['sifa', 'profile', 'external-accounts', handleOrDid] as const,\n // Session-scoped: the AppView reads the owner from the session cookie, so\n // there is only ever one completeness result per client.\n completeness: () => ['sifa', 'profile', 'completeness'] as const,\n },\n\n position: {\n all: () => ['sifa', 'position'] as const,\n byOwner: (did: string) => ['sifa', 'position', 'by-owner', did] as const,\n // Session-scoped: the AppView reads the owner from the session cookie.\n unlinked: () => ['sifa', 'position', 'unlinked'] as const,\n },\n\n // Aggregate inbox counts for the header bell badge (session-scoped). The first\n // aggregate namespace: it fans in across confirmations, endorsements, drift,\n // unlinked positions and profile completeness on the server.\n inbox: {\n all: () => ['sifa', 'inbox'] as const,\n counts: () => ['sifa', 'inbox', 'counts'] as const,\n },\n\n // Session-scoped: how many rpg.actor items the signed-in user can claim, for\n // the Inbox item and the bell dropdown.\n rpg: {\n all: () => ['sifa', 'rpg'] as const,\n claimable: () => ['sifa', 'rpg', 'claimable'] as const,\n status: () => ['sifa', 'rpg', 'status'] as const,\n },\n\n search: {\n all: () => ['sifa', 'search'] as const,\n profiles: (filters: Record<string, unknown>) =>\n ['sifa', 'search', 'profiles', filters] as const,\n companies: (filters: Record<string, unknown>) =>\n ['sifa', 'search', 'companies', filters] as const,\n skills: (query: string) => ['sifa', 'search', 'skills', query] as const,\n canonicalSkills: (query: string, limit: number) =>\n ['sifa', 'search', 'canonical-skills', query, limit] as const,\n filters: () => ['sifa', 'search', 'filters'] as const,\n },\n\n entity: {\n all: () => ['sifa', 'entity'] as const,\n search: (query: string, limit: number) => ['sifa', 'entity', 'search', query, limit] as const,\n },\n\n discovery: {\n all: () => ['sifa', 'discovery'] as const,\n similar: (did: string, limit: number) => ['sifa', 'discovery', 'similar', did, limit] as const,\n suggestions: (opts: Record<string, unknown>) =>\n ['sifa', 'discovery', 'suggestions', opts] as const,\n suggestionCount: (since: string | undefined) =>\n ['sifa', 'discovery', 'suggestion-count', since ?? null] as const,\n featured: () => ['sifa', 'discovery', 'featured'] as const,\n },\n\n follow: {\n all: () => ['sifa', 'follow'] as const,\n following: (opts: Record<string, unknown>) => ['sifa', 'follow', 'following', opts] as const,\n followers: (handle: string) => ['sifa', 'follow', 'followers', handle] as const,\n followingOf: (handle: string) => ['sifa', 'follow', 'following-of', handle] as const,\n feed: (opts: Record<string, unknown>) => ['sifa', 'follow', 'feed', opts] as const,\n feedVersion: (opts: Record<string, unknown>) =>\n ['sifa', 'follow', 'feed-version', opts] as const,\n mutuals: (handle: string) => ['sifa', 'follow', 'mutuals', handle] as const,\n blueskySuggestions: () => ['sifa', 'follow', 'bluesky-suggestions'] as const,\n },\n\n admin: {\n all: () => ['sifa', 'admin'] as const,\n featureAllowlist: (flag: string) => ['sifa', 'admin', 'feature-allowlist', flag] as const,\n reviewQueues: () => ['sifa', 'admin', 'review-queues'] as const,\n },\n\n stats: {\n all: () => ['sifa', 'stats'] as const,\n homepage: () => ['sifa', 'stats', 'homepage'] as const,\n },\n\n apps: {\n all: () => ['sifa', 'apps'] as const,\n registry: () => ['sifa', 'apps', 'registry'] as const,\n hidden: () => ['sifa', 'apps', 'hidden'] as const,\n },\n\n auth: {\n all: () => ['sifa', 'auth'] as const,\n // Session-scoped: the AppView reads the account list from the browser's\n // cookies, so there is only ever one list per client.\n accounts: () => ['sifa', 'auth', 'accounts'] as const,\n },\n\n activity: {\n all: () => ['sifa', 'activity'] as const,\n heatmap: (handleOrDid: string, days: number) =>\n ['sifa', 'activity', 'heatmap', handleOrDid, days] as const,\n teaser: (handleOrDid: string) => ['sifa', 'activity', 'teaser', handleOrDid] as const,\n feed: (handleOrDid: string, opts: Record<string, unknown>) =>\n ['sifa', 'activity', 'feed', handleOrDid, opts] as const,\n // Session-scoped: the AppView reads the caller's own hides from their\n // cookie, so there is only ever one list per client.\n hiddenItems: () => ['sifa', 'activity', 'hidden-items'] as const,\n // Session-scoped, like hiddenItems: the caller's own preferences.\n preferences: () => ['sifa', 'activity', 'preferences'] as const,\n sitePreset: (handleOrDid: string) => ['sifa', 'activity', 'site-preset', handleOrDid] as const,\n },\n\n github: {\n all: () => ['sifa', 'github'] as const,\n myPullRequests: (opts: { limit?: number; offset?: number }) =>\n ['sifa', 'github', 'my-pull-requests', opts] as const,\n },\n\n endorsement: {\n all: () => ['sifa', 'endorsement'] as const,\n count: (did: string) => ['sifa', 'endorsement', 'count', did] as const,\n // Scoped to the session rather than a DID -- the AppView reads the subject\n // from the session cookie, so there is only ever one inbox per client.\n pending: () => ['sifa', 'endorsement', 'pending'] as const,\n // Also session-scoped: the AppView picks the candidate from the viewer's\n // own follows, dismissals and blocks.\n reciprocity: () => ['sifa', 'endorsement', 'reciprocity'] as const,\n received: (did: string) => ['sifa', 'endorsement', 'received', did] as const,\n },\n\n confirmation: {\n all: () => ['sifa', 'confirmation'] as const,\n // Scoped to the session for the same reason as the endorsement inbox: the\n // AppView reads the subject from the session cookie, so there is only ever\n // one inbox per client.\n pending: () => ['sifa', 'confirmation', 'pending'] as const,\n /** Confirmations this session has given, for the withdraw surface. */\n given: () => ['sifa', 'confirmation', 'given'] as const,\n },\n\n org: {\n all: () => ['sifa', 'org'] as const,\n /** Attestations the signed-in organization wrote. */\n attestations: () => ['sifa', 'org', 'attestations'] as const,\n /** Pending confirmation requests addressed to the signed-in organization. */\n attestationRequests: () => ['sifa', 'org', 'attestation-requests'] as const,\n },\n\n profileEmails: {\n all: () => ['sifa', 'profile-emails'] as const,\n /** The signed-in account's email addresses (#158). */\n list: () => ['sifa', 'profile-emails', 'list'] as const,\n },\n\n verification: {\n all: () => ['sifa', 'verification'] as const,\n /** The append-only verification log of one position. */\n log: (did: string, positionRkey: string) =>\n ['sifa', 'verification', 'log', did, positionRkey] as const,\n },\n\n stream: {\n all: () => ['sifa', 'stream'] as const,\n networkCount: (did: string) => ['sifa', 'stream', 'network-count', did] as const,\n },\n\n reactions: {\n all: () => ['sifa', 'reactions'] as const,\n status: (uris: string[]) => ['sifa', 'reactions', 'status', uris] as const,\n accountCheck: (appId: string) => ['sifa', 'reactions', 'account-check', appId] as const,\n },\n\n roadmap: {\n all: () => ['sifa', 'roadmap'] as const,\n votes: () => ['sifa', 'roadmap', 'votes'] as const,\n myVotes: () => ['sifa', 'roadmap', 'my-votes'] as const,\n },\n\n bskyPreferences: {\n all: () => ['sifa', 'bsky-preferences'] as const,\n contentLabels: () => ['sifa', 'bsky-preferences', 'content-labels'] as const,\n },\n\n userSettings: {\n all: () => ['sifa', 'user-settings'] as const,\n },\n\n repoInventory: {\n all: () => ['sifa', 'repo-inventory'] as const,\n list: () => ['sifa', 'repo-inventory', 'list'] as const,\n },\n destructive: {\n all: () => ['sifa', 'destructive'] as const,\n wipePreview: () => ['sifa', 'destructive', 'wipe-preview'] as const,\n },\n} as const;\n\nexport type SifaQueryKey =\n | ReturnType<typeof sifaQueryKeys.all>\n | ReturnType<typeof sifaQueryKeys.profile.all>\n | ReturnType<typeof sifaQueryKeys.profile.byHandle>\n | ReturnType<typeof sifaQueryKeys.profile.atFundLink>\n | ReturnType<typeof sifaQueryKeys.profile.externalAccounts>\n | ReturnType<typeof sifaQueryKeys.profile.completeness>\n | ReturnType<typeof sifaQueryKeys.position.all>\n | ReturnType<typeof sifaQueryKeys.position.byOwner>\n | ReturnType<typeof sifaQueryKeys.position.unlinked>\n | ReturnType<typeof sifaQueryKeys.inbox.all>\n | ReturnType<typeof sifaQueryKeys.inbox.counts>\n | ReturnType<typeof sifaQueryKeys.rpg.all>\n | ReturnType<typeof sifaQueryKeys.rpg.claimable>\n | ReturnType<typeof sifaQueryKeys.rpg.status>\n | ReturnType<typeof sifaQueryKeys.search.all>\n | ReturnType<typeof sifaQueryKeys.search.profiles>\n | ReturnType<typeof sifaQueryKeys.search.canonicalSkills>\n | ReturnType<typeof sifaQueryKeys.search.skills>\n | ReturnType<typeof sifaQueryKeys.search.filters>\n | ReturnType<typeof sifaQueryKeys.entity.all>\n | ReturnType<typeof sifaQueryKeys.entity.search>\n | ReturnType<typeof sifaQueryKeys.discovery.all>\n | ReturnType<typeof sifaQueryKeys.discovery.similar>\n | ReturnType<typeof sifaQueryKeys.discovery.suggestions>\n | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount>\n | ReturnType<typeof sifaQueryKeys.discovery.featured>\n | ReturnType<typeof sifaQueryKeys.follow.all>\n | ReturnType<typeof sifaQueryKeys.follow.following>\n | ReturnType<typeof sifaQueryKeys.follow.followers>\n | ReturnType<typeof sifaQueryKeys.follow.followingOf>\n | ReturnType<typeof sifaQueryKeys.follow.feed>\n | ReturnType<typeof sifaQueryKeys.follow.mutuals>\n | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions>\n | ReturnType<typeof sifaQueryKeys.admin.all>\n | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist>\n | ReturnType<typeof sifaQueryKeys.admin.reviewQueues>\n | ReturnType<typeof sifaQueryKeys.stats.all>\n | ReturnType<typeof sifaQueryKeys.stats.homepage>\n | ReturnType<typeof sifaQueryKeys.apps.all>\n | ReturnType<typeof sifaQueryKeys.apps.registry>\n | ReturnType<typeof sifaQueryKeys.apps.hidden>\n | ReturnType<typeof sifaQueryKeys.activity.all>\n | ReturnType<typeof sifaQueryKeys.activity.heatmap>\n | ReturnType<typeof sifaQueryKeys.activity.teaser>\n | ReturnType<typeof sifaQueryKeys.activity.feed>\n | ReturnType<typeof sifaQueryKeys.activity.hiddenItems>\n | ReturnType<typeof sifaQueryKeys.activity.preferences>\n | ReturnType<typeof sifaQueryKeys.activity.sitePreset>\n | ReturnType<typeof sifaQueryKeys.endorsement.all>\n | ReturnType<typeof sifaQueryKeys.endorsement.count>\n | ReturnType<typeof sifaQueryKeys.endorsement.pending>\n | ReturnType<typeof sifaQueryKeys.endorsement.reciprocity>\n | ReturnType<typeof sifaQueryKeys.endorsement.received>\n | ReturnType<typeof sifaQueryKeys.confirmation.all>\n | ReturnType<typeof sifaQueryKeys.confirmation.pending>\n | ReturnType<typeof sifaQueryKeys.confirmation.given>\n | ReturnType<typeof sifaQueryKeys.stream.all>\n | ReturnType<typeof sifaQueryKeys.stream.networkCount>\n | ReturnType<typeof sifaQueryKeys.reactions.all>\n | ReturnType<typeof sifaQueryKeys.reactions.status>\n | ReturnType<typeof sifaQueryKeys.reactions.accountCheck>\n | ReturnType<typeof sifaQueryKeys.roadmap.all>\n | ReturnType<typeof sifaQueryKeys.roadmap.votes>\n | ReturnType<typeof sifaQueryKeys.roadmap.myVotes>\n | ReturnType<typeof sifaQueryKeys.bskyPreferences.all>\n | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels>\n | ReturnType<typeof sifaQueryKeys.userSettings.all>\n | ReturnType<typeof sifaQueryKeys.destructive.all>\n | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>\n | ReturnType<typeof sifaQueryKeys.repoInventory.all>\n | ReturnType<typeof sifaQueryKeys.repoInventory.list>;\n"],"mappings":";AAWO,IAAM,gBAAgB;AAAA,EAC3B,KAAK,MAAM,CAAC,MAAM;AAAA,EAElB,SAAS;AAAA,IACP,KAAK,MAAM,CAAC,QAAQ,SAAS;AAAA,IAC7B,UAAU,CAAC,gBAAwB,CAAC,QAAQ,WAAW,WAAW;AAAA,IAClE,YAAY,CAAC,QAAgB,CAAC,QAAQ,WAAW,gBAAgB,GAAG;AAAA,IACpE,MAAM,CAAC,UAAkB,CAAC,QAAQ,WAAW,QAAQ,KAAK;AAAA,IAC1D,kBAAkB,CAAC,gBACjB,CAAC,QAAQ,WAAW,qBAAqB,WAAW;AAAA;AAAA;AAAA,IAGtD,cAAc,MAAM,CAAC,QAAQ,WAAW,cAAc;AAAA,EACxD;AAAA,EAEA,UAAU;AAAA,IACR,KAAK,MAAM,CAAC,QAAQ,UAAU;AAAA,IAC9B,SAAS,CAAC,QAAgB,CAAC,QAAQ,YAAY,YAAY,GAAG;AAAA;AAAA,IAE9D,UAAU,MAAM,CAAC,QAAQ,YAAY,UAAU;AAAA,EACjD;AAAA;AAAA;AAAA;AAAA,EAKA,OAAO;AAAA,IACL,KAAK,MAAM,CAAC,QAAQ,OAAO;AAAA,IAC3B,QAAQ,MAAM,CAAC,QAAQ,SAAS,QAAQ;AAAA,EAC1C;AAAA;AAAA;AAAA,EAIA,KAAK;AAAA,IACH,KAAK,MAAM,CAA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KAAK,CAAC,KAAa,iBACjB,CAAC,QAAQ,gBAAgB,OAAO,KAAK,YAAY;AAAA,EACrD;AAAA,EAEA,QAAQ;AAAA,IACN,KAAK,MAAM,CAAC,QAAQ,QAAQ;AAAA,IAC5B,cAAc,CAAC,QAAgB,CAAC,QAAQ,UAAU,iBAAiB,GAAG;AAAA,EACxE;AAAA,EAEA,WAAW;AAAA,IACT,KAAK,MAAM,CAAC,QAAQ,WAAW;AAAA,IAC/B,QAAQ,CAAC,SAAmB,CAAC,QAAQ,aAAa,UAAU,IAAI;AAAA,IAChE,cAAc,CAAC,UAAkB,CAAC,QAAQ,aAAa,iBAAiB,KAAK;AAAA,EAC/E;AAAA,EAEA,SAAS;AAAA,IACP,KAAK,MAAM,CAAC,QAAQ,SAAS;AAAA,IAC7B,OAAO,MAAM,CAAC,QAAQ,WAAW,OAAO;AAAA,IACxC,SAAS,MAAM,CAAC,QAAQ,WAAW,UAAU;AAAA,EAC/C;AAAA,EAEA,iBAAiB;AAAA,IACf,KAAK,MAAM,CAAC,QAAQ,kBAAkB;AAAA,IACtC,eAAe,MAAM,CAAC,QAAQ,oBAAoB,gBAAgB;AAAA,EACpE;AAAA,EAEA,cAAc;AAAA,IACZ,KAAK,MAAM,CAAC,QAAQ,eAAe;AAAA,EACrC;AAAA,EAEA,eAAe;AAAA,IACb,KAAK,MAAM,CAAC,QAAQ,gBAAgB;AAAA,IACpC,MAAM,MAAM,CAAC,QAAQ,kBAAkB,MAAM;AAAA,EAC/C;AAAA,EACA,aAAa;AAAA,IACX,KAAK,MAAM,CAAC,QAAQ,aAAa;AAAA,IACjC,aAAa,MAAM,CAAC,QAAQ,eAAe,cAAc;AAAA,EAC3D;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/query/keys.ts"],"sourcesContent":["/**\n * Query key factory for TanStack Query.\n *\n * Keys are read-only tuples; the hierarchy matches the SDK's fetcher\n * grouping. Use these instead of inline arrays so consumers can target\n * `queryClient.invalidateQueries({ queryKey: keys.profile.all() })` and\n * similar patterns without typos.\n *\n * Convention: every leaf key starts with the namespace ('sifa') so\n * consumers can invalidate everything Sifa-related in one call.\n */\nexport const sifaQueryKeys = {\n all: () => ['sifa'] as const,\n\n profile: {\n all: () => ['sifa', 'profile'] as const,\n byHandle: (handleOrDid: string) => ['sifa', 'profile', handleOrDid] as const,\n atFundLink: (did: string) => ['sifa', 'profile', 'at-fund-link', did] as const,\n view: (actor: string) => ['sifa', 'profile', 'view', actor] as const,\n externalAccounts: (handleOrDid: string) =>\n ['sifa', 'profile', 'external-accounts', handleOrDid] as const,\n // Session-scoped: the AppView reads the owner from the session cookie, so\n // there is only ever one completeness result per client.\n completeness: () => ['sifa', 'profile', 'completeness'] as const,\n },\n\n position: {\n all: () => ['sifa', 'position'] as const,\n byOwner: (did: string) => ['sifa', 'position', 'by-owner', did] as const,\n // Session-scoped: the AppView reads the owner from the session cookie.\n unlinked: () => ['sifa', 'position', 'unlinked'] as const,\n },\n\n // Aggregate inbox counts for the header bell badge (session-scoped). The first\n // aggregate namespace: it fans in across confirmations, endorsements, drift,\n // unlinked positions and profile completeness on the server.\n inbox: {\n all: () => ['sifa', 'inbox'] as const,\n counts: () => ['sifa', 'inbox', 'counts'] as const,\n },\n\n // Session-scoped: how many rpg.actor items the signed-in user can claim, for\n // the Inbox item and the bell dropdown.\n rpg: {\n all: () => ['sifa', 'rpg'] as const,\n claimable: () => ['sifa', 'rpg', 'claimable'] as const,\n status: () => ['sifa', 'rpg', 'status'] as const,\n },\n\n search: {\n all: () => ['sifa', 'search'] as const,\n profiles: (filters: Record<string, unknown>) =>\n ['sifa', 'search', 'profiles', filters] as const,\n companies: (filters: Record<string, unknown>) =>\n ['sifa', 'search', 'companies', filters] as const,\n skills: (query: string) => ['sifa', 'search', 'skills', query] as const,\n canonicalSkills: (query: string, limit: number) =>\n ['sifa', 'search', 'canonical-skills', query, limit] as const,\n filters: () => ['sifa', 'search', 'filters'] as const,\n },\n\n entity: {\n all: () => ['sifa', 'entity'] as const,\n search: (query: string, limit: number) => ['sifa', 'entity', 'search', query, limit] as const,\n },\n\n discovery: {\n all: () => ['sifa', 'discovery'] as const,\n similar: (did: string, limit: number) => ['sifa', 'discovery', 'similar', did, limit] as const,\n suggestions: (opts: Record<string, unknown>) =>\n ['sifa', 'discovery', 'suggestions', opts] as const,\n suggestionCount: (since: string | undefined) =>\n ['sifa', 'discovery', 'suggestion-count', since ?? null] as const,\n featured: () => ['sifa', 'discovery', 'featured'] as const,\n },\n\n follow: {\n all: () => ['sifa', 'follow'] as const,\n following: (opts: Record<string, unknown>) => ['sifa', 'follow', 'following', opts] as const,\n followers: (handle: string) => ['sifa', 'follow', 'followers', handle] as const,\n followingOf: (handle: string) => ['sifa', 'follow', 'following-of', handle] as const,\n feed: (opts: Record<string, unknown>) => ['sifa', 'follow', 'feed', opts] as const,\n feedVersion: (opts: Record<string, unknown>) =>\n ['sifa', 'follow', 'feed-version', opts] as const,\n mutuals: (handle: string) => ['sifa', 'follow', 'mutuals', handle] as const,\n blueskySuggestions: () => ['sifa', 'follow', 'bluesky-suggestions'] as const,\n },\n\n admin: {\n all: () => ['sifa', 'admin'] as const,\n featureAllowlist: (flag: string) => ['sifa', 'admin', 'feature-allowlist', flag] as const,\n reviewQueues: () => ['sifa', 'admin', 'review-queues'] as const,\n },\n\n stats: {\n all: () => ['sifa', 'stats'] as const,\n homepage: () => ['sifa', 'stats', 'homepage'] as const,\n },\n\n apps: {\n all: () => ['sifa', 'apps'] as const,\n registry: () => ['sifa', 'apps', 'registry'] as const,\n hidden: () => ['sifa', 'apps', 'hidden'] as const,\n },\n\n auth: {\n all: () => ['sifa', 'auth'] as const,\n // Session-scoped: the AppView reads the account list from the browser's\n // cookies, so there is only ever one list per client.\n accounts: () => ['sifa', 'auth', 'accounts'] as const,\n },\n\n activity: {\n all: () => ['sifa', 'activity'] as const,\n heatmap: (handleOrDid: string, days: number) =>\n ['sifa', 'activity', 'heatmap', handleOrDid, days] as const,\n teaser: (handleOrDid: string) => ['sifa', 'activity', 'teaser', handleOrDid] as const,\n feed: (handleOrDid: string, opts: Record<string, unknown>) =>\n ['sifa', 'activity', 'feed', handleOrDid, opts] as const,\n // Session-scoped: the AppView reads the caller's own hides from their\n // cookie, so there is only ever one list per client.\n hiddenItems: () => ['sifa', 'activity', 'hidden-items'] as const,\n // Session-scoped, like hiddenItems: the caller's own preferences.\n preferences: () => ['sifa', 'activity', 'preferences'] as const,\n sitePreset: (handleOrDid: string) => ['sifa', 'activity', 'site-preset', handleOrDid] as const,\n },\n\n github: {\n all: () => ['sifa', 'github'] as const,\n myPullRequests: (opts: { limit?: number; offset?: number }) =>\n ['sifa', 'github', 'my-pull-requests', opts] as const,\n },\n\n endorsement: {\n all: () => ['sifa', 'endorsement'] as const,\n count: (did: string) => ['sifa', 'endorsement', 'count', did] as const,\n // Scoped to the session rather than a DID -- the AppView reads the subject\n // from the session cookie, so there is only ever one inbox per client.\n pending: () => ['sifa', 'endorsement', 'pending'] as const,\n // Also session-scoped: the AppView picks the candidate from the viewer's\n // own follows, dismissals and blocks.\n reciprocity: () => ['sifa', 'endorsement', 'reciprocity'] as const,\n received: (did: string) => ['sifa', 'endorsement', 'received', did] as const,\n },\n\n confirmation: {\n all: () => ['sifa', 'confirmation'] as const,\n // Scoped to the session for the same reason as the endorsement inbox: the\n // AppView reads the subject from the session cookie, so there is only ever\n // one inbox per client.\n pending: () => ['sifa', 'confirmation', 'pending'] as const,\n /** Confirmations this session has given, for the withdraw surface. */\n given: () => ['sifa', 'confirmation', 'given'] as const,\n },\n\n org: {\n all: () => ['sifa', 'org'] as const,\n /** Attestations the signed-in organization wrote. */\n attestations: () => ['sifa', 'org', 'attestations'] as const,\n /** Pending confirmation requests addressed to the signed-in organization. */\n attestationRequests: () => ['sifa', 'org', 'attestation-requests'] as const,\n },\n\n profileEmails: {\n all: () => ['sifa', 'profile-emails'] as const,\n /** The signed-in account's email addresses (#158). */\n list: () => ['sifa', 'profile-emails', 'list'] as const,\n },\n\n verification: {\n all: () => ['sifa', 'verification'] as const,\n /** The append-only verification log of one position. */\n log: (did: string, positionRkey: string) =>\n ['sifa', 'verification', 'log', did, positionRkey] as const,\n },\n\n stream: {\n all: () => ['sifa', 'stream'] as const,\n networkCount: (did: string) => ['sifa', 'stream', 'network-count', did] as const,\n },\n\n reactions: {\n all: () => ['sifa', 'reactions'] as const,\n status: (uris: string[]) => ['sifa', 'reactions', 'status', uris] as const,\n accountCheck: (appId: string) => ['sifa', 'reactions', 'account-check', appId] as const,\n },\n\n bskyPreferences: {\n all: () => ['sifa', 'bsky-preferences'] as const,\n contentLabels: () => ['sifa', 'bsky-preferences', 'content-labels'] as const,\n },\n\n userSettings: {\n all: () => ['sifa', 'user-settings'] as const,\n },\n\n repoInventory: {\n all: () => ['sifa', 'repo-inventory'] as const,\n list: () => ['sifa', 'repo-inventory', 'list'] as const,\n },\n destructive: {\n all: () => ['sifa', 'destructive'] as const,\n wipePreview: () => ['sifa', 'destructive', 'wipe-preview'] as const,\n },\n} as const;\n\nexport type SifaQueryKey =\n | ReturnType<typeof sifaQueryKeys.all>\n | ReturnType<typeof sifaQueryKeys.profile.all>\n | ReturnType<typeof sifaQueryKeys.profile.byHandle>\n | ReturnType<typeof sifaQueryKeys.profile.atFundLink>\n | ReturnType<typeof sifaQueryKeys.profile.externalAccounts>\n | ReturnType<typeof sifaQueryKeys.profile.completeness>\n | ReturnType<typeof sifaQueryKeys.position.all>\n | ReturnType<typeof sifaQueryKeys.position.byOwner>\n | ReturnType<typeof sifaQueryKeys.position.unlinked>\n | ReturnType<typeof sifaQueryKeys.inbox.all>\n | ReturnType<typeof sifaQueryKeys.inbox.counts>\n | ReturnType<typeof sifaQueryKeys.rpg.all>\n | ReturnType<typeof sifaQueryKeys.rpg.claimable>\n | ReturnType<typeof sifaQueryKeys.rpg.status>\n | ReturnType<typeof sifaQueryKeys.search.all>\n | ReturnType<typeof sifaQueryKeys.search.profiles>\n | ReturnType<typeof sifaQueryKeys.search.canonicalSkills>\n | ReturnType<typeof sifaQueryKeys.search.skills>\n | ReturnType<typeof sifaQueryKeys.search.filters>\n | ReturnType<typeof sifaQueryKeys.entity.all>\n | ReturnType<typeof sifaQueryKeys.entity.search>\n | ReturnType<typeof sifaQueryKeys.discovery.all>\n | ReturnType<typeof sifaQueryKeys.discovery.similar>\n | ReturnType<typeof sifaQueryKeys.discovery.suggestions>\n | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount>\n | ReturnType<typeof sifaQueryKeys.discovery.featured>\n | ReturnType<typeof sifaQueryKeys.follow.all>\n | ReturnType<typeof sifaQueryKeys.follow.following>\n | ReturnType<typeof sifaQueryKeys.follow.followers>\n | ReturnType<typeof sifaQueryKeys.follow.followingOf>\n | ReturnType<typeof sifaQueryKeys.follow.feed>\n | ReturnType<typeof sifaQueryKeys.follow.mutuals>\n | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions>\n | ReturnType<typeof sifaQueryKeys.admin.all>\n | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist>\n | ReturnType<typeof sifaQueryKeys.admin.reviewQueues>\n | ReturnType<typeof sifaQueryKeys.stats.all>\n | ReturnType<typeof sifaQueryKeys.stats.homepage>\n | ReturnType<typeof sifaQueryKeys.apps.all>\n | ReturnType<typeof sifaQueryKeys.apps.registry>\n | ReturnType<typeof sifaQueryKeys.apps.hidden>\n | ReturnType<typeof sifaQueryKeys.activity.all>\n | ReturnType<typeof sifaQueryKeys.activity.heatmap>\n | ReturnType<typeof sifaQueryKeys.activity.teaser>\n | ReturnType<typeof sifaQueryKeys.activity.feed>\n | ReturnType<typeof sifaQueryKeys.activity.hiddenItems>\n | ReturnType<typeof sifaQueryKeys.activity.preferences>\n | ReturnType<typeof sifaQueryKeys.activity.sitePreset>\n | ReturnType<typeof sifaQueryKeys.endorsement.all>\n | ReturnType<typeof sifaQueryKeys.endorsement.count>\n | ReturnType<typeof sifaQueryKeys.endorsement.pending>\n | ReturnType<typeof sifaQueryKeys.endorsement.reciprocity>\n | ReturnType<typeof sifaQueryKeys.endorsement.received>\n | ReturnType<typeof sifaQueryKeys.confirmation.all>\n | ReturnType<typeof sifaQueryKeys.confirmation.pending>\n | ReturnType<typeof sifaQueryKeys.confirmation.given>\n | ReturnType<typeof sifaQueryKeys.stream.all>\n | ReturnType<typeof sifaQueryKeys.stream.networkCount>\n | ReturnType<typeof sifaQueryKeys.reactions.all>\n | ReturnType<typeof sifaQueryKeys.reactions.status>\n | ReturnType<typeof sifaQueryKeys.reactions.accountCheck>\n | ReturnType<typeof sifaQueryKeys.bskyPreferences.all>\n | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels>\n | ReturnType<typeof sifaQueryKeys.userSettings.all>\n | ReturnType<typeof sifaQueryKeys.destructive.all>\n | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>\n | ReturnType<typeof sifaQueryKeys.repoInventory.all>\n | ReturnType<typeof sifaQueryKeys.repoInventory.list>;\n"],"mappings":";AAWO,IAAM,gBAAgB;AAAA,EAC3B,KAAK,MAAM,CAAC,MAAM;AAAA,EAElB,SAAS;AAAA,IACP,KAAK,MAAM,CAAC,QAAQ,SAAS;AAAA,IAC7B,UAAU,CAAC,gBAAwB,CAAC,QAAQ,WAAW,WAAW;AAAA,IAClE,YAAY,CAAC,QAAgB,CAAC,QAAQ,WAAW,gBAAgB,GAAG;AAAA,IACpE,MAAM,CAAC,UAAkB,CAAC,QAAQ,WAAW,QAAQ,KAAK;AAAA,IAC1D,kBAAkB,CAAC,gBACjB,CAAC,QAAQ,WAAW,qBAAqB,WAAW;AAAA;AAAA;AAAA,IAGtD,cAAc,MAAM,CAAC,QAAQ,WAAW,cAAc;AAAA,EACxD;AAAA,EAEA,UAAU;AAAA,IACR,KAAK,MAAM,CAAC,QAAQ,UAAU;AAAA,IAC9B,SAAS,CAAC,QAAgB,CAAC,QAAQ,YAAY,YAAY,GAAG;AAAA;AAAA,IAE9D,UAAU,MAAM,CAAC,QAAQ,YAAY,UAAU;AAAA,EACjD;AAAA;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
|
|
4
|
+
var ISSUE_PATH_PREFIX = `/${ROADMAP_ISSUES_REPO}/issues/`;
|
|
5
|
+
var TRAILING_PUNCTUATION = /* @__PURE__ */ new Set([">", ".", ",", ";", ")"]);
|
|
6
|
+
function roadmapIssueNumber(candidate) {
|
|
7
|
+
let url;
|
|
8
|
+
try {
|
|
9
|
+
url = new URL(candidate);
|
|
10
|
+
} catch {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
if (url.protocol !== "https:" || url.hostname !== "github.com") return null;
|
|
14
|
+
if (url.search || url.hash || !url.pathname.startsWith(ISSUE_PATH_PREFIX)) return null;
|
|
15
|
+
const rest = url.pathname.slice(ISSUE_PATH_PREFIX.length);
|
|
16
|
+
if (rest.length === 0 || rest.length > 9) return null;
|
|
17
|
+
for (const ch of rest) if (ch < "0" || ch > "9") return null;
|
|
18
|
+
return Number(rest);
|
|
19
|
+
}
|
|
20
|
+
function trimEntry(raw) {
|
|
21
|
+
const start = raw.startsWith("<") ? 1 : 0;
|
|
22
|
+
let end = raw.length;
|
|
23
|
+
while (end > start && TRAILING_PUNCTUATION.has(raw[end - 1] ?? "")) end--;
|
|
24
|
+
return raw.slice(start, end);
|
|
25
|
+
}
|
|
26
|
+
function parseTrackingLine(entries) {
|
|
27
|
+
const numbers = [];
|
|
28
|
+
for (const raw of entries.split(",").flatMap((part) => part.split(" "))) {
|
|
29
|
+
const candidate = trimEntry(raw.trim());
|
|
30
|
+
if (!candidate) continue;
|
|
31
|
+
const number = roadmapIssueNumber(candidate);
|
|
32
|
+
if (number === null) return null;
|
|
33
|
+
numbers.push(number);
|
|
34
|
+
}
|
|
35
|
+
return numbers.length > 0 ? numbers : null;
|
|
36
|
+
}
|
|
37
|
+
function splitRoadmapBody(body) {
|
|
38
|
+
const issues = [];
|
|
39
|
+
const kept = [];
|
|
40
|
+
for (const line of (body ?? "").split("\n")) {
|
|
41
|
+
const trimmed = line.trim();
|
|
42
|
+
const numbers = trimmed.toLowerCase().startsWith(TRACKING_PREFIX) ? parseTrackingLine(trimmed.slice(TRACKING_PREFIX.length)) : null;
|
|
43
|
+
if (!numbers) {
|
|
44
|
+
kept.push(line);
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
for (const number of numbers) issues.push({ number, url: roadmapIssueUrl(number) });
|
|
48
|
+
}
|
|
49
|
+
const description = kept.join("\n").trim();
|
|
50
|
+
return { description: description || null, issues };
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
splitRoadmapBody
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=board-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/roadmap/board-body.ts"],"sourcesContent":["/**\n * Splits a roadmap board item's body into its description and the issues\n * tracking it. Operator-written items end with a line like\n * `Tracking: https://github.com/singi-labs/sifa-workspace/issues/<n>, ...`.\n * Only issues in {@link ROADMAP_ISSUES_REPO} become links, and a tracking line\n * is removed from the description only when every entry on it is one of them,\n * so text written by anyone else is never lost.\n */\nimport { ROADMAP_ISSUES_REPO, roadmapIssueUrl } from './index.js';\n\nexport interface RoadmapIssueLink {\n number: number;\n url: string;\n}\n\nexport interface RoadmapBodyParts {\n description: string | null;\n issues: RoadmapIssueLink[];\n}\n\nconst TRACKING_PREFIX = 'tracking:';\nconst ISSUE_PATH_PREFIX = `/${ROADMAP_ISSUES_REPO}/issues/`;\nconst TRAILING_PUNCTUATION = new Set(['>', '.', ',', ';', ')']);\n\n/** The issue number when `candidate` is an issue URL in the roadmap repo. */\nfunction roadmapIssueNumber(candidate: string): number | null {\n let url: URL;\n try {\n url = new URL(candidate);\n } catch {\n return null;\n }\n if (url.protocol !== 'https:' || url.hostname !== 'github.com') return null;\n if (url.search || url.hash || !url.pathname.startsWith(ISSUE_PATH_PREFIX)) return null;\n const rest = url.pathname.slice(ISSUE_PATH_PREFIX.length);\n if (rest.length === 0 || rest.length > 9) return null;\n for (const ch of rest) if (ch < '0' || ch > '9') return null;\n return Number(rest);\n}\n\nfunction trimEntry(raw: string): string {\n const start = raw.startsWith('<') ? 1 : 0;\n let end = raw.length;\n while (end > start && TRAILING_PUNCTUATION.has(raw[end - 1] ?? '')) end--;\n return raw.slice(start, end);\n}\n\n/** Issue numbers on a tracking line, or null when any entry is not a roadmap issue. */\nfunction parseTrackingLine(entries: string): number[] | null {\n const numbers: number[] = [];\n for (const raw of entries.split(',').flatMap((part) => part.split(' '))) {\n const candidate = trimEntry(raw.trim());\n if (!candidate) continue;\n const number = roadmapIssueNumber(candidate);\n if (number === null) return null;\n numbers.push(number);\n }\n return numbers.length > 0 ? numbers : null;\n}\n\nexport function splitRoadmapBody(body: string | null | undefined): RoadmapBodyParts {\n const issues: RoadmapIssueLink[] = [];\n const kept: string[] = [];\n for (const line of (body ?? '').split('\\n')) {\n const trimmed = line.trim();\n const numbers = trimmed.toLowerCase().startsWith(TRACKING_PREFIX)\n ? parseTrackingLine(trimmed.slice(TRACKING_PREFIX.length))\n : null;\n if (!numbers) {\n kept.push(line);\n continue;\n }\n for (const number of numbers) issues.push({ number, url: roadmapIssueUrl(number) });\n }\n const description = kept.join('\\n').trim();\n return { description: description || null, issues };\n}\n"],"mappings":";AAQA,SAAS,qBAAqB,uBAAuB;AAYrD,IAAM,kBAAkB;AACxB,IAAM,oBAAoB,IAAI,mBAAmB;AACjD,IAAM,uBAAuB,oBAAI,IAAI,CAAC,KAAK,KAAK,KAAK,KAAK,GAAG,CAAC;AAG9D,SAAS,mBAAmB,WAAkC;AAC5D,MAAI;AACJ,MAAI;AACF,UAAM,IAAI,IAAI,SAAS;AAAA,EACzB,QAAQ;AACN,WAAO;AAAA,EACT;AACA,MAAI,IAAI,aAAa,YAAY,IAAI,aAAa,aAAc,QAAO;AACvE,MAAI,IAAI,UAAU,IAAI,QAAQ,CAAC,IAAI,SAAS,WAAW,iBAAiB,EAAG,QAAO;AAClF,QAAM,OAAO,IAAI,SAAS,MAAM,kBAAkB,MAAM;AACxD,MAAI,KAAK,WAAW,K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