@singi-labs/sifa-sdk 0.10.12 → 0.10.14
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 +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +1 -1
- 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 +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -454,6 +454,13 @@ function getEmploymentTypeLabel(value) {
|
|
|
454
454
|
if (!value) return void 0;
|
|
455
455
|
return EMPLOYMENT_TYPE_LABELS[value] ?? value;
|
|
456
456
|
}
|
|
457
|
+
var COMPANY_OPTIONAL_EMPLOYMENT_TYPES = new Set(
|
|
458
|
+
EMPLOYMENT_TYPE_GROUPS.find((g) => g.label === "Independent")?.items.map((i) => i.value) ?? []
|
|
459
|
+
);
|
|
460
|
+
function isCompanyRequired(employmentType) {
|
|
461
|
+
if (!employmentType) return true;
|
|
462
|
+
return !COMPANY_OPTIONAL_EMPLOYMENT_TYPES.has(employmentType);
|
|
463
|
+
}
|
|
457
464
|
|
|
458
465
|
// src/taxonomy/industry-taxonomy.ts
|
|
459
466
|
var INDUSTRY_OPTIONS = [
|
|
@@ -884,6 +891,7 @@ var APP_CATEGORIES = {
|
|
|
884
891
|
Articles: { phosphorIcon: "Article" },
|
|
885
892
|
Chat: { phosphorIcon: "ChatsCircle" },
|
|
886
893
|
Code: { phosphorIcon: "Code" },
|
|
894
|
+
Domains: { phosphorIcon: "Globe" },
|
|
887
895
|
Endorsements: { phosphorIcon: "HandHeart" },
|
|
888
896
|
Events: { phosphorIcon: "CalendarBlank" },
|
|
889
897
|
Links: { phosphorIcon: "LinkSimple" },
|
|
@@ -949,6 +957,9 @@ var APP_CATEGORY_MAP = {
|
|
|
949
957
|
// declaration (talk topics, formats like keynote/panel/conference-talk).
|
|
950
958
|
// Grouped under Events as the closest fit (speaking engagements).
|
|
951
959
|
kevara: "Events",
|
|
960
|
+
// Marque domain registrar — a domain registration record is a dated
|
|
961
|
+
// identity/ownership action, surfaced as a "registered a domain" event.
|
|
962
|
+
marque: "Domains",
|
|
952
963
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
953
964
|
// no backend scan collection yet)
|
|
954
965
|
linkat: "Links",
|
|
@@ -2254,7 +2265,7 @@ var ProfileLanguageRecordSchema = zod.z.object({
|
|
|
2254
2265
|
createdAt: datetimeSchema
|
|
2255
2266
|
});
|
|
2256
2267
|
var ProfilePositionRecordSchema = zod.z.object({
|
|
2257
|
-
company: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
|
|
2268
|
+
company: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2258
2269
|
companyDid: didSchema.optional(),
|
|
2259
2270
|
title: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
|
|
2260
2271
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
@@ -2321,7 +2332,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2321
2332
|
});
|
|
2322
2333
|
|
|
2323
2334
|
// src/index.ts
|
|
2324
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2335
|
+
var SIFA_SDK_VERSION = "0.10.14";
|
|
2325
2336
|
|
|
2326
2337
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2327
2338
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|
|
@@ -2334,6 +2345,7 @@ exports.AtmosphereFeedItemSchema = AtmosphereFeedItemSchema;
|
|
|
2334
2345
|
exports.CATEGORY_LABELS = CATEGORY_LABELS;
|
|
2335
2346
|
exports.CATEGORY_ORDER = CATEGORY_ORDER;
|
|
2336
2347
|
exports.COLLECTION_TO_APP = COLLECTION_TO_APP;
|
|
2348
|
+
exports.COMPANY_OPTIONAL_EMPLOYMENT_TYPES = COMPANY_OPTIONAL_EMPLOYMENT_TYPES;
|
|
2337
2349
|
exports.COMPLETENESS_MAX_SCORE = COMPLETENESS_MAX_SCORE;
|
|
2338
2350
|
exports.CONTINENTS = CONTINENTS;
|
|
2339
2351
|
exports.COUNTRIES = COUNTRIES;
|
|
@@ -2422,6 +2434,7 @@ exports.getWorkplaceTypeLabel = getWorkplaceTypeLabel;
|
|
|
2422
2434
|
exports.groupSkillsByCategory = groupSkillsByCategory;
|
|
2423
2435
|
exports.hasAdultContent = hasAdultContent;
|
|
2424
2436
|
exports.isAppCategory = isAppCategory;
|
|
2437
|
+
exports.isCompanyRequired = isCompanyRequired;
|
|
2425
2438
|
exports.isKnownAppId = isKnownAppId;
|
|
2426
2439
|
exports.isKnownPlatform = isKnownPlatform;
|
|
2427
2440
|
exports.isValidRgbColor = isValidRgbColor;
|