@singi-labs/sifa-sdk 0.8.0 → 0.8.1

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
@@ -413,6 +413,48 @@ var COUNTRIES = [
413
413
  { code: "ZW", name: "Zimbabwe" }
414
414
  ];
415
415
 
416
+ // src/taxonomy/employment-type.ts
417
+ var EMPLOYMENT_TYPE_GROUPS = [
418
+ {
419
+ label: "Employee",
420
+ items: [
421
+ { value: "id.sifa.defs#fullTime", label: "Full-time" },
422
+ { value: "id.sifa.defs#partTime", label: "Part-time" },
423
+ { value: "id.sifa.defs#temporary", label: "Temporary" },
424
+ { value: "id.sifa.defs#seasonal", label: "Seasonal" }
425
+ ]
426
+ },
427
+ {
428
+ label: "Independent",
429
+ items: [
430
+ { value: "id.sifa.defs#contract", label: "Contract" },
431
+ { value: "id.sifa.defs#freelance", label: "Freelance" },
432
+ { value: "id.sifa.defs#selfEmployed", label: "Self-employed" },
433
+ { value: "id.sifa.defs#independentWork", label: "Independent work" }
434
+ ]
435
+ },
436
+ {
437
+ label: "Training & early-career",
438
+ items: [
439
+ { value: "id.sifa.defs#internship", label: "Internship" },
440
+ { value: "id.sifa.defs#apprenticeship", label: "Apprenticeship" },
441
+ { value: "id.sifa.defs#fellowship", label: "Fellowship" },
442
+ { value: "id.sifa.defs#trainee", label: "Trainee" }
443
+ ]
444
+ },
445
+ {
446
+ label: "Other",
447
+ items: [{ value: "id.sifa.defs#volunteer", label: "Volunteer" }]
448
+ }
449
+ ];
450
+ var EMPLOYMENT_TYPE_LABELS = Object.fromEntries(
451
+ EMPLOYMENT_TYPE_GROUPS.flatMap((g) => g.items).map((o) => [o.value, o.label])
452
+ );
453
+ function getEmploymentTypeLabel(value) {
454
+ if (!value) return void 0;
455
+ return EMPLOYMENT_TYPE_LABELS[value] ?? value;
456
+ }
457
+
416
458
  // src/taxonomy/industry-taxonomy.ts
417
459
  var INDUSTRY_OPTIONS = [
418
460
  {
@@ -607,6 +649,23 @@ function getIndustryLabelKey(value) {
607
649
  return value;
608
650
  }
609
651
 
652
+ // src/taxonomy/workplace-type.ts
653
+ var WORKPLACE_TYPE_OPTIONS = [
654
+ { value: "id.sifa.defs#onSite", label: "On-site" },
655
+ { value: "id.sifa.defs#hybrid", label: "Hybrid" },
656
+ { value: "id.sifa.defs#remoteLocal", label: "Remote (same country)" },
657
+ { value: "id.sifa.defs#remoteRegion", label: "Remote (same region)" },
658
+ { value: "id.sifa.defs#remoteGlobal", label: "Remote (anywhere)" }
659
+ ];
660
+ var WORKPLACE_TYPE_LABELS = {
661
+ ...Object.fromEntries(WORKPLACE_TYPE_OPTIONS.map((o) => [o.value, o.label])),
662
+ "id.sifa.defs#remote": "Remote"
663
+ };
664
+ function getWorkplaceTypeLabel(value) {
665
+ if (!value) return void 0;
666
+ return WORKPLACE_TYPE_LABELS[value] ?? value;
667
+ }
668
+
610
669
  // src/taxonomy/platforms.ts
611
670
  var PLATFORM_LABELS = {
612
671
  bluesky: "Bluesky",
@@ -1147,7 +1206,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
1147
1206
  });
1148
1207
 
1149
1208
  // src/index.ts
1150
- var SIFA_SDK_VERSION = "0.8.0";
1209
+ var SIFA_SDK_VERSION = "0.8.1";
1151
1210
 
1152
1211
  exports.CATEGORY_LABELS = CATEGORY_LABELS;
1153
1212
  exports.CATEGORY_ORDER = CATEGORY_ORDER;
@@ -1155,6 +1214,8 @@ exports.COMPLETENESS_MAX_SCORE = COMPLETENESS_MAX_SCORE;
1155
1214
  exports.CONTINENTS = CONTINENTS;
1156
1215
  exports.COUNTRIES = COUNTRIES;
1157
1216
  exports.DIMENSIONS_MAX_SCORE = DIMENSIONS_MAX_SCORE;
1217
+ exports.EMPLOYMENT_TYPE_GROUPS = EMPLOYMENT_TYPE_GROUPS;
1218
+ exports.EMPLOYMENT_TYPE_LABELS = EMPLOYMENT_TYPE_LABELS;
1158
1219
  exports.EndorsementConfirmationRecordSchema = EndorsementConfirmationRecordSchema;
1159
1220
  exports.EndorsementRecordSchema = EndorsementRecordSchema;
1160
1221
  exports.GraphFollowRecordSchema = GraphFollowRecordSchema;
@@ -1177,6 +1238,8 @@ exports.ProfileVolunteeringRecordSchema = ProfileVolunteeringRecordSchema;
1177
1238
  exports.PublicationAuthorSchema = PublicationAuthorSchema;
1178
1239
  exports.SIFA_SDK_VERSION = SIFA_SDK_VERSION;
1179
1240
  exports.SKILL_CATEGORIES = SKILL_CATEGORIES;
1241
+ exports.WORKPLACE_TYPE_LABELS = WORKPLACE_TYPE_LABELS;
1242
+ exports.WORKPLACE_TYPE_OPTIONS = WORKPLACE_TYPE_OPTIONS;
1180
1243
  exports.atUriSchema = atUriSchema;
1181
1244
  exports.certDateExtractor = certDateExtractor;
1182
1245
  exports.cidSchema = cidSchema;
@@ -1197,12 +1260,14 @@ exports.formatLocation = formatLocation;
1197
1260
  exports.formatRelativeTime = formatRelativeTime;
1198
1261
  exports.getContinent = getContinent;
1199
1262
  exports.getDisplayLabel = getDisplayLabel;
1263
+ exports.getEmploymentTypeLabel = getEmploymentTypeLabel;
1200
1264
  exports.getFaviconUrl = getFaviconUrl;
1201
1265
  exports.getFilledDimensionsMap = getFilledDimensionsMap;
1202
1266
  exports.getHandleStem = getHandleStem;
1203
1267
  exports.getIndustryLabelKey = getIndustryLabelKey;
1204
1268
  exports.getPdsDisplayName = getPdsDisplayName;
1205
1269
  exports.getPlatformLabel = getPlatformLabel;
1270
+ exports.getWorkplaceTypeLabel = getWorkplaceTypeLabel;
1206
1271
  exports.groupSkillsByCategory = groupSkillsByCategory;
1207
1272
  exports.isKnownPlatform = isKnownPlatform;
1208
1273
  exports.isValidRgbColor = isValidRgbColor;