@singi-labs/sifa-sdk 0.12.91 → 0.13.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 +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/{network-map-GfIVEYpr.d.ts → network-map-CC9Dito-.d.ts} +95 -3
- package/dist/{network-map-y6U7m-hX.d.cts → network-map-D223f7DM.d.cts} +95 -3
- package/dist/{org-ClDqS3CM.d.cts → org-DCHb1xhw.d.cts} +36 -1
- package/dist/{org-GlACA06R.d.ts → org-zMZg_r7v.d.ts} +36 -1
- package/dist/query/fetchers/index.cjs +71 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/fetchers/index.js +68 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +33 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +33 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +80 -0
- 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 +76 -1
- package/dist/query/index.js.map +1 -1
- package/dist/{use-org-notification-emails-DGzW9MH6.d.ts → use-org-notification-emails-Bt-h3SAB.d.ts} +9 -2
- package/dist/{use-org-notification-emails-B-oGiDHo.d.cts → use-org-notification-emails-ByAvxb0x.d.cts} +9 -2
- package/package.json +1 -1
package/dist/{use-org-notification-emails-DGzW9MH6.d.ts → use-org-notification-emails-Bt-h3SAB.d.ts}
RENAMED
|
@@ -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, as as RefreshPdsResult, aJ as UpdateProfileOverrideInput, aK as UpdateProfileSelfInput, aL as UploadAvatarResult, aM as UploadPronunciationAudioResult, C as CreateResult, aG as SubCategoryBulkResult, ag as ProfileLocationInput, q as ExternalAccountInput, p as CreateExternalAccountResult, aN as VerifyExternalAccountResult, E as EndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, T as GivenConfirmation, ad as PendingConfirmationsPage, ar as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a0 as HideProfileItemInput, aF as StatsResponse, k as AppRegistryEntry, Z as HiddenApp, d as AccountSummary, K as FilterOptions, aA as SearchFilters, aB as SearchResponse, aE as SkillSearchResult, ci as CompanySearchFilters, cj as CompanySearchResponse, r as FeaturedProfile, aD as SimilarProfile, J as FetchSuggestionsOptions, aI as SuggestionsResponse, O as FollowUserResult, w as FetchFollowListOptions, L as FollowListPage, P as FollowingResponse, y as FetchFollowingFeedOptions, x as FetchFollowProfilePageOptions, N as FollowProfilePageResponse, F as FeatureAllowlistResponse, i as AdminReviewQueues, u as FetchActivityFeedOptions, e as ActivityFeedResponse, h as ActivityTeaserResponse, Y as HeatmapResponse, a2 as MyGithubPullRequestsResponse, c as AccountCheckResult, aq as ReactionStatus, ap as ReactionResult, ao as ReactionError, az as RoadmapVotesResponse, l as CastRoadmapVoteResult, D as DeleteAccountResult, au as ResetProfileResult, aO as WipePreview, at as RepoDeleteInput, a4 as OrgClaimResult, aa as OrgProfileUpdateResult, a5 as OrgDomainChallengeResult, a6 as OrgDomainVerifyResult, a7 as OrgNotificationEmailAddResult, a8 as OrgNotificationEmailRemoveResult } from './org-zMZg_r7v.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 { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, Q as SkillSuggestion, s as OrgFloorVerdict } from './index-jNyd5QP7.js';
|
|
@@ -311,6 +311,13 @@ declare function useAppsRegistry(options?: Omit<UseQueryOptions<AppRegistryEntry
|
|
|
311
311
|
*/
|
|
312
312
|
declare function useHiddenApps(options?: Omit<UseQueryOptions<HiddenApp[], Error, HiddenApp[], ReturnType<typeof sifaQueryKeys.apps.hidden>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<HiddenApp[]>, Error>;
|
|
313
313
|
|
|
314
|
+
/**
|
|
315
|
+
* React hook for the accounts attached to this browser (the account switcher).
|
|
316
|
+
* Requires a client-side session (relies on `credentials: 'include'`).
|
|
317
|
+
* Returns `[]` when unauthenticated.
|
|
318
|
+
*/
|
|
319
|
+
declare function useAccounts(options?: Omit<UseQueryOptions<AccountSummary[], Error, AccountSummary[], ReturnType<typeof sifaQueryKeys.auth.accounts>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<AccountSummary[]>, Error>;
|
|
320
|
+
|
|
314
321
|
declare function useSearchProfiles(filters: SearchFilters, options?: Omit<UseQueryOptions<SearchResponse, Error, SearchResponse, ReturnType<typeof sifaQueryKeys.search.profiles>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<SearchResponse>, Error>;
|
|
315
322
|
declare function useSkillSuggestions(query: string, options?: Omit<UseQueryOptions<SkillSearchResult[], Error, SkillSearchResult[], ReturnType<typeof sifaQueryKeys.search.skills>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<SkillSearchResult[]>, Error>;
|
|
316
323
|
/**
|
|
@@ -831,4 +838,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
831
838
|
email: string;
|
|
832
839
|
}, unknown>;
|
|
833
840
|
|
|
834
|
-
export {
|
|
841
|
+
export { useDeleteReaction as $, type AddFeatureAllowlistVariables as A, useCanonicalSkillSearch as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCastRoadmapVote as E, type FollowVariables as F, useCreateConfirmation as G, useCreateEducation as H, useCreateEndorsement as I, useCreateExternalAccount as J, useCreatePosition as K, useCreateProfileLocation as L, useCreateReaction as M, useCreateRecord as N, useCreateSkill as O, type PositionSkillLinkVariables as P, useDebouncedValue as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteAccount as T, type UnfollowVariables as U, useDeleteAvatarOverride as V, useDeleteEducation as W, useDeleteExternalAccount as X, useDeleteNamePronunciationAudio as Y, useDeletePosition as Z, useDeleteProfileLocation as _, type CreateRecordVariables as a, useUnhideSifaPublication as a$, useDeleteRecord as a0, useDeleteRepoRecords as a1, useDeleteSkill as a2, useDismissConfirmation as a3, useEndorsementCount as a4, useEntitySearch as a5, useExternalAccounts as a6, useFeatureAllowlist as a7, useFeaturedProfile as a8, useFollow as a9, useReactionStatus as aA, useRefreshOrcidPublications as aB, useRefreshPds as aC, useRemoveFeatureAllowlist as aD, useRemoveOrgNotificationEmail as aE, useRepoInventory as aF, useResetProfile as aG, useResolveEntityDomain as aH, useRetractRoadmapVote as aI, useRevealMarqueDomain as aJ, useRevokeConfirmation as aK, useRoadmapVotes as aL, useSearchFilters as aM, useSearchProfiles as aN, useSelectEntity as aO, useSetExternalAccountPrimary as aP, useSetPositionPrimary as aQ, useSifaConfig as aR, useSimilarProfiles as aS, useSkillSuggestions as aT, useStats as aU, useSuggestionCount as aV, useSuggestions as aW, useUnfollow as aX, useUnhideKeytraceClaim as aY, useUnhideOrcidPublication as aZ, useUnhideProfileItem as a_, useFollowers as aa, useFollowing as ab, useFollowingFeed as ac, useFollowingList as ad, useGetProfileView as ae, useGivenConfirmations as af, useHeatmapData as ag, useHiddenApps as ah, useHideKeytraceClaim as ai, useHideOrcidPublication as aj, useHideProfileItem as ak, useHideSifaPublication as al, useHideStandardPublication as am, useImportSearchEntities as an, useLinkSkillToPosition as ao, useMintEntityDomain as ap, useMutuals as aq, useMyGithubPullRequests as ar, useMyRoadmapVotes as as, useNetworkStreamCount as at, useOrgClaim as au, useOrgDomainChallenge as av, useOrgDomainVerify as aw, useOrgProfile as ax, usePendingConfirmations as ay, useProfile as az, type DeleteRecordVariables as b, useUnhideStandardPublication as b0, useUnlinkSkillFromPosition as b1, useUnrevealMarqueDomain as b2, useUnsetExternalAccountPrimary as b3, useUnsetPositionPrimary as b4, useUpdateEducation as b5, useUpdateExternalAccount as b6, useUpdateOrgProfile as b7, useUpdatePosition as b8, useUpdateProfileLocation as b9, useUpdateProfileOverride as ba, useUpdateProfileSelf as bb, useUpdateRecord as bc, useUpdateSkill as bd, useUpdateSkillSubCategories as be, useUploadAvatar as bf, useUploadNamePronunciationAudio as bg, useVerifyExternalAccount as bh, useWipePreview as bi, useSearchCompanies as bj, 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, useActivityFeed as m, useActivityTeaser as n, useAddFeatureAllowlist as o, useAddOrgNotificationEmail as p, useAdminReviewQueues as q, useAppAccountCheck as r, useAppsRegistry as s, useAtFundLink as t, useAccounts as u, useBlueskySuggestions as v, useBulkHideProfileItems as w, useBulkHideStandardPublications as x, useBulkUnhideProfileItems as y, useBulkUnhideStandardPublications as z };
|
|
@@ -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, as as RefreshPdsResult, aJ as UpdateProfileOverrideInput, aK as UpdateProfileSelfInput, aL as UploadAvatarResult, aM as UploadPronunciationAudioResult, C as CreateResult, aG as SubCategoryBulkResult, ag as ProfileLocationInput, q as ExternalAccountInput, p as CreateExternalAccountResult, aN as VerifyExternalAccountResult, E as EndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, T as GivenConfirmation, ad as PendingConfirmationsPage, ar as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a0 as HideProfileItemInput, aF as StatsResponse, k as AppRegistryEntry, Z as HiddenApp, d as AccountSummary, K as FilterOptions, aA as SearchFilters, aB as SearchResponse, aE as SkillSearchResult, ci as CompanySearchFilters, cj as CompanySearchResponse, r as FeaturedProfile, aD as SimilarProfile, J as FetchSuggestionsOptions, aI as SuggestionsResponse, O as FollowUserResult, w as FetchFollowListOptions, L as FollowListPage, P as FollowingResponse, y as FetchFollowingFeedOptions, x as FetchFollowProfilePageOptions, N as FollowProfilePageResponse, F as FeatureAllowlistResponse, i as AdminReviewQueues, u as FetchActivityFeedOptions, e as ActivityFeedResponse, h as ActivityTeaserResponse, Y as HeatmapResponse, a2 as MyGithubPullRequestsResponse, c as AccountCheckResult, aq as ReactionStatus, ap as ReactionResult, ao as ReactionError, az as RoadmapVotesResponse, l as CastRoadmapVoteResult, D as DeleteAccountResult, au as ResetProfileResult, aO as WipePreview, at as RepoDeleteInput, a4 as OrgClaimResult, aa as OrgProfileUpdateResult, a5 as OrgDomainChallengeResult, a6 as OrgDomainVerifyResult, a7 as OrgNotificationEmailAddResult, a8 as OrgNotificationEmailRemoveResult } from './org-DCHb1xhw.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 { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, Q as SkillSuggestion, s as OrgFloorVerdict } from './index-jNyd5QP7.cjs';
|
|
@@ -311,6 +311,13 @@ declare function useAppsRegistry(options?: Omit<UseQueryOptions<AppRegistryEntry
|
|
|
311
311
|
*/
|
|
312
312
|
declare function useHiddenApps(options?: Omit<UseQueryOptions<HiddenApp[], Error, HiddenApp[], ReturnType<typeof sifaQueryKeys.apps.hidden>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<HiddenApp[]>, Error>;
|
|
313
313
|
|
|
314
|
+
/**
|
|
315
|
+
* React hook for the accounts attached to this browser (the account switcher).
|
|
316
|
+
* Requires a client-side session (relies on `credentials: 'include'`).
|
|
317
|
+
* Returns `[]` when unauthenticated.
|
|
318
|
+
*/
|
|
319
|
+
declare function useAccounts(options?: Omit<UseQueryOptions<AccountSummary[], Error, AccountSummary[], ReturnType<typeof sifaQueryKeys.auth.accounts>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<AccountSummary[]>, Error>;
|
|
320
|
+
|
|
314
321
|
declare function useSearchProfiles(filters: SearchFilters, options?: Omit<UseQueryOptions<SearchResponse, Error, SearchResponse, ReturnType<typeof sifaQueryKeys.search.profiles>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<SearchResponse>, Error>;
|
|
315
322
|
declare function useSkillSuggestions(query: string, options?: Omit<UseQueryOptions<SkillSearchResult[], Error, SkillSearchResult[], ReturnType<typeof sifaQueryKeys.search.skills>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<SkillSearchResult[]>, Error>;
|
|
316
323
|
/**
|
|
@@ -831,4 +838,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
831
838
|
email: string;
|
|
832
839
|
}, unknown>;
|
|
833
840
|
|
|
834
|
-
export {
|
|
841
|
+
export { useDeleteReaction as $, type AddFeatureAllowlistVariables as A, useCanonicalSkillSearch as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCastRoadmapVote as E, type FollowVariables as F, useCreateConfirmation as G, useCreateEducation as H, useCreateEndorsement as I, useCreateExternalAccount as J, useCreatePosition as K, useCreateProfileLocation as L, useCreateReaction as M, useCreateRecord as N, useCreateSkill as O, type PositionSkillLinkVariables as P, useDebouncedValue as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteAccount as T, type UnfollowVariables as U, useDeleteAvatarOverride as V, useDeleteEducation as W, useDeleteExternalAccount as X, useDeleteNamePronunciationAudio as Y, useDeletePosition as Z, useDeleteProfileLocation as _, type CreateRecordVariables as a, useUnhideSifaPublication as a$, useDeleteRecord as a0, useDeleteRepoRecords as a1, useDeleteSkill as a2, useDismissConfirmation as a3, useEndorsementCount as a4, useEntitySearch as a5, useExternalAccounts as a6, useFeatureAllowlist as a7, useFeaturedProfile as a8, useFollow as a9, useReactionStatus as aA, useRefreshOrcidPublications as aB, useRefreshPds as aC, useRemoveFeatureAllowlist as aD, useRemoveOrgNotificationEmail as aE, useRepoInventory as aF, useResetProfile as aG, useResolveEntityDomain as aH, useRetractRoadmapVote as aI, useRevealMarqueDomain as aJ, useRevokeConfirmation as aK, useRoadmapVotes as aL, useSearchFilters as aM, useSearchProfiles as aN, useSelectEntity as aO, useSetExternalAccountPrimary as aP, useSetPositionPrimary as aQ, useSifaConfig as aR, useSimilarProfiles as aS, useSkillSuggestions as aT, useStats as aU, useSuggestionCount as aV, useSuggestions as aW, useUnfollow as aX, useUnhideKeytraceClaim as aY, useUnhideOrcidPublication as aZ, useUnhideProfileItem as a_, useFollowers as aa, useFollowing as ab, useFollowingFeed as ac, useFollowingList as ad, useGetProfileView as ae, useGivenConfirmations as af, useHeatmapData as ag, useHiddenApps as ah, useHideKeytraceClaim as ai, useHideOrcidPublication as aj, useHideProfileItem as ak, useHideSifaPublication as al, useHideStandardPublication as am, useImportSearchEntities as an, useLinkSkillToPosition as ao, useMintEntityDomain as ap, useMutuals as aq, useMyGithubPullRequests as ar, useMyRoadmapVotes as as, useNetworkStreamCount as at, useOrgClaim as au, useOrgDomainChallenge as av, useOrgDomainVerify as aw, useOrgProfile as ax, usePendingConfirmations as ay, useProfile as az, type DeleteRecordVariables as b, useUnhideStandardPublication as b0, useUnlinkSkillFromPosition as b1, useUnrevealMarqueDomain as b2, useUnsetExternalAccountPrimary as b3, useUnsetPositionPrimary as b4, useUpdateEducation as b5, useUpdateExternalAccount as b6, useUpdateOrgProfile as b7, useUpdatePosition as b8, useUpdateProfileLocation as b9, useUpdateProfileOverride as ba, useUpdateProfileSelf as bb, useUpdateRecord as bc, useUpdateSkill as bd, useUpdateSkillSubCategories as be, useUploadAvatar as bf, useUploadNamePronunciationAudio as bg, useVerifyExternalAccount as bh, useWipePreview as bi, useSearchCompanies as bj, 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, useActivityFeed as m, useActivityTeaser as n, useAddFeatureAllowlist as o, useAddOrgNotificationEmail as p, useAdminReviewQueues as q, useAppAccountCheck as r, useAppsRegistry as s, useAtFundLink as t, useAccounts as u, useBlueskySuggestions as v, useBulkHideProfileItems as w, useBulkHideStandardPublications as x, useBulkUnhideProfileItems as y, useBulkUnhideStandardPublications as z };
|
package/package.json
CHANGED