@singi-labs/sifa-sdk 0.10.6 → 0.10.8
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 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +66 -10
- package/dist/index.js.map +1 -1
- package/dist/{keys-GSG0egRE.d.cts → keys-0h1sHtHX.d.cts} +17 -0
- package/dist/{keys-G_SErFOu.d.ts → keys-Bnvbkxoc.d.ts} +17 -0
- package/dist/query/fetchers/index.cjs +6 -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 +6 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +6 -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 +6 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +6 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a4 as RefreshPdsResult, ag as UpdateProfileOverrideInput, ah as UpdateProfileSelfInput, ai as UploadAvatarResult, i as CreateResult, T as ProfileLocationInput, j as ExternalAccountInput, h as CreateExternalAccountResult, aj as VerifyExternalAccountResult, E as EndorsementInput, a3 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, O as HideProfileItemInput, ad as StatsResponse, g as AppRegistryEntry, L as HiddenApp, v as FilterOptions, a8 as SearchFilters, a9 as SearchResponse, ac as SkillSearchResult, k as FeaturedProfile, ab as SimilarProfile, u as FetchSuggestionsOptions, af as SuggestionsResponse, z as FollowUserResult, n as FetchFollowListOptions, w as FollowListPage, G as FollowingResponse, p as FetchFollowingFeedOptions, o as FetchFollowProfilePageOptions, y as FollowProfilePageResponse, F as FeatureAllowlistResponse, l as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, K as HeatmapResponse, a as AccountCheckResult, a2 as ReactionStatus, a1 as ReactionResult, a0 as ReactionError, a7 as RoadmapVotesResponse, D as DeleteAccountResult } from '../../keys-
|
|
4
|
-
export { aa as SifaQueryKey } from '../../keys-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a4 as RefreshPdsResult, ag as UpdateProfileOverrideInput, ah as UpdateProfileSelfInput, ai as UploadAvatarResult, i as CreateResult, T as ProfileLocationInput, j as ExternalAccountInput, h as CreateExternalAccountResult, aj as VerifyExternalAccountResult, E as EndorsementInput, a3 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, O as HideProfileItemInput, ad as StatsResponse, g as AppRegistryEntry, L as HiddenApp, v as FilterOptions, a8 as SearchFilters, a9 as SearchResponse, ac as SkillSearchResult, k as FeaturedProfile, ab as SimilarProfile, u as FetchSuggestionsOptions, af as SuggestionsResponse, z as FollowUserResult, n as FetchFollowListOptions, w as FollowListPage, G as FollowingResponse, p as FetchFollowingFeedOptions, o as FetchFollowProfilePageOptions, y as FollowProfilePageResponse, F as FeatureAllowlistResponse, l as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, K as HeatmapResponse, a as AccountCheckResult, a2 as ReactionStatus, a1 as ReactionResult, a0 as ReactionError, a7 as RoadmapVotesResponse, D as DeleteAccountResult } from '../../keys-0h1sHtHX.cjs';
|
|
4
|
+
export { aa as SifaQueryKey } from '../../keys-0h1sHtHX.cjs';
|
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
6
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
7
7
|
import { c as Profile, r as ProfilePosition, w as SkillRef, E as ExternalAccount, S as SkillSuggestion } from '../../adult-content-DxasJdot.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a4 as RefreshPdsResult, ag as UpdateProfileOverrideInput, ah as UpdateProfileSelfInput, ai as UploadAvatarResult, i as CreateResult, T as ProfileLocationInput, j as ExternalAccountInput, h as CreateExternalAccountResult, aj as VerifyExternalAccountResult, E as EndorsementInput, a3 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, O as HideProfileItemInput, ad as StatsResponse, g as AppRegistryEntry, L as HiddenApp, v as FilterOptions, a8 as SearchFilters, a9 as SearchResponse, ac as SkillSearchResult, k as FeaturedProfile, ab as SimilarProfile, u as FetchSuggestionsOptions, af as SuggestionsResponse, z as FollowUserResult, n as FetchFollowListOptions, w as FollowListPage, G as FollowingResponse, p as FetchFollowingFeedOptions, o as FetchFollowProfilePageOptions, y as FollowProfilePageResponse, F as FeatureAllowlistResponse, l as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, K as HeatmapResponse, a as AccountCheckResult, a2 as ReactionStatus, a1 as ReactionResult, a0 as ReactionError, a7 as RoadmapVotesResponse, D as DeleteAccountResult } from '../../keys-
|
|
4
|
-
export { aa as SifaQueryKey } from '../../keys-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a4 as RefreshPdsResult, ag as UpdateProfileOverrideInput, ah as UpdateProfileSelfInput, ai as UploadAvatarResult, i as CreateResult, T as ProfileLocationInput, j as ExternalAccountInput, h as CreateExternalAccountResult, aj as VerifyExternalAccountResult, E as EndorsementInput, a3 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, O as HideProfileItemInput, ad as StatsResponse, g as AppRegistryEntry, L as HiddenApp, v as FilterOptions, a8 as SearchFilters, a9 as SearchResponse, ac as SkillSearchResult, k as FeaturedProfile, ab as SimilarProfile, u as FetchSuggestionsOptions, af as SuggestionsResponse, z as FollowUserResult, n as FetchFollowListOptions, w as FollowListPage, G as FollowingResponse, p as FetchFollowingFeedOptions, o as FetchFollowProfilePageOptions, y as FollowProfilePageResponse, F as FeatureAllowlistResponse, l as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, K as HeatmapResponse, a as AccountCheckResult, a2 as ReactionStatus, a1 as ReactionResult, a0 as ReactionError, a7 as RoadmapVotesResponse, D as DeleteAccountResult } from '../../keys-Bnvbkxoc.js';
|
|
4
|
+
export { aa as SifaQueryKey } from '../../keys-Bnvbkxoc.js';
|
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
6
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
7
7
|
import { c as Profile, r as ProfilePosition, w as SkillRef, E as ExternalAccount, S as SkillSuggestion } from '../../adult-content-DxasJdot.js';
|
|
@@ -1255,7 +1255,7 @@ function useHiddenApps(options) {
|
|
|
1255
1255
|
|
|
1256
1256
|
// src/query/fetchers/search.ts
|
|
1257
1257
|
var EMPTY_SEARCH = { profiles: [], total: 0, limit: 20, offset: 0 };
|
|
1258
|
-
var EMPTY_FILTERS = { countries: [], industries: [], apps: [] };
|
|
1258
|
+
var EMPTY_FILTERS = { countries: [], industries: [], apps: [], openTo: [] };
|
|
1259
1259
|
async function fetchSearchProfiles(config, filters, options = {}) {
|
|
1260
1260
|
const params = new URLSearchParams();
|
|
1261
1261
|
if (filters.q) params.set("q", filters.q);
|
|
@@ -1265,6 +1265,11 @@ async function fetchSearchProfiles(config, filters, options = {}) {
|
|
|
1265
1265
|
if (filters.domain) params.set("domain", filters.domain);
|
|
1266
1266
|
if (filters.workplace) params.set("workplace", filters.workplace);
|
|
1267
1267
|
if (filters.app) params.set("app", filters.app);
|
|
1268
|
+
if (filters.openTo && filters.openTo.length > 0) {
|
|
1269
|
+
for (const token of filters.openTo) {
|
|
1270
|
+
if (token) params.append("openTo", token);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1268
1273
|
if (filters.limit !== void 0) params.set("limit", String(filters.limit));
|
|
1269
1274
|
if (params.size === 0) return EMPTY_SEARCH;
|
|
1270
1275
|
return apiFetch(config, `/api/search/profiles?${params.toString()}`, {
|