@singi-labs/sifa-sdk 0.10.8 → 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
@@ -700,13 +700,21 @@ var OPEN_TO_OPTIONS = [
700
700
  group: "peer"
701
701
  }
702
702
  ];
703
- Object.fromEntries(
703
+ var OPEN_TO_TOKEN_TO_VALUE = Object.fromEntries(
704
704
  OPEN_TO_OPTIONS.map((o) => [o.token, o.value])
705
705
  );
706
- Object.fromEntries(
706
+ var OPEN_TO_VALUE_TO_TOKEN = Object.fromEntries(
707
707
  OPEN_TO_OPTIONS.map((o) => [o.value, o.token])
708
708
  );
709
- OPEN_TO_OPTIONS.map((o) => o.token);
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
+ }
710
718
  var OPEN_TO_LEGACY_ALIASES = {
711
719
  "id.sifa.defs#mentoring": "mentoringOthers"
712
720
  };
@@ -2227,7 +2235,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
2227
2235
  });
2228
2236
 
2229
2237
  // src/index.ts
2230
- var SIFA_SDK_VERSION = "0.10.8";
2238
+ var SIFA_SDK_VERSION = "0.10.9";
2231
2239
 
2232
2240
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
2233
2241
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
@@ -2259,6 +2267,9 @@ exports.GraphFollowRecordSchema = GraphFollowRecordSchema;
2259
2267
  exports.INDUSTRY_OPTIONS = INDUSTRY_OPTIONS;
2260
2268
  exports.MIN_SKILLS = MIN_SKILLS;
2261
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;
2262
2273
  exports.PLATFORM_LABELS = PLATFORM_LABELS;
2263
2274
  exports.PLATFORM_OPTIONS = PLATFORM_OPTIONS;
2264
2275
  exports.PUBLISHERS = PUBLISHERS;
@@ -2335,6 +2346,8 @@ exports.limitCombiningMarks = limitCombiningMarks;
2335
2346
  exports.makeGraphFollowRecordSchema = makeGraphFollowRecordSchema;
2336
2347
  exports.maxGraphemes = maxGraphemes;
2337
2348
  exports.meetsContrastAA = meetsContrastAA;
2349
+ exports.openToTokenToValue = openToTokenToValue;
2350
+ exports.openToValueToToken = openToValueToToken;
2338
2351
  exports.parseLocationString = parseLocationString;
2339
2352
  exports.pdsProviderFromApi = pdsProviderFromApi;
2340
2353
  exports.pickPrimaryPosition = pickPrimaryPosition;