@singi-labs/sifa-sdk 0.11.25 → 0.11.26
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/{adult-content-pvNBfDQL.d.cts → adult-content-B6QylaCW.d.cts} +16 -0
- package/dist/{adult-content-pvNBfDQL.d.ts → adult-content-B6QylaCW.d.ts} +16 -0
- package/dist/{index-BXi6sYhX.d.ts → index-AEgV1kLI.d.ts} +2 -2
- package/dist/{index-CCi2sg_u.d.ts → index-BgoYJYDg.d.ts} +2 -2
- package/dist/{index-CtH-frgT.d.cts → index-C6lkRZEu.d.cts} +2 -2
- package/dist/{index-OBJQIB9t.d.cts → index-Cnf3ptEg.d.cts} +2 -2
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/{keys-c5LIN2pO.d.cts → keys-9usqNSXo.d.cts} +1 -1
- package/dist/{keys-CxTXTPnI.d.ts → keys-BrOsePaR.d.ts} +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/schemas/index.cjs +7 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +5 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +7 -0
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -238,6 +238,22 @@ interface ProfileInvolvement {
|
|
|
238
238
|
startedAt?: string;
|
|
239
239
|
endedAt?: string;
|
|
240
240
|
links?: ProfileInvolvementLink[];
|
|
241
|
+
/**
|
|
242
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user
|
|
243
|
+
* picks the upstream from the resolver typeahead. Absent for free-text or
|
|
244
|
+
* one-off involvement.
|
|
245
|
+
*/
|
|
246
|
+
entityRef?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Resolved current canonical name of the durably-linked upstream, computed by
|
|
249
|
+
* the AppView at read time. Render over `upstream` when present. Absent for
|
|
250
|
+
* free-text or unresolved entries.
|
|
251
|
+
*/
|
|
252
|
+
entityName?: string;
|
|
253
|
+
location?: LocationValue | null;
|
|
254
|
+
skills?: SkillRef[];
|
|
255
|
+
/** Skill records resolved from `skills`, for display. */
|
|
256
|
+
linkedSkills?: ProfileSkill[];
|
|
241
257
|
/**
|
|
242
258
|
* True when this row is a mapped legacy `id.sifa.profile.volunteering` record
|
|
243
259
|
* (no `kind`), rendered under "Volunteering". Editing it backfills to an
|
|
@@ -238,6 +238,22 @@ interface ProfileInvolvement {
|
|
|
238
238
|
startedAt?: string;
|
|
239
239
|
endedAt?: string;
|
|
240
240
|
links?: ProfileInvolvementLink[];
|
|
241
|
+
/**
|
|
242
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user
|
|
243
|
+
* picks the upstream from the resolver typeahead. Absent for free-text or
|
|
244
|
+
* one-off involvement.
|
|
245
|
+
*/
|
|
246
|
+
entityRef?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Resolved current canonical name of the durably-linked upstream, computed by
|
|
249
|
+
* the AppView at read time. Render over `upstream` when present. Absent for
|
|
250
|
+
* free-text or unresolved entries.
|
|
251
|
+
*/
|
|
252
|
+
entityName?: string;
|
|
253
|
+
location?: LocationValue | null;
|
|
254
|
+
skills?: SkillRef[];
|
|
255
|
+
/** Skill records resolved from `skills`, for display. */
|
|
256
|
+
linkedSkills?: ProfileSkill[];
|
|
241
257
|
/**
|
|
242
258
|
* True when this row is a mapped legacy `id.sifa.profile.volunteering` record
|
|
243
259
|
* (no `kind`), rendered under "Volunteering". Editing it backfills to an
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-BrOsePaR.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
|
-
import { d as Profile, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-
|
|
6
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-B6QylaCW.js';
|
|
7
7
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.js';
|
|
8
8
|
|
|
9
9
|
interface SifaProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-
|
|
2
|
-
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-BrOsePaR.js';
|
|
2
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-B6QylaCW.js';
|
|
3
3
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-9usqNSXo.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
|
-
import { d as Profile, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-
|
|
6
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-B6QylaCW.cjs';
|
|
7
7
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
|
|
8
8
|
|
|
9
9
|
interface SifaProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-
|
|
2
|
-
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-9usqNSXo.cjs';
|
|
2
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-B6QylaCW.cjs';
|
|
3
3
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -2907,6 +2907,13 @@ var ProfileInvolvementRecordSchema = zod.z.object({
|
|
|
2907
2907
|
startedAt: partialDateSchema.optional(),
|
|
2908
2908
|
endedAt: partialDateSchema.optional(),
|
|
2909
2909
|
links: zod.z.array(ArtifactLinkSchema).max(50).optional(),
|
|
2910
|
+
// Portable org entity identifier (Wikidata/ROR/LEI URI) from the resolver
|
|
2911
|
+
// typeahead, constrained to http(s) so a script scheme is never a valid ref.
|
|
2912
|
+
entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
|
|
2913
|
+
// community.lexicon.location.address — validated at the app layer.
|
|
2914
|
+
location: zod.z.unknown().optional(),
|
|
2915
|
+
// id.sifa.defs#skillRef references (at-uri to a skill record in the same repo).
|
|
2916
|
+
skills: zod.z.array(zod.z.object({ uri: zod.z.string() })).max(50).optional(),
|
|
2910
2917
|
labels: selfLabelsSchema.optional(),
|
|
2911
2918
|
createdAt: datetimeSchema
|
|
2912
2919
|
}).passthrough();
|
|
@@ -3032,7 +3039,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
3032
3039
|
});
|
|
3033
3040
|
|
|
3034
3041
|
// src/index.ts
|
|
3035
|
-
var SIFA_SDK_VERSION = "0.11.
|
|
3042
|
+
var SIFA_SDK_VERSION = "0.11.26";
|
|
3036
3043
|
|
|
3037
3044
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
3038
3045
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|