@singi-labs/sifa-sdk 0.7.10 → 0.8.1
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 +66 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.js +61 -2
- package/dist/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs +33 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +81 -1
- package/dist/query/fetchers/index.d.ts +81 -1
- package/dist/query/fetchers/index.js +30 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs +33 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +30 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +24 -17
|
@@ -924,6 +924,86 @@ declare function resetProfile(config: SifaApiConfig, deletePdsData: boolean, opt
|
|
|
924
924
|
*/
|
|
925
925
|
declare function deleteAccount(config: SifaApiConfig, deletePdsData: boolean, options?: ApiFetchOptions): Promise<DeleteAccountResult>;
|
|
926
926
|
|
|
927
|
+
/** A node in the personal network graph. */
|
|
928
|
+
interface NetworkMapNode {
|
|
929
|
+
did: string;
|
|
930
|
+
handle: string;
|
|
931
|
+
displayName: string;
|
|
932
|
+
avatar: string | null;
|
|
933
|
+
/** Number of edges this node participates in within the rendered graph. */
|
|
934
|
+
degree: number;
|
|
935
|
+
/** Phase 2: community detection cluster id. */
|
|
936
|
+
cluster?: number;
|
|
937
|
+
/** Phase 2: pre-computed layout coordinates. */
|
|
938
|
+
x?: number;
|
|
939
|
+
y?: number;
|
|
940
|
+
}
|
|
941
|
+
/** A directed edge in the personal network graph. */
|
|
942
|
+
interface NetworkMapEdge {
|
|
943
|
+
source: string;
|
|
944
|
+
target: string;
|
|
945
|
+
mutual: boolean;
|
|
946
|
+
/** Networks this edge was observed in, e.g. `['sifa', 'bluesky']`. */
|
|
947
|
+
sources: string[];
|
|
948
|
+
}
|
|
949
|
+
/** The graph payload itself, decoupled from response metadata. */
|
|
950
|
+
interface NetworkMapGraphData {
|
|
951
|
+
nodes: NetworkMapNode[];
|
|
952
|
+
edges: NetworkMapEdge[];
|
|
953
|
+
/** Phase 2: cluster metadata for legend rendering. */
|
|
954
|
+
clusters?: Array<{
|
|
955
|
+
id: number;
|
|
956
|
+
label: string;
|
|
957
|
+
color: string;
|
|
958
|
+
}>;
|
|
959
|
+
}
|
|
960
|
+
/** Cached graph response. */
|
|
961
|
+
interface NetworkMapResponse {
|
|
962
|
+
generatedAt: string;
|
|
963
|
+
expiresAt: string;
|
|
964
|
+
graph: NetworkMapGraphData;
|
|
965
|
+
stats: {
|
|
966
|
+
totalNodes: number;
|
|
967
|
+
totalEdges: number;
|
|
968
|
+
mutualCount: number;
|
|
969
|
+
sources: Record<string, number>;
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
/** Async job tracking generation progress. */
|
|
973
|
+
interface NetworkMapGenerationJob {
|
|
974
|
+
jobId: string;
|
|
975
|
+
did: string;
|
|
976
|
+
status: 'pending' | 'complete' | 'failed';
|
|
977
|
+
/** 0..100 */
|
|
978
|
+
progress: number;
|
|
979
|
+
createdAt: string;
|
|
980
|
+
completedAt?: string;
|
|
981
|
+
error?: string;
|
|
982
|
+
}
|
|
983
|
+
/** Returned by `initiateNetworkMapGeneration` when a new job was started or one was already running. */
|
|
984
|
+
interface NetworkMapPendingJob {
|
|
985
|
+
jobId: string;
|
|
986
|
+
status: 'pending' | 'cached';
|
|
987
|
+
}
|
|
988
|
+
/** Discriminate the union returned by `initiateNetworkMapGeneration`. */
|
|
989
|
+
declare function isNetworkMapResponse(value: NetworkMapPendingJob | NetworkMapResponse): value is NetworkMapResponse;
|
|
990
|
+
/**
|
|
991
|
+
* Kick off a personal network-map computation. The backend returns the
|
|
992
|
+
* cached map immediately when fresh, otherwise it returns a job id that
|
|
993
|
+
* the caller polls via `checkNetworkMapJobStatus`.
|
|
994
|
+
*/
|
|
995
|
+
declare function initiateNetworkMapGeneration(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapPendingJob | NetworkMapResponse>;
|
|
996
|
+
/**
|
|
997
|
+
* Poll the status of an in-flight generation job. Throws on 404 (unknown
|
|
998
|
+
* or expired job) — callers may want to treat that as terminal failure.
|
|
999
|
+
*/
|
|
1000
|
+
declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string, options?: ApiFetchOptions): Promise<NetworkMapGenerationJob>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Fetch the most recent cached network map for the authenticated user.
|
|
1003
|
+
* Returns `null` when no map has ever been generated (404).
|
|
1004
|
+
*/
|
|
1005
|
+
declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
|
|
1006
|
+
|
|
927
1007
|
/**
|
|
928
1008
|
* Query key factory for TanStack Query.
|
|
929
1009
|
*
|
|
@@ -1001,4 +1081,4 @@ declare const sifaQueryKeys: {
|
|
|
1001
1081
|
};
|
|
1002
1082
|
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.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.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.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>;
|
|
1003
1083
|
|
|
1004
|
-
export { type AccountCheckResult, type ActivityFeedResponse, type ActivityItem, type ActivityTeaserResponse, ApiError, type ApiFetchOptions, type AppRegistryEntry, type CheckAppAccountOptions, type CreateExternalAccountResult, type CreateResult, type DeleteAccountResult, type EndorsementInput, type ExternalAccountInput, type FeaturedProfile, type FetchActivityFeedOptions, type FetchActivityTeaserOptions, type FetchHiddenAppsOptions, type FetchMyRoadmapVotesOptions, type FetchNetworkStreamCountOptions, type FetchReactionStatusOptions, type FetchSuggestionsOptions, type FilterOptions, type FollowProfile, type FollowingResponse, type HeatmapDay, type HeatmapResponse, type HiddenApp, type ProfileIndustryInput, type ProfileLocationAddress, type ProfileLocationInput, type ProfileSearchResult, type ProfileSelfLocation, QUOTED_POSTS_BATCH_MAX, type QuotedPostAuthor, type QuotedPostImage, type QuotedPostResult, type QuotedPostView, type ReactionError, type ReactionResult, type ReactionStatus, type RefreshOrcidPublicationsResult, type RefreshPdsResult, type ResolveQuotedPostsOptions, type RoadmapVoter, type RoadmapVotesResponse, type SearchFilters, type SearchResponse, type SifaApiConfig, type SifaQueryKey, type SimilarProfile, type SkillSearchResult, type StatsResponse, type SuggestionProfile, type SuggestionsResponse, type UpdateProfileOverrideInput, type UpdateProfileSelfInput, type UploadAvatarResult, type VerifyExternalAccountResult, type WriteResult, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideStandardPublications, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideSifaPublication, hideStandardPublication, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount };
|
|
1084
|
+
export { type AccountCheckResult, type ActivityFeedResponse, type ActivityItem, type ActivityTeaserResponse, ApiError, type ApiFetchOptions, type AppRegistryEntry, type CheckAppAccountOptions, type CreateExternalAccountResult, type CreateResult, type DeleteAccountResult, type EndorsementInput, type ExternalAccountInput, type FeaturedProfile, type FetchActivityFeedOptions, type FetchActivityTeaserOptions, type FetchHiddenAppsOptions, type FetchMyRoadmapVotesOptions, type FetchNetworkStreamCountOptions, type FetchReactionStatusOptions, type FetchSuggestionsOptions, type FilterOptions, type FollowProfile, type FollowingResponse, type HeatmapDay, type HeatmapResponse, type HiddenApp, type NetworkMapEdge, type NetworkMapGenerationJob, type NetworkMapGraphData, type NetworkMapNode, type NetworkMapPendingJob, type NetworkMapResponse, type ProfileIndustryInput, type ProfileLocationAddress, type ProfileLocationInput, type ProfileSearchResult, type ProfileSelfLocation, QUOTED_POSTS_BATCH_MAX, type QuotedPostAuthor, type QuotedPostImage, type QuotedPostResult, type QuotedPostView, type ReactionError, type ReactionResult, type ReactionStatus, type RefreshOrcidPublicationsResult, type RefreshPdsResult, type ResolveQuotedPostsOptions, type RoadmapVoter, type RoadmapVotesResponse, type SearchFilters, type SearchResponse, type SifaApiConfig, type SifaQueryKey, type SimilarProfile, type SkillSearchResult, type StatsResponse, type SuggestionProfile, type SuggestionsResponse, type UpdateProfileOverrideInput, type UpdateProfileSelfInput, type UploadAvatarResult, type VerifyExternalAccountResult, type WriteResult, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideStandardPublications, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideSifaPublication, hideStandardPublication, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount };
|
|
@@ -924,6 +924,86 @@ declare function resetProfile(config: SifaApiConfig, deletePdsData: boolean, opt
|
|
|
924
924
|
*/
|
|
925
925
|
declare function deleteAccount(config: SifaApiConfig, deletePdsData: boolean, options?: ApiFetchOptions): Promise<DeleteAccountResult>;
|
|
926
926
|
|
|
927
|
+
/** A node in the personal network graph. */
|
|
928
|
+
interface NetworkMapNode {
|
|
929
|
+
did: string;
|
|
930
|
+
handle: string;
|
|
931
|
+
displayName: string;
|
|
932
|
+
avatar: string | null;
|
|
933
|
+
/** Number of edges this node participates in within the rendered graph. */
|
|
934
|
+
degree: number;
|
|
935
|
+
/** Phase 2: community detection cluster id. */
|
|
936
|
+
cluster?: number;
|
|
937
|
+
/** Phase 2: pre-computed layout coordinates. */
|
|
938
|
+
x?: number;
|
|
939
|
+
y?: number;
|
|
940
|
+
}
|
|
941
|
+
/** A directed edge in the personal network graph. */
|
|
942
|
+
interface NetworkMapEdge {
|
|
943
|
+
source: string;
|
|
944
|
+
target: string;
|
|
945
|
+
mutual: boolean;
|
|
946
|
+
/** Networks this edge was observed in, e.g. `['sifa', 'bluesky']`. */
|
|
947
|
+
sources: string[];
|
|
948
|
+
}
|
|
949
|
+
/** The graph payload itself, decoupled from response metadata. */
|
|
950
|
+
interface NetworkMapGraphData {
|
|
951
|
+
nodes: NetworkMapNode[];
|
|
952
|
+
edges: NetworkMapEdge[];
|
|
953
|
+
/** Phase 2: cluster metadata for legend rendering. */
|
|
954
|
+
clusters?: Array<{
|
|
955
|
+
id: number;
|
|
956
|
+
label: string;
|
|
957
|
+
color: string;
|
|
958
|
+
}>;
|
|
959
|
+
}
|
|
960
|
+
/** Cached graph response. */
|
|
961
|
+
interface NetworkMapResponse {
|
|
962
|
+
generatedAt: string;
|
|
963
|
+
expiresAt: string;
|
|
964
|
+
graph: NetworkMapGraphData;
|
|
965
|
+
stats: {
|
|
966
|
+
totalNodes: number;
|
|
967
|
+
totalEdges: number;
|
|
968
|
+
mutualCount: number;
|
|
969
|
+
sources: Record<string, number>;
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
/** Async job tracking generation progress. */
|
|
973
|
+
interface NetworkMapGenerationJob {
|
|
974
|
+
jobId: string;
|
|
975
|
+
did: string;
|
|
976
|
+
status: 'pending' | 'complete' | 'failed';
|
|
977
|
+
/** 0..100 */
|
|
978
|
+
progress: number;
|
|
979
|
+
createdAt: string;
|
|
980
|
+
completedAt?: string;
|
|
981
|
+
error?: string;
|
|
982
|
+
}
|
|
983
|
+
/** Returned by `initiateNetworkMapGeneration` when a new job was started or one was already running. */
|
|
984
|
+
interface NetworkMapPendingJob {
|
|
985
|
+
jobId: string;
|
|
986
|
+
status: 'pending' | 'cached';
|
|
987
|
+
}
|
|
988
|
+
/** Discriminate the union returned by `initiateNetworkMapGeneration`. */
|
|
989
|
+
declare function isNetworkMapResponse(value: NetworkMapPendingJob | NetworkMapResponse): value is NetworkMapResponse;
|
|
990
|
+
/**
|
|
991
|
+
* Kick off a personal network-map computation. The backend returns the
|
|
992
|
+
* cached map immediately when fresh, otherwise it returns a job id that
|
|
993
|
+
* the caller polls via `checkNetworkMapJobStatus`.
|
|
994
|
+
*/
|
|
995
|
+
declare function initiateNetworkMapGeneration(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapPendingJob | NetworkMapResponse>;
|
|
996
|
+
/**
|
|
997
|
+
* Poll the status of an in-flight generation job. Throws on 404 (unknown
|
|
998
|
+
* or expired job) — callers may want to treat that as terminal failure.
|
|
999
|
+
*/
|
|
1000
|
+
declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string, options?: ApiFetchOptions): Promise<NetworkMapGenerationJob>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Fetch the most recent cached network map for the authenticated user.
|
|
1003
|
+
* Returns `null` when no map has ever been generated (404).
|
|
1004
|
+
*/
|
|
1005
|
+
declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
|
|
1006
|
+
|
|
927
1007
|
/**
|
|
928
1008
|
* Query key factory for TanStack Query.
|
|
929
1009
|
*
|
|
@@ -1001,4 +1081,4 @@ declare const sifaQueryKeys: {
|
|
|
1001
1081
|
};
|
|
1002
1082
|
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.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.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.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>;
|
|
1003
1083
|
|
|
1004
|
-
export { type AccountCheckResult, type ActivityFeedResponse, type ActivityItem, type ActivityTeaserResponse, ApiError, type ApiFetchOptions, type AppRegistryEntry, type CheckAppAccountOptions, type CreateExternalAccountResult, type CreateResult, type DeleteAccountResult, type EndorsementInput, type ExternalAccountInput, type FeaturedProfile, type FetchActivityFeedOptions, type FetchActivityTeaserOptions, type FetchHiddenAppsOptions, type FetchMyRoadmapVotesOptions, type FetchNetworkStreamCountOptions, type FetchReactionStatusOptions, type FetchSuggestionsOptions, type FilterOptions, type FollowProfile, type FollowingResponse, type HeatmapDay, type HeatmapResponse, type HiddenApp, type ProfileIndustryInput, type ProfileLocationAddress, type ProfileLocationInput, type ProfileSearchResult, type ProfileSelfLocation, QUOTED_POSTS_BATCH_MAX, type QuotedPostAuthor, type QuotedPostImage, type QuotedPostResult, type QuotedPostView, type ReactionError, type ReactionResult, type ReactionStatus, type RefreshOrcidPublicationsResult, type RefreshPdsResult, type ResolveQuotedPostsOptions, type RoadmapVoter, type RoadmapVotesResponse, type SearchFilters, type SearchResponse, type SifaApiConfig, type SifaQueryKey, type SimilarProfile, type SkillSearchResult, type StatsResponse, type SuggestionProfile, type SuggestionsResponse, type UpdateProfileOverrideInput, type UpdateProfileSelfInput, type UploadAvatarResult, type VerifyExternalAccountResult, type WriteResult, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideStandardPublications, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideSifaPublication, hideStandardPublication, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount };
|
|
1084
|
+
export { type AccountCheckResult, type ActivityFeedResponse, type ActivityItem, type ActivityTeaserResponse, ApiError, type ApiFetchOptions, type AppRegistryEntry, type CheckAppAccountOptions, type CreateExternalAccountResult, type CreateResult, type DeleteAccountResult, type EndorsementInput, type ExternalAccountInput, type FeaturedProfile, type FetchActivityFeedOptions, type FetchActivityTeaserOptions, type FetchHiddenAppsOptions, type FetchMyRoadmapVotesOptions, type FetchNetworkStreamCountOptions, type FetchReactionStatusOptions, type FetchSuggestionsOptions, type FilterOptions, type FollowProfile, type FollowingResponse, type HeatmapDay, type HeatmapResponse, type HiddenApp, type NetworkMapEdge, type NetworkMapGenerationJob, type NetworkMapGraphData, type NetworkMapNode, type NetworkMapPendingJob, type NetworkMapResponse, type ProfileIndustryInput, type ProfileLocationAddress, type ProfileLocationInput, type ProfileSearchResult, type ProfileSelfLocation, QUOTED_POSTS_BATCH_MAX, type QuotedPostAuthor, type QuotedPostImage, type QuotedPostResult, type QuotedPostView, type ReactionError, type ReactionResult, type ReactionStatus, type RefreshOrcidPublicationsResult, type RefreshPdsResult, type ResolveQuotedPostsOptions, type RoadmapVoter, type RoadmapVotesResponse, type SearchFilters, type SearchResponse, type SifaApiConfig, type SifaQueryKey, type SimilarProfile, type SkillSearchResult, type StatsResponse, type SuggestionProfile, type SuggestionsResponse, type UpdateProfileOverrideInput, type UpdateProfileSelfInput, type UploadAvatarResult, type VerifyExternalAccountResult, type WriteResult, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideStandardPublications, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideSifaPublication, hideStandardPublication, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount };
|
|
@@ -842,6 +842,35 @@ function deleteAccount(config, deletePdsData, options = {}) {
|
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
844
|
|
|
845
|
+
// src/query/fetchers/network-map.ts
|
|
846
|
+
function isNetworkMapResponse(value) {
|
|
847
|
+
return "graph" in value;
|
|
848
|
+
}
|
|
849
|
+
async function initiateNetworkMapGeneration(config, options = {}) {
|
|
850
|
+
return apiFetch(config, "/api/network-map/generate", {
|
|
851
|
+
method: "POST",
|
|
852
|
+
credentials: "include",
|
|
853
|
+
...options
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
async function checkNetworkMapJobStatus(config, jobId, options = {}) {
|
|
857
|
+
return apiFetch(
|
|
858
|
+
config,
|
|
859
|
+
`/api/network-map/status/${encodeURIComponent(jobId)}`,
|
|
860
|
+
{
|
|
861
|
+
credentials: "include",
|
|
862
|
+
...options
|
|
863
|
+
}
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
async function fetchNetworkMap(config, options = {}) {
|
|
867
|
+
return apiFetchOrNull(config, "/api/network-map", {
|
|
868
|
+
credentials: "include",
|
|
869
|
+
cache: "no-store",
|
|
870
|
+
...options
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
|
|
845
874
|
// src/query/keys.ts
|
|
846
875
|
var sifaQueryKeys = {
|
|
847
876
|
all: () => ["sifa"],
|
|
@@ -908,6 +937,6 @@ var sifaQueryKeys = {
|
|
|
908
937
|
}
|
|
909
938
|
};
|
|
910
939
|
|
|
911
|
-
export { ApiError, QUOTED_POSTS_BATCH_MAX, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideStandardPublications, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideSifaPublication, hideStandardPublication, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount };
|
|
940
|
+
export { ApiError, QUOTED_POSTS_BATCH_MAX, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideStandardPublications, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideSifaPublication, hideStandardPublication, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount };
|
|
912
941
|
//# sourceMappingURL=index.js.map
|
|
913
942
|
//# sourceMappingURL=index.js.map
|