@singi-labs/sifa-sdk 0.10.7 → 0.10.9

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 CHANGED
@@ -651,15 +651,70 @@ function getIndustryLabelKey(value) {
651
651
 
652
652
  // src/taxonomy/open-to.ts
653
653
  var OPEN_TO_OPTIONS = [
654
- { value: "id.sifa.defs#fullTimeRoles", labelKey: "fullTimeRoles" },
655
- { value: "id.sifa.defs#partTimeRoles", labelKey: "partTimeRoles" },
656
- { value: "id.sifa.defs#contractRoles", labelKey: "contractRoles" },
657
- { value: "id.sifa.defs#commissions", labelKey: "commissions" },
658
- { value: "id.sifa.defs#boardPositions", labelKey: "boardPositions" },
659
- { value: "id.sifa.defs#mentoringOthers", labelKey: "mentoringOthers" },
660
- { value: "id.sifa.defs#beingMentored", labelKey: "beingMentored" },
661
- { value: "id.sifa.defs#collaborations", labelKey: "collaborations" }
654
+ {
655
+ value: "id.sifa.defs#fullTimeRoles",
656
+ labelKey: "fullTimeRoles",
657
+ token: "fullTime",
658
+ group: "work"
659
+ },
660
+ {
661
+ value: "id.sifa.defs#partTimeRoles",
662
+ labelKey: "partTimeRoles",
663
+ token: "partTime",
664
+ group: "work"
665
+ },
666
+ {
667
+ value: "id.sifa.defs#contractRoles",
668
+ labelKey: "contractRoles",
669
+ token: "contract",
670
+ group: "work"
671
+ },
672
+ {
673
+ value: "id.sifa.defs#commissions",
674
+ labelKey: "commissions",
675
+ token: "commissions",
676
+ group: "work"
677
+ },
678
+ {
679
+ value: "id.sifa.defs#boardPositions",
680
+ labelKey: "boardPositions",
681
+ token: "board",
682
+ group: "work"
683
+ },
684
+ {
685
+ value: "id.sifa.defs#mentoringOthers",
686
+ labelKey: "mentoringOthers",
687
+ token: "mentor",
688
+ group: "mentorship"
689
+ },
690
+ {
691
+ value: "id.sifa.defs#beingMentored",
692
+ labelKey: "beingMentored",
693
+ token: "mentee",
694
+ group: "mentorship"
695
+ },
696
+ {
697
+ value: "id.sifa.defs#collaborations",
698
+ labelKey: "collaborations",
699
+ token: "collab",
700
+ group: "peer"
701
+ }
662
702
  ];
703
+ var OPEN_TO_TOKEN_TO_VALUE = Object.fromEntries(
704
+ OPEN_TO_OPTIONS.map((o) => [o.token, o.value])
705
+ );
706
+ var OPEN_TO_VALUE_TO_TOKEN = Object.fromEntries(
707
+ OPEN_TO_OPTIONS.map((o) => [o.value, o.token])
708
+ );
709
+ var OPEN_TO_TOKENS = OPEN_TO_OPTIONS.map((o) => o.token);
710
+ function openToTokenToValue(token) {
711
+ if (!token) return void 0;
712
+ return OPEN_TO_TOKEN_TO_VALUE[token];
713
+ }
714
+ function openToValueToToken(value) {
715
+ if (!value) return void 0;
716
+ return OPEN_TO_VALUE_TO_TOKEN[value];
717
+ }
663
718
  var OPEN_TO_LEGACY_ALIASES = {
664
719
  "id.sifa.defs#mentoring": "mentoringOthers"
665
720
  };
@@ -2180,7 +2235,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
2180
2235
  });
2181
2236
 
2182
2237
  // src/index.ts
2183
- var SIFA_SDK_VERSION = "0.10.7";
2238
+ var SIFA_SDK_VERSION = "0.10.9";
2184
2239
 
2185
2240
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
2186
2241
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
@@ -2212,6 +2267,9 @@ exports.GraphFollowRecordSchema = GraphFollowRecordSchema;
2212
2267
  exports.INDUSTRY_OPTIONS = INDUSTRY_OPTIONS;
2213
2268
  exports.MIN_SKILLS = MIN_SKILLS;
2214
2269
  exports.OPEN_TO_OPTIONS = OPEN_TO_OPTIONS;
2270
+ exports.OPEN_TO_TOKENS = OPEN_TO_TOKENS;
2271
+ exports.OPEN_TO_TOKEN_TO_VALUE = OPEN_TO_TOKEN_TO_VALUE;
2272
+ exports.OPEN_TO_VALUE_TO_TOKEN = OPEN_TO_VALUE_TO_TOKEN;
2215
2273
  exports.PLATFORM_LABELS = PLATFORM_LABELS;
2216
2274
  exports.PLATFORM_OPTIONS = PLATFORM_OPTIONS;
2217
2275
  exports.PUBLISHERS = PUBLISHERS;
@@ -2288,6 +2346,8 @@ exports.limitCombiningMarks = limitCombiningMarks;
2288
2346
  exports.makeGraphFollowRecordSchema = makeGraphFollowRecordSchema;
2289
2347
  exports.maxGraphemes = maxGraphemes;
2290
2348
  exports.meetsContrastAA = meetsContrastAA;
2349
+ exports.openToTokenToValue = openToTokenToValue;
2350
+ exports.openToValueToToken = openToValueToToken;
2291
2351
  exports.parseLocationString = parseLocationString;
2292
2352
  exports.pdsProviderFromApi = pdsProviderFromApi;
2293
2353
  exports.pickPrimaryPosition = pickPrimaryPosition;