@singi-labs/sifa-sdk 0.12.48 → 0.12.49
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-D5yf1X4k.d.ts → index-CddvYEbj.d.ts} +11 -2
- package/dist/{index-DS-cxfHb.d.ts → index-L1xPmzKP.d.ts} +1 -1
- package/dist/{index-TELQkOMk.d.cts → index-r5KywRfC.d.cts} +11 -2
- package/dist/{index-X9PQhUnB.d.cts → index-wf6rbBZZ.d.cts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{org-C5Dzmo38.d.cts → org-CVLKBRsw.d.cts} +29 -2
- package/dist/{org-BtdoBUT6.d.ts → org-CZvX0wc7.d.ts} +29 -2
- package/dist/query/fetchers/index.cjs +27 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +27 -2
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +39 -1
- 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 +39 -2
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +38 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/query/index.js +37 -2
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult,
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ap as RefreshPdsResult, aF as UpdateProfileOverrideInput, aG as UpdateProfileSelfInput, aH as UploadAvatarResult, C as CreateResult, aC as SubCategoryBulkResult, ad as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aI as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, aa as PendingConfirmationsPage, ao as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, Z as HideProfileItemInput, aB as StatsResponse, j as AppRegistryEntry, V as HiddenApp, I as FilterOptions, aw as SearchFilters, ax as SearchResponse, aA as SkillSearchResult, q as FeaturedProfile, az as SimilarProfile, H as FetchSuggestionsOptions, aE as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, U as HeatmapResponse, $ as MyGithubPullRequestsResponse, c as AccountCheckResult, an as ReactionStatus, am as ReactionResult, al as ReactionError, av as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, aq as ResetProfileResult, aJ as WipePreview, a1 as OrgClaimResult, a7 as OrgProfileUpdateResult, a2 as OrgDomainChallengeResult, a3 as OrgDomainVerifyResult, a4 as OrgNotificationEmailAddResult, a5 as OrgNotificationEmailRemoveResult } from './org-CZvX0wc7.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-BUgP8bpf.js';
|
|
@@ -566,6 +566,15 @@ interface RemoveFeatureAllowlistVariables {
|
|
|
566
566
|
*/
|
|
567
567
|
declare function useRemoveFeatureAllowlist(flag: FeatureFlag, options?: Omit<UseMutationOptions<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>;
|
|
568
568
|
|
|
569
|
+
/**
|
|
570
|
+
* Read hook for the open counts of the three admin review queues. Shared by
|
|
571
|
+
* the admin nav pill and the review-queues page so both render one number
|
|
572
|
+
* from one request.
|
|
573
|
+
*
|
|
574
|
+
* Admin-gated on the server; non-admins get an error rather than zeroes.
|
|
575
|
+
*/
|
|
576
|
+
declare function useAdminReviewQueues(options?: Omit<UseQueryOptions<AdminReviewQueues, Error, AdminReviewQueues, ReturnType<typeof sifaQueryKeys.admin.reviewQueues>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<AdminReviewQueues>, Error>;
|
|
577
|
+
|
|
569
578
|
declare function useHeatmapData(handleOrDid: string | undefined | null, days: number, options?: Omit<UseQueryOptions<HeatmapResponse | null, Error, HeatmapResponse | null, ReturnType<typeof sifaQueryKeys.activity.heatmap>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<HeatmapResponse | null>, Error>;
|
|
570
579
|
declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityTeaserResponse | null>, Error>;
|
|
571
580
|
declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityFeedResponse | null>, Error>;
|
|
@@ -773,4 +782,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
773
782
|
email: string;
|
|
774
783
|
}, unknown>;
|
|
775
784
|
|
|
776
|
-
export {
|
|
785
|
+
export { useDeleteSkill as $, type AddFeatureAllowlistVariables as A, useCastRoadmapVote as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateConfirmation as E, type FollowVariables as F, useCreateEducation as G, useCreateEndorsement as H, useCreateExternalAccount as I, useCreatePosition as J, useCreateProfileLocation as K, useCreateReaction as L, useCreateRecord as M, useCreateSkill as N, useDebouncedValue as O, type PositionSkillLinkVariables as P, useDeleteAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteAvatarOverride as T, type UnfollowVariables as U, useDeleteEducation as V, useDeleteExternalAccount as W, useDeletePosition as X, useDeleteProfileLocation as Y, useDeleteReaction as Z, useDeleteRecord as _, type CreateRecordVariables as a, useUnsetPositionPrimary as a$, useDismissConfirmation as a0, useEndorsementCount as a1, useEntitySearch as a2, useExternalAccounts as a3, useFeatureAllowlist as a4, useFeaturedProfile as a5, useFollow as a6, useFollowers as a7, useFollowing as a8, useFollowingFeed as a9, useRemoveOrgNotificationEmail as aA, useResetProfile as aB, useResolveEntityDomain as aC, useRetractRoadmapVote as aD, useRevealMarqueDomain as aE, useRevokeConfirmation as aF, useRoadmapVotes as aG, useSearchFilters as aH, useSearchProfiles as aI, useSelectEntity as aJ, useSetExternalAccountPrimary as aK, useSetPositionPrimary as aL, useSifaConfig as aM, useSimilarProfiles as aN, useSkillSuggestions as aO, useStats as aP, useSuggestionCount as aQ, useSuggestions as aR, useUnfollow as aS, useUnhideKeytraceClaim as aT, useUnhideOrcidPublication as aU, useUnhideProfileItem as aV, useUnhideSifaPublication as aW, useUnhideStandardPublication as aX, useUnlinkSkillFromPosition as aY, useUnrevealMarqueDomain as aZ, useUnsetExternalAccountPrimary as a_, useFollowingList as aa, useGetProfileView as ab, useHeatmapData as ac, useHiddenApps as ad, useHideKeytraceClaim as ae, useHideOrcidPublication as af, useHideProfileItem as ag, useHideSifaPublication as ah, useHideStandardPublication as ai, useImportSearchEntities as aj, useLinkSkillToPosition as ak, useMintEntityDomain as al, useMutuals as am, useMyGithubPullRequests as an, useMyRoadmapVotes as ao, useNetworkStreamCount as ap, useOrgClaim as aq, useOrgDomainChallenge as ar, useOrgDomainVerify as as, useOrgProfile as at, usePendingConfirmations as au, useProfile as av, useReactionStatus as aw, useRefreshOrcidPublications as ax, useRefreshPds as ay, useRemoveFeatureAllowlist as az, type DeleteRecordVariables as b, useUpdateEducation as b0, useUpdateExternalAccount as b1, useUpdateOrgProfile as b2, useUpdatePosition as b3, useUpdateProfileLocation as b4, useUpdateProfileOverride as b5, useUpdateProfileSelf as b6, useUpdateRecord as b7, useUpdateSkill as b8, useUpdateSkillSubCategories as b9, useUploadAvatar as ba, useVerifyExternalAccount as bb, useWipePreview as bc, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillSubCategoriesVariables as i, type UpdateSkillVariables as j, type UseEntitySearchOptions as k, type UseMyGithubPullRequestsParams as l, useActivityTeaser as m, useAddFeatureAllowlist as n, useAddOrgNotificationEmail as o, useAdminReviewQueues as p, useAppAccountCheck as q, useAppsRegistry as r, useAtFundLink as s, useBlueskySuggestions as t, useActivityFeed as u, useBulkHideProfileItems as v, useBulkHideStandardPublications as w, useBulkUnhideProfileItems as x, useBulkUnhideStandardPublications as y, useCanonicalSkillSearch as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-CZvX0wc7.js';
|
|
2
2
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-BUgP8bpf.js';
|
|
3
3
|
import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.js';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DyX9EJzZ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult,
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ap as RefreshPdsResult, aF as UpdateProfileOverrideInput, aG as UpdateProfileSelfInput, aH as UploadAvatarResult, C as CreateResult, aC as SubCategoryBulkResult, ad as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aI as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, aa as PendingConfirmationsPage, ao as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, Z as HideProfileItemInput, aB as StatsResponse, j as AppRegistryEntry, V as HiddenApp, I as FilterOptions, aw as SearchFilters, ax as SearchResponse, aA as SkillSearchResult, q as FeaturedProfile, az as SimilarProfile, H as FetchSuggestionsOptions, aE as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, U as HeatmapResponse, $ as MyGithubPullRequestsResponse, c as AccountCheckResult, an as ReactionStatus, am as ReactionResult, al as ReactionError, av as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, aq as ResetProfileResult, aJ as WipePreview, a1 as OrgClaimResult, a7 as OrgProfileUpdateResult, a2 as OrgDomainChallengeResult, a3 as OrgDomainVerifyResult, a4 as OrgNotificationEmailAddResult, a5 as OrgNotificationEmailRemoveResult } from './org-CVLKBRsw.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-BUgP8bpf.cjs';
|
|
@@ -566,6 +566,15 @@ interface RemoveFeatureAllowlistVariables {
|
|
|
566
566
|
*/
|
|
567
567
|
declare function useRemoveFeatureAllowlist(flag: FeatureFlag, options?: Omit<UseMutationOptions<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>;
|
|
568
568
|
|
|
569
|
+
/**
|
|
570
|
+
* Read hook for the open counts of the three admin review queues. Shared by
|
|
571
|
+
* the admin nav pill and the review-queues page so both render one number
|
|
572
|
+
* from one request.
|
|
573
|
+
*
|
|
574
|
+
* Admin-gated on the server; non-admins get an error rather than zeroes.
|
|
575
|
+
*/
|
|
576
|
+
declare function useAdminReviewQueues(options?: Omit<UseQueryOptions<AdminReviewQueues, Error, AdminReviewQueues, ReturnType<typeof sifaQueryKeys.admin.reviewQueues>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<AdminReviewQueues>, Error>;
|
|
577
|
+
|
|
569
578
|
declare function useHeatmapData(handleOrDid: string | undefined | null, days: number, options?: Omit<UseQueryOptions<HeatmapResponse | null, Error, HeatmapResponse | null, ReturnType<typeof sifaQueryKeys.activity.heatmap>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<HeatmapResponse | null>, Error>;
|
|
570
579
|
declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityTeaserResponse | null>, Error>;
|
|
571
580
|
declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityFeedResponse | null>, Error>;
|
|
@@ -773,4 +782,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
773
782
|
email: string;
|
|
774
783
|
}, unknown>;
|
|
775
784
|
|
|
776
|
-
export {
|
|
785
|
+
export { useDeleteSkill as $, type AddFeatureAllowlistVariables as A, useCastRoadmapVote as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateConfirmation as E, type FollowVariables as F, useCreateEducation as G, useCreateEndorsement as H, useCreateExternalAccount as I, useCreatePosition as J, useCreateProfileLocation as K, useCreateReaction as L, useCreateRecord as M, useCreateSkill as N, useDebouncedValue as O, type PositionSkillLinkVariables as P, useDeleteAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteAvatarOverride as T, type UnfollowVariables as U, useDeleteEducation as V, useDeleteExternalAccount as W, useDeletePosition as X, useDeleteProfileLocation as Y, useDeleteReaction as Z, useDeleteRecord as _, type CreateRecordVariables as a, useUnsetPositionPrimary as a$, useDismissConfirmation as a0, useEndorsementCount as a1, useEntitySearch as a2, useExternalAccounts as a3, useFeatureAllowlist as a4, useFeaturedProfile as a5, useFollow as a6, useFollowers as a7, useFollowing as a8, useFollowingFeed as a9, useRemoveOrgNotificationEmail as aA, useResetProfile as aB, useResolveEntityDomain as aC, useRetractRoadmapVote as aD, useRevealMarqueDomain as aE, useRevokeConfirmation as aF, useRoadmapVotes as aG, useSearchFilters as aH, useSearchProfiles as aI, useSelectEntity as aJ, useSetExternalAccountPrimary as aK, useSetPositionPrimary as aL, useSifaConfig as aM, useSimilarProfiles as aN, useSkillSuggestions as aO, useStats as aP, useSuggestionCount as aQ, useSuggestions as aR, useUnfollow as aS, useUnhideKeytraceClaim as aT, useUnhideOrcidPublication as aU, useUnhideProfileItem as aV, useUnhideSifaPublication as aW, useUnhideStandardPublication as aX, useUnlinkSkillFromPosition as aY, useUnrevealMarqueDomain as aZ, useUnsetExternalAccountPrimary as a_, useFollowingList as aa, useGetProfileView as ab, useHeatmapData as ac, useHiddenApps as ad, useHideKeytraceClaim as ae, useHideOrcidPublication as af, useHideProfileItem as ag, useHideSifaPublication as ah, useHideStandardPublication as ai, useImportSearchEntities as aj, useLinkSkillToPosition as ak, useMintEntityDomain as al, useMutuals as am, useMyGithubPullRequests as an, useMyRoadmapVotes as ao, useNetworkStreamCount as ap, useOrgClaim as aq, useOrgDomainChallenge as ar, useOrgDomainVerify as as, useOrgProfile as at, usePendingConfirmations as au, useProfile as av, useReactionStatus as aw, useRefreshOrcidPublications as ax, useRefreshPds as ay, useRemoveFeatureAllowlist as az, type DeleteRecordVariables as b, useUpdateEducation as b0, useUpdateExternalAccount as b1, useUpdateOrgProfile as b2, useUpdatePosition as b3, useUpdateProfileLocation as b4, useUpdateProfileOverride as b5, useUpdateProfileSelf as b6, useUpdateRecord as b7, useUpdateSkill as b8, useUpdateSkillSubCategories as b9, useUploadAvatar as ba, useVerifyExternalAccount as bb, useWipePreview as bc, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillSubCategoriesVariables as i, type UpdateSkillVariables as j, type UseEntitySearchOptions as k, type UseMyGithubPullRequestsParams as l, useActivityTeaser as m, useAddFeatureAllowlist as n, useAddOrgNotificationEmail as o, useAdminReviewQueues as p, useAppAccountCheck as q, useAppsRegistry as r, useAtFundLink as s, useBlueskySuggestions as t, useActivityFeed as u, useBulkHideProfileItems as v, useBulkHideStandardPublications as w, useBulkUnhideProfileItems as x, useBulkUnhideStandardPublications as y, useCanonicalSkillSearch as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-CVLKBRsw.cjs';
|
|
2
2
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-BUgP8bpf.cjs';
|
|
3
3
|
import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.cjs';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DReI-P0i.cjs';
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -5391,7 +5391,7 @@ function roadmapIssueUrl(issue) {
|
|
|
5391
5391
|
}
|
|
5392
5392
|
|
|
5393
5393
|
// src/index.ts
|
|
5394
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
5394
|
+
var SIFA_SDK_VERSION = "0.12.49";
|
|
5395
5395
|
|
|
5396
5396
|
export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, resolveAccountFacetMode, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
|
|
5397
5397
|
//# sourceMappingURL=index.js.map
|
|
@@ -889,6 +889,32 @@ declare function addFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, d
|
|
|
889
889
|
*/
|
|
890
890
|
declare function removeFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, did: string, opts?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult>;
|
|
891
891
|
|
|
892
|
+
/**
|
|
893
|
+
* Options for {@link getAdminReviewQueues}. Supports the same `cookieHeader`
|
|
894
|
+
* passthrough as the other admin reads for RSC contexts.
|
|
895
|
+
*/
|
|
896
|
+
interface GetAdminReviewQueuesOptions extends ApiFetchOptions {
|
|
897
|
+
cookieHeader?: string;
|
|
898
|
+
}
|
|
899
|
+
/** Response shape of `GET /api/admin/stats/review-queues`. */
|
|
900
|
+
interface AdminReviewQueues {
|
|
901
|
+
ideas: number;
|
|
902
|
+
nameCorrections: number;
|
|
903
|
+
pendingCompanies: number;
|
|
904
|
+
/** Sum of the three queues. */
|
|
905
|
+
total: number;
|
|
906
|
+
generatedAt: string;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Open counts for the three admin review queues (ideas, pending companies,
|
|
910
|
+
* name corrections) plus their total.
|
|
911
|
+
*
|
|
912
|
+
* Unlike {@link listFeatureAllowlist} this does NOT swallow errors: a zeroed
|
|
913
|
+
* payload would render as "all queues clear" in the admin nav, which is worse
|
|
914
|
+
* than rendering nothing. Callers decide how to degrade.
|
|
915
|
+
*/
|
|
916
|
+
declare function getAdminReviewQueues(config: SifaApiConfig, opts?: GetAdminReviewQueuesOptions): Promise<AdminReviewQueues>;
|
|
917
|
+
|
|
892
918
|
interface QuotedPostAuthor {
|
|
893
919
|
did: string;
|
|
894
920
|
handle: string;
|
|
@@ -1369,6 +1395,7 @@ declare const sifaQueryKeys: {
|
|
|
1369
1395
|
readonly admin: {
|
|
1370
1396
|
readonly all: () => readonly ["sifa", "admin"];
|
|
1371
1397
|
readonly featureAllowlist: (flag: string) => readonly ["sifa", "admin", "feature-allowlist", string];
|
|
1398
|
+
readonly reviewQueues: () => readonly ["sifa", "admin", "review-queues"];
|
|
1372
1399
|
};
|
|
1373
1400
|
readonly stats: {
|
|
1374
1401
|
readonly all: () => readonly ["sifa", "stats"];
|
|
@@ -1427,7 +1454,7 @@ declare const sifaQueryKeys: {
|
|
|
1427
1454
|
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1428
1455
|
};
|
|
1429
1456
|
};
|
|
1430
|
-
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1457
|
+
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1431
1458
|
|
|
1432
1459
|
/** How a single entity binding was resolved during a claim. */
|
|
1433
1460
|
interface OrgClaimBinding {
|
|
@@ -1514,4 +1541,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1514
1541
|
*/
|
|
1515
1542
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1516
1543
|
|
|
1517
|
-
export { type
|
|
1544
|
+
export { type MyGithubPullRequestsResponse as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, HIDDEN_ITEM_SOURCES as Q, HIDDEN_ITEM_TYPES as R, type SifaApiConfig as S, type HeatmapDay as T, type HeatmapResponse as U, type HiddenApp as V, type WriteResult as W, type HiddenItemSource as X, type HiddenItemType as Y, type HideProfileItemInput as Z, type ListFeatureAllowlistOptions as _, type ConfirmEndorsementInput as a, createReaction as a$, type OrgClaimBinding as a0, type OrgClaimResult as a1, type OrgDomainChallengeResult as a2, type OrgDomainVerifyResult as a3, type OrgNotificationEmailAddResult as a4, type OrgNotificationEmailRemoveResult as a5, type OrgProfileEcho as a6, type OrgProfileUpdateResult as a7, type PdsWipeOutcome as a8, type PendingConfirmation as a9, type SkillSearchResult as aA, type StatsResponse as aB, type SubCategoryBulkResult as aC, type SuggestionProfile as aD, type SuggestionsResponse as aE, type UpdateProfileOverrideInput as aF, type UpdateProfileSelfInput as aG, type UploadAvatarResult as aH, type VerifyExternalAccountResult as aI, type WipePreview as aJ, addFeatureAllowlist as aK, addOrgNotificationEmail as aL, apiFetch as aM, apiFetchOrNull as aN, apiWrite as aO, apiWriteCreate as aP, bulkHideProfileItems as aQ, bulkHideStandardPublications as aR, bulkUnhideProfileItems as aS, bulkUnhideStandardPublications as aT, castRoadmapVote as aU, checkAppAccount as aV, confirmEndorsement as aW, createConfirmation as aX, createEndorsement as aY, createExternalAccount as aZ, createProfileLocation as a_, type PendingConfirmationsPage as aa, type ProfileIndustryInput as ab, type ProfileLocationAddress as ac, type ProfileLocationInput as ad, type ProfileSearchResult as ae, type ProfileSelfLocation as af, QUOTED_POSTS_BATCH_MAX as ag, type QuotedPostAuthor as ah, type QuotedPostImage as ai, type QuotedPostResult as aj, type QuotedPostView as ak, type ReactionError as al, type ReactionResult as am, type ReactionStatus as an, type RefreshOrcidPublicationsResult as ao, type RefreshPdsResult as ap, type ResetProfileResult as aq, type ResolveQuotedPostsOptions as ar, type RoadmapVoteError as as, type RoadmapVoteResult as at, type RoadmapVoter as au, type RoadmapVotesResponse as av, type SearchFilters as aw, type SearchResponse as ax, type SifaQueryKey as ay, type SimilarProfile as az, type ConfirmEndorsementResult as b, updateProfileSelf as b$, createSkill as b0, deleteAccount as b1, deleteAvatarOverride as b2, deleteExternalAccount as b3, deleteProfileLocation as b4, deleteReaction as b5, deleteSkill as b6, dismissConfirmation as b7, fetchActivityFeed as b8, fetchActivityTeaser as b9, hideOrcidPublication as bA, hideProfileItem as bB, hideSifaPublication as bC, hideStandardPublication as bD, listFeatureAllowlist as bE, refreshOrcidPublications as bF, refreshPds as bG, removeFeatureAllowlist as bH, removeOrgNotificationEmail as bI, requestOrgDomainChallenge as bJ, resetProfile as bK, resolveQuotedPosts as bL, retractRoadmapVote as bM, revokeConfirmation as bN, searchSkills as bO, setExternalAccountPrimary as bP, submitOrgClaim as bQ, unfollowUser as bR, unhideOrcidPublication as bS, unhideProfileItem as bT, unhideSifaPublication as bU, unhideStandardPublication as bV, unsetExternalAccountPrimary as bW, updateExternalAccount as bX, updateOrgProfile as bY, updateProfileLocation as bZ, updateProfileOverride as b_, fetchAppsRegistry as ba, fetchExternalAccounts as bb, fetchFeaturedProfile as bc, fetchFollowing as bd, fetchHeatmapData as be, fetchHiddenApps as bf, fetchMyGithubPullRequests as bg, fetchMyRoadmapVotes as bh, fetchPendingConfirmations as bi, fetchReactionStatus as bj, fetchRoadmapVotes as bk, fetchSearchFilters as bl, fetchSearchProfiles as bm, fetchSimilarProfiles as bn, fetchSkillSuggestions as bo, fetchStats as bp, fetchSuggestionCount as bq, fetchSuggestions as br, fetchWipePreview as bs, followUser as bt, getAdminReviewQueues as bu, getBlueskySuggestions as bv, getFollowers as bw, getFollowing as bx, getFollowingFeed as by, getMutuals as bz, type AccountCheckResult as c, updateSkill as c0, updateSkillSubCategories as c1, uploadAvatar as c2, verifyExternalAccount as c3, verifyOrgDomain as c4, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
|
|
@@ -889,6 +889,32 @@ declare function addFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, d
|
|
|
889
889
|
*/
|
|
890
890
|
declare function removeFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, did: string, opts?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult>;
|
|
891
891
|
|
|
892
|
+
/**
|
|
893
|
+
* Options for {@link getAdminReviewQueues}. Supports the same `cookieHeader`
|
|
894
|
+
* passthrough as the other admin reads for RSC contexts.
|
|
895
|
+
*/
|
|
896
|
+
interface GetAdminReviewQueuesOptions extends ApiFetchOptions {
|
|
897
|
+
cookieHeader?: string;
|
|
898
|
+
}
|
|
899
|
+
/** Response shape of `GET /api/admin/stats/review-queues`. */
|
|
900
|
+
interface AdminReviewQueues {
|
|
901
|
+
ideas: number;
|
|
902
|
+
nameCorrections: number;
|
|
903
|
+
pendingCompanies: number;
|
|
904
|
+
/** Sum of the three queues. */
|
|
905
|
+
total: number;
|
|
906
|
+
generatedAt: string;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Open counts for the three admin review queues (ideas, pending companies,
|
|
910
|
+
* name corrections) plus their total.
|
|
911
|
+
*
|
|
912
|
+
* Unlike {@link listFeatureAllowlist} this does NOT swallow errors: a zeroed
|
|
913
|
+
* payload would render as "all queues clear" in the admin nav, which is worse
|
|
914
|
+
* than rendering nothing. Callers decide how to degrade.
|
|
915
|
+
*/
|
|
916
|
+
declare function getAdminReviewQueues(config: SifaApiConfig, opts?: GetAdminReviewQueuesOptions): Promise<AdminReviewQueues>;
|
|
917
|
+
|
|
892
918
|
interface QuotedPostAuthor {
|
|
893
919
|
did: string;
|
|
894
920
|
handle: string;
|
|
@@ -1369,6 +1395,7 @@ declare const sifaQueryKeys: {
|
|
|
1369
1395
|
readonly admin: {
|
|
1370
1396
|
readonly all: () => readonly ["sifa", "admin"];
|
|
1371
1397
|
readonly featureAllowlist: (flag: string) => readonly ["sifa", "admin", "feature-allowlist", string];
|
|
1398
|
+
readonly reviewQueues: () => readonly ["sifa", "admin", "review-queues"];
|
|
1372
1399
|
};
|
|
1373
1400
|
readonly stats: {
|
|
1374
1401
|
readonly all: () => readonly ["sifa", "stats"];
|
|
@@ -1427,7 +1454,7 @@ declare const sifaQueryKeys: {
|
|
|
1427
1454
|
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1428
1455
|
};
|
|
1429
1456
|
};
|
|
1430
|
-
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1457
|
+
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1431
1458
|
|
|
1432
1459
|
/** How a single entity binding was resolved during a claim. */
|
|
1433
1460
|
interface OrgClaimBinding {
|
|
@@ -1514,4 +1541,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1514
1541
|
*/
|
|
1515
1542
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1516
1543
|
|
|
1517
|
-
export { type
|
|
1544
|
+
export { type MyGithubPullRequestsResponse as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, HIDDEN_ITEM_SOURCES as Q, HIDDEN_ITEM_TYPES as R, type SifaApiConfig as S, type HeatmapDay as T, type HeatmapResponse as U, type HiddenApp as V, type WriteResult as W, type HiddenItemSource as X, type HiddenItemType as Y, type HideProfileItemInput as Z, type ListFeatureAllowlistOptions as _, type ConfirmEndorsementInput as a, createReaction as a$, type OrgClaimBinding as a0, type OrgClaimResult as a1, type OrgDomainChallengeResult as a2, type OrgDomainVerifyResult as a3, type OrgNotificationEmailAddResult as a4, type OrgNotificationEmailRemoveResult as a5, type OrgProfileEcho as a6, type OrgProfileUpdateResult as a7, type PdsWipeOutcome as a8, type PendingConfirmation as a9, type SkillSearchResult as aA, type StatsResponse as aB, type SubCategoryBulkResult as aC, type SuggestionProfile as aD, type SuggestionsResponse as aE, type UpdateProfileOverrideInput as aF, type UpdateProfileSelfInput as aG, type UploadAvatarResult as aH, type VerifyExternalAccountResult as aI, type WipePreview as aJ, addFeatureAllowlist as aK, addOrgNotificationEmail as aL, apiFetch as aM, apiFetchOrNull as aN, apiWrite as aO, apiWriteCreate as aP, bulkHideProfileItems as aQ, bulkHideStandardPublications as aR, bulkUnhideProfileItems as aS, bulkUnhideStandardPublications as aT, castRoadmapVote as aU, checkAppAccount as aV, confirmEndorsement as aW, createConfirmation as aX, createEndorsement as aY, createExternalAccount as aZ, createProfileLocation as a_, type PendingConfirmationsPage as aa, type ProfileIndustryInput as ab, type ProfileLocationAddress as ac, type ProfileLocationInput as ad, type ProfileSearchResult as ae, type ProfileSelfLocation as af, QUOTED_POSTS_BATCH_MAX as ag, type QuotedPostAuthor as ah, type QuotedPostImage as ai, type QuotedPostResult as aj, type QuotedPostView as ak, type ReactionError as al, type ReactionResult as am, type ReactionStatus as an, type RefreshOrcidPublicationsResult as ao, type RefreshPdsResult as ap, type ResetProfileResult as aq, type ResolveQuotedPostsOptions as ar, type RoadmapVoteError as as, type RoadmapVoteResult as at, type RoadmapVoter as au, type RoadmapVotesResponse as av, type SearchFilters as aw, type SearchResponse as ax, type SifaQueryKey as ay, type SimilarProfile as az, type ConfirmEndorsementResult as b, updateProfileSelf as b$, createSkill as b0, deleteAccount as b1, deleteAvatarOverride as b2, deleteExternalAccount as b3, deleteProfileLocation as b4, deleteReaction as b5, deleteSkill as b6, dismissConfirmation as b7, fetchActivityFeed as b8, fetchActivityTeaser as b9, hideOrcidPublication as bA, hideProfileItem as bB, hideSifaPublication as bC, hideStandardPublication as bD, listFeatureAllowlist as bE, refreshOrcidPublications as bF, refreshPds as bG, removeFeatureAllowlist as bH, removeOrgNotificationEmail as bI, requestOrgDomainChallenge as bJ, resetProfile as bK, resolveQuotedPosts as bL, retractRoadmapVote as bM, revokeConfirmation as bN, searchSkills as bO, setExternalAccountPrimary as bP, submitOrgClaim as bQ, unfollowUser as bR, unhideOrcidPublication as bS, unhideProfileItem as bT, unhideSifaPublication as bU, unhideStandardPublication as bV, unsetExternalAccountPrimary as bW, updateExternalAccount as bX, updateOrgProfile as bY, updateProfileLocation as bZ, updateProfileOverride as b_, fetchAppsRegistry as ba, fetchExternalAccounts as bb, fetchFeaturedProfile as bc, fetchFollowing as bd, fetchHeatmapData as be, fetchHiddenApps as bf, fetchMyGithubPullRequests as bg, fetchMyRoadmapVotes as bh, fetchPendingConfirmations as bi, fetchReactionStatus as bj, fetchRoadmapVotes as bk, fetchSearchFilters as bl, fetchSearchProfiles as bm, fetchSimilarProfiles as bn, fetchSkillSuggestions as bo, fetchStats as bp, fetchSuggestionCount as bq, fetchSuggestions as br, fetchWipePreview as bs, followUser as bt, getAdminReviewQueues as bu, getBlueskySuggestions as bv, getFollowers as bw, getFollowing as bx, getFollowingFeed as by, getMutuals as bz, type AccountCheckResult as c, updateSkill as c0, updateSkillSubCategories as c1, uploadAvatar as c2, verifyExternalAccount as c3, verifyOrgDomain as c4, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
|
|
@@ -856,6 +856,30 @@ function removeFeatureAllowlist(config, flag, did, opts = {}) {
|
|
|
856
856
|
);
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
+
// src/query/fetchers/admin-review-queues.ts
|
|
860
|
+
async function getAdminReviewQueues(config, opts = {}) {
|
|
861
|
+
const headers = { ...opts.headers ?? {} };
|
|
862
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
863
|
+
const res = await apiFetch(config, "/api/admin/stats/review-queues", {
|
|
864
|
+
credentials: "include",
|
|
865
|
+
cache: "no-store",
|
|
866
|
+
...opts,
|
|
867
|
+
headers
|
|
868
|
+
});
|
|
869
|
+
const ideas = res.ideas ?? 0;
|
|
870
|
+
const nameCorrections = res.nameCorrections ?? 0;
|
|
871
|
+
const pendingCompanies = res.pendingCompanies ?? 0;
|
|
872
|
+
return {
|
|
873
|
+
ideas,
|
|
874
|
+
nameCorrections,
|
|
875
|
+
pendingCompanies,
|
|
876
|
+
// Derived rather than trusted so an API that predates the field still
|
|
877
|
+
// yields a usable pill count.
|
|
878
|
+
total: res.total ?? ideas + nameCorrections + pendingCompanies,
|
|
879
|
+
generatedAt: res.generatedAt ?? ""
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
|
|
859
883
|
// src/query/fetchers/activity.ts
|
|
860
884
|
async function fetchHeatmapData(config, handleOrDid, days, options = {}) {
|
|
861
885
|
const path = `/api/activity/${encodeIdentifier(handleOrDid)}/heatmap?days=${days}`;
|
|
@@ -1430,7 +1454,8 @@ var sifaQueryKeys = {
|
|
|
1430
1454
|
},
|
|
1431
1455
|
admin: {
|
|
1432
1456
|
all: () => ["sifa", "admin"],
|
|
1433
|
-
featureAllowlist: (flag) => ["sifa", "admin", "feature-allowlist", flag]
|
|
1457
|
+
featureAllowlist: (flag) => ["sifa", "admin", "feature-allowlist", flag],
|
|
1458
|
+
reviewQueues: () => ["sifa", "admin", "review-queues"]
|
|
1434
1459
|
},
|
|
1435
1460
|
stats: {
|
|
1436
1461
|
all: () => ["sifa", "stats"],
|
|
@@ -1558,6 +1583,7 @@ exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
|
1558
1583
|
exports.fetchSuggestions = fetchSuggestions;
|
|
1559
1584
|
exports.fetchWipePreview = fetchWipePreview;
|
|
1560
1585
|
exports.followUser = followUser;
|
|
1586
|
+
exports.getAdminReviewQueues = getAdminReviewQueues;
|
|
1561
1587
|
exports.getBlueskySuggestions = getBlueskySuggestions;
|
|
1562
1588
|
exports.getFollowers = getFollowers;
|
|
1563
1589
|
exports.getFollowing = getFollowing;
|