@singi-labs/sifa-sdk 0.10.7 → 0.10.8
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 +56 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +56 -9
- package/dist/index.js.map +1 -1
- package/dist/{keys-GSG0egRE.d.cts → keys-0h1sHtHX.d.cts} +17 -0
- package/dist/{keys-G_SErFOu.d.ts → keys-Bnvbkxoc.d.ts} +17 -0
- package/dist/query/fetchers/index.cjs +6 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +6 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +6 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +6 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +6 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -58,9 +58,12 @@ declare function getIndustryLabelKey(value: string): string;
|
|
|
58
58
|
* Shape matches `INDUSTRY_OPTIONS`: `{ value, labelKey }` so consumers can run
|
|
59
59
|
* `labelKey` through their own i18n layer (e.g. next-intl `useTranslations`).
|
|
60
60
|
*/
|
|
61
|
+
type OpenToGroup = 'work' | 'mentorship' | 'peer';
|
|
61
62
|
interface OpenToOption {
|
|
62
63
|
value: string;
|
|
63
64
|
labelKey: string;
|
|
65
|
+
token: string;
|
|
66
|
+
group: OpenToGroup;
|
|
64
67
|
}
|
|
65
68
|
declare const OPEN_TO_OPTIONS: OpenToOption[];
|
|
66
69
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -58,9 +58,12 @@ declare function getIndustryLabelKey(value: string): string;
|
|
|
58
58
|
* Shape matches `INDUSTRY_OPTIONS`: `{ value, labelKey }` so consumers can run
|
|
59
59
|
* `labelKey` through their own i18n layer (e.g. next-intl `useTranslations`).
|
|
60
60
|
*/
|
|
61
|
+
type OpenToGroup = 'work' | 'mentorship' | 'peer';
|
|
61
62
|
interface OpenToOption {
|
|
62
63
|
value: string;
|
|
63
64
|
labelKey: string;
|
|
65
|
+
token: string;
|
|
66
|
+
group: OpenToGroup;
|
|
64
67
|
}
|
|
65
68
|
declare const OPEN_TO_OPTIONS: OpenToOption[];
|
|
66
69
|
/**
|
package/dist/index.js
CHANGED
|
@@ -649,15 +649,62 @@ function getIndustryLabelKey(value) {
|
|
|
649
649
|
|
|
650
650
|
// src/taxonomy/open-to.ts
|
|
651
651
|
var OPEN_TO_OPTIONS = [
|
|
652
|
-
{
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
{
|
|
659
|
-
|
|
652
|
+
{
|
|
653
|
+
value: "id.sifa.defs#fullTimeRoles",
|
|
654
|
+
labelKey: "fullTimeRoles",
|
|
655
|
+
token: "fullTime",
|
|
656
|
+
group: "work"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
value: "id.sifa.defs#partTimeRoles",
|
|
660
|
+
labelKey: "partTimeRoles",
|
|
661
|
+
token: "partTime",
|
|
662
|
+
group: "work"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
value: "id.sifa.defs#contractRoles",
|
|
666
|
+
labelKey: "contractRoles",
|
|
667
|
+
token: "contract",
|
|
668
|
+
group: "work"
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
value: "id.sifa.defs#commissions",
|
|
672
|
+
labelKey: "commissions",
|
|
673
|
+
token: "commissions",
|
|
674
|
+
group: "work"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
value: "id.sifa.defs#boardPositions",
|
|
678
|
+
labelKey: "boardPositions",
|
|
679
|
+
token: "board",
|
|
680
|
+
group: "work"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
value: "id.sifa.defs#mentoringOthers",
|
|
684
|
+
labelKey: "mentoringOthers",
|
|
685
|
+
token: "mentor",
|
|
686
|
+
group: "mentorship"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
value: "id.sifa.defs#beingMentored",
|
|
690
|
+
labelKey: "beingMentored",
|
|
691
|
+
token: "mentee",
|
|
692
|
+
group: "mentorship"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
value: "id.sifa.defs#collaborations",
|
|
696
|
+
labelKey: "collaborations",
|
|
697
|
+
token: "collab",
|
|
698
|
+
group: "peer"
|
|
699
|
+
}
|
|
660
700
|
];
|
|
701
|
+
Object.fromEntries(
|
|
702
|
+
OPEN_TO_OPTIONS.map((o) => [o.token, o.value])
|
|
703
|
+
);
|
|
704
|
+
Object.fromEntries(
|
|
705
|
+
OPEN_TO_OPTIONS.map((o) => [o.value, o.token])
|
|
706
|
+
);
|
|
707
|
+
OPEN_TO_OPTIONS.map((o) => o.token);
|
|
661
708
|
var OPEN_TO_LEGACY_ALIASES = {
|
|
662
709
|
"id.sifa.defs#mentoring": "mentoringOthers"
|
|
663
710
|
};
|
|
@@ -2178,7 +2225,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
2178
2225
|
});
|
|
2179
2226
|
|
|
2180
2227
|
// src/index.ts
|
|
2181
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2228
|
+
var SIFA_SDK_VERSION = "0.10.8";
|
|
2182
2229
|
|
|
2183
2230
|
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 };
|
|
2184
2231
|
//# sourceMappingURL=index.js.map
|