@singi-labs/sifa-sdk 0.19.30 → 0.19.32
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-BGdCq8py.d.ts → index-CpbCm2Fe.d.ts} +8 -0
- package/dist/{index-BF3iRMIc.d.cts → index-piLIwMN1.d.cts} +8 -0
- package/dist/index.cjs +44 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -7
- package/dist/index.d.ts +43 -7
- package/dist/index.js +37 -2
- package/dist/index.js.map +1 -1
- package/dist/jev/index.cjs +3 -1
- package/dist/jev/index.cjs.map +1 -1
- package/dist/jev/index.d.cts +17 -3
- package/dist/jev/index.d.ts +17 -3
- package/dist/jev/index.js +3 -1
- package/dist/jev/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-YQw6F46V.d.cts → network-map-9VAyPnle.d.cts} +4 -4
- package/dist/{network-map-CvbqPk3Z.d.ts → network-map-BgeHssxs.d.ts} +4 -4
- package/dist/{org-BIc_aIe1.d.cts → org-BIbPhHLx.d.cts} +2 -2
- package/dist/{org-DZJxtDbY.d.ts → org-Dx8K7Mh8.d.ts} +2 -2
- package/dist/{profile-investment-CuuO0dlN.d.cts → profile-investment-PDLfao_i.d.cts} +4 -0
- package/dist/{profile-investment-CuuO0dlN.d.ts → profile-investment-PDLfao_i.d.ts} +4 -0
- package/dist/{profile-summary-CEuLMGcJ.d.cts → profile-summary-Bm3gJPKC.d.cts} +1 -1
- package/dist/{profile-summary-WMGwFrYn.d.ts → profile-summary-CHUPtU__.d.ts} +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/resume/index.d.cts +1 -1
- package/dist/resume/index.d.ts +1 -1
- package/dist/schemas/index.cjs +8 -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 +8 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +11 -2
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +4 -0
- package/dist/schemas/write/index.d.ts +4 -0
- package/dist/schemas/write/index.js +11 -2
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{types-BLE2Alrv.d.cts → types-Mosj_JIx.d.ts} +7 -1
- package/dist/{types-enWAmfWo.d.ts → types-mmGgHkik.d.cts} +7 -1
- package/dist/{use-org-notification-emails-CYUvOhrn.d.ts → use-org-notification-emails-Dsek36iZ.d.ts} +3 -3
- package/dist/{use-org-notification-emails-B7bgHMWC.d.cts → use-org-notification-emails-OHgt6WRP.d.cts} +3 -3
- package/package.json +1 -1
|
@@ -503,6 +503,14 @@ interface ProfileCourse {
|
|
|
503
503
|
/** Date the course was completed, as an RFC 3339 datetime. Optional; the
|
|
504
504
|
* editor collects month granularity (YYYY-MM). */
|
|
505
505
|
completedAt?: string;
|
|
506
|
+
/** `id.sifa.defs#courseRole` token. Absent means the user took the course. */
|
|
507
|
+
role?: string;
|
|
508
|
+
/** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
|
|
509
|
+
startedAt?: string;
|
|
510
|
+
endedAt?: string;
|
|
511
|
+
/** rkey of the position the course was taught under. The AppView resolves
|
|
512
|
+
* it from the record's `position` at-uri when building the profile view. */
|
|
513
|
+
positionRkey?: string;
|
|
506
514
|
hidden?: boolean;
|
|
507
515
|
}
|
|
508
516
|
/** A related link on a presentation or delivery, as returned by the AppView. */
|
|
@@ -503,6 +503,14 @@ interface ProfileCourse {
|
|
|
503
503
|
/** Date the course was completed, as an RFC 3339 datetime. Optional; the
|
|
504
504
|
* editor collects month granularity (YYYY-MM). */
|
|
505
505
|
completedAt?: string;
|
|
506
|
+
/** `id.sifa.defs#courseRole` token. Absent means the user took the course. */
|
|
507
|
+
role?: string;
|
|
508
|
+
/** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
|
|
509
|
+
startedAt?: string;
|
|
510
|
+
endedAt?: string;
|
|
511
|
+
/** rkey of the position the course was taught under. The AppView resolves
|
|
512
|
+
* it from the record's `position` at-uri when building the profile view. */
|
|
513
|
+
positionRkey?: string;
|
|
506
514
|
hidden?: boolean;
|
|
507
515
|
}
|
|
508
516
|
/** A related link on a presentation or delivery, as returned by the AppView. */
|
package/dist/index.cjs
CHANGED
|
@@ -2257,6 +2257,33 @@ function getInvolvementKindHeading(value) {
|
|
|
2257
2257
|
return INVOLVEMENT_KIND_HEADINGS[value] ?? "Other";
|
|
2258
2258
|
}
|
|
2259
2259
|
|
|
2260
|
+
// src/taxonomy/course-role.ts
|
|
2261
|
+
var COURSE_ROLE_TAKEN = "id.sifa.defs#courseTaken";
|
|
2262
|
+
var COURSE_ROLE_TAUGHT = "id.sifa.defs#courseTaught";
|
|
2263
|
+
var COURSE_ROLE_TEACHING_ASSISTANT = "id.sifa.defs#courseTeachingAssistant";
|
|
2264
|
+
var COURSE_ROLE_OPTIONS = [
|
|
2265
|
+
{ value: COURSE_ROLE_TAKEN, label: "Student" },
|
|
2266
|
+
{ value: COURSE_ROLE_TAUGHT, label: "Instructor" },
|
|
2267
|
+
{ value: COURSE_ROLE_TEACHING_ASSISTANT, label: "Teaching assistant" }
|
|
2268
|
+
];
|
|
2269
|
+
var COURSE_ROLE_LABELS = Object.fromEntries(
|
|
2270
|
+
COURSE_ROLE_OPTIONS.map((o) => [o.value, o.label])
|
|
2271
|
+
);
|
|
2272
|
+
function getCourseRoleLabel(value) {
|
|
2273
|
+
if (!value) return void 0;
|
|
2274
|
+
return COURSE_ROLE_LABELS[value];
|
|
2275
|
+
}
|
|
2276
|
+
var TEACHING_ROLES = /* @__PURE__ */ new Set([COURSE_ROLE_TAUGHT, COURSE_ROLE_TEACHING_ASSISTANT]);
|
|
2277
|
+
function isTeachingCourse(course) {
|
|
2278
|
+
return !!course.role && TEACHING_ROLES.has(course.role);
|
|
2279
|
+
}
|
|
2280
|
+
function splitCoursesByRole(courses) {
|
|
2281
|
+
const taken = [];
|
|
2282
|
+
const teaching = [];
|
|
2283
|
+
for (const c of courses) (isTeachingCourse(c) ? teaching : taken).push(c);
|
|
2284
|
+
return { taken, teaching };
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2260
2287
|
// src/taxonomy/artifact-link-kind.ts
|
|
2261
2288
|
var ARTIFACT_LINK_KIND_OPTIONS = [
|
|
2262
2289
|
{ value: "pull-request", label: "Pull request" },
|
|
@@ -6099,6 +6126,14 @@ var ProfileCourseRecordSchema = zod.z.object({
|
|
|
6099
6126
|
// at-uri (not a strongRef) so the link tracks the live certification.
|
|
6100
6127
|
credential: atUriSchema.optional(),
|
|
6101
6128
|
completedAt: partialDateSchema.optional(),
|
|
6129
|
+
// id.sifa.defs#courseRole token; absent means the user took the course.
|
|
6130
|
+
role: zod.z.string().refine(maxGraphemes(64)).max(640).optional(),
|
|
6131
|
+
// Teaching period of a taught or assisted course.
|
|
6132
|
+
startedAt: partialDateSchema.optional(),
|
|
6133
|
+
endedAt: partialDateSchema.optional(),
|
|
6134
|
+
// AT-URI of the id.sifa.profile.position the course was taught under. Plain
|
|
6135
|
+
// at-uri (not a strongRef) so the link tracks the live position.
|
|
6136
|
+
position: atUriSchema.optional(),
|
|
6102
6137
|
createdAt: datetimeSchema
|
|
6103
6138
|
});
|
|
6104
6139
|
var ProfileEducationRecordSchema = zod.z.object({
|
|
@@ -6661,7 +6696,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6661
6696
|
}
|
|
6662
6697
|
|
|
6663
6698
|
// src/index.ts
|
|
6664
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6699
|
+
var SIFA_SDK_VERSION = "0.19.32";
|
|
6665
6700
|
|
|
6666
6701
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6667
6702
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -6687,6 +6722,11 @@ exports.COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS = COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIE
|
|
|
6687
6722
|
exports.COMPLETENESS_MAX_SCORE = COMPLETENESS_MAX_SCORE;
|
|
6688
6723
|
exports.CONTINENTS = CONTINENTS;
|
|
6689
6724
|
exports.COUNTRIES = COUNTRIES;
|
|
6725
|
+
exports.COURSE_ROLE_LABELS = COURSE_ROLE_LABELS;
|
|
6726
|
+
exports.COURSE_ROLE_OPTIONS = COURSE_ROLE_OPTIONS;
|
|
6727
|
+
exports.COURSE_ROLE_TAKEN = COURSE_ROLE_TAKEN;
|
|
6728
|
+
exports.COURSE_ROLE_TAUGHT = COURSE_ROLE_TAUGHT;
|
|
6729
|
+
exports.COURSE_ROLE_TEACHING_ASSISTANT = COURSE_ROLE_TEACHING_ASSISTANT;
|
|
6690
6730
|
exports.DIMENSIONS_MAX_SCORE = DIMENSIONS_MAX_SCORE;
|
|
6691
6731
|
exports.EMPLOYMENT_TYPE_GROUPS = EMPLOYMENT_TYPE_GROUPS;
|
|
6692
6732
|
exports.EMPLOYMENT_TYPE_LABELS = EMPLOYMENT_TYPE_LABELS;
|
|
@@ -6829,6 +6869,7 @@ exports.getArtifactLinkKindLabel = getArtifactLinkKindLabel;
|
|
|
6829
6869
|
exports.getCalendarEventModeLabel = getCalendarEventModeLabel;
|
|
6830
6870
|
exports.getCalendarEventStatusLabel = getCalendarEventStatusLabel;
|
|
6831
6871
|
exports.getContinent = getContinent;
|
|
6872
|
+
exports.getCourseRoleLabel = getCourseRoleLabel;
|
|
6832
6873
|
exports.getDisplayLabel = getDisplayLabel;
|
|
6833
6874
|
exports.getEmploymentTypeLabel = getEmploymentTypeLabel;
|
|
6834
6875
|
exports.getFaviconUrl = getFaviconUrl;
|
|
@@ -6875,6 +6916,7 @@ exports.isRelationalActivity = isRelationalActivity;
|
|
|
6875
6916
|
exports.isRoleLineRedundant = isRoleLineRedundant;
|
|
6876
6917
|
exports.isSectionPopulated = isSectionPopulated;
|
|
6877
6918
|
exports.isSelfAuthoredRich = isSelfAuthoredRich;
|
|
6919
|
+
exports.isTeachingCourse = isTeachingCourse;
|
|
6878
6920
|
exports.isValidRgbColor = isValidRgbColor;
|
|
6879
6921
|
exports.isVisibleActivityItem = isVisibleActivityItem;
|
|
6880
6922
|
exports.languageTagSchema = languageTagSchema;
|
|
@@ -6941,6 +6983,7 @@ exports.sortLanguagesByProficiency = sortLanguagesByProficiency;
|
|
|
6941
6983
|
exports.sortPositions = sortPositions;
|
|
6942
6984
|
exports.sortProjects = sortProjects;
|
|
6943
6985
|
exports.sortPublications = sortPublications;
|
|
6986
|
+
exports.splitCoursesByRole = splitCoursesByRole;
|
|
6944
6987
|
exports.streamAddressSchema = streamAddressSchema;
|
|
6945
6988
|
exports.streamAuthorSchema = streamAuthorSchema;
|
|
6946
6989
|
exports.streamCardBodySchema = streamCardBodySchema;
|