@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.
Files changed (45) hide show
  1. package/dist/{index-HgcjpMWO.d.ts → index-4R221H7q.d.ts} +1 -0
  2. package/dist/{index-DDlGa7CO.d.cts → index-BKSZeo7T.d.cts} +1 -0
  3. package/dist/index.cjs +19 -1
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +34 -7
  6. package/dist/index.d.ts +34 -7
  7. package/dist/index.js +19 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/jsonld/index.d.cts +1 -1
  10. package/dist/jsonld/index.d.ts +1 -1
  11. package/dist/{network-map-CBllUH38.d.ts → network-map-BodcEDOy.d.ts} +4 -4
  12. package/dist/{network-map-BH_qbSvm.d.cts → network-map-CINTZ-yD.d.cts} +4 -4
  13. package/dist/{org-H2bPqXeC.d.ts → org-BzFN82QG.d.ts} +3 -3
  14. package/dist/{org-Bfrfa9sD.d.cts → org-KxSrohNR.d.cts} +3 -3
  15. package/dist/{org-settings-CEZK1qrS.d.cts → org-settings-C73Sin5E.d.cts} +2 -0
  16. package/dist/{org-settings-CEZK1qrS.d.ts → org-settings-C73Sin5E.d.ts} +2 -0
  17. package/dist/{profile-investment-DSTOEvG-.d.cts → profile-investment-CuuO0dlN.d.cts} +1 -0
  18. package/dist/{profile-investment-DSTOEvG-.d.ts → profile-investment-CuuO0dlN.d.ts} +1 -0
  19. package/dist/{profile-summary-FpWgNDBB.d.ts → profile-summary-AXilYQJe.d.ts} +1 -1
  20. package/dist/{profile-summary-Cv8TmIe0.d.cts → profile-summary-BVZT3Ac9.d.cts} +1 -1
  21. package/dist/query/fetchers/index.d.cts +7 -7
  22. package/dist/query/fetchers/index.d.ts +7 -7
  23. package/dist/query/hooks/index.d.cts +6 -6
  24. package/dist/query/hooks/index.d.ts +6 -6
  25. package/dist/query/index.d.cts +9 -9
  26. package/dist/query/index.d.ts +9 -9
  27. package/dist/resume/index.d.cts +1 -1
  28. package/dist/resume/index.d.ts +1 -1
  29. package/dist/schemas/index.cjs +1 -0
  30. package/dist/schemas/index.cjs.map +1 -1
  31. package/dist/schemas/index.d.cts +1 -1
  32. package/dist/schemas/index.d.ts +1 -1
  33. package/dist/schemas/index.js +1 -0
  34. package/dist/schemas/index.js.map +1 -1
  35. package/dist/schemas/write/index.cjs +3 -0
  36. package/dist/schemas/write/index.cjs.map +1 -1
  37. package/dist/schemas/write/index.d.cts +2 -1
  38. package/dist/schemas/write/index.d.ts +2 -1
  39. package/dist/schemas/write/index.js +3 -0
  40. package/dist/schemas/write/index.js.map +1 -1
  41. package/dist/{types-D1Nt3rqN.d.cts → types-BSh5PfxH.d.cts} +1 -1
  42. package/dist/{types-CX9OttHr.d.ts → types-Dsy2rDvg.d.ts} +1 -1
  43. package/dist/{use-org-notification-emails-CTFwRc0O.d.ts → use-org-notification-emails-B_oWy2oV.d.ts} +6 -4
  44. package/dist/{use-org-notification-emails-utRDdmt0.d.cts → use-org-notification-emails-BdQFta6U.d.cts} +6 -4
  45. 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.27";
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;