@singi-labs/sifa-sdk 0.19.28 → 0.19.30
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-BKSZeo7T.d.cts → index-BF3iRMIc.d.cts} +1 -1
- package/dist/{index-4R221H7q.d.ts → index-BGdCq8py.d.ts} +1 -1
- package/dist/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -5
- package/dist/index.d.ts +32 -5
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +1 -1
- package/dist/jsonld/index.d.ts +1 -1
- package/dist/{network-map-BodcEDOy.d.ts → network-map-CvbqPk3Z.d.ts} +4 -4
- package/dist/{network-map-CINTZ-yD.d.cts → network-map-YQw6F46V.d.cts} +4 -4
- package/dist/{org-KxSrohNR.d.cts → org-BIc_aIe1.d.cts} +2 -2
- package/dist/{org-BzFN82QG.d.ts → org-DZJxtDbY.d.ts} +2 -2
- package/dist/{profile-summary-BVZT3Ac9.d.cts → profile-summary-CEuLMGcJ.d.cts} +1 -1
- package/dist/{profile-summary-AXilYQJe.d.ts → profile-summary-WMGwFrYn.d.ts} +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/resume/index.d.cts +1 -1
- package/dist/resume/index.d.ts +1 -1
- package/dist/schemas/index.cjs +2 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +2 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +8 -1
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +7 -1
- package/dist/schemas/write/index.d.ts +7 -1
- package/dist/schemas/write/index.js +8 -2
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{types-BSh5PfxH.d.cts → types-BLE2Alrv.d.cts} +1 -1
- package/dist/{types-Dsy2rDvg.d.ts → types-enWAmfWo.d.ts} +1 -1
- package/dist/{use-org-notification-emails-BdQFta6U.d.cts → use-org-notification-emails-B7bgHMWC.d.cts} +3 -3
- package/dist/{use-org-notification-emails-B_oWy2oV.d.ts → use-org-notification-emails-CYUvOhrn.d.ts} +3 -3
- package/package.json +1 -1
|
@@ -576,7 +576,7 @@ interface ProfilePresentationDelivery {
|
|
|
576
576
|
title?: string | null;
|
|
577
577
|
role?: string | null;
|
|
578
578
|
eventName?: string | null;
|
|
579
|
-
/**
|
|
579
|
+
/** YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown. */
|
|
580
580
|
date?: string | null;
|
|
581
581
|
location?: string | null;
|
|
582
582
|
locationCountry?: string | null;
|
|
@@ -576,7 +576,7 @@ interface ProfilePresentationDelivery {
|
|
|
576
576
|
title?: string | null;
|
|
577
577
|
role?: string | null;
|
|
578
578
|
eventName?: string | null;
|
|
579
|
-
/**
|
|
579
|
+
/** YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown. */
|
|
580
580
|
date?: string | null;
|
|
581
581
|
location?: string | null;
|
|
582
582
|
locationCountry?: string | null;
|
package/dist/index.cjs
CHANGED
|
@@ -2574,6 +2574,22 @@ function formatDateRange(start, end, showPresent = true) {
|
|
|
2574
2574
|
return `${formattedStart} - ${formattedEnd}`;
|
|
2575
2575
|
}
|
|
2576
2576
|
|
|
2577
|
+
// src/format/collapse-contributors.ts
|
|
2578
|
+
function collapseContributors(contributors, options = {}) {
|
|
2579
|
+
const list = contributors ?? [];
|
|
2580
|
+
const max = options.max ?? 10;
|
|
2581
|
+
if (list.length <= max + 2) return { visible: [...list], hiddenCount: 0 };
|
|
2582
|
+
const visible2 = list.slice(0, max);
|
|
2583
|
+
const ownerIndex = options.isOwner ? list.findIndex(options.isOwner) : -1;
|
|
2584
|
+
const owner = ownerIndex >= max ? list[ownerIndex] : void 0;
|
|
2585
|
+
if (owner !== void 0) {
|
|
2586
|
+
if (ownerIndex > max) visible2.push(null);
|
|
2587
|
+
visible2.push(owner);
|
|
2588
|
+
}
|
|
2589
|
+
const shown = visible2.filter((c) => c !== null).length;
|
|
2590
|
+
return { visible: visible2, hiddenCount: list.length - shown };
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2577
2593
|
// src/format/summarize-deliveries.ts
|
|
2578
2594
|
var CANCELLED_STATUS = "community.lexicon.calendar.event#cancelled";
|
|
2579
2595
|
var KEYNOTE_ROLE = "id.sifa.defs#keynote";
|
|
@@ -6256,8 +6272,8 @@ var ProfilePresentationDeliveryRecordSchema = zod.z.object({
|
|
|
6256
6272
|
title: zod.z.string().refine(maxGraphemes(300)).max(3e3).optional(),
|
|
6257
6273
|
role: zod.z.string().refine(maxGraphemes(64)).max(640).optional(),
|
|
6258
6274
|
eventName: zod.z.string().refine(maxGraphemes(300)).max(3e3).optional(),
|
|
6259
|
-
// Calendar date as YYYY-MM-DD
|
|
6260
|
-
date: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}
|
|
6275
|
+
// Calendar date as YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown.
|
|
6276
|
+
date: zod.z.string().regex(/^\d{4}(-\d{2}(-\d{2})?)?$/, "date must be YYYY, YYYY-MM or YYYY-MM-DD").optional(),
|
|
6261
6277
|
location: zod.z.string().refine(maxGraphemes(256)).max(2560).optional(),
|
|
6262
6278
|
// Structured community.lexicon.location.address for the occasion. The
|
|
6263
6279
|
// free-text `location` string above stays as a legacy fallback.
|
|
@@ -6645,7 +6661,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6645
6661
|
}
|
|
6646
6662
|
|
|
6647
6663
|
// src/index.ts
|
|
6648
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6664
|
+
var SIFA_SDK_VERSION = "0.19.30";
|
|
6649
6665
|
|
|
6650
6666
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6651
6667
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -6768,6 +6784,7 @@ exports.categoryForApp = categoryForApp;
|
|
|
6768
6784
|
exports.certDateExtractor = certDateExtractor;
|
|
6769
6785
|
exports.cidSchema = cidSchema;
|
|
6770
6786
|
exports.classifyEntityRef = classifyEntityRef;
|
|
6787
|
+
exports.collapseContributors = collapseContributors;
|
|
6771
6788
|
exports.completenessPercent = completenessPercent;
|
|
6772
6789
|
exports.completenessScore = completenessScore;
|
|
6773
6790
|
exports.contrastRatio = contrastRatio;
|