@singi-labs/sifa-sdk 0.10.13 → 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 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 = [
@@ -2258,7 +2265,7 @@ var ProfileLanguageRecordSchema = zod.z.object({
2258
2265
  createdAt: datetimeSchema
2259
2266
  });
2260
2267
  var ProfilePositionRecordSchema = zod.z.object({
2261
- company: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2268
+ company: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3).optional(),
2262
2269
  companyDid: didSchema.optional(),
2263
2270
  title: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2264
2271
  description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
@@ -2325,7 +2332,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
2325
2332
  });
2326
2333
 
2327
2334
  // src/index.ts
2328
- var SIFA_SDK_VERSION = "0.10.13";
2335
+ var SIFA_SDK_VERSION = "0.10.14";
2329
2336
 
2330
2337
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
2331
2338
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
@@ -2338,6 +2345,7 @@ exports.AtmosphereFeedItemSchema = AtmosphereFeedItemSchema;
2338
2345
  exports.CATEGORY_LABELS = CATEGORY_LABELS;
2339
2346
  exports.CATEGORY_ORDER = CATEGORY_ORDER;
2340
2347
  exports.COLLECTION_TO_APP = COLLECTION_TO_APP;
2348
+ exports.COMPANY_OPTIONAL_EMPLOYMENT_TYPES = COMPANY_OPTIONAL_EMPLOYMENT_TYPES;
2341
2349
  exports.COMPLETENESS_MAX_SCORE = COMPLETENESS_MAX_SCORE;
2342
2350
  exports.CONTINENTS = CONTINENTS;
2343
2351
  exports.COUNTRIES = COUNTRIES;
@@ -2426,6 +2434,7 @@ exports.getWorkplaceTypeLabel = getWorkplaceTypeLabel;
2426
2434
  exports.groupSkillsByCategory = groupSkillsByCategory;
2427
2435
  exports.hasAdultContent = hasAdultContent;
2428
2436
  exports.isAppCategory = isAppCategory;
2437
+ exports.isCompanyRequired = isCompanyRequired;
2429
2438
  exports.isKnownAppId = isKnownAppId;
2430
2439
  exports.isKnownPlatform = isKnownPlatform;
2431
2440
  exports.isValidRgbColor = isValidRgbColor;