@singi-labs/sifa-sdk 0.10.10 → 0.10.12
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 +75 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +74 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -82,6 +82,14 @@ declare function openToValueToToken(value: string | undefined | null): string |
|
|
|
82
82
|
* can choose their own fallback (e.g. render the raw value).
|
|
83
83
|
*/
|
|
84
84
|
declare function getOpenToLabelKey(value: string | undefined | null): string | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Normalize a list of `openTo` values: resolve legacy aliases to their
|
|
87
|
+
* canonical value, then dedup while preserving first-seen order. Unknown tokens
|
|
88
|
+
* pass through untouched (forward-compat). Used by the editor (so a legacy token
|
|
89
|
+
* maps onto a real option and migrates forward on save) and by display (so a
|
|
90
|
+
* record carrying both the legacy and canonical token renders a single badge).
|
|
91
|
+
*/
|
|
92
|
+
declare function normalizeOpenTo(values: readonly string[]): string[];
|
|
85
93
|
|
|
86
94
|
/**
|
|
87
95
|
* Workplace-type taxonomy. Mirrors `id.sifa.defs#workplaceType.knownValues`
|
|
@@ -97,6 +105,14 @@ declare const WORKPLACE_TYPE_OPTIONS: WorkplaceTypeOption[];
|
|
|
97
105
|
declare const WORKPLACE_TYPE_LABELS: Record<string, string>;
|
|
98
106
|
/** Resolve a label for a workplace-type token. Falls back to the raw value. */
|
|
99
107
|
declare function getWorkplaceTypeLabel(value: string | undefined | null): string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Normalize a list of workplace-type tokens: resolve legacy aliases to their
|
|
110
|
+
* canonical token, then dedup while preserving first-seen order. Unknown tokens
|
|
111
|
+
* pass through untouched (forward-compat). Used by the editor (so a legacy token
|
|
112
|
+
* maps onto a real option and migrates forward on save) and by display (so a
|
|
113
|
+
* record carrying both the legacy and canonical token renders a single badge).
|
|
114
|
+
*/
|
|
115
|
+
declare function normalizeWorkplaceTypes(values: readonly string[]): string[];
|
|
100
116
|
|
|
101
117
|
/**
|
|
102
118
|
* Platform identifiers, labels, and URL helpers used in profile external accounts.
|
|
@@ -306,6 +322,9 @@ declare const APP_CATEGORY_MAP: {
|
|
|
306
322
|
readonly anisota: "Posts";
|
|
307
323
|
readonly atfund: "Endorsements";
|
|
308
324
|
readonly crate: "Articles";
|
|
325
|
+
readonly atmorsvp: "Events";
|
|
326
|
+
readonly opensocial: "Social";
|
|
327
|
+
readonly kevara: "Events";
|
|
309
328
|
readonly linkat: "Links";
|
|
310
329
|
readonly kipclip: "Links";
|
|
311
330
|
readonly statusphere: "Social";
|
|
@@ -801,4 +820,4 @@ declare function pickPrimaryPosition<T extends PrimaryPositionCandidate>(positio
|
|
|
801
820
|
*/
|
|
802
821
|
declare const SIFA_SDK_VERSION: string;
|
|
803
822
|
|
|
804
|
-
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type AppCategoryId, type AppUrlPatterns, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, type ContinentCode, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, type EmploymentTypeGroup, type EmploymentTypeOption, INDUSTRY_OPTIONS, type IndustryOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, type PdsProvider, PdsProviderInfo, type PlatformId, type PrimaryPositionCandidate, Profile, type ProfileCompletion, type ProfileDimensionInputs, ProfileSkill, type Publisher, type RgbColor, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, type SkillCategory, type TierMeta, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, 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, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, meetsContrastAA, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
|
823
|
+
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type AppCategoryId, type AppUrlPatterns, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, type ContinentCode, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, type EmploymentTypeGroup, type EmploymentTypeOption, INDUSTRY_OPTIONS, type IndustryOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, type PdsProvider, PdsProviderInfo, type PlatformId, type PrimaryPositionCandidate, Profile, type ProfileCompletion, type ProfileDimensionInputs, ProfileSkill, type Publisher, type RgbColor, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, type SkillCategory, type TierMeta, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, 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, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, meetsContrastAA, normalizeOpenTo, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,14 @@ declare function openToValueToToken(value: string | undefined | null): string |
|
|
|
82
82
|
* can choose their own fallback (e.g. render the raw value).
|
|
83
83
|
*/
|
|
84
84
|
declare function getOpenToLabelKey(value: string | undefined | null): string | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Normalize a list of `openTo` values: resolve legacy aliases to their
|
|
87
|
+
* canonical value, then dedup while preserving first-seen order. Unknown tokens
|
|
88
|
+
* pass through untouched (forward-compat). Used by the editor (so a legacy token
|
|
89
|
+
* maps onto a real option and migrates forward on save) and by display (so a
|
|
90
|
+
* record carrying both the legacy and canonical token renders a single badge).
|
|
91
|
+
*/
|
|
92
|
+
declare function normalizeOpenTo(values: readonly string[]): string[];
|
|
85
93
|
|
|
86
94
|
/**
|
|
87
95
|
* Workplace-type taxonomy. Mirrors `id.sifa.defs#workplaceType.knownValues`
|
|
@@ -97,6 +105,14 @@ declare const WORKPLACE_TYPE_OPTIONS: WorkplaceTypeOption[];
|
|
|
97
105
|
declare const WORKPLACE_TYPE_LABELS: Record<string, string>;
|
|
98
106
|
/** Resolve a label for a workplace-type token. Falls back to the raw value. */
|
|
99
107
|
declare function getWorkplaceTypeLabel(value: string | undefined | null): string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Normalize a list of workplace-type tokens: resolve legacy aliases to their
|
|
110
|
+
* canonical token, then dedup while preserving first-seen order. Unknown tokens
|
|
111
|
+
* pass through untouched (forward-compat). Used by the editor (so a legacy token
|
|
112
|
+
* maps onto a real option and migrates forward on save) and by display (so a
|
|
113
|
+
* record carrying both the legacy and canonical token renders a single badge).
|
|
114
|
+
*/
|
|
115
|
+
declare function normalizeWorkplaceTypes(values: readonly string[]): string[];
|
|
100
116
|
|
|
101
117
|
/**
|
|
102
118
|
* Platform identifiers, labels, and URL helpers used in profile external accounts.
|
|
@@ -306,6 +322,9 @@ declare const APP_CATEGORY_MAP: {
|
|
|
306
322
|
readonly anisota: "Posts";
|
|
307
323
|
readonly atfund: "Endorsements";
|
|
308
324
|
readonly crate: "Articles";
|
|
325
|
+
readonly atmorsvp: "Events";
|
|
326
|
+
readonly opensocial: "Social";
|
|
327
|
+
readonly kevara: "Events";
|
|
309
328
|
readonly linkat: "Links";
|
|
310
329
|
readonly kipclip: "Links";
|
|
311
330
|
readonly statusphere: "Social";
|
|
@@ -801,4 +820,4 @@ declare function pickPrimaryPosition<T extends PrimaryPositionCandidate>(positio
|
|
|
801
820
|
*/
|
|
802
821
|
declare const SIFA_SDK_VERSION: string;
|
|
803
822
|
|
|
804
|
-
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type AppCategoryId, type AppUrlPatterns, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, type ContinentCode, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, type EmploymentTypeGroup, type EmploymentTypeOption, INDUSTRY_OPTIONS, type IndustryOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, type PdsProvider, PdsProviderInfo, type PlatformId, type PrimaryPositionCandidate, Profile, type ProfileCompletion, type ProfileDimensionInputs, ProfileSkill, type Publisher, type RgbColor, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, type SkillCategory, type TierMeta, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, 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, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, meetsContrastAA, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
|
823
|
+
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type AppCategoryId, type AppUrlPatterns, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, type ContinentCode, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, type EmploymentTypeGroup, type EmploymentTypeOption, INDUSTRY_OPTIONS, type IndustryOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, type PdsProvider, PdsProviderInfo, type PlatformId, type PrimaryPositionCandidate, Profile, type ProfileCompletion, type ProfileDimensionInputs, ProfileSkill, type Publisher, type RgbColor, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, type SkillCategory, type TierMeta, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, 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, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, meetsContrastAA, normalizeOpenTo, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
package/dist/index.js
CHANGED
|
@@ -724,6 +724,20 @@ function getOpenToLabelKey(value) {
|
|
|
724
724
|
if (!value) return void 0;
|
|
725
725
|
return OPEN_TO_LABEL_KEY_MAP[value];
|
|
726
726
|
}
|
|
727
|
+
var OPEN_TO_LEGACY_VALUE_ALIASES = {
|
|
728
|
+
"id.sifa.defs#mentoring": "id.sifa.defs#mentoringOthers"
|
|
729
|
+
};
|
|
730
|
+
function normalizeOpenTo(values) {
|
|
731
|
+
const seen = /* @__PURE__ */ new Set();
|
|
732
|
+
const out = [];
|
|
733
|
+
for (const value of values) {
|
|
734
|
+
const canonical = OPEN_TO_LEGACY_VALUE_ALIASES[value] ?? value;
|
|
735
|
+
if (seen.has(canonical)) continue;
|
|
736
|
+
seen.add(canonical);
|
|
737
|
+
out.push(canonical);
|
|
738
|
+
}
|
|
739
|
+
return out;
|
|
740
|
+
}
|
|
727
741
|
|
|
728
742
|
// src/taxonomy/workplace-type.ts
|
|
729
743
|
var WORKPLACE_TYPE_OPTIONS = [
|
|
@@ -741,6 +755,20 @@ function getWorkplaceTypeLabel(value) {
|
|
|
741
755
|
if (!value) return void 0;
|
|
742
756
|
return WORKPLACE_TYPE_LABELS[value] ?? value;
|
|
743
757
|
}
|
|
758
|
+
var WORKPLACE_TYPE_LEGACY_ALIASES = {
|
|
759
|
+
"id.sifa.defs#remote": "id.sifa.defs#remoteGlobal"
|
|
760
|
+
};
|
|
761
|
+
function normalizeWorkplaceTypes(values) {
|
|
762
|
+
const seen = /* @__PURE__ */ new Set();
|
|
763
|
+
const out = [];
|
|
764
|
+
for (const value of values) {
|
|
765
|
+
const canonical = WORKPLACE_TYPE_LEGACY_ALIASES[value] ?? value;
|
|
766
|
+
if (seen.has(canonical)) continue;
|
|
767
|
+
seen.add(canonical);
|
|
768
|
+
out.push(canonical);
|
|
769
|
+
}
|
|
770
|
+
return out;
|
|
771
|
+
}
|
|
744
772
|
|
|
745
773
|
// src/taxonomy/platforms.ts
|
|
746
774
|
var PLATFORM_LABELS = {
|
|
@@ -913,6 +941,12 @@ var APP_CATEGORY_MAP = {
|
|
|
913
941
|
anisota: "Posts",
|
|
914
942
|
atfund: "Endorsements",
|
|
915
943
|
crate: "Articles",
|
|
944
|
+
atmorsvp: "Events",
|
|
945
|
+
opensocial: "Social",
|
|
946
|
+
// Kevara speaker-directory listing — a professional speaking-availability
|
|
947
|
+
// declaration (talk topics, formats like keynote/panel/conference-talk).
|
|
948
|
+
// Grouped under Events as the closest fit (speaking engagements).
|
|
949
|
+
kevara: "Events",
|
|
916
950
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
917
951
|
// no backend scan collection yet)
|
|
918
952
|
linkat: "Links",
|
|
@@ -1635,6 +1669,23 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1635
1669
|
// render on the maker's own site. `content` cards link out via
|
|
1636
1670
|
// record.canonicalUrl (handled in resolveCardUrl); `note` records have no
|
|
1637
1671
|
// public URL and render non-clickable. So no app-level pattern applies.
|
|
1672
|
+
},
|
|
1673
|
+
atmorsvp: {
|
|
1674
|
+
// atmo.rsvp events live at /p/{did}/e/{rkey}. The per-item pattern is used
|
|
1675
|
+
// for the event record itself; checkin records build their URL from the
|
|
1676
|
+
// referenced event uri in resolveCardUrl (mirrors smokesignal rsvp).
|
|
1677
|
+
urlPattern: "https://atmo.rsvp/p/{did}/e/{rkey}",
|
|
1678
|
+
profileUrlPattern: "https://atmo.rsvp/p/{did}"
|
|
1679
|
+
},
|
|
1680
|
+
opensocial: {
|
|
1681
|
+
// Open Social (opensocial.community) is community-management infrastructure
|
|
1682
|
+
// with no public per-membership permalink. Profile fallback only.
|
|
1683
|
+
profileUrlPattern: "https://opensocial.community"
|
|
1684
|
+
},
|
|
1685
|
+
kevara: {
|
|
1686
|
+
// Kevara (professional network) has no live public web surface yet — its
|
|
1687
|
+
// domain doesn't resolve and there's no per-record viewer. Recognized so
|
|
1688
|
+
// the speaker-directory card renders with the right pill, but non-clickable.
|
|
1638
1689
|
}
|
|
1639
1690
|
});
|
|
1640
1691
|
var COLLECTION_TO_APP = [
|
|
@@ -1677,7 +1728,10 @@ var COLLECTION_TO_APP = [
|
|
|
1677
1728
|
["fyi.atstore.", "atstore"],
|
|
1678
1729
|
["fm.plyr.", "plyr"],
|
|
1679
1730
|
["fund.at.", "atfund"],
|
|
1680
|
-
["social.crate.", "crate"]
|
|
1731
|
+
["social.crate.", "crate"],
|
|
1732
|
+
["quest.atmo.", "atmorsvp"],
|
|
1733
|
+
["community.opensocial.", "opensocial"],
|
|
1734
|
+
["is.kevara.", "kevara"]
|
|
1681
1735
|
];
|
|
1682
1736
|
|
|
1683
1737
|
// src/cards/resolve-card-url.ts
|
|
@@ -1777,6 +1831,23 @@ function resolveCardUrl(item) {
|
|
|
1777
1831
|
}
|
|
1778
1832
|
return null;
|
|
1779
1833
|
}
|
|
1834
|
+
if (collection === "quest.atmo.event") {
|
|
1835
|
+
const parsed2 = parseAtUri(uri);
|
|
1836
|
+
if (parsed2) {
|
|
1837
|
+
return `https://atmo.rsvp/p/${parsed2.did}/e/${parsed2.rkey}`;
|
|
1838
|
+
}
|
|
1839
|
+
return null;
|
|
1840
|
+
}
|
|
1841
|
+
if (collection === "quest.atmo.checkin") {
|
|
1842
|
+
const eventUri = stringOrNull(record.event);
|
|
1843
|
+
if (eventUri) {
|
|
1844
|
+
const parsed2 = parseAtUri(eventUri);
|
|
1845
|
+
if (parsed2) {
|
|
1846
|
+
return `https://atmo.rsvp/p/${parsed2.did}/e/${parsed2.rkey}`;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
return null;
|
|
1850
|
+
}
|
|
1780
1851
|
if (collection === "fyi.atstore.listing.review") {
|
|
1781
1852
|
const listingMeta = record.listingMeta;
|
|
1782
1853
|
if (listingMeta != null && typeof listingMeta === "object") {
|
|
@@ -2248,8 +2319,8 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
2248
2319
|
});
|
|
2249
2320
|
|
|
2250
2321
|
// src/index.ts
|
|
2251
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2322
|
+
var SIFA_SDK_VERSION = "0.10.12";
|
|
2252
2323
|
|
|
2253
|
-
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, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, 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, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
2324
|
+
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, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, 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, normalizeOpenTo, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
2254
2325
|
//# sourceMappingURL=index.js.map
|
|
2255
2326
|
//# sourceMappingURL=index.js.map
|