@singi-labs/sifa-sdk 0.12.84 → 0.12.86
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-D0qELxvf.d.cts → index-jNyd5QP7.d.cts} +6 -0
- package/dist/{index-D0qELxvf.d.ts → index-jNyd5QP7.d.ts} +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +1 -1
- package/dist/jsonld/index.d.ts +1 -1
- package/dist/{network-map-C5AnjGcV.d.ts → network-map-GfIVEYpr.d.ts} +4 -4
- package/dist/{network-map-CkRrVFJD.d.cts → network-map-y6U7m-hX.d.cts} +4 -4
- package/dist/{org-Be8tayoD.d.cts → org-ClDqS3CM.d.cts} +18 -3
- package/dist/{org-B2Y54EHg.d.ts → org-GlACA06R.d.ts} +18 -3
- package/dist/{profile-summary-Fieyfzzf.d.ts → profile-summary-8fapqzHv.d.ts} +1 -1
- package/dist/{profile-summary-CIkWTi6K.d.cts → profile-summary-DY78IoL9.d.cts} +1 -1
- package/dist/publishing/index.cjs +40 -0
- package/dist/publishing/index.cjs.map +1 -1
- package/dist/publishing/index.d.cts +58 -1
- package/dist/publishing/index.d.ts +58 -1
- package/dist/publishing/index.js +38 -1
- package/dist/publishing/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs +30 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/fetchers/index.js +29 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +62 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/hooks/index.js +61 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +64 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/query/index.js +61 -1
- package/dist/query/index.js.map +1 -1
- package/dist/{types-ClxJ0I98.d.ts → types-8JaS6abh.d.ts} +1 -1
- package/dist/{types-BEei3kVS.d.cts → types-8wAWvS-T.d.cts} +1 -1
- package/dist/{use-org-notification-emails-BdglyA2S.d.cts → use-org-notification-emails-B-oGiDHo.d.cts} +11 -4
- package/dist/{use-org-notification-emails-1ZD4ycgg.d.ts → use-org-notification-emails-DGzW9MH6.d.ts} +11 -4
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-
|
|
2
|
-
export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions,
|
|
3
|
-
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, b as NetworkMapGenerationJob, c as NetworkMapGraphData, d as NetworkMapNode, e as NetworkMapPendingJob, f as NetworkMapResponse, g as PendingEndorsement, P as PendingEndorsementsPage, h as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, i as ReciprocitySkill, j as checkNetworkMapJobStatus, k as createEducation, l as createPosition, m as createRecord, n as deleteEducation, o as deletePosition, p as deleteRecord, q as dismissEndorsement, r as fetchAtFundLink, s as fetchEndorsementCount, t as fetchEntitySearch, u as fetchGetProfileView, v as fetchNetworkMap, w as fetchNetworkStreamCount, x as fetchPendingEndorsements, y as fetchProfile, z as fetchProfileSummary, A as fetchReceivedEndorsements, B as fetchReciprocityCandidate, C as hideKeytraceClaim, E as importSearchEntities, G as initiateNetworkMapGeneration, H as isNetworkMapResponse, I as linkSkillToPosition, L as revealMarqueDomain, M as selectEntity, O as setPositionPrimary, Q as unhideKeytraceClaim, S as unlinkSkillFromPosition, T as unrevealMarqueDomain, U as unsetPositionPrimary, V as updateEducation, W as updatePosition, X as updateRecord } from '../../network-map-
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-ClDqS3CM.cjs';
|
|
2
|
+
export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions, ce as CompanySearchFilters, cf as CompanySearchResponse, cg as CompanySearchResult, a as ConfirmEndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, o as CreateExternalAccountResult, D as DeleteAccountResult, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchFollowListOptions, v as FetchFollowProfilePageOptions, w as FetchFollowingFeedOptions, x as FetchHiddenAppsOptions, y as FetchMyGithubPullRequestsOptions, z as FetchMyRoadmapVotesOptions, G as FetchReactionStatusOptions, H as FetchSuggestionsOptions, I as FilterOptions, J as FollowListPage, K as FollowProfile, L as FollowProfilePageResponse, M as FollowUserResult, N as FollowingResponse, O as GetAdminReviewQueuesOptions, P as GithubPullRequest, Q as GivenConfirmation, R as HIDDEN_ITEM_SOURCES, T as HIDDEN_ITEM_TYPES, U as HeatmapDay, V as HeatmapResponse, X as HiddenApp, Y as HiddenItemSource, Z as HiddenItemType, _ as HideProfileItemInput, $ as ListFeatureAllowlistOptions, a0 as MyGithubPullRequestsResponse, a1 as OrgClaimBinding, a2 as OrgClaimResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult, a7 as OrgProfileEcho, a8 as OrgProfileUpdateResult, a9 as PdsWipeOutcome, aa as PendingConfirmation, ab as PendingConfirmationsPage, ac as ProfileIndustryInput, ad as ProfileLocationAddress, ae as ProfileLocationInput, af as ProfileSearchResult, ag as ProfileSelfLocation, ah as QUOTED_POSTS_BATCH_MAX, ai as QuotedPostAuthor, aj as QuotedPostImage, ak as QuotedPostResult, al as QuotedPostView, am as ReactionError, an as ReactionResult, ao as ReactionStatus, ap as RefreshOrcidPublicationsResult, aq as RefreshPdsResult, ar as RepoDeleteInput, as as ResetProfileResult, at as ResolveQuotedPostsOptions, au as RoadmapVoteError, av as RoadmapVoteResult, aw as RoadmapVoter, ax as RoadmapVotesResponse, ay as SearchFilters, az as SearchResponse, aA as SifaQueryKey, aB as SimilarProfile, aC as SkillSearchResult, aD as StatsResponse, aF as SuggestionProfile, aG as SuggestionsResponse, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, aK as UploadPronunciationAudioResult, aL as VerifyExternalAccountResult, aM as WipePreview, aN as addFeatureAllowlist, aO as addOrgNotificationEmail, aP as apiFetch, aQ as apiFetchOrNull, aR as apiWrite, aS as apiWriteCreate, aT as bulkHideProfileItems, aU as bulkHideStandardPublications, aV as bulkUnhideProfileItems, aW as bulkUnhideStandardPublications, aX as castRoadmapVote, aY as checkAppAccount, aZ as confirmEndorsement, a_ as createConfirmation, a$ as createEndorsement, b0 as createExternalAccount, b1 as createProfileLocation, b2 as createReaction, b3 as createSkill, b4 as deleteAccount, b5 as deleteAvatarOverride, b6 as deleteExternalAccount, b7 as deleteNamePronunciationAudio, b8 as deleteProfileLocation, b9 as deleteReaction, ba as deleteRepoRecords, bb as deleteSkill, bc as dismissConfirmation, bd as fetchActivityFeed, be as fetchActivityTeaser, bf as fetchAppsRegistry, bg as fetchExternalAccounts, bh as fetchFeaturedProfile, bi as fetchFollowing, bj as fetchGivenConfirmations, bk as fetchHeatmapData, bl as fetchHiddenApps, bm as fetchMyGithubPullRequests, bn as fetchMyRoadmapVotes, bo as fetchPendingConfirmations, bp as fetchReactionStatus, bq as fetchRepoInventory, br as fetchRoadmapVotes, ch as fetchSearchCompanies, bs as fetchSearchFilters, bt as fetchSearchProfiles, bu as fetchSimilarProfiles, bv as fetchSkillSuggestions, bw as fetchStats, bx as fetchSuggestionCount, by as fetchSuggestions, bz as fetchWipePreview, bA as followUser, bB as getAdminReviewQueues, bC as getBlueskySuggestions, bD as getFollowers, bE as getFollowing, bF as getFollowingFeed, bG as getMutuals, bH as hideOrcidPublication, bI as hideProfileItem, bJ as hideSifaPublication, bK as hideStandardPublication, bL as listFeatureAllowlist, bM as refreshOrcidPublications, bN as refreshPds, bO as removeFeatureAllowlist, bP as removeOrgNotificationEmail, bQ as repoExportUrl, bR as requestOrgDomainChallenge, bS as resetProfile, bT as resolveQuotedPosts, bU as retractRoadmapVote, bV as revokeConfirmation, bW as searchSkills, bX as setExternalAccountPrimary, s as sifaQueryKeys, bY as submitOrgClaim, bZ as unfollowUser, b_ as unhideOrcidPublication, b$ as unhideProfileItem, c0 as unhideSifaPublication, c1 as unhideStandardPublication, c2 as unsetExternalAccountPrimary, c3 as updateExternalAccount, c4 as updateOrgProfile, c5 as updateProfileLocation, c6 as updateProfileOverride, c7 as updateProfileSelf, c8 as updateSkill, ca as uploadAvatar, cb as uploadNamePronunciationAudio, cc as verifyExternalAccount, cd as verifyOrgDomain } from '../../org-ClDqS3CM.cjs';
|
|
3
|
+
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, b as NetworkMapGenerationJob, c as NetworkMapGraphData, d as NetworkMapNode, e as NetworkMapPendingJob, f as NetworkMapResponse, g as PendingEndorsement, P as PendingEndorsementsPage, h as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, i as ReciprocitySkill, j as checkNetworkMapJobStatus, k as createEducation, l as createPosition, m as createRecord, n as deleteEducation, o as deletePosition, p as deleteRecord, q as dismissEndorsement, r as fetchAtFundLink, s as fetchEndorsementCount, t as fetchEntitySearch, u as fetchGetProfileView, v as fetchNetworkMap, w as fetchNetworkStreamCount, x as fetchPendingEndorsements, y as fetchProfile, z as fetchProfileSummary, A as fetchReceivedEndorsements, B as fetchReciprocityCandidate, C as hideKeytraceClaim, E as importSearchEntities, G as initiateNetworkMapGeneration, H as isNetworkMapResponse, I as linkSkillToPosition, L as revealMarqueDomain, M as selectEntity, O as setPositionPrimary, Q as unhideKeytraceClaim, S as unlinkSkillFromPosition, T as unrevealMarqueDomain, U as unsetPositionPrimary, V as updateEducation, W as updatePosition, X as updateRecord } from '../../network-map-y6U7m-hX.cjs';
|
|
4
|
+
import '../../index-jNyd5QP7.cjs';
|
|
5
5
|
import '../../feed-BMm9Pkew.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../types-
|
|
7
|
+
import '../../types-8wAWvS-T.cjs';
|
|
8
8
|
import '../../org-settings-CZ_tmAYl.cjs';
|
|
9
|
-
import '../../profile-summary-
|
|
9
|
+
import '../../profile-summary-DY78IoL9.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Typed wrappers over the generic record routes for
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-
|
|
2
|
-
export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions,
|
|
3
|
-
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, b as NetworkMapGenerationJob, c as NetworkMapGraphData, d as NetworkMapNode, e as NetworkMapPendingJob, f as NetworkMapResponse, g as PendingEndorsement, P as PendingEndorsementsPage, h as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, i as ReciprocitySkill, j as checkNetworkMapJobStatus, k as createEducation, l as createPosition, m as createRecord, n as deleteEducation, o as deletePosition, p as deleteRecord, q as dismissEndorsement, r as fetchAtFundLink, s as fetchEndorsementCount, t as fetchEntitySearch, u as fetchGetProfileView, v as fetchNetworkMap, w as fetchNetworkStreamCount, x as fetchPendingEndorsements, y as fetchProfile, z as fetchProfileSummary, A as fetchReceivedEndorsements, B as fetchReciprocityCandidate, C as hideKeytraceClaim, E as importSearchEntities, G as initiateNetworkMapGeneration, H as isNetworkMapResponse, I as linkSkillToPosition, L as revealMarqueDomain, M as selectEntity, O as setPositionPrimary, Q as unhideKeytraceClaim, S as unlinkSkillFromPosition, T as unrevealMarqueDomain, U as unsetPositionPrimary, V as updateEducation, W as updatePosition, X as updateRecord } from '../../network-map-
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-GlACA06R.js';
|
|
2
|
+
export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions, ce as CompanySearchFilters, cf as CompanySearchResponse, cg as CompanySearchResult, a as ConfirmEndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, o as CreateExternalAccountResult, D as DeleteAccountResult, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchFollowListOptions, v as FetchFollowProfilePageOptions, w as FetchFollowingFeedOptions, x as FetchHiddenAppsOptions, y as FetchMyGithubPullRequestsOptions, z as FetchMyRoadmapVotesOptions, G as FetchReactionStatusOptions, H as FetchSuggestionsOptions, I as FilterOptions, J as FollowListPage, K as FollowProfile, L as FollowProfilePageResponse, M as FollowUserResult, N as FollowingResponse, O as GetAdminReviewQueuesOptions, P as GithubPullRequest, Q as GivenConfirmation, R as HIDDEN_ITEM_SOURCES, T as HIDDEN_ITEM_TYPES, U as HeatmapDay, V as HeatmapResponse, X as HiddenApp, Y as HiddenItemSource, Z as HiddenItemType, _ as HideProfileItemInput, $ as ListFeatureAllowlistOptions, a0 as MyGithubPullRequestsResponse, a1 as OrgClaimBinding, a2 as OrgClaimResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult, a7 as OrgProfileEcho, a8 as OrgProfileUpdateResult, a9 as PdsWipeOutcome, aa as PendingConfirmation, ab as PendingConfirmationsPage, ac as ProfileIndustryInput, ad as ProfileLocationAddress, ae as ProfileLocationInput, af as ProfileSearchResult, ag as ProfileSelfLocation, ah as QUOTED_POSTS_BATCH_MAX, ai as QuotedPostAuthor, aj as QuotedPostImage, ak as QuotedPostResult, al as QuotedPostView, am as ReactionError, an as ReactionResult, ao as ReactionStatus, ap as RefreshOrcidPublicationsResult, aq as RefreshPdsResult, ar as RepoDeleteInput, as as ResetProfileResult, at as ResolveQuotedPostsOptions, au as RoadmapVoteError, av as RoadmapVoteResult, aw as RoadmapVoter, ax as RoadmapVotesResponse, ay as SearchFilters, az as SearchResponse, aA as SifaQueryKey, aB as SimilarProfile, aC as SkillSearchResult, aD as StatsResponse, aF as SuggestionProfile, aG as SuggestionsResponse, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, aK as UploadPronunciationAudioResult, aL as VerifyExternalAccountResult, aM as WipePreview, aN as addFeatureAllowlist, aO as addOrgNotificationEmail, aP as apiFetch, aQ as apiFetchOrNull, aR as apiWrite, aS as apiWriteCreate, aT as bulkHideProfileItems, aU as bulkHideStandardPublications, aV as bulkUnhideProfileItems, aW as bulkUnhideStandardPublications, aX as castRoadmapVote, aY as checkAppAccount, aZ as confirmEndorsement, a_ as createConfirmation, a$ as createEndorsement, b0 as createExternalAccount, b1 as createProfileLocation, b2 as createReaction, b3 as createSkill, b4 as deleteAccount, b5 as deleteAvatarOverride, b6 as deleteExternalAccount, b7 as deleteNamePronunciationAudio, b8 as deleteProfileLocation, b9 as deleteReaction, ba as deleteRepoRecords, bb as deleteSkill, bc as dismissConfirmation, bd as fetchActivityFeed, be as fetchActivityTeaser, bf as fetchAppsRegistry, bg as fetchExternalAccounts, bh as fetchFeaturedProfile, bi as fetchFollowing, bj as fetchGivenConfirmations, bk as fetchHeatmapData, bl as fetchHiddenApps, bm as fetchMyGithubPullRequests, bn as fetchMyRoadmapVotes, bo as fetchPendingConfirmations, bp as fetchReactionStatus, bq as fetchRepoInventory, br as fetchRoadmapVotes, ch as fetchSearchCompanies, bs as fetchSearchFilters, bt as fetchSearchProfiles, bu as fetchSimilarProfiles, bv as fetchSkillSuggestions, bw as fetchStats, bx as fetchSuggestionCount, by as fetchSuggestions, bz as fetchWipePreview, bA as followUser, bB as getAdminReviewQueues, bC as getBlueskySuggestions, bD as getFollowers, bE as getFollowing, bF as getFollowingFeed, bG as getMutuals, bH as hideOrcidPublication, bI as hideProfileItem, bJ as hideSifaPublication, bK as hideStandardPublication, bL as listFeatureAllowlist, bM as refreshOrcidPublications, bN as refreshPds, bO as removeFeatureAllowlist, bP as removeOrgNotificationEmail, bQ as repoExportUrl, bR as requestOrgDomainChallenge, bS as resetProfile, bT as resolveQuotedPosts, bU as retractRoadmapVote, bV as revokeConfirmation, bW as searchSkills, bX as setExternalAccountPrimary, s as sifaQueryKeys, bY as submitOrgClaim, bZ as unfollowUser, b_ as unhideOrcidPublication, b$ as unhideProfileItem, c0 as unhideSifaPublication, c1 as unhideStandardPublication, c2 as unsetExternalAccountPrimary, c3 as updateExternalAccount, c4 as updateOrgProfile, c5 as updateProfileLocation, c6 as updateProfileOverride, c7 as updateProfileSelf, c8 as updateSkill, ca as uploadAvatar, cb as uploadNamePronunciationAudio, cc as verifyExternalAccount, cd as verifyOrgDomain } from '../../org-GlACA06R.js';
|
|
3
|
+
export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, b as NetworkMapGenerationJob, c as NetworkMapGraphData, d as NetworkMapNode, e as NetworkMapPendingJob, f as NetworkMapResponse, g as PendingEndorsement, P as PendingEndorsementsPage, h as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, i as ReciprocitySkill, j as checkNetworkMapJobStatus, k as createEducation, l as createPosition, m as createRecord, n as deleteEducation, o as deletePosition, p as deleteRecord, q as dismissEndorsement, r as fetchAtFundLink, s as fetchEndorsementCount, t as fetchEntitySearch, u as fetchGetProfileView, v as fetchNetworkMap, w as fetchNetworkStreamCount, x as fetchPendingEndorsements, y as fetchProfile, z as fetchProfileSummary, A as fetchReceivedEndorsements, B as fetchReciprocityCandidate, C as hideKeytraceClaim, E as importSearchEntities, G as initiateNetworkMapGeneration, H as isNetworkMapResponse, I as linkSkillToPosition, L as revealMarqueDomain, M as selectEntity, O as setPositionPrimary, Q as unhideKeytraceClaim, S as unlinkSkillFromPosition, T as unrevealMarqueDomain, U as unsetPositionPrimary, V as updateEducation, W as updatePosition, X as updateRecord } from '../../network-map-GfIVEYpr.js';
|
|
4
|
+
import '../../index-jNyd5QP7.js';
|
|
5
5
|
import '../../feed-BMm9Pkew.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../../types-
|
|
7
|
+
import '../../types-8JaS6abh.js';
|
|
8
8
|
import '../../org-settings-CZ_tmAYl.js';
|
|
9
|
-
import '../../profile-summary-
|
|
9
|
+
import '../../profile-summary-8fapqzHv.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Typed wrappers over the generic record routes for
|
|
@@ -189,6 +189,34 @@ async function uploadAvatar(config, file, options = {}) {
|
|
|
189
189
|
function deleteAvatarOverride(config, options = {}) {
|
|
190
190
|
return apiWrite(config, "/api/profile/avatar", "DELETE", options);
|
|
191
191
|
}
|
|
192
|
+
async function uploadNamePronunciationAudio(config, file, options = {}) {
|
|
193
|
+
const fetchFn = config.fetch ?? globalThis.fetch;
|
|
194
|
+
const url = `${config.baseUrl}/api/profile/pronunciation-audio`;
|
|
195
|
+
const formData = new FormData();
|
|
196
|
+
formData.append("file", file);
|
|
197
|
+
try {
|
|
198
|
+
const res = await fetchFn(url, {
|
|
199
|
+
method: "POST",
|
|
200
|
+
credentials: options.credentials ?? "include",
|
|
201
|
+
body: formData,
|
|
202
|
+
signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 3e4),
|
|
203
|
+
headers: options.headers
|
|
204
|
+
});
|
|
205
|
+
if (!res.ok) {
|
|
206
|
+
const errBody = await res.json().catch(() => ({}));
|
|
207
|
+
const msg = errBody.message ?? `Request failed (${res.status})`;
|
|
208
|
+
const pdsHost = errBody.pdsHost;
|
|
209
|
+
return { success: false, error: msg, ...pdsHost ? { pdsHost } : {} };
|
|
210
|
+
}
|
|
211
|
+
const data = await res.json();
|
|
212
|
+
return { success: true, url: data.url };
|
|
213
|
+
} catch {
|
|
214
|
+
return { success: false, error: "Network error" };
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function deleteNamePronunciationAudio(config, options = {}) {
|
|
218
|
+
return apiWrite(config, "/api/profile/pronunciation-audio", "DELETE", options);
|
|
219
|
+
}
|
|
192
220
|
|
|
193
221
|
// src/query/fetchers/positions.ts
|
|
194
222
|
function createPosition(config, data, options = {}) {
|
|
@@ -1735,6 +1763,6 @@ function deleteInvestment(config, rkey, options = {}) {
|
|
|
1735
1763
|
return deleteRecord(config, PROFILE_INVESTMENT_NSID, rkey, options);
|
|
1736
1764
|
}
|
|
1737
1765
|
|
|
1738
|
-
export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, addFeatureAllowlist, addOrgNotificationEmail, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, confirmEndorsement, createConfirmation, createEducation, createEndorsement, createExternalAccount, createInvestment, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deleteInvestment, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteRepoRecords, deleteSkill, dismissConfirmation, dismissEndorsement, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchEntitySearch, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchGetProfileView, fetchGivenConfirmations, fetchHeatmapData, fetchHiddenApps, fetchMyGithubPullRequests, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchPendingConfirmations, fetchPendingEndorsements, fetchProfile, fetchProfileSummary, fetchReactionStatus, fetchReceivedEndorsements, fetchReciprocityCandidate, fetchRepoInventory, fetchRoadmapVotes, fetchSearchCompanies, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, fetchWipePreview, followUser, getAdminReviewQueues, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, importSearchEntities, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, removeOrgNotificationEmail, repoExportUrl, requestOrgDomainChallenge, resetProfile, resolveQuotedPosts, retractRoadmapVote, revealMarqueDomain, revokeConfirmation, searchSkills, selectEntity, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, submitOrgClaim, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unrevealMarqueDomain, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updateInvestment, updateOrgProfile, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount, verifyOrgDomain };
|
|
1766
|
+
export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, addFeatureAllowlist, addOrgNotificationEmail, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, confirmEndorsement, createConfirmation, createEducation, createEndorsement, createExternalAccount, createInvestment, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deleteInvestment, deleteNamePronunciationAudio, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteRepoRecords, deleteSkill, dismissConfirmation, dismissEndorsement, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchEntitySearch, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchGetProfileView, fetchGivenConfirmations, fetchHeatmapData, fetchHiddenApps, fetchMyGithubPullRequests, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchPendingConfirmations, fetchPendingEndorsements, fetchProfile, fetchProfileSummary, fetchReactionStatus, fetchReceivedEndorsements, fetchReciprocityCandidate, fetchRepoInventory, fetchRoadmapVotes, fetchSearchCompanies, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, fetchWipePreview, followUser, getAdminReviewQueues, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, importSearchEntities, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, removeOrgNotificationEmail, repoExportUrl, requestOrgDomainChallenge, resetProfile, resolveQuotedPosts, retractRoadmapVote, revealMarqueDomain, revokeConfirmation, searchSkills, selectEntity, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, submitOrgClaim, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unrevealMarqueDomain, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updateInvestment, updateOrgProfile, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, uploadNamePronunciationAudio, verifyExternalAccount, verifyOrgDomain };
|
|
1739
1767
|
//# sourceMappingURL=index.js.map
|
|
1740
1768
|
//# sourceMappingURL=index.js.map
|