@thejob/schema 2.0.3 → 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.cjs +205 -128
- package/dist/index.d.cts +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +198 -124
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/job/job.schema.ts +26 -0
- package/src/post/post.constant.ts +7 -0
- package/src/post/post.schema.ts +68 -0
- package/.claude/scheduled_tasks.lock +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -479,6 +479,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
479
479
|
[x: number]: string | boolean;
|
|
480
480
|
};
|
|
481
481
|
lastExpiryCheckAt: number | null | undefined;
|
|
482
|
+
closedAt: number | null | undefined;
|
|
482
483
|
experienceLevel: ExperienceLevel | null | undefined;
|
|
483
484
|
contactEmail: string | null | undefined;
|
|
484
485
|
workingHoursPerWeek: number | null | undefined;
|
|
@@ -555,6 +556,12 @@ declare const JobSchema: ObjectSchema<{
|
|
|
555
556
|
keywords?: (string | undefined)[] | undefined;
|
|
556
557
|
} | null | undefined;
|
|
557
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;
|
|
558
565
|
canCreateAlert: boolean | undefined;
|
|
559
566
|
canDirectApply: boolean | undefined;
|
|
560
567
|
hasApplied: boolean | undefined;
|
|
@@ -643,6 +650,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
643
650
|
isActive: false;
|
|
644
651
|
};
|
|
645
652
|
lastExpiryCheckAt: undefined;
|
|
653
|
+
closedAt: undefined;
|
|
646
654
|
experienceLevel: undefined;
|
|
647
655
|
contactEmail: undefined;
|
|
648
656
|
workingHoursPerWeek: undefined;
|
|
@@ -654,6 +662,12 @@ declare const JobSchema: ObjectSchema<{
|
|
|
654
662
|
keywords: "";
|
|
655
663
|
};
|
|
656
664
|
jdSummary: undefined;
|
|
665
|
+
jobHighlights: {
|
|
666
|
+
responsibilities: "";
|
|
667
|
+
requirements: "";
|
|
668
|
+
benefits: "";
|
|
669
|
+
qualifications: "";
|
|
670
|
+
};
|
|
657
671
|
canCreateAlert: undefined;
|
|
658
672
|
canDirectApply: undefined;
|
|
659
673
|
hasApplied: undefined;
|
|
@@ -684,6 +698,61 @@ declare const JobSchema: ObjectSchema<{
|
|
|
684
698
|
}, "">;
|
|
685
699
|
type TJobSchema = InferType<typeof JobSchema>;
|
|
686
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
|
+
|
|
687
756
|
declare const LocationSchema: yup.ObjectSchema<{
|
|
688
757
|
placeId: string | null | undefined;
|
|
689
758
|
country: string;
|
|
@@ -2209,4 +2278,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
|
|
|
2209
2278
|
};
|
|
2210
2279
|
}, "">;
|
|
2211
2280
|
|
|
2212
|
-
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
|
@@ -479,6 +479,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
479
479
|
[x: number]: string | boolean;
|
|
480
480
|
};
|
|
481
481
|
lastExpiryCheckAt: number | null | undefined;
|
|
482
|
+
closedAt: number | null | undefined;
|
|
482
483
|
experienceLevel: ExperienceLevel | null | undefined;
|
|
483
484
|
contactEmail: string | null | undefined;
|
|
484
485
|
workingHoursPerWeek: number | null | undefined;
|
|
@@ -555,6 +556,12 @@ declare const JobSchema: ObjectSchema<{
|
|
|
555
556
|
keywords?: (string | undefined)[] | undefined;
|
|
556
557
|
} | null | undefined;
|
|
557
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;
|
|
558
565
|
canCreateAlert: boolean | undefined;
|
|
559
566
|
canDirectApply: boolean | undefined;
|
|
560
567
|
hasApplied: boolean | undefined;
|
|
@@ -643,6 +650,7 @@ declare const JobSchema: ObjectSchema<{
|
|
|
643
650
|
isActive: false;
|
|
644
651
|
};
|
|
645
652
|
lastExpiryCheckAt: undefined;
|
|
653
|
+
closedAt: undefined;
|
|
646
654
|
experienceLevel: undefined;
|
|
647
655
|
contactEmail: undefined;
|
|
648
656
|
workingHoursPerWeek: undefined;
|
|
@@ -654,6 +662,12 @@ declare const JobSchema: ObjectSchema<{
|
|
|
654
662
|
keywords: "";
|
|
655
663
|
};
|
|
656
664
|
jdSummary: undefined;
|
|
665
|
+
jobHighlights: {
|
|
666
|
+
responsibilities: "";
|
|
667
|
+
requirements: "";
|
|
668
|
+
benefits: "";
|
|
669
|
+
qualifications: "";
|
|
670
|
+
};
|
|
657
671
|
canCreateAlert: undefined;
|
|
658
672
|
canDirectApply: undefined;
|
|
659
673
|
hasApplied: undefined;
|
|
@@ -684,6 +698,61 @@ declare const JobSchema: ObjectSchema<{
|
|
|
684
698
|
}, "">;
|
|
685
699
|
type TJobSchema = InferType<typeof JobSchema>;
|
|
686
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
|
+
|
|
687
756
|
declare const LocationSchema: yup.ObjectSchema<{
|
|
688
757
|
placeId: string | null | undefined;
|
|
689
758
|
country: string;
|
|
@@ -2209,4 +2278,4 @@ declare const StudentCompletenessSchema: yup.ObjectSchema<{
|
|
|
2209
2278
|
};
|
|
2210
2279
|
}, "">;
|
|
2211
2280
|
|
|
2212
|
-
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 };
|