@singi-labs/sifa-sdk 0.7.10 → 0.8.0

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 CHANGED
@@ -1147,7 +1147,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
1147
1147
  });
1148
1148
 
1149
1149
  // src/index.ts
1150
- var SIFA_SDK_VERSION = "0.7.10";
1150
+ var SIFA_SDK_VERSION = "0.8.0";
1151
1151
 
1152
1152
  exports.CATEGORY_LABELS = CATEGORY_LABELS;
1153
1153
  exports.CATEGORY_ORDER = CATEGORY_ORDER;
package/dist/index.js CHANGED
@@ -1145,7 +1145,7 @@ var ProfileVolunteeringRecordSchema = z.object({
1145
1145
  });
1146
1146
 
1147
1147
  // src/index.ts
1148
- var SIFA_SDK_VERSION = "0.7.10";
1148
+ var SIFA_SDK_VERSION = "0.8.0";
1149
1149
 
1150
1150
  export { CATEGORY_LABELS, CATEGORY_ORDER, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, PLATFORM_LABELS, PLATFORM_OPTIONS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, atUriSchema, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getContinent, getDisplayLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getPdsDisplayName, getPlatformLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, languageTagSchema, lexiconDateExtractor, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, profileToDimensionInputs, relativeLuminance, rgbToString, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
1151
1151
  //# sourceMappingURL=index.js.map
@@ -844,6 +844,35 @@ function deleteAccount(config, deletePdsData, options = {}) {
844
844
  });
845
845
  }
846
846
 
847
+ // src/query/fetchers/network-map.ts
848
+ function isNetworkMapResponse(value) {
849
+ return "graph" in value;
850
+ }
851
+ async function initiateNetworkMapGeneration(config, options = {}) {
852
+ return apiFetch(config, "/api/network-map/generate", {
853
+ method: "POST",
854
+ credentials: "include",
855
+ ...options
856
+ });
857
+ }
858
+ async function checkNetworkMapJobStatus(config, jobId, options = {}) {
859
+ return apiFetch(
860
+ config,
861
+ `/api/network-map/status/${encodeURIComponent(jobId)}`,
862
+ {
863
+ credentials: "include",
864
+ ...options
865
+ }
866
+ );
867
+ }
868
+ async function fetchNetworkMap(config, options = {}) {
869
+ return apiFetchOrNull(config, "/api/network-map", {
870
+ credentials: "include",
871
+ cache: "no-store",
872
+ ...options
873
+ });
874
+ }
875
+
847
876
  // src/query/keys.ts
848
877
  var sifaQueryKeys = {
849
878
  all: () => ["sifa"],
@@ -920,6 +949,7 @@ exports.bulkHideStandardPublications = bulkHideStandardPublications;
920
949
  exports.bulkUnhideStandardPublications = bulkUnhideStandardPublications;
921
950
  exports.castRoadmapVote = castRoadmapVote;
922
951
  exports.checkAppAccount = checkAppAccount;
952
+ exports.checkNetworkMapJobStatus = checkNetworkMapJobStatus;
923
953
  exports.createEducation = createEducation;
924
954
  exports.createEndorsement = createEndorsement;
925
955
  exports.createExternalAccount = createExternalAccount;
@@ -948,6 +978,7 @@ exports.fetchFollowing = fetchFollowing;
948
978
  exports.fetchHeatmapData = fetchHeatmapData;
949
979
  exports.fetchHiddenApps = fetchHiddenApps;
950
980
  exports.fetchMyRoadmapVotes = fetchMyRoadmapVotes;
981
+ exports.fetchNetworkMap = fetchNetworkMap;
951
982
  exports.fetchNetworkStreamCount = fetchNetworkStreamCount;
952
983
  exports.fetchProfile = fetchProfile;
953
984
  exports.fetchReactionStatus = fetchReactionStatus;
@@ -963,6 +994,8 @@ exports.hideKeytraceClaim = hideKeytraceClaim;
963
994
  exports.hideOrcidPublication = hideOrcidPublication;
964
995
  exports.hideSifaPublication = hideSifaPublication;
965
996
  exports.hideStandardPublication = hideStandardPublication;
997
+ exports.initiateNetworkMapGeneration = initiateNetworkMapGeneration;
998
+ exports.isNetworkMapResponse = isNetworkMapResponse;
966
999
  exports.linkSkillToPosition = linkSkillToPosition;
967
1000
  exports.refreshOrcidPublications = refreshOrcidPublications;
968
1001
  exports.refreshPds = refreshPds;