@singi-labs/sifa-sdk 0.19.43 → 0.19.44

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
@@ -441,6 +441,12 @@ function getEqfLevelLabel(level) {
441
441
  const valid = readEqfLevel(level);
442
442
  return valid === void 0 ? void 0 : EQF_LEVEL_LABELS[valid];
443
443
  }
444
+ function getEducationLevelDisplay(edu) {
445
+ const label = getEqfLevelLabel(edu.eqfLevel);
446
+ if (!label || !edu.degree) return label;
447
+ const named = new RegExp(`\\b${label}(?:['\u2019]?s)?\\b`, "i");
448
+ return named.test(edu.degree) ? void 0 : label;
449
+ }
444
450
  var DEGREE_RULES = [
445
451
  [
446
452
  7,
@@ -7078,7 +7084,7 @@ function describeSifaRecord(collection, value) {
7078
7084
  }
7079
7085
 
7080
7086
  // src/index.ts
7081
- var SIFA_SDK_VERSION = "0.19.43";
7087
+ var SIFA_SDK_VERSION = "0.19.44";
7082
7088
 
7083
7089
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
7084
7090
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -7262,6 +7268,7 @@ exports.getCalendarEventStatusLabel = getCalendarEventStatusLabel;
7262
7268
  exports.getContinent = getContinent;
7263
7269
  exports.getCourseRoleLabel = getCourseRoleLabel;
7264
7270
  exports.getDisplayLabel = getDisplayLabel;
7271
+ exports.getEducationLevelDisplay = getEducationLevelDisplay;
7265
7272
  exports.getEmploymentTypeLabel = getEmploymentTypeLabel;
7266
7273
  exports.getEqfLevelLabel = getEqfLevelLabel;
7267
7274
  exports.getFaviconUrl = getFaviconUrl;