@thejob/schema 2.0.7 → 2.0.8

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
@@ -71,6 +71,8 @@ __export(index_exports, {
71
71
  LocationSchema: () => LocationSchema,
72
72
  MIN_SALARY_LOWER_BOUND: () => MIN_SALARY_LOWER_BOUND,
73
73
  MIN_SALARY_UPPER_BOUND: () => MIN_SALARY_UPPER_BOUND,
74
+ PREFILL_MIRRORED_KEYS: () => PREFILL_MIRRORED_KEYS,
75
+ PRIVATE_PROFILE_FIELDS: () => PRIVATE_PROFILE_FIELDS,
74
76
  PageSchema: () => PageSchema,
75
77
  PageStatus: () => PageStatus,
76
78
  PageType: () => PageType,
@@ -2191,6 +2193,22 @@ var SupportedReferralSources = Object.values(ReferralSource);
2191
2193
  var SupportedSalaryCurrencies = ["USD", "EUR", "GBP", "SEK", "INR"];
2192
2194
  var MIN_SALARY_LOWER_BOUND = 0;
2193
2195
  var MIN_SALARY_UPPER_BOUND = 1e6;
2196
+ var PREFILL_MIRRORED_KEYS = [
2197
+ "headline",
2198
+ "aboutMe",
2199
+ "mobile",
2200
+ "location",
2201
+ "experienceLevel",
2202
+ "socialAccounts",
2203
+ "workExperiences",
2204
+ "educations"
2205
+ ];
2206
+ var PRIVATE_PROFILE_FIELDS = [
2207
+ "email",
2208
+ "emailVerified",
2209
+ "mobile",
2210
+ "additionalInfo"
2211
+ ];
2194
2212
 
2195
2213
  // src/user/work-experience.schema.ts
2196
2214
  var import_yup22 = require("yup");
@@ -2569,6 +2587,8 @@ var StudentCompletenessSchema = UserCompletenessSchema.omit([
2569
2587
  LocationSchema,
2570
2588
  MIN_SALARY_LOWER_BOUND,
2571
2589
  MIN_SALARY_UPPER_BOUND,
2590
+ PREFILL_MIRRORED_KEYS,
2591
+ PRIVATE_PROFILE_FIELDS,
2572
2592
  PageSchema,
2573
2593
  PageStatus,
2574
2594
  PageType,
package/dist/index.d.cts CHANGED
@@ -1462,6 +1462,20 @@ type SupportedSalaryCurrency = (typeof SupportedSalaryCurrencies)[number];
1462
1462
  /** Bounds enforced server-side on the minimum-salary slider. */
1463
1463
  declare const MIN_SALARY_LOWER_BOUND = 0;
1464
1464
  declare const MIN_SALARY_UPPER_BOUND = 1000000;
1465
+ /**
1466
+ * Profile fields whose confirmed write should drain the resume-parser's
1467
+ * suggestion. When the user accepts/edits one of these, the matching
1468
+ * `pendingPrefill.<key>` is unset in the same write so the "Suggestion"
1469
+ * affordance disappears on the next load ("confirmed beats prefill").
1470
+ */
1471
+ declare const PREFILL_MIRRORED_KEYS: readonly ["headline", "aboutMe", "mobile", "location", "experienceLevel", "socialAccounts", "workExperiences", "educations"];
1472
+ type PrefillMirroredKey = (typeof PREFILL_MIRRORED_KEYS)[number];
1473
+ /**
1474
+ * Fields stripped from a public (non-owner) profile read. A public profile must
1475
+ * never expose these regardless of the caller's requested `fields`.
1476
+ */
1477
+ declare const PRIVATE_PROFILE_FIELDS: readonly ["email", "emailVerified", "mobile", "additionalInfo"];
1478
+ type PrivateProfileField = (typeof PRIVATE_PROFILE_FIELDS)[number];
1465
1479
 
1466
1480
  declare const UserSchema: yup.ObjectSchema<{
1467
1481
  authAccountId: string;
@@ -2654,4 +2668,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
2654
2668
  };
2655
2669
  }, "">;
2656
2670
 
2657
- export { AnswerChoiceType, ApplicationReceivePreference, ChoiceQuestionSchema, Common, CompensationType, CompletenessScoreSchema, ContactTypes, CoordinatorPageLinkSchema, DISPLAY_DATE_FORMAT, DISPLAY_DATE_FORMAT_SHORT, DateStringSchema, DbDefaultSchema, DefaultPaginatedResponse, DefaultPaginationOptions, DefaultUserRoles, DurationSchema, EMPTY_STRING, EducationLevel, EducationSchema, EmployeeCount, EmploymentType, ExperienceLevel, GeneraDetailFields, GroupManagedBy, GroupMembershipSchema, GroupMembershipStatus, GroupSchema, GroupStatus, GroupTranslationSchema, GroupVisibility, InputQuestionSchema, JOB_TAXONOMY, JobCategory, JobIndustry, JobSchema, JobSearchUrgency, JobStatus, JobSubCategory, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, PostSchema, PostStatus, ProficiencyLevel, QuestionSchema, QuestionType, ReadAndAcknowledgeQuestionSchema, RecruiterPageLinkSchema, ReferralSource, ReportReason, ReportSchema, ResourceType, SITEMAP_FORMAT, SYSTEM_DATE_FORMAT, SkillSchema, SocialAccount, SocialAccountSchema, StudentCompletenessSchema, StudyType, SupportedAnswerChoiceTypes, SupportedApplicationReceivePreferences, SupportedCompensationTypes, SupportedContactTypes, SupportedEducationLevels, SupportedEmployeeCounts, SupportedEmploymentTypes, SupportedExperienceLevels, SupportedJobCategories, SupportedJobIndustries, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedJobSubCategories, SupportedPageStatuses, SupportedPageTypes, SupportedPostStatuses, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, TAXONOMY_LABELS, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, type TPostSchema, type TQuestionSchema, type TReadAndAcknowledgeQuestionSchema, type TUserIdAndCreatedAtSchema, TermsAcceptedSchema, UserAdditionalInfoSchema, UserCertificationSchema, UserCompletenessSchema, UserCoordinatorProfileSchema, UserDetailType, UserGeneralDetailSchema, UserIdAndCreatedAtSchema, UserInterestSchema, UserJobPreferencesSchema, UserLanguageSchema, type UserProfileOverview, UserProfileVisibility, UserProjectSchema, UserRecruiterProfileSchema, UserRole, UserSchema, UserSkillSchema, UserStatus, WorkExperienceSchema, WorkMode, categoryOfIndustry, categoryOfSubCategory, dateString, deriveIndustry, getSchemaByQuestion, industriesOfCategory, industryOfSubCategory, subCategoriesOfIndustry };
2671
+ export { AnswerChoiceType, ApplicationReceivePreference, ChoiceQuestionSchema, Common, CompensationType, CompletenessScoreSchema, ContactTypes, CoordinatorPageLinkSchema, DISPLAY_DATE_FORMAT, DISPLAY_DATE_FORMAT_SHORT, DateStringSchema, DbDefaultSchema, DefaultPaginatedResponse, DefaultPaginationOptions, DefaultUserRoles, DurationSchema, EMPTY_STRING, EducationLevel, EducationSchema, EmployeeCount, EmploymentType, ExperienceLevel, GeneraDetailFields, GroupManagedBy, GroupMembershipSchema, GroupMembershipStatus, GroupSchema, GroupStatus, GroupTranslationSchema, GroupVisibility, InputQuestionSchema, JOB_TAXONOMY, JobCategory, JobIndustry, JobSchema, JobSearchUrgency, JobStatus, JobSubCategory, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PREFILL_MIRRORED_KEYS, PRIVATE_PROFILE_FIELDS, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, PostSchema, PostStatus, type PrefillMirroredKey, type PrivateProfileField, ProficiencyLevel, QuestionSchema, QuestionType, ReadAndAcknowledgeQuestionSchema, RecruiterPageLinkSchema, ReferralSource, ReportReason, ReportSchema, ResourceType, SITEMAP_FORMAT, SYSTEM_DATE_FORMAT, SkillSchema, SocialAccount, SocialAccountSchema, StudentCompletenessSchema, StudyType, SupportedAnswerChoiceTypes, SupportedApplicationReceivePreferences, SupportedCompensationTypes, SupportedContactTypes, SupportedEducationLevels, SupportedEmployeeCounts, SupportedEmploymentTypes, SupportedExperienceLevels, SupportedJobCategories, SupportedJobIndustries, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedJobSubCategories, SupportedPageStatuses, SupportedPageTypes, SupportedPostStatuses, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, TAXONOMY_LABELS, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, type TPostSchema, type TQuestionSchema, type TReadAndAcknowledgeQuestionSchema, type TUserIdAndCreatedAtSchema, TermsAcceptedSchema, UserAdditionalInfoSchema, UserCertificationSchema, UserCompletenessSchema, UserCoordinatorProfileSchema, UserDetailType, UserGeneralDetailSchema, UserIdAndCreatedAtSchema, UserInterestSchema, UserJobPreferencesSchema, UserLanguageSchema, type UserProfileOverview, UserProfileVisibility, UserProjectSchema, UserRecruiterProfileSchema, UserRole, UserSchema, UserSkillSchema, UserStatus, WorkExperienceSchema, WorkMode, categoryOfIndustry, categoryOfSubCategory, dateString, deriveIndustry, getSchemaByQuestion, industriesOfCategory, industryOfSubCategory, subCategoriesOfIndustry };
package/dist/index.d.ts CHANGED
@@ -1462,6 +1462,20 @@ type SupportedSalaryCurrency = (typeof SupportedSalaryCurrencies)[number];
1462
1462
  /** Bounds enforced server-side on the minimum-salary slider. */
1463
1463
  declare const MIN_SALARY_LOWER_BOUND = 0;
1464
1464
  declare const MIN_SALARY_UPPER_BOUND = 1000000;
1465
+ /**
1466
+ * Profile fields whose confirmed write should drain the resume-parser's
1467
+ * suggestion. When the user accepts/edits one of these, the matching
1468
+ * `pendingPrefill.<key>` is unset in the same write so the "Suggestion"
1469
+ * affordance disappears on the next load ("confirmed beats prefill").
1470
+ */
1471
+ declare const PREFILL_MIRRORED_KEYS: readonly ["headline", "aboutMe", "mobile", "location", "experienceLevel", "socialAccounts", "workExperiences", "educations"];
1472
+ type PrefillMirroredKey = (typeof PREFILL_MIRRORED_KEYS)[number];
1473
+ /**
1474
+ * Fields stripped from a public (non-owner) profile read. A public profile must
1475
+ * never expose these regardless of the caller's requested `fields`.
1476
+ */
1477
+ declare const PRIVATE_PROFILE_FIELDS: readonly ["email", "emailVerified", "mobile", "additionalInfo"];
1478
+ type PrivateProfileField = (typeof PRIVATE_PROFILE_FIELDS)[number];
1465
1479
 
1466
1480
  declare const UserSchema: yup.ObjectSchema<{
1467
1481
  authAccountId: string;
@@ -2654,4 +2668,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
2654
2668
  };
2655
2669
  }, "">;
2656
2670
 
2657
- export { AnswerChoiceType, ApplicationReceivePreference, ChoiceQuestionSchema, Common, CompensationType, CompletenessScoreSchema, ContactTypes, CoordinatorPageLinkSchema, DISPLAY_DATE_FORMAT, DISPLAY_DATE_FORMAT_SHORT, DateStringSchema, DbDefaultSchema, DefaultPaginatedResponse, DefaultPaginationOptions, DefaultUserRoles, DurationSchema, EMPTY_STRING, EducationLevel, EducationSchema, EmployeeCount, EmploymentType, ExperienceLevel, GeneraDetailFields, GroupManagedBy, GroupMembershipSchema, GroupMembershipStatus, GroupSchema, GroupStatus, GroupTranslationSchema, GroupVisibility, InputQuestionSchema, JOB_TAXONOMY, JobCategory, JobIndustry, JobSchema, JobSearchUrgency, JobStatus, JobSubCategory, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, PostSchema, PostStatus, ProficiencyLevel, QuestionSchema, QuestionType, ReadAndAcknowledgeQuestionSchema, RecruiterPageLinkSchema, ReferralSource, ReportReason, ReportSchema, ResourceType, SITEMAP_FORMAT, SYSTEM_DATE_FORMAT, SkillSchema, SocialAccount, SocialAccountSchema, StudentCompletenessSchema, StudyType, SupportedAnswerChoiceTypes, SupportedApplicationReceivePreferences, SupportedCompensationTypes, SupportedContactTypes, SupportedEducationLevels, SupportedEmployeeCounts, SupportedEmploymentTypes, SupportedExperienceLevels, SupportedJobCategories, SupportedJobIndustries, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedJobSubCategories, SupportedPageStatuses, SupportedPageTypes, SupportedPostStatuses, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, TAXONOMY_LABELS, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, type TPostSchema, type TQuestionSchema, type TReadAndAcknowledgeQuestionSchema, type TUserIdAndCreatedAtSchema, TermsAcceptedSchema, UserAdditionalInfoSchema, UserCertificationSchema, UserCompletenessSchema, UserCoordinatorProfileSchema, UserDetailType, UserGeneralDetailSchema, UserIdAndCreatedAtSchema, UserInterestSchema, UserJobPreferencesSchema, UserLanguageSchema, type UserProfileOverview, UserProfileVisibility, UserProjectSchema, UserRecruiterProfileSchema, UserRole, UserSchema, UserSkillSchema, UserStatus, WorkExperienceSchema, WorkMode, categoryOfIndustry, categoryOfSubCategory, dateString, deriveIndustry, getSchemaByQuestion, industriesOfCategory, industryOfSubCategory, subCategoriesOfIndustry };
2671
+ export { AnswerChoiceType, ApplicationReceivePreference, ChoiceQuestionSchema, Common, CompensationType, CompletenessScoreSchema, ContactTypes, CoordinatorPageLinkSchema, DISPLAY_DATE_FORMAT, DISPLAY_DATE_FORMAT_SHORT, DateStringSchema, DbDefaultSchema, DefaultPaginatedResponse, DefaultPaginationOptions, DefaultUserRoles, DurationSchema, EMPTY_STRING, EducationLevel, EducationSchema, EmployeeCount, EmploymentType, ExperienceLevel, GeneraDetailFields, GroupManagedBy, GroupMembershipSchema, GroupMembershipStatus, GroupSchema, GroupStatus, GroupTranslationSchema, GroupVisibility, InputQuestionSchema, JOB_TAXONOMY, JobCategory, JobIndustry, JobSchema, JobSearchUrgency, JobStatus, JobSubCategory, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PREFILL_MIRRORED_KEYS, PRIVATE_PROFILE_FIELDS, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, PostSchema, PostStatus, type PrefillMirroredKey, type PrivateProfileField, ProficiencyLevel, QuestionSchema, QuestionType, ReadAndAcknowledgeQuestionSchema, RecruiterPageLinkSchema, ReferralSource, ReportReason, ReportSchema, ResourceType, SITEMAP_FORMAT, SYSTEM_DATE_FORMAT, SkillSchema, SocialAccount, SocialAccountSchema, StudentCompletenessSchema, StudyType, SupportedAnswerChoiceTypes, SupportedApplicationReceivePreferences, SupportedCompensationTypes, SupportedContactTypes, SupportedEducationLevels, SupportedEmployeeCounts, SupportedEmploymentTypes, SupportedExperienceLevels, SupportedJobCategories, SupportedJobIndustries, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedJobSubCategories, SupportedPageStatuses, SupportedPageTypes, SupportedPostStatuses, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, TAXONOMY_LABELS, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, type TPostSchema, type TQuestionSchema, type TReadAndAcknowledgeQuestionSchema, type TUserIdAndCreatedAtSchema, TermsAcceptedSchema, UserAdditionalInfoSchema, UserCertificationSchema, UserCompletenessSchema, UserCoordinatorProfileSchema, UserDetailType, UserGeneralDetailSchema, UserIdAndCreatedAtSchema, UserInterestSchema, UserJobPreferencesSchema, UserLanguageSchema, type UserProfileOverview, UserProfileVisibility, UserProjectSchema, UserRecruiterProfileSchema, UserRole, UserSchema, UserSkillSchema, UserStatus, WorkExperienceSchema, WorkMode, categoryOfIndustry, categoryOfSubCategory, dateString, deriveIndustry, getSchemaByQuestion, industriesOfCategory, industryOfSubCategory, subCategoriesOfIndustry };
package/dist/index.js CHANGED
@@ -2036,6 +2036,22 @@ var SupportedReferralSources = Object.values(ReferralSource);
2036
2036
  var SupportedSalaryCurrencies = ["USD", "EUR", "GBP", "SEK", "INR"];
2037
2037
  var MIN_SALARY_LOWER_BOUND = 0;
2038
2038
  var MIN_SALARY_UPPER_BOUND = 1e6;
2039
+ var PREFILL_MIRRORED_KEYS = [
2040
+ "headline",
2041
+ "aboutMe",
2042
+ "mobile",
2043
+ "location",
2044
+ "experienceLevel",
2045
+ "socialAccounts",
2046
+ "workExperiences",
2047
+ "educations"
2048
+ ];
2049
+ var PRIVATE_PROFILE_FIELDS = [
2050
+ "email",
2051
+ "emailVerified",
2052
+ "mobile",
2053
+ "additionalInfo"
2054
+ ];
2039
2055
 
2040
2056
  // src/user/work-experience.schema.ts
2041
2057
  import { boolean as boolean11, object as object20, string as string17 } from "yup";
@@ -2413,6 +2429,8 @@ export {
2413
2429
  LocationSchema,
2414
2430
  MIN_SALARY_LOWER_BOUND,
2415
2431
  MIN_SALARY_UPPER_BOUND,
2432
+ PREFILL_MIRRORED_KEYS,
2433
+ PRIVATE_PROFILE_FIELDS,
2416
2434
  PageSchema,
2417
2435
  PageStatus,
2418
2436
  PageType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -91,3 +91,33 @@ export type SupportedSalaryCurrency = (typeof SupportedSalaryCurrencies)[number]
91
91
  /** Bounds enforced server-side on the minimum-salary slider. */
92
92
  export const MIN_SALARY_LOWER_BOUND = 0;
93
93
  export const MIN_SALARY_UPPER_BOUND = 1_000_000;
94
+
95
+ /**
96
+ * Profile fields whose confirmed write should drain the resume-parser's
97
+ * suggestion. When the user accepts/edits one of these, the matching
98
+ * `pendingPrefill.<key>` is unset in the same write so the "Suggestion"
99
+ * affordance disappears on the next load ("confirmed beats prefill").
100
+ */
101
+ export const PREFILL_MIRRORED_KEYS = [
102
+ "headline",
103
+ "aboutMe",
104
+ "mobile",
105
+ "location",
106
+ "experienceLevel",
107
+ "socialAccounts",
108
+ "workExperiences",
109
+ "educations",
110
+ ] as const;
111
+ export type PrefillMirroredKey = (typeof PREFILL_MIRRORED_KEYS)[number];
112
+
113
+ /**
114
+ * Fields stripped from a public (non-owner) profile read. A public profile must
115
+ * never expose these regardless of the caller's requested `fields`.
116
+ */
117
+ export const PRIVATE_PROFILE_FIELDS = [
118
+ "email",
119
+ "emailVerified",
120
+ "mobile",
121
+ "additionalInfo",
122
+ ] as const;
123
+ export type PrivateProfileField = (typeof PRIVATE_PROFILE_FIELDS)[number];
@@ -1,2 +0,0 @@
1
- allowBuilds:
2
- esbuild: true