@singi-labs/sifa-sdk 0.10.4 → 0.10.5
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 +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1552,8 +1552,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1552
1552
|
profileUrlPattern: "https://nooki.me/user/{handle}"
|
|
1553
1553
|
},
|
|
1554
1554
|
atstore: {
|
|
1555
|
-
//
|
|
1556
|
-
|
|
1555
|
+
// atstore.fyi has no user-profile pages (the legacy `/@{handle}` pattern
|
|
1556
|
+
// resolved to a 404), and no per-review deep link exists. The per-product
|
|
1557
|
+
// page (https://atstore.fyi/products/{slug}) is the most specific URL
|
|
1558
|
+
// available — resolveCardUrl builds it from record.listingMeta.slug,
|
|
1559
|
+
// which sifa-api enriches by resolving the review's `subject` to the
|
|
1560
|
+
// referenced listing.detail record.
|
|
1561
|
+
profileUrlPattern: "https://atstore.fyi"
|
|
1557
1562
|
},
|
|
1558
1563
|
plyr: {
|
|
1559
1564
|
// SPA — per-record URLs require JS routing. plyr.fm doesn't expose a
|
|
@@ -1699,6 +1704,14 @@ function resolveCardUrl(item) {
|
|
|
1699
1704
|
}
|
|
1700
1705
|
return null;
|
|
1701
1706
|
}
|
|
1707
|
+
if (collection === "fyi.atstore.listing.review") {
|
|
1708
|
+
const listingMeta = record.listingMeta;
|
|
1709
|
+
if (listingMeta != null && typeof listingMeta === "object") {
|
|
1710
|
+
const slug = stringOrNull(listingMeta.slug);
|
|
1711
|
+
if (slug) return `https://atstore.fyi/products/${encodeURIComponent(slug)}`;
|
|
1712
|
+
}
|
|
1713
|
+
return APP_URL_PATTERNS.atstore?.profileUrlPattern ?? null;
|
|
1714
|
+
}
|
|
1702
1715
|
if (collection.startsWith("site.standard.")) {
|
|
1703
1716
|
const siteUrl = stringOrNull(record.siteUrl);
|
|
1704
1717
|
const path = stringOrNull(record.path);
|
|
@@ -2156,7 +2169,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
2156
2169
|
});
|
|
2157
2170
|
|
|
2158
2171
|
// src/index.ts
|
|
2159
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2172
|
+
var SIFA_SDK_VERSION = "0.10.5";
|
|
2160
2173
|
|
|
2161
2174
|
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, AtmosphereFeedItemSchema, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, categoryForApp, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, encodeFeedCursor, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppCategoryIcon, getAppIdForCollection, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, hasAdultContent, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
2162
2175
|
//# sourceMappingURL=index.js.map
|