@thejob/schema 2.0.4 → 2.0.5

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.d.cts CHANGED
@@ -556,6 +556,12 @@ declare const JobSchema: ObjectSchema<{
556
556
  keywords?: (string | undefined)[] | undefined;
557
557
  } | null | undefined;
558
558
  jdSummary: string | undefined;
559
+ jobHighlights: {
560
+ responsibilities?: (string | undefined)[] | undefined;
561
+ requirements?: (string | undefined)[] | undefined;
562
+ benefits?: (string | undefined)[] | undefined;
563
+ qualifications?: (string | undefined)[] | undefined;
564
+ } | null | undefined;
559
565
  canCreateAlert: boolean | undefined;
560
566
  canDirectApply: boolean | undefined;
561
567
  hasApplied: boolean | undefined;
@@ -656,6 +662,12 @@ declare const JobSchema: ObjectSchema<{
656
662
  keywords: "";
657
663
  };
658
664
  jdSummary: undefined;
665
+ jobHighlights: {
666
+ responsibilities: "";
667
+ requirements: "";
668
+ benefits: "";
669
+ qualifications: "";
670
+ };
659
671
  canCreateAlert: undefined;
660
672
  canDirectApply: undefined;
661
673
  hasApplied: undefined;
@@ -686,6 +698,61 @@ declare const JobSchema: ObjectSchema<{
686
698
  }, "">;
687
699
  type TJobSchema = InferType<typeof JobSchema>;
688
700
 
701
+ declare enum PostStatus {
702
+ Draft = "draft",
703
+ Published = "published",
704
+ Archived = "archived"
705
+ }
706
+ declare const SupportedPostStatuses: PostStatus[];
707
+
708
+ declare const PostSchema: yup.ObjectSchema<{
709
+ title: string;
710
+ slug: string;
711
+ excerpt: string | undefined;
712
+ bodyHTML: string;
713
+ bodyMarkdown: string | undefined;
714
+ coverImage: string | null | undefined;
715
+ authorId: string;
716
+ tags: string[];
717
+ readingTimeMinutes: number | undefined;
718
+ seoTags: {
719
+ description?: string | undefined;
720
+ keywords?: string[] | undefined;
721
+ } | null | undefined;
722
+ publishedAt: number | null | undefined;
723
+ isFeatured: boolean;
724
+ status: NonNullable<PostStatus | undefined>;
725
+ } & {
726
+ shortId: string;
727
+ createdBy: string;
728
+ createdAt: number;
729
+ updatedBy: string | undefined;
730
+ updatedAt: number | undefined;
731
+ }, yup.AnyObject, {
732
+ title: undefined;
733
+ slug: undefined;
734
+ excerpt: undefined;
735
+ bodyHTML: undefined;
736
+ bodyMarkdown: undefined;
737
+ coverImage: undefined;
738
+ authorId: undefined;
739
+ tags: never[];
740
+ readingTimeMinutes: undefined;
741
+ seoTags: {
742
+ description: undefined;
743
+ keywords: "";
744
+ };
745
+ publishedAt: undefined;
746
+ isFeatured: false;
747
+ status: PostStatus.Draft;
748
+ shortId: undefined;
749
+ createdBy: undefined;
750
+ createdAt: undefined;
751
+ updatedBy: undefined;
752
+ updatedAt: undefined;
753
+ }, "">;
754
+ type TPostSchema = InferType<typeof PostSchema>;
755
+
689
756
  declare const LocationSchema: yup.ObjectSchema<{
690
757
  placeId: string | null | undefined;
691
758
  country: string;
@@ -2211,4 +2278,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
2211
2278
  };
2212
2279
  }, "">;
2213
2280
 
2214
- 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, JobSchema, JobSearchUrgency, JobStatus, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, 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, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedPageStatuses, SupportedPageTypes, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, 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, dateString, getSchemaByQuestion };
2281
+ 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, JobSchema, JobSearchUrgency, JobStatus, 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, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedPageStatuses, SupportedPageTypes, SupportedPostStatuses, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, 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, dateString, getSchemaByQuestion };
package/dist/index.d.ts CHANGED
@@ -556,6 +556,12 @@ declare const JobSchema: ObjectSchema<{
556
556
  keywords?: (string | undefined)[] | undefined;
557
557
  } | null | undefined;
558
558
  jdSummary: string | undefined;
559
+ jobHighlights: {
560
+ responsibilities?: (string | undefined)[] | undefined;
561
+ requirements?: (string | undefined)[] | undefined;
562
+ benefits?: (string | undefined)[] | undefined;
563
+ qualifications?: (string | undefined)[] | undefined;
564
+ } | null | undefined;
559
565
  canCreateAlert: boolean | undefined;
560
566
  canDirectApply: boolean | undefined;
561
567
  hasApplied: boolean | undefined;
@@ -656,6 +662,12 @@ declare const JobSchema: ObjectSchema<{
656
662
  keywords: "";
657
663
  };
658
664
  jdSummary: undefined;
665
+ jobHighlights: {
666
+ responsibilities: "";
667
+ requirements: "";
668
+ benefits: "";
669
+ qualifications: "";
670
+ };
659
671
  canCreateAlert: undefined;
660
672
  canDirectApply: undefined;
661
673
  hasApplied: undefined;
@@ -686,6 +698,61 @@ declare const JobSchema: ObjectSchema<{
686
698
  }, "">;
687
699
  type TJobSchema = InferType<typeof JobSchema>;
688
700
 
701
+ declare enum PostStatus {
702
+ Draft = "draft",
703
+ Published = "published",
704
+ Archived = "archived"
705
+ }
706
+ declare const SupportedPostStatuses: PostStatus[];
707
+
708
+ declare const PostSchema: yup.ObjectSchema<{
709
+ title: string;
710
+ slug: string;
711
+ excerpt: string | undefined;
712
+ bodyHTML: string;
713
+ bodyMarkdown: string | undefined;
714
+ coverImage: string | null | undefined;
715
+ authorId: string;
716
+ tags: string[];
717
+ readingTimeMinutes: number | undefined;
718
+ seoTags: {
719
+ description?: string | undefined;
720
+ keywords?: string[] | undefined;
721
+ } | null | undefined;
722
+ publishedAt: number | null | undefined;
723
+ isFeatured: boolean;
724
+ status: NonNullable<PostStatus | undefined>;
725
+ } & {
726
+ shortId: string;
727
+ createdBy: string;
728
+ createdAt: number;
729
+ updatedBy: string | undefined;
730
+ updatedAt: number | undefined;
731
+ }, yup.AnyObject, {
732
+ title: undefined;
733
+ slug: undefined;
734
+ excerpt: undefined;
735
+ bodyHTML: undefined;
736
+ bodyMarkdown: undefined;
737
+ coverImage: undefined;
738
+ authorId: undefined;
739
+ tags: never[];
740
+ readingTimeMinutes: undefined;
741
+ seoTags: {
742
+ description: undefined;
743
+ keywords: "";
744
+ };
745
+ publishedAt: undefined;
746
+ isFeatured: false;
747
+ status: PostStatus.Draft;
748
+ shortId: undefined;
749
+ createdBy: undefined;
750
+ createdAt: undefined;
751
+ updatedBy: undefined;
752
+ updatedAt: undefined;
753
+ }, "">;
754
+ type TPostSchema = InferType<typeof PostSchema>;
755
+
689
756
  declare const LocationSchema: yup.ObjectSchema<{
690
757
  placeId: string | null | undefined;
691
758
  country: string;
@@ -2211,4 +2278,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
2211
2278
  };
2212
2279
  }, "">;
2213
2280
 
2214
- 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, JobSchema, JobSearchUrgency, JobStatus, LocationSchema, MIN_SALARY_LOWER_BOUND, MIN_SALARY_UPPER_BOUND, PageSchema, PageStatus, PageType, type PaginatedResponse, PaginationSchema, 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, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedPageStatuses, SupportedPageTypes, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, type TChoiceQuestionSchema, type TDurationSchema, type TInputQuestionSchema, type TJobSchema, 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, dateString, getSchemaByQuestion };
2281
+ 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, JobSchema, JobSearchUrgency, JobStatus, 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, SupportedJobSearchUrgencies, SupportedJobStatuses, SupportedPageStatuses, SupportedPageTypes, SupportedPostStatuses, SupportedProficiencyLevels, SupportedQuestionTypes, SupportedReferralSources, SupportedReportReasons, SupportedResourceTypes, SupportedSalaryCurrencies, type SupportedSalaryCurrency, SupportedSocialAccounts, SupportedStudyTypes, SupportedUserProfileVisibilities, SupportedUserRoles, SupportedUserStatuses, SupportedWorkModes, 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, dateString, getSchemaByQuestion };