@singi-labs/sifa-sdk 0.18.15 → 0.18.16
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-DIwi3bpk.d.cts → index-E2qQbMnv.d.cts} +10 -0
- package/dist/{index-DIwi3bpk.d.ts → index-E2qQbMnv.d.ts} +10 -0
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -7
- package/dist/index.d.ts +32 -7
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +1 -1
- package/dist/jsonld/index.d.ts +1 -1
- package/dist/{network-map-CfAPUSb6.d.ts → network-map-BYdQF1tr.d.ts} +4 -4
- package/dist/{network-map-B2VRYlgb.d.cts → network-map-BdDqR9-B.d.cts} +4 -4
- package/dist/{org-C3e5hz3h.d.ts → org-BftCzySH.d.ts} +20 -3
- package/dist/{org-CLi7-wje.d.cts → org-DhAmipS-.d.cts} +20 -3
- package/dist/{profile-investment-CIG7Hy8g.d.cts → profile-investment-vmHROP_v.d.cts} +5 -0
- package/dist/{profile-investment-CIG7Hy8g.d.ts → profile-investment-vmHROP_v.d.ts} +5 -0
- package/dist/{profile-summary-B9EQmnC7.d.cts → profile-summary-BeiM3TmH.d.cts} +1 -1
- package/dist/{profile-summary-nbzILRkf.d.ts → profile-summary-CKAuwczF.d.ts} +1 -1
- package/dist/query/fetchers/index.cjs +22 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/fetchers/index.js +21 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +85 -24
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/hooks/index.js +84 -25
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +82 -23
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/query/index.js +79 -24
- package/dist/query/index.js.map +1 -1
- package/dist/resume/index.d.cts +1 -1
- package/dist/resume/index.d.ts +1 -1
- package/dist/schemas/index.cjs +5 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +5 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/{types-XejLm3AA.d.cts → types-2qTC_DBy.d.cts} +6 -1
- package/dist/{types-DqVbTzXo.d.ts → types-CLrLfvXz.d.ts} +6 -1
- package/dist/{use-org-notification-emails-DHLosH0F.d.cts → use-org-notification-emails-CR2PDfjF.d.cts} +13 -4
- package/dist/{use-org-notification-emails-6VO57byN.d.ts → use-org-notification-emails-CxBtveF9.d.ts} +13 -4
- package/package.json +1 -1
|
@@ -89,6 +89,8 @@ interface ProfileEducation {
|
|
|
89
89
|
startedAt?: string;
|
|
90
90
|
endedAt?: string;
|
|
91
91
|
hidden?: boolean;
|
|
92
|
+
/** User-flagged primary education entry, surfaced in the Highlights block. */
|
|
93
|
+
primary?: boolean;
|
|
92
94
|
}
|
|
93
95
|
interface ProfileSkill {
|
|
94
96
|
rkey: string;
|
|
@@ -205,6 +207,8 @@ interface ProfileProject {
|
|
|
205
207
|
/** AT-URI of the same record on another person's profile, when they keep one. */
|
|
206
208
|
sameAs?: string;
|
|
207
209
|
hidden?: boolean;
|
|
210
|
+
/** User-flagged primary project, surfaced in the Highlights block. Ongoing only. */
|
|
211
|
+
primary?: boolean;
|
|
208
212
|
}
|
|
209
213
|
interface PublicationContributor {
|
|
210
214
|
name: string;
|
|
@@ -248,6 +252,8 @@ interface ProfilePublication {
|
|
|
248
252
|
verifiedVia?: string;
|
|
249
253
|
orcidPutCode?: number;
|
|
250
254
|
hidden?: boolean;
|
|
255
|
+
/** User-flagged primary publication, surfaced in the Highlights block. */
|
|
256
|
+
primary?: boolean;
|
|
251
257
|
orcidCorroborated?: boolean;
|
|
252
258
|
pendingVerification?: boolean;
|
|
253
259
|
appId?: string;
|
|
@@ -408,6 +414,8 @@ interface ProfileInvolvement {
|
|
|
408
414
|
*/
|
|
409
415
|
legacy?: boolean;
|
|
410
416
|
hidden?: boolean;
|
|
417
|
+
/** User-flagged primary involvement, surfaced in the Highlights block. Ongoing only. */
|
|
418
|
+
primary?: boolean;
|
|
411
419
|
/** Other people named on this involvement, hydrated from the stored DIDs. */
|
|
412
420
|
collaborators?: ProjectMemberCard[];
|
|
413
421
|
/** AT-URI of the same involvement as recorded on another person's profile. */
|
|
@@ -551,6 +559,8 @@ interface ProfilePresentation {
|
|
|
551
559
|
/** Resolved URL of the uploaded cover image, when present. */
|
|
552
560
|
coverImageUrl?: string | null;
|
|
553
561
|
hidden?: boolean;
|
|
562
|
+
/** User-flagged primary talk, surfaced in the Highlights block. Talks only, not sessions. */
|
|
563
|
+
primary?: boolean;
|
|
554
564
|
deliveries?: ProfilePresentationDelivery[];
|
|
555
565
|
}
|
|
556
566
|
interface TrustStat {
|
|
@@ -89,6 +89,8 @@ interface ProfileEducation {
|
|
|
89
89
|
startedAt?: string;
|
|
90
90
|
endedAt?: string;
|
|
91
91
|
hidden?: boolean;
|
|
92
|
+
/** User-flagged primary education entry, surfaced in the Highlights block. */
|
|
93
|
+
primary?: boolean;
|
|
92
94
|
}
|
|
93
95
|
interface ProfileSkill {
|
|
94
96
|
rkey: string;
|
|
@@ -205,6 +207,8 @@ interface ProfileProject {
|
|
|
205
207
|
/** AT-URI of the same record on another person's profile, when they keep one. */
|
|
206
208
|
sameAs?: string;
|
|
207
209
|
hidden?: boolean;
|
|
210
|
+
/** User-flagged primary project, surfaced in the Highlights block. Ongoing only. */
|
|
211
|
+
primary?: boolean;
|
|
208
212
|
}
|
|
209
213
|
interface PublicationContributor {
|
|
210
214
|
name: string;
|
|
@@ -248,6 +252,8 @@ interface ProfilePublication {
|
|
|
248
252
|
verifiedVia?: string;
|
|
249
253
|
orcidPutCode?: number;
|
|
250
254
|
hidden?: boolean;
|
|
255
|
+
/** User-flagged primary publication, surfaced in the Highlights block. */
|
|
256
|
+
primary?: boolean;
|
|
251
257
|
orcidCorroborated?: boolean;
|
|
252
258
|
pendingVerification?: boolean;
|
|
253
259
|
appId?: string;
|
|
@@ -408,6 +414,8 @@ interface ProfileInvolvement {
|
|
|
408
414
|
*/
|
|
409
415
|
legacy?: boolean;
|
|
410
416
|
hidden?: boolean;
|
|
417
|
+
/** User-flagged primary involvement, surfaced in the Highlights block. Ongoing only. */
|
|
418
|
+
primary?: boolean;
|
|
411
419
|
/** Other people named on this involvement, hydrated from the stored DIDs. */
|
|
412
420
|
collaborators?: ProjectMemberCard[];
|
|
413
421
|
/** AT-URI of the same involvement as recorded on another person's profile. */
|
|
@@ -551,6 +559,8 @@ interface ProfilePresentation {
|
|
|
551
559
|
/** Resolved URL of the uploaded cover image, when present. */
|
|
552
560
|
coverImageUrl?: string | null;
|
|
553
561
|
hidden?: boolean;
|
|
562
|
+
/** User-flagged primary talk, surfaced in the Highlights block. Talks only, not sessions. */
|
|
563
|
+
primary?: boolean;
|
|
554
564
|
deliveries?: ProfilePresentationDelivery[];
|
|
555
565
|
}
|
|
556
566
|
interface TrustStat {
|
package/dist/index.cjs
CHANGED
|
@@ -5085,6 +5085,12 @@ function countFilledDimensions(input) {
|
|
|
5085
5085
|
return n;
|
|
5086
5086
|
}
|
|
5087
5087
|
|
|
5088
|
+
// src/logic/primary-item.ts
|
|
5089
|
+
function pickPrimaryFlagged(items, isEligible = () => true) {
|
|
5090
|
+
if (!items || items.length === 0) return void 0;
|
|
5091
|
+
return items.find((item) => item.primary === true && !item.hidden && isEligible(item));
|
|
5092
|
+
}
|
|
5093
|
+
|
|
5088
5094
|
// src/logic/profile-summary.ts
|
|
5089
5095
|
var DEFAULT_MAX_SKILLS = 5;
|
|
5090
5096
|
function summarizeProfileView(view, options = {}) {
|
|
@@ -5687,6 +5693,7 @@ var ProfileEducationRecordSchema = zod.z.object({
|
|
|
5687
5693
|
startedAt: partialDateSchema.optional(),
|
|
5688
5694
|
endedAt: partialDateSchema.optional(),
|
|
5689
5695
|
labels: selfLabelsSchema.optional(),
|
|
5696
|
+
isPrimary: zod.z.boolean().optional(),
|
|
5690
5697
|
createdAt: datetimeSchema
|
|
5691
5698
|
});
|
|
5692
5699
|
var ProfileExternalAccountRecordSchema = zod.z.object({
|
|
@@ -5734,6 +5741,7 @@ var ProfileProjectRecordSchema = zod.z.object({
|
|
|
5734
5741
|
startedAt: partialDateSchema.optional(),
|
|
5735
5742
|
endedAt: partialDateSchema.optional(),
|
|
5736
5743
|
labels: selfLabelsSchema.optional(),
|
|
5744
|
+
isPrimary: zod.z.boolean().optional(),
|
|
5737
5745
|
createdAt: datetimeSchema
|
|
5738
5746
|
});
|
|
5739
5747
|
|
|
@@ -5764,6 +5772,7 @@ var ProfileInvolvementRecordSchema = zod.z.object({
|
|
|
5764
5772
|
labels: selfLabelsSchema.optional(),
|
|
5765
5773
|
collaborators: zod.z.array(projectMemberRefSchema).max(50).optional(),
|
|
5766
5774
|
sameAs: externalRecordRefSchema.optional(),
|
|
5775
|
+
isPrimary: zod.z.boolean().optional(),
|
|
5767
5776
|
createdAt: datetimeSchema
|
|
5768
5777
|
}).passthrough();
|
|
5769
5778
|
var ProfileLanguageRecordSchema = zod.z.object({
|
|
@@ -5822,6 +5831,7 @@ var ProfilePresentationRecordSchema = zod.z.object({
|
|
|
5822
5831
|
writeupRef: externalRecordRefSchema.optional(),
|
|
5823
5832
|
// Optional uploaded cover image for the talk page.
|
|
5824
5833
|
coverImage: BlobRefSchema.optional(),
|
|
5834
|
+
isPrimary: zod.z.boolean().optional(),
|
|
5825
5835
|
createdAt: datetimeSchema
|
|
5826
5836
|
});
|
|
5827
5837
|
var communityAddressSchema = zod.z.object({
|
|
@@ -5866,6 +5876,7 @@ var ProfilePublicationRecordSchema = zod.z.object({
|
|
|
5866
5876
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
5867
5877
|
authors: zod.z.array(PublicationAuthorSchema).max(50).optional(),
|
|
5868
5878
|
publishedAt: partialDateSchema.optional(),
|
|
5879
|
+
isPrimary: zod.z.boolean().optional(),
|
|
5869
5880
|
createdAt: datetimeSchema
|
|
5870
5881
|
});
|
|
5871
5882
|
var ProfileSelfRecordSchema = zod.z.object({
|
|
@@ -6227,7 +6238,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6227
6238
|
}
|
|
6228
6239
|
|
|
6229
6240
|
// src/index.ts
|
|
6230
|
-
var SIFA_SDK_VERSION = "0.18.
|
|
6241
|
+
var SIFA_SDK_VERSION = "0.18.16";
|
|
6231
6242
|
|
|
6232
6243
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6233
6244
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -6459,6 +6470,7 @@ exports.parsePresentationDuration = parsePresentationDuration;
|
|
|
6459
6470
|
exports.parseTalkRkey = parseTalkRkey;
|
|
6460
6471
|
exports.partialDateSchema = partialDateSchema;
|
|
6461
6472
|
exports.pdsProviderFromApi = pdsProviderFromApi;
|
|
6473
|
+
exports.pickPrimaryFlagged = pickPrimaryFlagged;
|
|
6462
6474
|
exports.pickPrimaryPosition = pickPrimaryPosition;
|
|
6463
6475
|
exports.presentationCsvRowToRecord = presentationCsvRowToRecord;
|
|
6464
6476
|
exports.presentationDeliveryCsvRowToRecord = presentationDeliveryCsvRowToRecord;
|