@singi-labs/sifa-sdk 0.9.9 → 0.9.11
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-De8hX7ZH.d.cts → index-SmYL2LUp.d.cts} +8 -0
- package/dist/{index-De8hX7ZH.d.ts → index-SmYL2LUp.d.ts} +8 -0
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs +33 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +31 -2
- package/dist/query/fetchers/index.d.ts +31 -2
- package/dist/query/fetchers/index.js +28 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs +70 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +17 -4
- package/dist/query/index.d.ts +17 -4
- package/dist/query/index.js +61 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -420,6 +420,33 @@ async function refreshOrcidPublications(config, options = {}) {
|
|
|
420
420
|
return result;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
+
// src/query/fetchers/profile-items-hide.ts
|
|
424
|
+
var HIDDEN_ITEM_TYPES = [
|
|
425
|
+
"position",
|
|
426
|
+
"education",
|
|
427
|
+
"certification",
|
|
428
|
+
"project",
|
|
429
|
+
"volunteering",
|
|
430
|
+
"publication",
|
|
431
|
+
"course",
|
|
432
|
+
"honor",
|
|
433
|
+
"language",
|
|
434
|
+
"externalAccount"
|
|
435
|
+
];
|
|
436
|
+
var HIDDEN_ITEM_SOURCES = ["pds", "standard", "orcid"];
|
|
437
|
+
function hideProfileItem(config, input, options = {}) {
|
|
438
|
+
return apiWrite(config, "/api/profile/items/hide", "POST", { ...options, body: input });
|
|
439
|
+
}
|
|
440
|
+
function unhideProfileItem(config, input, options = {}) {
|
|
441
|
+
return apiWrite(config, "/api/profile/items/hide", "DELETE", { ...options, body: input });
|
|
442
|
+
}
|
|
443
|
+
function bulkHideProfileItems(config, input, options = {}) {
|
|
444
|
+
return apiWrite(config, "/api/profile/items/bulk-hide", "POST", { ...options, body: input });
|
|
445
|
+
}
|
|
446
|
+
function bulkUnhideProfileItems(config, input, options = {}) {
|
|
447
|
+
return apiWrite(config, "/api/profile/items/bulk-hide", "DELETE", { ...options, body: input });
|
|
448
|
+
}
|
|
449
|
+
|
|
423
450
|
// src/query/fetchers/stats.ts
|
|
424
451
|
async function fetchStats(config, options = {}) {
|
|
425
452
|
try {
|
|
@@ -940,12 +967,16 @@ var sifaQueryKeys = {
|
|
|
940
967
|
};
|
|
941
968
|
|
|
942
969
|
exports.ApiError = ApiError;
|
|
970
|
+
exports.HIDDEN_ITEM_SOURCES = HIDDEN_ITEM_SOURCES;
|
|
971
|
+
exports.HIDDEN_ITEM_TYPES = HIDDEN_ITEM_TYPES;
|
|
943
972
|
exports.QUOTED_POSTS_BATCH_MAX = QUOTED_POSTS_BATCH_MAX;
|
|
944
973
|
exports.apiFetch = apiFetch;
|
|
945
974
|
exports.apiFetchOrNull = apiFetchOrNull;
|
|
946
975
|
exports.apiWrite = apiWrite;
|
|
947
976
|
exports.apiWriteCreate = apiWriteCreate;
|
|
977
|
+
exports.bulkHideProfileItems = bulkHideProfileItems;
|
|
948
978
|
exports.bulkHideStandardPublications = bulkHideStandardPublications;
|
|
979
|
+
exports.bulkUnhideProfileItems = bulkUnhideProfileItems;
|
|
949
980
|
exports.bulkUnhideStandardPublications = bulkUnhideStandardPublications;
|
|
950
981
|
exports.castRoadmapVote = castRoadmapVote;
|
|
951
982
|
exports.checkAppAccount = checkAppAccount;
|
|
@@ -992,6 +1023,7 @@ exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
|
992
1023
|
exports.fetchSuggestions = fetchSuggestions;
|
|
993
1024
|
exports.hideKeytraceClaim = hideKeytraceClaim;
|
|
994
1025
|
exports.hideOrcidPublication = hideOrcidPublication;
|
|
1026
|
+
exports.hideProfileItem = hideProfileItem;
|
|
995
1027
|
exports.hideSifaPublication = hideSifaPublication;
|
|
996
1028
|
exports.hideStandardPublication = hideStandardPublication;
|
|
997
1029
|
exports.initiateNetworkMapGeneration = initiateNetworkMapGeneration;
|
|
@@ -1008,6 +1040,7 @@ exports.setPositionPrimary = setPositionPrimary;
|
|
|
1008
1040
|
exports.sifaQueryKeys = sifaQueryKeys;
|
|
1009
1041
|
exports.unhideKeytraceClaim = unhideKeytraceClaim;
|
|
1010
1042
|
exports.unhideOrcidPublication = unhideOrcidPublication;
|
|
1043
|
+
exports.unhideProfileItem = unhideProfileItem;
|
|
1011
1044
|
exports.unhideSifaPublication = unhideSifaPublication;
|
|
1012
1045
|
exports.unhideStandardPublication = unhideStandardPublication;
|
|
1013
1046
|
exports.unlinkSkillFromPosition = unlinkSkillFromPosition;
|