@singi-labs/sifa-sdk 0.9.10 → 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 +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +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
|
@@ -24,6 +24,7 @@ interface ProfilePosition {
|
|
|
24
24
|
skills?: SkillRef[];
|
|
25
25
|
linkedSkills?: ProfileSkill[];
|
|
26
26
|
primary?: boolean;
|
|
27
|
+
hidden?: boolean;
|
|
27
28
|
}
|
|
28
29
|
interface ProfileEducation {
|
|
29
30
|
rkey: string;
|
|
@@ -34,6 +35,7 @@ interface ProfileEducation {
|
|
|
34
35
|
activities?: string;
|
|
35
36
|
startedAt?: string;
|
|
36
37
|
endedAt?: string;
|
|
38
|
+
hidden?: boolean;
|
|
37
39
|
}
|
|
38
40
|
interface ProfileSkill {
|
|
39
41
|
rkey: string;
|
|
@@ -83,6 +85,7 @@ interface ProfileCertification {
|
|
|
83
85
|
issueDate?: string;
|
|
84
86
|
expiryDate?: string;
|
|
85
87
|
credentialUrl?: string;
|
|
88
|
+
hidden?: boolean;
|
|
86
89
|
}
|
|
87
90
|
interface ProfileProject {
|
|
88
91
|
rkey: string;
|
|
@@ -91,6 +94,7 @@ interface ProfileProject {
|
|
|
91
94
|
url?: string;
|
|
92
95
|
startDate?: string;
|
|
93
96
|
endDate?: string;
|
|
97
|
+
hidden?: boolean;
|
|
94
98
|
}
|
|
95
99
|
interface PublicationContributor {
|
|
96
100
|
name: string;
|
|
@@ -126,6 +130,7 @@ interface ProfileVolunteering {
|
|
|
126
130
|
startDate?: string;
|
|
127
131
|
endDate?: string;
|
|
128
132
|
description?: string;
|
|
133
|
+
hidden?: boolean;
|
|
129
134
|
}
|
|
130
135
|
interface ProfileHonor {
|
|
131
136
|
rkey: string;
|
|
@@ -133,18 +138,21 @@ interface ProfileHonor {
|
|
|
133
138
|
issuer?: string;
|
|
134
139
|
date?: string;
|
|
135
140
|
description?: string;
|
|
141
|
+
hidden?: boolean;
|
|
136
142
|
}
|
|
137
143
|
type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
|
|
138
144
|
interface ProfileLanguage {
|
|
139
145
|
rkey: string;
|
|
140
146
|
language: string;
|
|
141
147
|
proficiency?: LanguageProficiency;
|
|
148
|
+
hidden?: boolean;
|
|
142
149
|
}
|
|
143
150
|
interface ProfileCourse {
|
|
144
151
|
rkey: string;
|
|
145
152
|
name: string;
|
|
146
153
|
institution?: string;
|
|
147
154
|
number?: string;
|
|
155
|
+
hidden?: boolean;
|
|
148
156
|
}
|
|
149
157
|
interface TrustStat {
|
|
150
158
|
key: string;
|
|
@@ -24,6 +24,7 @@ interface ProfilePosition {
|
|
|
24
24
|
skills?: SkillRef[];
|
|
25
25
|
linkedSkills?: ProfileSkill[];
|
|
26
26
|
primary?: boolean;
|
|
27
|
+
hidden?: boolean;
|
|
27
28
|
}
|
|
28
29
|
interface ProfileEducation {
|
|
29
30
|
rkey: string;
|
|
@@ -34,6 +35,7 @@ interface ProfileEducation {
|
|
|
34
35
|
activities?: string;
|
|
35
36
|
startedAt?: string;
|
|
36
37
|
endedAt?: string;
|
|
38
|
+
hidden?: boolean;
|
|
37
39
|
}
|
|
38
40
|
interface ProfileSkill {
|
|
39
41
|
rkey: string;
|
|
@@ -83,6 +85,7 @@ interface ProfileCertification {
|
|
|
83
85
|
issueDate?: string;
|
|
84
86
|
expiryDate?: string;
|
|
85
87
|
credentialUrl?: string;
|
|
88
|
+
hidden?: boolean;
|
|
86
89
|
}
|
|
87
90
|
interface ProfileProject {
|
|
88
91
|
rkey: string;
|
|
@@ -91,6 +94,7 @@ interface ProfileProject {
|
|
|
91
94
|
url?: string;
|
|
92
95
|
startDate?: string;
|
|
93
96
|
endDate?: string;
|
|
97
|
+
hidden?: boolean;
|
|
94
98
|
}
|
|
95
99
|
interface PublicationContributor {
|
|
96
100
|
name: string;
|
|
@@ -126,6 +130,7 @@ interface ProfileVolunteering {
|
|
|
126
130
|
startDate?: string;
|
|
127
131
|
endDate?: string;
|
|
128
132
|
description?: string;
|
|
133
|
+
hidden?: boolean;
|
|
129
134
|
}
|
|
130
135
|
interface ProfileHonor {
|
|
131
136
|
rkey: string;
|
|
@@ -133,18 +138,21 @@ interface ProfileHonor {
|
|
|
133
138
|
issuer?: string;
|
|
134
139
|
date?: string;
|
|
135
140
|
description?: string;
|
|
141
|
+
hidden?: boolean;
|
|
136
142
|
}
|
|
137
143
|
type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
|
|
138
144
|
interface ProfileLanguage {
|
|
139
145
|
rkey: string;
|
|
140
146
|
language: string;
|
|
141
147
|
proficiency?: LanguageProficiency;
|
|
148
|
+
hidden?: boolean;
|
|
142
149
|
}
|
|
143
150
|
interface ProfileCourse {
|
|
144
151
|
rkey: string;
|
|
145
152
|
name: string;
|
|
146
153
|
institution?: string;
|
|
147
154
|
number?: string;
|
|
155
|
+
hidden?: boolean;
|
|
148
156
|
}
|
|
149
157
|
interface TrustStat {
|
|
150
158
|
key: string;
|
package/dist/index.cjs
CHANGED
|
@@ -1830,7 +1830,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
1830
1830
|
});
|
|
1831
1831
|
|
|
1832
1832
|
// src/index.ts
|
|
1833
|
-
var SIFA_SDK_VERSION = "0.9.
|
|
1833
|
+
var SIFA_SDK_VERSION = "0.9.11";
|
|
1834
1834
|
|
|
1835
1835
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
1836
1836
|
exports.APP_URL_PATTERNS = APP_URL_PATTERNS;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProfileSkill, L as LocationValue, a as PdsProviderInfo, b as Profile } from './index-
|
|
2
|
-
export { A as ActiveApp, E as Endorsement, c as EndorsementData, d as ExternalAccount, e as ExternalAccountKeytraceClaim, F as FeedItem, f as LanguageProficiency, g as ProfileCertification, h as ProfileCourse, i as ProfileEducation, j as ProfileHonor, k as ProfileIndustry, l as ProfileLanguage, m as ProfileLocation, n as ProfileOverrideSource, o as ProfilePosition, p as ProfileProject, q as ProfilePublication, r as ProfileVolunteering, s as PublicationContributor, S as SkillRef, t as SkillSuggestion, T as TrustStat, V as VerifiedAccount } from './index-
|
|
1
|
+
import { P as ProfileSkill, L as LocationValue, a as PdsProviderInfo, b as Profile } from './index-SmYL2LUp.cjs';
|
|
2
|
+
export { A as ActiveApp, E as Endorsement, c as EndorsementData, d as ExternalAccount, e as ExternalAccountKeytraceClaim, F as FeedItem, f as LanguageProficiency, g as ProfileCertification, h as ProfileCourse, i as ProfileEducation, j as ProfileHonor, k as ProfileIndustry, l as ProfileLanguage, m as ProfileLocation, n as ProfileOverrideSource, o as ProfilePosition, p as ProfileProject, q as ProfilePublication, r as ProfileVolunteering, s as PublicationContributor, S as SkillRef, t as SkillSuggestion, T as TrustStat, V as VerifiedAccount } from './index-SmYL2LUp.cjs';
|
|
3
3
|
export { EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileLanguageRecord, ProfileLanguageRecordSchema, ProfilePositionRecord, ProfilePositionRecordSchema, ProfileProjectRecord, ProfileProjectRecordSchema, ProfilePublicationRecord, ProfilePublicationRecordSchema, ProfileSelfRecord, ProfileSelfRecordSchema, ProfileSkillRecord, ProfileSkillRecordSchema, ProfileVolunteeringRecord, ProfileVolunteeringRecordSchema, PublicationAuthor, PublicationAuthorSchema, atUriSchema, cidSchema, datetimeSchema, didSchema, languageTagSchema, maxGraphemes, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProfileSkill, L as LocationValue, a as PdsProviderInfo, b as Profile } from './index-
|
|
2
|
-
export { A as ActiveApp, E as Endorsement, c as EndorsementData, d as ExternalAccount, e as ExternalAccountKeytraceClaim, F as FeedItem, f as LanguageProficiency, g as ProfileCertification, h as ProfileCourse, i as ProfileEducation, j as ProfileHonor, k as ProfileIndustry, l as ProfileLanguage, m as ProfileLocation, n as ProfileOverrideSource, o as ProfilePosition, p as ProfileProject, q as ProfilePublication, r as ProfileVolunteering, s as PublicationContributor, S as SkillRef, t as SkillSuggestion, T as TrustStat, V as VerifiedAccount } from './index-
|
|
1
|
+
import { P as ProfileSkill, L as LocationValue, a as PdsProviderInfo, b as Profile } from './index-SmYL2LUp.js';
|
|
2
|
+
export { A as ActiveApp, E as Endorsement, c as EndorsementData, d as ExternalAccount, e as ExternalAccountKeytraceClaim, F as FeedItem, f as LanguageProficiency, g as ProfileCertification, h as ProfileCourse, i as ProfileEducation, j as ProfileHonor, k as ProfileIndustry, l as ProfileLanguage, m as ProfileLocation, n as ProfileOverrideSource, o as ProfilePosition, p as ProfileProject, q as ProfilePublication, r as ProfileVolunteering, s as PublicationContributor, S as SkillRef, t as SkillSuggestion, T as TrustStat, V as VerifiedAccount } from './index-SmYL2LUp.js';
|
|
3
3
|
export { EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileLanguageRecord, ProfileLanguageRecordSchema, ProfilePositionRecord, ProfilePositionRecordSchema, ProfileProjectRecord, ProfileProjectRecordSchema, ProfilePublicationRecord, ProfilePublicationRecordSchema, ProfileSelfRecord, ProfileSelfRecordSchema, ProfileSkillRecord, ProfileSkillRecordSchema, ProfileVolunteeringRecord, ProfileVolunteeringRecordSchema, PublicationAuthor, PublicationAuthorSchema, atUriSchema, cidSchema, datetimeSchema, didSchema, languageTagSchema, maxGraphemes, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1828,7 +1828,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
1828
1828
|
});
|
|
1829
1829
|
|
|
1830
1830
|
// src/index.ts
|
|
1831
|
-
var SIFA_SDK_VERSION = "0.9.
|
|
1831
|
+
var SIFA_SDK_VERSION = "0.9.11";
|
|
1832
1832
|
|
|
1833
1833
|
export { ACTIVITY_TIERS, APP_URL_PATTERNS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppIdForCollection, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
1834
1834
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;
|