@singi-labs/sifa-sdk 0.10.11 → 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 +31 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +30 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -726,6 +726,20 @@ function getOpenToLabelKey(value) {
|
|
|
726
726
|
if (!value) return void 0;
|
|
727
727
|
return OPEN_TO_LABEL_KEY_MAP[value];
|
|
728
728
|
}
|
|
729
|
+
var OPEN_TO_LEGACY_VALUE_ALIASES = {
|
|
730
|
+
"id.sifa.defs#mentoring": "id.sifa.defs#mentoringOthers"
|
|
731
|
+
};
|
|
732
|
+
function normalizeOpenTo(values) {
|
|
733
|
+
const seen = /* @__PURE__ */ new Set();
|
|
734
|
+
const out = [];
|
|
735
|
+
for (const value of values) {
|
|
736
|
+
const canonical = OPEN_TO_LEGACY_VALUE_ALIASES[value] ?? value;
|
|
737
|
+
if (seen.has(canonical)) continue;
|
|
738
|
+
seen.add(canonical);
|
|
739
|
+
out.push(canonical);
|
|
740
|
+
}
|
|
741
|
+
return out;
|
|
742
|
+
}
|
|
729
743
|
|
|
730
744
|
// src/taxonomy/workplace-type.ts
|
|
731
745
|
var WORKPLACE_TYPE_OPTIONS = [
|
|
@@ -743,6 +757,20 @@ function getWorkplaceTypeLabel(value) {
|
|
|
743
757
|
if (!value) return void 0;
|
|
744
758
|
return WORKPLACE_TYPE_LABELS[value] ?? value;
|
|
745
759
|
}
|
|
760
|
+
var WORKPLACE_TYPE_LEGACY_ALIASES = {
|
|
761
|
+
"id.sifa.defs#remote": "id.sifa.defs#remoteGlobal"
|
|
762
|
+
};
|
|
763
|
+
function normalizeWorkplaceTypes(values) {
|
|
764
|
+
const seen = /* @__PURE__ */ new Set();
|
|
765
|
+
const out = [];
|
|
766
|
+
for (const value of values) {
|
|
767
|
+
const canonical = WORKPLACE_TYPE_LEGACY_ALIASES[value] ?? value;
|
|
768
|
+
if (seen.has(canonical)) continue;
|
|
769
|
+
seen.add(canonical);
|
|
770
|
+
out.push(canonical);
|
|
771
|
+
}
|
|
772
|
+
return out;
|
|
773
|
+
}
|
|
746
774
|
|
|
747
775
|
// src/taxonomy/platforms.ts
|
|
748
776
|
var PLATFORM_LABELS = {
|
|
@@ -2293,7 +2321,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2293
2321
|
});
|
|
2294
2322
|
|
|
2295
2323
|
// src/index.ts
|
|
2296
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2324
|
+
var SIFA_SDK_VERSION = "0.10.12";
|
|
2297
2325
|
|
|
2298
2326
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2299
2327
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|
|
@@ -2404,6 +2432,8 @@ exports.limitCombiningMarks = limitCombiningMarks;
|
|
|
2404
2432
|
exports.makeGraphFollowRecordSchema = makeGraphFollowRecordSchema;
|
|
2405
2433
|
exports.maxGraphemes = maxGraphemes;
|
|
2406
2434
|
exports.meetsContrastAA = meetsContrastAA;
|
|
2435
|
+
exports.normalizeOpenTo = normalizeOpenTo;
|
|
2436
|
+
exports.normalizeWorkplaceTypes = normalizeWorkplaceTypes;
|
|
2407
2437
|
exports.openToTokenToValue = openToTokenToValue;
|
|
2408
2438
|
exports.openToValueToToken = openToValueToToken;
|
|
2409
2439
|
exports.parseLocationString = parseLocationString;
|