@singi-labs/sifa-sdk 0.10.4 → 0.10.6
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-BjbP46ad.d.cts → adult-content-DxasJdot.d.cts} +1 -1
- package/dist/{adult-content-BjbP46ad.d.ts → adult-content-DxasJdot.d.ts} +1 -1
- package/dist/index.cjs +16 -3
- 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 +16 -3
- package/dist/index.js.map +1 -1
- package/dist/{keys-DPeDdYki.d.cts → keys-GSG0egRE.d.cts} +7 -3
- package/dist/{keys-Ba4_wCnj.d.ts → keys-G_SErFOu.d.ts} +7 -3
- package/dist/query/fetchers/index.cjs +4 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/fetchers/index.js +4 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +4 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +4 -0
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +87 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +101 -3
- package/dist/query/index.d.ts +101 -3
- package/dist/query/index.js +82 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -357,4 +357,4 @@ declare function hasAdultContent(item: {
|
|
|
357
357
|
labels?: ActivityLabel[];
|
|
358
358
|
}): boolean;
|
|
359
359
|
|
|
360
|
-
export { type
|
|
360
|
+
export { type AdultContentLabel as A, type ExternalAccount as E, type FeedItem as F, type LocationValue as L, type ProfileSkill as P, type SkillSuggestion as S, type TrustStat as T, type VerifiedAccount as V, type ActivityLabel as a, type PdsProviderInfo as b, type Profile as c, ADULT_CONTENT_LABELS as d, type ActiveApp as e, type Endorsement as f, type EndorsementData as g, type ExternalAccountKeytraceClaim as h, type LanguageProficiency as i, type ProfileCertification as j, type ProfileCourse as k, type ProfileEducation as l, type ProfileHonor as m, type ProfileIndustry as n, type ProfileLanguage as o, type ProfileLocation as p, type ProfileOverrideSource as q, type ProfilePosition as r, type ProfileProject as s, type ProfilePublication as t, type ProfileVolunteering as u, type PublicationContributor as v, type SkillRef as w, hasAdultContent as x };
|
|
@@ -357,4 +357,4 @@ declare function hasAdultContent(item: {
|
|
|
357
357
|
labels?: ActivityLabel[];
|
|
358
358
|
}): boolean;
|
|
359
359
|
|
|
360
|
-
export { type
|
|
360
|
+
export { type AdultContentLabel as A, type ExternalAccount as E, type FeedItem as F, type LocationValue as L, type ProfileSkill as P, type SkillSuggestion as S, type TrustStat as T, type VerifiedAccount as V, type ActivityLabel as a, type PdsProviderInfo as b, type Profile as c, ADULT_CONTENT_LABELS as d, type ActiveApp as e, type Endorsement as f, type EndorsementData as g, type ExternalAccountKeytraceClaim as h, type LanguageProficiency as i, type ProfileCertification as j, type ProfileCourse as k, type ProfileEducation as l, type ProfileHonor as m, type ProfileIndustry as n, type ProfileLanguage as o, type ProfileLocation as p, type ProfileOverrideSource as q, type ProfilePosition as r, type ProfileProject as s, type ProfilePublication as t, type ProfileVolunteering as u, type PublicationContributor as v, type SkillRef as w, hasAdultContent as x };
|
package/dist/index.cjs
CHANGED
|
@@ -1554,8 +1554,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1554
1554
|
profileUrlPattern: "https://nooki.me/user/{handle}"
|
|
1555
1555
|
},
|
|
1556
1556
|
atstore: {
|
|
1557
|
-
//
|
|
1558
|
-
|
|
1557
|
+
// atstore.fyi has no user-profile pages (the legacy `/@{handle}` pattern
|
|
1558
|
+
// resolved to a 404), and no per-review deep link exists. The per-product
|
|
1559
|
+
// page (https://atstore.fyi/products/{slug}) is the most specific URL
|
|
1560
|
+
// available — resolveCardUrl builds it from record.listingMeta.slug,
|
|
1561
|
+
// which sifa-api enriches by resolving the review's `subject` to the
|
|
1562
|
+
// referenced listing.detail record.
|
|
1563
|
+
profileUrlPattern: "https://atstore.fyi"
|
|
1559
1564
|
},
|
|
1560
1565
|
plyr: {
|
|
1561
1566
|
// SPA — per-record URLs require JS routing. plyr.fm doesn't expose a
|
|
@@ -1701,6 +1706,14 @@ function resolveCardUrl(item) {
|
|
|
1701
1706
|
}
|
|
1702
1707
|
return null;
|
|
1703
1708
|
}
|
|
1709
|
+
if (collection === "fyi.atstore.listing.review") {
|
|
1710
|
+
const listingMeta = record.listingMeta;
|
|
1711
|
+
if (listingMeta != null && typeof listingMeta === "object") {
|
|
1712
|
+
const slug = stringOrNull(listingMeta.slug);
|
|
1713
|
+
if (slug) return `https://atstore.fyi/products/${encodeURIComponent(slug)}`;
|
|
1714
|
+
}
|
|
1715
|
+
return APP_URL_PATTERNS.atstore?.profileUrlPattern ?? null;
|
|
1716
|
+
}
|
|
1704
1717
|
if (collection.startsWith("site.standard.")) {
|
|
1705
1718
|
const siteUrl = stringOrNull(record.siteUrl);
|
|
1706
1719
|
const path = stringOrNull(record.path);
|
|
@@ -2158,7 +2171,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2158
2171
|
});
|
|
2159
2172
|
|
|
2160
2173
|
// src/index.ts
|
|
2161
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2174
|
+
var SIFA_SDK_VERSION = "0.10.6";
|
|
2162
2175
|
|
|
2163
2176
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2164
2177
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|