@singi-labs/sifa-sdk 0.19.27 → 0.19.29
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-HgcjpMWO.d.ts → index-4R221H7q.d.ts} +1 -0
- package/dist/{index-DDlGa7CO.d.cts → index-BKSZeo7T.d.cts} +1 -0
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -7
- package/dist/index.d.ts +34 -7
- package/dist/index.js +19 -2
- 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-CBllUH38.d.ts → network-map-BodcEDOy.d.ts} +4 -4
- package/dist/{network-map-BH_qbSvm.d.cts → network-map-CINTZ-yD.d.cts} +4 -4
- package/dist/{org-H2bPqXeC.d.ts → org-BzFN82QG.d.ts} +3 -3
- package/dist/{org-Bfrfa9sD.d.cts → org-KxSrohNR.d.cts} +3 -3
- package/dist/{org-settings-CEZK1qrS.d.cts → org-settings-C73Sin5E.d.cts} +2 -0
- package/dist/{org-settings-CEZK1qrS.d.ts → org-settings-C73Sin5E.d.ts} +2 -0
- package/dist/{profile-investment-DSTOEvG-.d.cts → profile-investment-CuuO0dlN.d.cts} +1 -0
- package/dist/{profile-investment-DSTOEvG-.d.ts → profile-investment-CuuO0dlN.d.ts} +1 -0
- package/dist/{profile-summary-FpWgNDBB.d.ts → profile-summary-AXilYQJe.d.ts} +1 -1
- package/dist/{profile-summary-Cv8TmIe0.d.cts → profile-summary-BVZT3Ac9.d.cts} +1 -1
- package/dist/query/fetchers/index.d.cts +7 -7
- package/dist/query/fetchers/index.d.ts +7 -7
- package/dist/query/hooks/index.d.cts +6 -6
- package/dist/query/hooks/index.d.ts +6 -6
- package/dist/query/index.d.cts +9 -9
- package/dist/query/index.d.ts +9 -9
- package/dist/resume/index.d.cts +1 -1
- package/dist/resume/index.d.ts +1 -1
- package/dist/schemas/index.cjs +1 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +3 -0
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +2 -1
- package/dist/schemas/write/index.d.ts +2 -1
- package/dist/schemas/write/index.js +3 -0
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{types-D1Nt3rqN.d.cts → types-BSh5PfxH.d.cts} +1 -1
- package/dist/{types-CX9OttHr.d.ts → types-Dsy2rDvg.d.ts} +1 -1
- package/dist/{use-org-notification-emails-CTFwRc0O.d.ts → use-org-notification-emails-B_oWy2oV.d.ts} +6 -4
- package/dist/{use-org-notification-emails-utRDdmt0.d.cts → use-org-notification-emails-BdQFta6U.d.cts} +6 -4
- package/package.json +1 -1
|
@@ -711,6 +711,7 @@ interface OrgProfileView {
|
|
|
711
711
|
addresses: OrgAddressView[] | null;
|
|
712
712
|
/** Self-selected headcount range (declared bucket, never calculated). */
|
|
713
713
|
companySize: string | null;
|
|
714
|
+
companyType: string | null;
|
|
714
715
|
links: OrgLinkView[] | null;
|
|
715
716
|
/** Self-declared industry/domain pairs. */
|
|
716
717
|
industries: OrgIndustryView[] | null;
|
|
@@ -711,6 +711,7 @@ interface OrgProfileView {
|
|
|
711
711
|
addresses: OrgAddressView[] | null;
|
|
712
712
|
/** Self-selected headcount range (declared bucket, never calculated). */
|
|
713
713
|
companySize: string | null;
|
|
714
|
+
companyType: string | null;
|
|
714
715
|
links: OrgLinkView[] | null;
|
|
715
716
|
/** Self-declared industry/domain pairs. */
|
|
716
717
|
industries: OrgIndustryView[] | 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";
|
|
@@ -5924,6 +5940,7 @@ var OrgProfileRecordSchema = zod.z.object({
|
|
|
5924
5940
|
* string is accepted so future ranges do not break older records.
|
|
5925
5941
|
*/
|
|
5926
5942
|
companySize: zod.z.string().optional(),
|
|
5943
|
+
companyType: zod.z.string().optional(),
|
|
5927
5944
|
/** Featured links or content surfaced on the org profile. */
|
|
5928
5945
|
links: zod.z.array(orgLinkSchema).max(10).optional(),
|
|
5929
5946
|
/**
|
|
@@ -6644,7 +6661,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6644
6661
|
}
|
|
6645
6662
|
|
|
6646
6663
|
// src/index.ts
|
|
6647
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6664
|
+
var SIFA_SDK_VERSION = "0.19.29";
|
|
6648
6665
|
|
|
6649
6666
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6650
6667
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -6767,6 +6784,7 @@ exports.categoryForApp = categoryForApp;
|
|
|
6767
6784
|
exports.certDateExtractor = certDateExtractor;
|
|
6768
6785
|
exports.cidSchema = cidSchema;
|
|
6769
6786
|
exports.classifyEntityRef = classifyEntityRef;
|
|
6787
|
+
exports.collapseContributors = collapseContributors;
|
|
6770
6788
|
exports.completenessPercent = completenessPercent;
|
|
6771
6789
|
exports.completenessScore = completenessScore;
|
|
6772
6790
|
exports.contrastRatio = contrastRatio;
|