@singi-labs/sifa-sdk 0.19.33 → 0.19.35

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 (55) hide show
  1. package/dist/{index-CH8NiQwH.d.cts → index-BMUJEOoA.d.cts} +6 -2
  2. package/dist/{index-ayiu2kGy.d.ts → index-D7IufF6R.d.ts} +6 -2
  3. package/dist/index.cjs +172 -4
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +79 -7
  6. package/dist/index.d.ts +79 -7
  7. package/dist/index.js +168 -5
  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-CemKAXaz.d.ts → network-map--qYzsEP_.d.ts} +3 -4
  12. package/dist/{network-map-5ZQalf1g.d.cts → network-map-DHkUgCYs.d.cts} +3 -4
  13. package/dist/{org-Baoxl7ha.d.ts → org-BSHNseXX.d.ts} +5 -256
  14. package/dist/{org-D-zPVoep.d.cts → org-BYL2yrSq.d.cts} +5 -256
  15. package/dist/{profile-investment-BIOYJf-x.d.cts → profile-investment-CJwwK8DY.d.cts} +1 -4
  16. package/dist/{profile-investment-BIOYJf-x.d.ts → profile-investment-CJwwK8DY.d.ts} +1 -4
  17. package/dist/{profile-summary-DOkOlwml.d.cts → profile-summary-BmUSSgAr.d.cts} +1 -1
  18. package/dist/{profile-summary-Bw6SLwnM.d.ts → profile-summary-wEt4IKo1.d.ts} +1 -1
  19. package/dist/query/fetchers/index.cjs +3 -1
  20. package/dist/query/fetchers/index.cjs.map +1 -1
  21. package/dist/query/fetchers/index.d.cts +6 -6
  22. package/dist/query/fetchers/index.d.ts +6 -6
  23. package/dist/query/fetchers/index.js +3 -1
  24. package/dist/query/fetchers/index.js.map +1 -1
  25. package/dist/query/hooks/index.cjs +3 -1
  26. package/dist/query/hooks/index.cjs.map +1 -1
  27. package/dist/query/hooks/index.d.cts +4 -5
  28. package/dist/query/hooks/index.d.ts +4 -5
  29. package/dist/query/hooks/index.js +3 -1
  30. package/dist/query/hooks/index.js.map +1 -1
  31. package/dist/query/index.cjs +3 -1
  32. package/dist/query/index.cjs.map +1 -1
  33. package/dist/query/index.d.cts +10 -9
  34. package/dist/query/index.d.ts +10 -9
  35. package/dist/query/index.js +3 -1
  36. package/dist/query/index.js.map +1 -1
  37. package/dist/resume/index.d.cts +1 -1
  38. package/dist/resume/index.d.ts +1 -1
  39. package/dist/schemas/index.cjs +6 -3
  40. package/dist/schemas/index.cjs.map +1 -1
  41. package/dist/schemas/index.d.cts +1 -1
  42. package/dist/schemas/index.d.ts +1 -1
  43. package/dist/schemas/index.js +6 -3
  44. package/dist/schemas/index.js.map +1 -1
  45. package/dist/schemas/write/index.cjs +4 -2
  46. package/dist/schemas/write/index.cjs.map +1 -1
  47. package/dist/schemas/write/index.d.cts +1 -0
  48. package/dist/schemas/write/index.d.ts +1 -0
  49. package/dist/schemas/write/index.js +4 -2
  50. package/dist/schemas/write/index.js.map +1 -1
  51. package/dist/{types-CWIfTV3N.d.cts → types-B6_rM5e1.d.cts} +255 -2
  52. package/dist/{types-CKqres0c.d.ts → types-BZSh8AHp.d.ts} +255 -2
  53. package/dist/{use-org-notification-emails-3m5Rit93.d.cts → use-org-notification-emails-CisY4oDQ.d.cts} +3 -3
  54. package/dist/{use-org-notification-emails-Cx-bDFpR.d.ts → use-org-notification-emails-N5UXg0Zg.d.ts} +3 -3
  55. package/package.json +1 -1
@@ -525,9 +525,13 @@ interface ProfileCourse {
525
525
  /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
526
526
  startedAt?: string;
527
527
  endedAt?: string;
528
- /** rkey of the position the course was taught under. The AppView resolves
529
- * it from the record's `position` at-uri when building the profile view. */
528
+ /** rkey of the position the course was part of (taught under it, or taken
529
+ * as part of the job). The AppView resolves it from the record's `position`
530
+ * at-uri when building the profile view. */
530
531
  positionRkey?: string;
532
+ /** rkey of the education record the course was part of, resolved by the
533
+ * AppView from the record's `education` at-uri. */
534
+ educationRkey?: string;
531
535
  hidden?: boolean;
532
536
  }
533
537
  /** A related link on a presentation or delivery, as returned by the AppView. */
@@ -525,9 +525,13 @@ interface ProfileCourse {
525
525
  /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
526
526
  startedAt?: string;
527
527
  endedAt?: string;
528
- /** rkey of the position the course was taught under. The AppView resolves
529
- * it from the record's `position` at-uri when building the profile view. */
528
+ /** rkey of the position the course was part of (taught under it, or taken
529
+ * as part of the job). The AppView resolves it from the record's `position`
530
+ * at-uri when building the profile view. */
530
531
  positionRkey?: string;
532
+ /** rkey of the education record the course was part of, resolved by the
533
+ * AppView from the record's `education` at-uri. */
534
+ educationRkey?: string;
531
535
  hidden?: boolean;
532
536
  }
533
537
  /** A related link on a presentation or delivery, as returned by the AppView. */
package/dist/index.cjs CHANGED
@@ -686,64 +686,161 @@ function getIndustryLabelKey(value) {
686
686
  }
687
687
  return value;
688
688
  }
689
+ var INDUSTRY_LABELS = {
690
+ industryTechnology: "Technology",
691
+ domainSoftwareEngineering: "Software Engineering",
692
+ domainDataScience: "Data Science & ML",
693
+ domainCybersecurity: "Cybersecurity",
694
+ domainDevops: "DevOps & Infrastructure",
695
+ domainProductDesign: "Product & UX Design",
696
+ domainGameDev: "Game Development",
697
+ industryFinance: "Finance & Banking",
698
+ domainBanking: "Banking",
699
+ domainFintech: "Fintech",
700
+ domainInsurance: "Insurance",
701
+ domainInvestmentMgmt: "Investment Management",
702
+ industryHealthcare: "Healthcare & Life Sciences",
703
+ domainClinicalResearch: "Clinical Research",
704
+ domainHealthtech: "Health Technology",
705
+ domainPharma: "Pharmaceuticals",
706
+ industryEducation: "Education & Research",
707
+ domainHigherEd: "Higher Education",
708
+ domainEdtech: "Education Technology",
709
+ domainPrimarySecondary: "Primary & Secondary Education",
710
+ industryMedia: "Media & Entertainment",
711
+ domainJournalism: "Journalism",
712
+ domainFilmVideo: "Film & Video",
713
+ domainGaming: "Gaming & Interactive Media",
714
+ domainAdvertising: "Advertising & Marketing",
715
+ industryRetail: "Retail & E-commerce",
716
+ domainEcommerce: "E-commerce",
717
+ domainSupplyChain: "Supply Chain & Fulfillment",
718
+ industryManufacturing: "Manufacturing & Engineering",
719
+ domainAutomotive: "Automotive",
720
+ domainAerospace: "Aerospace & Defense",
721
+ domainHardware: "Hardware & Electronics",
722
+ industryEnergy: "Energy & Environment",
723
+ domainRenewables: "Renewable Energy",
724
+ domainOilGas: "Oil & Gas",
725
+ domainClimateTech: "Climate Tech",
726
+ industryGovernment: "Government & Public Sector",
727
+ domainPublicPolicy: "Public Policy",
728
+ domainDefense: "Defense & Intelligence",
729
+ industryLegal: "Legal",
730
+ domainIpLaw: "Intellectual Property",
731
+ domainCompliance: "Compliance & Regulatory",
732
+ industryConsulting: "Consulting & Professional Services",
733
+ domainManagementConsulting: "Management Consulting",
734
+ domainDevrel: "Developer Relations",
735
+ domainHrRecruitment: "HR & Recruitment",
736
+ industryNonprofit: "Non-profit & Social Impact",
737
+ domainHumanRights: "Human Rights",
738
+ domainOpenSource: "Open Source",
739
+ industryRealEstate: "Real Estate & Construction",
740
+ domainProptech: "Property Technology",
741
+ industryTransport: "Transportation & Logistics",
742
+ domainAutonomousVehicles: "Autonomous Vehicles",
743
+ domainLogistics: "Logistics & Warehousing",
744
+ industryAgriculture: "Agriculture & Food",
745
+ domainAgritech: "Agricultural Technology",
746
+ domainFoodTech: "Food Technology & Processing",
747
+ industryHospitality: "Hospitality & Tourism",
748
+ domainHotels: "Hotels & Accommodation",
749
+ domainTravelTourism: "Travel & Tourism",
750
+ domainFoodBeverage: "Food & Beverage",
751
+ industryTelecom: "Telecommunications",
752
+ domainNetworkInfra: "Network Infrastructure",
753
+ domainMobileServices: "Mobile & Wireless Services",
754
+ industryMining: "Mining & Resources",
755
+ domainExtraction: "Extraction & Processing",
756
+ domainGeological: "Geological Services",
757
+ industryFashion: "Fashion & Textiles",
758
+ domainFashionDesign: "Fashion Design",
759
+ domainTextileManufacturing: "Textile Manufacturing",
760
+ industryMaritime: "Maritime & Shipping",
761
+ domainShipping: "Shipping & Freight",
762
+ domainPortOperations: "Port & Terminal Operations",
763
+ domainNavalArchitecture: "Naval Architecture & Marine Engineering",
764
+ industryOther: "Other"
765
+ };
766
+ function getIndustryLabel(value) {
767
+ return INDUSTRY_LABELS[getIndustryLabelKey(value)] ?? value;
768
+ }
689
769
 
690
770
  // src/taxonomy/open-to.ts
691
771
  var OPEN_TO_OPTIONS = [
692
772
  {
693
773
  value: "id.sifa.defs#fullTimeRoles",
694
774
  labelKey: "fullTimeRoles",
775
+ label: "Full-time roles",
695
776
  token: "fullTime",
696
777
  group: "work"
697
778
  },
698
779
  {
699
780
  value: "id.sifa.defs#partTimeRoles",
700
781
  labelKey: "partTimeRoles",
782
+ label: "Part-time roles",
701
783
  token: "partTime",
702
784
  group: "work"
703
785
  },
704
786
  {
705
787
  value: "id.sifa.defs#contractRoles",
706
788
  labelKey: "contractRoles",
789
+ label: "Contract roles",
707
790
  token: "contract",
708
791
  group: "work"
709
792
  },
710
793
  {
711
794
  value: "id.sifa.defs#commissions",
712
795
  labelKey: "commissions",
796
+ label: "Commissioned work",
713
797
  token: "commissions",
714
798
  group: "work"
715
799
  },
716
800
  {
717
801
  value: "id.sifa.defs#boardPositions",
718
802
  labelKey: "boardPositions",
803
+ label: "Board positions",
719
804
  token: "board",
720
805
  group: "work"
721
806
  },
722
807
  {
723
808
  value: "id.sifa.defs#speakingEngagements",
724
809
  labelKey: "speakingEngagements",
810
+ label: "Speaking engagements",
725
811
  token: "speaking",
726
812
  group: "work"
727
813
  },
728
814
  {
729
815
  value: "id.sifa.defs#mentoringOthers",
730
816
  labelKey: "mentoringOthers",
817
+ label: "Mentoring others",
731
818
  token: "mentor",
732
819
  group: "mentorship"
733
820
  },
734
821
  {
735
822
  value: "id.sifa.defs#beingMentored",
736
823
  labelKey: "beingMentored",
824
+ label: "Being mentored",
737
825
  token: "mentee",
738
826
  group: "mentorship"
739
827
  },
740
828
  {
741
829
  value: "id.sifa.defs#collaborations",
742
830
  labelKey: "collaborations",
831
+ label: "Collaborations",
743
832
  token: "collab",
744
833
  group: "peer"
745
834
  }
746
835
  ];
836
+ var OPEN_TO_TOKEN_LABELS = Object.fromEntries(
837
+ OPEN_TO_OPTIONS.map((o) => [o.token, o.label])
838
+ );
839
+ var OPEN_TO_GROUP_LABELS = {
840
+ work: "Work",
841
+ mentorship: "Mentorship",
842
+ peer: "Peer"
843
+ };
747
844
  var OPEN_TO_TOKEN_TO_VALUE = Object.fromEntries(
748
845
  OPEN_TO_OPTIONS.map((o) => [o.token, o.value])
749
846
  );
@@ -785,6 +882,69 @@ function normalizeOpenTo(values) {
785
882
  return out;
786
883
  }
787
884
 
885
+ // src/taxonomy/search-filter-defs.ts
886
+ var SEARCH_FILTER_DEFS = [
887
+ {
888
+ key: "skill",
889
+ label: "Skill",
890
+ control: "skill-typeahead",
891
+ optionSource: { kind: "typeahead" },
892
+ order: 1,
893
+ peopleOnly: true
894
+ },
895
+ {
896
+ key: "country",
897
+ label: "Country",
898
+ allLabel: "All countries",
899
+ control: "select",
900
+ optionSource: { kind: "facet", ref: "countries" },
901
+ order: 2
902
+ },
903
+ {
904
+ key: "industry",
905
+ label: "Industry",
906
+ allLabel: "All industries",
907
+ control: "select",
908
+ optionSource: { kind: "taxonomy", ref: "industry" },
909
+ order: 3
910
+ },
911
+ {
912
+ key: "domain",
913
+ label: "Domain",
914
+ allLabel: "All domains",
915
+ control: "select",
916
+ optionSource: { kind: "taxonomy", ref: "domain" },
917
+ order: 4,
918
+ dependsOn: "industry"
919
+ },
920
+ {
921
+ key: "workplace",
922
+ label: "Workplace",
923
+ allLabel: "Any arrangement",
924
+ control: "select",
925
+ optionSource: { kind: "taxonomy", ref: "workplace" },
926
+ order: 5,
927
+ peopleOnly: true
928
+ },
929
+ {
930
+ key: "openTo",
931
+ label: "Open to",
932
+ control: "multi-select",
933
+ optionSource: { kind: "taxonomy", ref: "openTo" },
934
+ order: 6,
935
+ peopleOnly: true
936
+ },
937
+ {
938
+ key: "app",
939
+ label: "App",
940
+ allLabel: "All apps",
941
+ control: "select",
942
+ optionSource: { kind: "facet", ref: "apps" },
943
+ order: 7,
944
+ hidden: true
945
+ }
946
+ ];
947
+
788
948
  // src/taxonomy/workplace-type.ts
789
949
  var WORKPLACE_TYPE_OPTIONS = [
790
950
  { value: "id.sifa.defs#onSite", label: "On-site" },
@@ -6215,7 +6375,9 @@ var ProfileCourseRecordSchema = zod.z.object({
6215
6375
  // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
6216
6376
  // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
6217
6377
  entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
6218
- education: strongRefSchema.optional(),
6378
+ // AT-URI of the id.sifa.profile.education the course was part of. Plain
6379
+ // at-uri (not a strongRef) so the link tracks the live education record.
6380
+ education: atUriSchema.optional(),
6219
6381
  // AT-URI of the associated id.sifa.profile.certification record. Plain
6220
6382
  // at-uri (not a strongRef) so the link tracks the live certification.
6221
6383
  credential: atUriSchema.optional(),
@@ -6225,8 +6387,9 @@ var ProfileCourseRecordSchema = zod.z.object({
6225
6387
  // Teaching period of a taught or assisted course.
6226
6388
  startedAt: partialDateSchema.optional(),
6227
6389
  endedAt: partialDateSchema.optional(),
6228
- // AT-URI of the id.sifa.profile.position the course was taught under. Plain
6229
- // at-uri (not a strongRef) so the link tracks the live position.
6390
+ // AT-URI of the id.sifa.profile.position the course was part of (taught
6391
+ // under it, or taken as part of the job). Plain at-uri (not a strongRef) so
6392
+ // the link tracks the live position.
6230
6393
  position: atUriSchema.optional(),
6231
6394
  createdAt: datetimeSchema
6232
6395
  });
@@ -6796,7 +6959,7 @@ function describeSifaRecord(collection, value) {
6796
6959
  }
6797
6960
 
6798
6961
  // src/index.ts
6799
- var SIFA_SDK_VERSION = "0.19.33";
6962
+ var SIFA_SDK_VERSION = "0.19.35";
6800
6963
 
6801
6964
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6802
6965
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -6849,6 +7012,7 @@ exports.FollowFeedPageSchema = FollowFeedPageSchema;
6849
7012
  exports.FollowProfilePageSchema = FollowProfilePageSchema;
6850
7013
  exports.FollowProfileSchema = FollowProfileSchema;
6851
7014
  exports.GraphFollowRecordSchema = GraphFollowRecordSchema;
7015
+ exports.INDUSTRY_LABELS = INDUSTRY_LABELS;
6852
7016
  exports.INDUSTRY_OPTIONS = INDUSTRY_OPTIONS;
6853
7017
  exports.INVESTMENT_ROLE_LABELS = INVESTMENT_ROLE_LABELS;
6854
7018
  exports.INVESTMENT_ROLE_OPTIONS = INVESTMENT_ROLE_OPTIONS;
@@ -6863,8 +7027,10 @@ exports.INVOLVEMENT_KIND_OPTIONS = INVOLVEMENT_KIND_OPTIONS;
6863
7027
  exports.InvestmentAmountSchema = InvestmentAmountSchema;
6864
7028
  exports.MIN_SKILLS = MIN_SKILLS;
6865
7029
  exports.ON_BEHALF_OF_EMPLOYMENT_TYPES = ON_BEHALF_OF_EMPLOYMENT_TYPES;
7030
+ exports.OPEN_TO_GROUP_LABELS = OPEN_TO_GROUP_LABELS;
6866
7031
  exports.OPEN_TO_OPTIONS = OPEN_TO_OPTIONS;
6867
7032
  exports.OPEN_TO_TOKENS = OPEN_TO_TOKENS;
7033
+ exports.OPEN_TO_TOKEN_LABELS = OPEN_TO_TOKEN_LABELS;
6868
7034
  exports.OPEN_TO_TOKEN_TO_VALUE = OPEN_TO_TOKEN_TO_VALUE;
6869
7035
  exports.OPEN_TO_VALUE_TO_TOKEN = OPEN_TO_VALUE_TO_TOKEN;
6870
7036
  exports.OrgEmploymentAttestationRecordSchema = OrgEmploymentAttestationRecordSchema;
@@ -6903,6 +7069,7 @@ exports.PublicationAuthorSchema = PublicationAuthorSchema;
6903
7069
  exports.ROADMAP_ISSUES_REPO = ROADMAP_ISSUES_REPO;
6904
7070
  exports.ROADMAP_ITEM_META = ROADMAP_ITEM_META;
6905
7071
  exports.RelatedIdentifierSchema = RelatedIdentifierSchema;
7072
+ exports.SEARCH_FILTER_DEFS = SEARCH_FILTER_DEFS;
6906
7073
  exports.SECTION_GROUPS = SECTION_GROUPS;
6907
7074
  exports.SECTION_LABELS = SECTION_LABELS;
6908
7075
  exports.SELF_APP_ID = SELF_APP_ID;
@@ -6976,6 +7143,7 @@ exports.getEmploymentTypeLabel = getEmploymentTypeLabel;
6976
7143
  exports.getFaviconUrl = getFaviconUrl;
6977
7144
  exports.getFilledDimensionsMap = getFilledDimensionsMap;
6978
7145
  exports.getHandleStem = getHandleStem;
7146
+ exports.getIndustryLabel = getIndustryLabel;
6979
7147
  exports.getIndustryLabelKey = getIndustryLabelKey;
6980
7148
  exports.getInvestmentRoleLabel = getInvestmentRoleLabel;
6981
7149
  exports.getInvestmentStageLabel = getInvestmentStageLabel;