@singi-labs/sifa-sdk 0.14.2 → 0.14.4
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/badge/index.cjs +1 -1
- package/dist/badge/index.cjs.map +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/badge/index.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.cjs +7 -5
- package/dist/jsonld/index.cjs.map +1 -1
- package/dist/jsonld/index.js +7 -5
- package/dist/jsonld/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs +1 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.js +1 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.js +1 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +13 -1
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +2 -0
- package/dist/schemas/write/index.d.ts +2 -0
- package/dist/schemas/write/index.js +13 -1
- package/dist/schemas/write/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1879,15 +1879,20 @@ declare function countFilledDimensions(input: ProfileDimensionInputs | Profile):
|
|
|
1879
1879
|
* <meta description>, JSON-LD) re-derived "primary" inconsistently and diverged
|
|
1880
1880
|
* for users with multiple concurrent roles.
|
|
1881
1881
|
*
|
|
1882
|
+
* A `hidden` position is one the user chose not to show on their public profile.
|
|
1883
|
+
* It is never surfaced as the featured role — hidden wins over `primary`, so a
|
|
1884
|
+
* role flagged both hidden and primary is excluded rather than featured.
|
|
1885
|
+
*
|
|
1882
1886
|
* Rules (in order):
|
|
1883
|
-
* 1. A position the user explicitly flagged `primary` AND that is still active.
|
|
1884
|
-
* 2. Otherwise, the active position with the most recent `startedAt`.
|
|
1885
|
-
* 3. Otherwise, undefined (no
|
|
1887
|
+
* 1. A position the user explicitly flagged `primary` AND that is still active AND not hidden.
|
|
1888
|
+
* 2. Otherwise, the active, non-hidden position with the most recent `startedAt`.
|
|
1889
|
+
* 3. Otherwise, undefined (no eligible position).
|
|
1886
1890
|
*/
|
|
1887
1891
|
interface PrimaryPositionCandidate {
|
|
1888
1892
|
startedAt?: string;
|
|
1889
1893
|
endedAt?: string;
|
|
1890
1894
|
primary?: boolean;
|
|
1895
|
+
hidden?: boolean;
|
|
1891
1896
|
}
|
|
1892
1897
|
declare function pickPrimaryPosition<T extends PrimaryPositionCandidate>(positions: readonly T[] | undefined): T | undefined;
|
|
1893
1898
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1879,15 +1879,20 @@ declare function countFilledDimensions(input: ProfileDimensionInputs | Profile):
|
|
|
1879
1879
|
* <meta description>, JSON-LD) re-derived "primary" inconsistently and diverged
|
|
1880
1880
|
* for users with multiple concurrent roles.
|
|
1881
1881
|
*
|
|
1882
|
+
* A `hidden` position is one the user chose not to show on their public profile.
|
|
1883
|
+
* It is never surfaced as the featured role — hidden wins over `primary`, so a
|
|
1884
|
+
* role flagged both hidden and primary is excluded rather than featured.
|
|
1885
|
+
*
|
|
1882
1886
|
* Rules (in order):
|
|
1883
|
-
* 1. A position the user explicitly flagged `primary` AND that is still active.
|
|
1884
|
-
* 2. Otherwise, the active position with the most recent `startedAt`.
|
|
1885
|
-
* 3. Otherwise, undefined (no
|
|
1887
|
+
* 1. A position the user explicitly flagged `primary` AND that is still active AND not hidden.
|
|
1888
|
+
* 2. Otherwise, the active, non-hidden position with the most recent `startedAt`.
|
|
1889
|
+
* 3. Otherwise, undefined (no eligible position).
|
|
1886
1890
|
*/
|
|
1887
1891
|
interface PrimaryPositionCandidate {
|
|
1888
1892
|
startedAt?: string;
|
|
1889
1893
|
endedAt?: string;
|
|
1890
1894
|
primary?: boolean;
|
|
1895
|
+
hidden?: boolean;
|
|
1891
1896
|
}
|
|
1892
1897
|
declare function pickPrimaryPosition<T extends PrimaryPositionCandidate>(positions: readonly T[] | undefined): T | undefined;
|
|
1893
1898
|
|
package/dist/index.js
CHANGED
|
@@ -2726,7 +2726,7 @@ function parseTalkRkey(segment) {
|
|
|
2726
2726
|
// src/logic/primary-position.ts
|
|
2727
2727
|
function pickPrimaryPosition(positions) {
|
|
2728
2728
|
if (!positions || positions.length === 0) return void 0;
|
|
2729
|
-
const active = positions.filter((p) => !p.endedAt);
|
|
2729
|
+
const active = positions.filter((p) => !p.endedAt && !p.hidden);
|
|
2730
2730
|
if (active.length === 0) return void 0;
|
|
2731
2731
|
const flagged = active.find((p) => p.primary === true);
|
|
2732
2732
|
if (flagged) return flagged;
|
|
@@ -5877,7 +5877,7 @@ function describeSifaRecord(collection, value) {
|
|
|
5877
5877
|
}
|
|
5878
5878
|
|
|
5879
5879
|
// src/index.ts
|
|
5880
|
-
var SIFA_SDK_VERSION = "0.14.
|
|
5880
|
+
var SIFA_SDK_VERSION = "0.14.4";
|
|
5881
5881
|
|
|
5882
5882
|
export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, INVESTMENT_ROLE_LABELS, INVESTMENT_ROLE_OPTIONS, INVESTMENT_STAGE_LABELS, INVESTMENT_STAGE_OPTIONS, INVESTMENT_STATUS_LABELS, INVESTMENT_STATUS_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, InvestmentAmountSchema, MIN_SKILLS, ON_BEHALF_OF_EMPLOYMENT_TYPES, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVESTMENT_NSID, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvestmentRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SIFA_REPO_GROUPS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildMetaDescription, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countRecentActivity, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, describeSifaRecord, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDisplayUrl, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvestmentRoleLabel, getInvestmentStageLabel, getInvestmentStatusLabel, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isOnBehalfOfApplicable, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, locationSegments, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeSkillCategory, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, repoGroupForCollection, resolveAccountFacetMode, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
|
|
5883
5883
|
//# sourceMappingURL=index.js.map
|