@thejob/schema 1.0.105 → 2.0.0
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/.claude/settings.local.json +121 -0
- package/.gitattributes +2 -0
- package/dist/index.cjs +1004 -0
- package/dist/index.d.cts +1706 -0
- package/dist/index.d.ts +1706 -0
- package/dist/index.js +899 -0
- package/package.json +22 -52
- package/pnpm-workspace.yaml +2 -0
- package/src/common/common.constant.ts +34 -0
- package/src/common/common.schema.ts +28 -0
- package/src/duration/duration.schema.ts +51 -0
- package/src/extensions/date-string.extension.ts +87 -0
- package/src/group/group.constant.ts +20 -0
- package/src/group/group.schema.ts +94 -0
- package/src/index.ts +72 -0
- package/src/location/location.schema.ts +15 -0
- package/src/page/company/company.schema.ts +16 -0
- package/src/page/company/perks-and-benefits.schema.ts +8 -0
- package/{dist/esm/page/institute/institute.schema.js → src/page/institute/institute.schema.ts} +2 -1
- package/src/page/page-location.schema.ts +19 -0
- package/src/page/page.constant.ts +39 -0
- package/src/page/page.schema.ts +83 -0
- package/src/pagination/pagination.constant.ts +20 -0
- package/src/pagination/pagination.schema.ts +13 -0
- package/src/skill/skill.schema.ts +19 -0
- package/src/social-account/social-account.constant.ts +33 -0
- package/src/social-account/social-account.schema.ts +18 -0
- package/src/user/education.schema.ts +37 -0
- package/src/user/general-detail.schema.ts +48 -0
- package/src/user/project.schema.ts +27 -0
- package/src/user/user-additional-info.schema.ts +9 -0
- package/src/user/user-certification.schema.ts +24 -0
- package/src/user/user-completeness.schema.ts +21 -0
- package/src/user/user-coordinator-profile.schema.ts +45 -0
- package/src/user/user-interest.schema.ts +3 -0
- package/src/user/user-job-preferences.schema.ts +208 -0
- package/src/user/user-language.schema.ts +15 -0
- package/src/user/user-recruiter-profile.schema.ts +45 -0
- package/src/user/user-skill.schema.ts +19 -0
- package/src/user/user.constant.ts +93 -0
- package/src/user/user.schema.ts +132 -0
- package/src/user/user.types.ts +17 -0
- package/src/user/work-experience.schema.ts +27 -0
- package/tsconfig.json +29 -0
- package/tsup.config.ts +8 -0
- package/dist/cjs/ai/ai.types.d.ts +0 -172
- package/dist/cjs/ai/ai.types.d.ts.map +0 -1
- package/dist/cjs/ai/ai.types.js +0 -2
- package/dist/cjs/ai/index.d.ts +0 -2
- package/dist/cjs/ai/index.d.ts.map +0 -1
- package/dist/cjs/ai/index.js +0 -17
- package/dist/cjs/category/category.schema.d.ts +0 -8
- package/dist/cjs/category/category.schema.d.ts.map +0 -1
- package/dist/cjs/category/category.schema.js +0 -11
- package/dist/cjs/category/index.d.ts +0 -2
- package/dist/cjs/category/index.d.ts.map +0 -1
- package/dist/cjs/category/index.js +0 -17
- package/dist/cjs/common/common.schema.d.ts +0 -60
- package/dist/cjs/common/common.schema.d.ts.map +0 -1
- package/dist/cjs/common/common.schema.js +0 -61
- package/dist/cjs/common/common.types.d.ts +0 -52
- package/dist/cjs/common/common.types.d.ts.map +0 -1
- package/dist/cjs/common/common.types.js +0 -2
- package/dist/cjs/common/index.d.ts +0 -4
- package/dist/cjs/common/index.d.ts.map +0 -1
- package/dist/cjs/common/index.js +0 -19
- package/dist/cjs/common/utils.d.ts +0 -6
- package/dist/cjs/common/utils.d.ts.map +0 -1
- package/dist/cjs/common/utils.js +0 -15
- package/dist/cjs/constants/auth/auth.d.ts +0 -12
- package/dist/cjs/constants/auth/auth.d.ts.map +0 -1
- package/dist/cjs/constants/auth/auth.js +0 -17
- package/dist/cjs/constants/auth/index.d.ts +0 -2
- package/dist/cjs/constants/auth/index.d.ts.map +0 -1
- package/dist/cjs/constants/auth/index.js +0 -17
- package/dist/cjs/constants/authorization/authorization.d.ts +0 -10
- package/dist/cjs/constants/authorization/authorization.d.ts.map +0 -1
- package/dist/cjs/constants/authorization/authorization.js +0 -15
- package/dist/cjs/constants/authorization/index.d.ts +0 -2
- package/dist/cjs/constants/authorization/index.d.ts.map +0 -1
- package/dist/cjs/constants/authorization/index.js +0 -17
- package/dist/cjs/constants/campaign/campaign.d.ts +0 -8
- package/dist/cjs/constants/campaign/campaign.d.ts.map +0 -1
- package/dist/cjs/constants/campaign/campaign.js +0 -12
- package/dist/cjs/constants/campaign/index.d.ts +0 -2
- package/dist/cjs/constants/campaign/index.d.ts.map +0 -1
- package/dist/cjs/constants/campaign/index.js +0 -17
- package/dist/cjs/constants/common/common.d.ts +0 -30
- package/dist/cjs/constants/common/common.d.ts.map +0 -1
- package/dist/cjs/constants/common/common.js +0 -36
- package/dist/cjs/constants/common/index.d.ts +0 -2
- package/dist/cjs/constants/common/index.d.ts.map +0 -1
- package/dist/cjs/constants/common/index.js +0 -17
- package/dist/cjs/constants/database/database.d.ts +0 -370
- package/dist/cjs/constants/database/database.d.ts.map +0 -1
- package/dist/cjs/constants/database/database.js +0 -375
- package/dist/cjs/constants/database/index.d.ts +0 -2
- package/dist/cjs/constants/database/index.d.ts.map +0 -1
- package/dist/cjs/constants/database/index.js +0 -17
- package/dist/cjs/constants/education/education.d.ts +0 -19
- package/dist/cjs/constants/education/education.d.ts.map +0 -1
- package/dist/cjs/constants/education/education.js +0 -24
- package/dist/cjs/constants/education/index.d.ts +0 -2
- package/dist/cjs/constants/education/index.d.ts.map +0 -1
- package/dist/cjs/constants/education/index.js +0 -17
- package/dist/cjs/constants/file/file.d.ts +0 -31
- package/dist/cjs/constants/file/file.d.ts.map +0 -1
- package/dist/cjs/constants/file/file.js +0 -39
- package/dist/cjs/constants/file/index.d.ts +0 -2
- package/dist/cjs/constants/file/index.d.ts.map +0 -1
- package/dist/cjs/constants/file/index.js +0 -17
- package/dist/cjs/constants/http/http.d.ts +0 -147
- package/dist/cjs/constants/http/http.d.ts.map +0 -1
- package/dist/cjs/constants/http/http.js +0 -153
- package/dist/cjs/constants/http/index.d.ts +0 -2
- package/dist/cjs/constants/http/index.d.ts.map +0 -1
- package/dist/cjs/constants/http/index.js +0 -17
- package/dist/cjs/constants/index.d.ts +0 -17
- package/dist/cjs/constants/index.d.ts.map +0 -1
- package/dist/cjs/constants/index.js +0 -49
- package/dist/cjs/constants/job/index.d.ts +0 -2
- package/dist/cjs/constants/job/index.d.ts.map +0 -1
- package/dist/cjs/constants/job/index.js +0 -17
- package/dist/cjs/constants/job/job.d.ts +0 -53
- package/dist/cjs/constants/job/job.d.ts.map +0 -1
- package/dist/cjs/constants/job/job.js +0 -62
- package/dist/cjs/constants/notification/index.d.ts +0 -2
- package/dist/cjs/constants/notification/index.d.ts.map +0 -1
- package/dist/cjs/constants/notification/index.js +0 -17
- package/dist/cjs/constants/notification/notification.d.ts +0 -15
- package/dist/cjs/constants/notification/notification.d.ts.map +0 -1
- package/dist/cjs/constants/notification/notification.js +0 -19
- package/dist/cjs/constants/page/index.d.ts +0 -2
- package/dist/cjs/constants/page/index.d.ts.map +0 -1
- package/dist/cjs/constants/page/index.js +0 -17
- package/dist/cjs/constants/page/page.d.ts +0 -8
- package/dist/cjs/constants/page/page.d.ts.map +0 -1
- package/dist/cjs/constants/page/page.js +0 -12
- package/dist/cjs/constants/report/index.d.ts +0 -2
- package/dist/cjs/constants/report/index.d.ts.map +0 -1
- package/dist/cjs/constants/report/index.js +0 -17
- package/dist/cjs/constants/report/report.d.ts +0 -18
- package/dist/cjs/constants/report/report.d.ts.map +0 -1
- package/dist/cjs/constants/report/report.js +0 -23
- package/dist/cjs/constants/reward/index.d.ts +0 -2
- package/dist/cjs/constants/reward/index.d.ts.map +0 -1
- package/dist/cjs/constants/reward/index.js +0 -17
- package/dist/cjs/constants/reward/reward.d.ts +0 -37
- package/dist/cjs/constants/reward/reward.d.ts.map +0 -1
- package/dist/cjs/constants/reward/reward.js +0 -43
- package/dist/cjs/constants/user/index.d.ts +0 -2
- package/dist/cjs/constants/user/index.d.ts.map +0 -1
- package/dist/cjs/constants/user/index.js +0 -17
- package/dist/cjs/constants/user/user.d.ts +0 -78
- package/dist/cjs/constants/user/user.d.ts.map +0 -1
- package/dist/cjs/constants/user/user.js +0 -87
- package/dist/cjs/constants/validation/index.d.ts +0 -2
- package/dist/cjs/constants/validation/index.d.ts.map +0 -1
- package/dist/cjs/constants/validation/index.js +0 -17
- package/dist/cjs/constants/validation/validation.d.ts +0 -27
- package/dist/cjs/constants/validation/validation.d.ts.map +0 -1
- package/dist/cjs/constants/validation/validation.js +0 -31
- package/dist/cjs/constants/webhook/index.d.ts +0 -2
- package/dist/cjs/constants/webhook/index.d.ts.map +0 -1
- package/dist/cjs/constants/webhook/index.js +0 -17
- package/dist/cjs/constants/webhook/webhook.d.ts +0 -11
- package/dist/cjs/constants/webhook/webhook.d.ts.map +0 -1
- package/dist/cjs/constants/webhook/webhook.js +0 -16
- package/dist/cjs/course/course.constant.d.ts +0 -6
- package/dist/cjs/course/course.constant.d.ts.map +0 -1
- package/dist/cjs/course/course.constant.js +0 -9
- package/dist/cjs/course/course.schema.d.ts +0 -11
- package/dist/cjs/course/course.schema.d.ts.map +0 -1
- package/dist/cjs/course/course.schema.js +0 -16
- package/dist/cjs/course/index.d.ts +0 -3
- package/dist/cjs/course/index.d.ts.map +0 -1
- package/dist/cjs/course/index.js +0 -18
- package/dist/cjs/design-and-font/design-and-font.schema.d.ts +0 -46
- package/dist/cjs/design-and-font/design-and-font.schema.d.ts.map +0 -1
- package/dist/cjs/design-and-font/design-and-font.schema.js +0 -28
- package/dist/cjs/design-and-font/index.d.ts +0 -2
- package/dist/cjs/design-and-font/index.d.ts.map +0 -1
- package/dist/cjs/design-and-font/index.js +0 -17
- package/dist/cjs/designation/designation.schema.d.ts +0 -8
- package/dist/cjs/designation/designation.schema.d.ts.map +0 -1
- package/dist/cjs/designation/designation.schema.js +0 -11
- package/dist/cjs/designation/index.d.ts +0 -2
- package/dist/cjs/designation/index.d.ts.map +0 -1
- package/dist/cjs/designation/index.js +0 -17
- package/dist/cjs/duration/duration.schema.d.ts +0 -19
- package/dist/cjs/duration/duration.schema.d.ts.map +0 -1
- package/dist/cjs/duration/duration.schema.js +0 -35
- package/dist/cjs/duration/index.d.ts +0 -2
- package/dist/cjs/duration/index.d.ts.map +0 -1
- package/dist/cjs/duration/index.js +0 -17
- package/dist/cjs/field-of-study/field-of-study.schema.d.ts +0 -8
- package/dist/cjs/field-of-study/field-of-study.schema.d.ts.map +0 -1
- package/dist/cjs/field-of-study/field-of-study.schema.js +0 -11
- package/dist/cjs/field-of-study/index.d.ts +0 -2
- package/dist/cjs/field-of-study/index.d.ts.map +0 -1
- package/dist/cjs/field-of-study/index.js +0 -17
- package/dist/cjs/filter/filter.schema.d.ts +0 -8
- package/dist/cjs/filter/filter.schema.d.ts.map +0 -1
- package/dist/cjs/filter/filter.schema.js +0 -23
- package/dist/cjs/filter/index.d.ts +0 -2
- package/dist/cjs/filter/index.d.ts.map +0 -1
- package/dist/cjs/filter/index.js +0 -17
- package/dist/cjs/group/group-membership.schema.d.ts +0 -19
- package/dist/cjs/group/group-membership.schema.d.ts.map +0 -1
- package/dist/cjs/group/group-membership.schema.js +0 -16
- package/dist/cjs/group/group.schema.d.ts +0 -109
- package/dist/cjs/group/group.schema.d.ts.map +0 -1
- package/dist/cjs/group/group.schema.js +0 -92
- package/dist/cjs/group/index.d.ts +0 -3
- package/dist/cjs/group/index.d.ts.map +0 -1
- package/dist/cjs/group/index.js +0 -18
- package/dist/cjs/index.d.ts +0 -30
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -45
- package/dist/cjs/interfaces.index.d.ts +0 -2410
- package/dist/cjs/interfaces.index.d.ts.map +0 -1
- package/dist/cjs/interfaces.index.js +0 -2
- package/dist/cjs/job/index.d.ts +0 -5
- package/dist/cjs/job/index.d.ts.map +0 -1
- package/dist/cjs/job/index.js +0 -20
- package/dist/cjs/job/job.constant.d.ts +0 -9
- package/dist/cjs/job/job.constant.d.ts.map +0 -1
- package/dist/cjs/job/job.constant.js +0 -12
- package/dist/cjs/job/job.schema.d.ts +0 -281
- package/dist/cjs/job/job.schema.d.ts.map +0 -1
- package/dist/cjs/job/job.schema.js +0 -411
- package/dist/cjs/job/job.types.d.ts +0 -13
- package/dist/cjs/job/job.types.d.ts.map +0 -1
- package/dist/cjs/job/job.types.js +0 -2
- package/dist/cjs/job/utils.d.ts +0 -4
- package/dist/cjs/job/utils.d.ts.map +0 -1
- package/dist/cjs/job/utils.js +0 -17
- package/dist/cjs/job-application/index.d.ts +0 -3
- package/dist/cjs/job-application/index.d.ts.map +0 -1
- package/dist/cjs/job-application/index.js +0 -18
- package/dist/cjs/job-application/job-application.constant.d.ts +0 -20
- package/dist/cjs/job-application/job-application.constant.d.ts.map +0 -1
- package/dist/cjs/job-application/job-application.constant.js +0 -38
- package/dist/cjs/job-application/job-application.schema.d.ts +0 -248
- package/dist/cjs/job-application/job-application.schema.d.ts.map +0 -1
- package/dist/cjs/job-application/job-application.schema.js +0 -115
- package/dist/cjs/job-role-template/index.d.ts +0 -2
- package/dist/cjs/job-role-template/index.d.ts.map +0 -1
- package/dist/cjs/job-role-template/index.js +0 -17
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +0 -189
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +0 -1
- package/dist/cjs/job-role-template/job-role-template.schema.js +0 -13
- package/dist/cjs/language/index.d.ts +0 -2
- package/dist/cjs/language/index.d.ts.map +0 -1
- package/dist/cjs/language/index.js +0 -17
- package/dist/cjs/language/language.schema.d.ts +0 -8
- package/dist/cjs/language/language.schema.d.ts.map +0 -1
- package/dist/cjs/language/language.schema.js +0 -20
- package/dist/cjs/location/index.d.ts +0 -2
- package/dist/cjs/location/index.d.ts.map +0 -1
- package/dist/cjs/location/index.js +0 -17
- package/dist/cjs/location/location.schema.d.ts +0 -26
- package/dist/cjs/location/location.schema.d.ts.map +0 -1
- package/dist/cjs/location/location.schema.js +0 -16
- package/dist/cjs/page/company/company.schema.d.ts +0 -21
- package/dist/cjs/page/company/company.schema.d.ts.map +0 -1
- package/dist/cjs/page/company/company.schema.js +0 -18
- package/dist/cjs/page/company/index.d.ts +0 -3
- package/dist/cjs/page/company/index.d.ts.map +0 -1
- package/dist/cjs/page/company/index.js +0 -18
- package/dist/cjs/page/company/perks-and-benefits/index.d.ts +0 -2
- package/dist/cjs/page/company/perks-and-benefits/index.d.ts.map +0 -1
- package/dist/cjs/page/company/perks-and-benefits/index.js +0 -17
- package/dist/cjs/page/company/perks-and-benefits/perks-and-benefits.schema.d.ts +0 -19
- package/dist/cjs/page/company/perks-and-benefits/perks-and-benefits.schema.d.ts.map +0 -1
- package/dist/cjs/page/company/perks-and-benefits/perks-and-benefits.schema.js +0 -13
- package/dist/cjs/page/index.d.ts +0 -5
- package/dist/cjs/page/index.d.ts.map +0 -1
- package/dist/cjs/page/index.js +0 -20
- package/dist/cjs/page/institute/index.d.ts +0 -2
- package/dist/cjs/page/institute/index.d.ts.map +0 -1
- package/dist/cjs/page/institute/index.js +0 -17
- package/dist/cjs/page/institute/institute.schema.d.ts +0 -2
- package/dist/cjs/page/institute/institute.schema.d.ts.map +0 -1
- package/dist/cjs/page/institute/institute.schema.js +0 -5
- package/dist/cjs/page/page-location/index.d.ts +0 -2
- package/dist/cjs/page/page-location/index.d.ts.map +0 -1
- package/dist/cjs/page/page-location/index.js +0 -17
- package/dist/cjs/page/page-location/page-location.schema.d.ts +0 -22
- package/dist/cjs/page/page-location/page-location.schema.d.ts.map +0 -1
- package/dist/cjs/page/page-location/page-location.schema.js +0 -21
- package/dist/cjs/page/page.constant.d.ts +0 -23
- package/dist/cjs/page/page.constant.d.ts.map +0 -1
- package/dist/cjs/page/page.constant.js +0 -36
- package/dist/cjs/page/page.schema.d.ts +0 -96
- package/dist/cjs/page/page.schema.d.ts.map +0 -1
- package/dist/cjs/page/page.schema.js +0 -73
- package/dist/cjs/pagination/index.d.ts +0 -3
- package/dist/cjs/pagination/index.d.ts.map +0 -1
- package/dist/cjs/pagination/index.js +0 -18
- package/dist/cjs/pagination/pagination.constant.d.ts +0 -5
- package/dist/cjs/pagination/pagination.constant.d.ts.map +0 -1
- package/dist/cjs/pagination/pagination.constant.js +0 -13
- package/dist/cjs/pagination/pagination.schema.d.ts +0 -18
- package/dist/cjs/pagination/pagination.schema.d.ts.map +0 -1
- package/dist/cjs/pagination/pagination.schema.js +0 -15
- package/dist/cjs/phone/index.d.ts +0 -2
- package/dist/cjs/phone/index.d.ts.map +0 -1
- package/dist/cjs/phone/index.js +0 -17
- package/dist/cjs/phone/mobile.schema.d.ts +0 -13
- package/dist/cjs/phone/mobile.schema.d.ts.map +0 -1
- package/dist/cjs/phone/mobile.schema.js +0 -17
- package/dist/cjs/question/choice-question.schema.d.ts +0 -42
- package/dist/cjs/question/choice-question.schema.d.ts.map +0 -1
- package/dist/cjs/question/choice-question.schema.js +0 -142
- package/dist/cjs/question/index.d.ts +0 -6
- package/dist/cjs/question/index.d.ts.map +0 -1
- package/dist/cjs/question/index.js +0 -21
- package/dist/cjs/question/input-question.schema.d.ts +0 -27
- package/dist/cjs/question/input-question.schema.d.ts.map +0 -1
- package/dist/cjs/question/input-question.schema.js +0 -22
- package/dist/cjs/question/question.constant.d.ts +0 -12
- package/dist/cjs/question/question.constant.d.ts.map +0 -1
- package/dist/cjs/question/question.constant.js +0 -16
- package/dist/cjs/question/question.schema.d.ts +0 -24
- package/dist/cjs/question/question.schema.d.ts.map +0 -1
- package/dist/cjs/question/question.schema.js +0 -22
- package/dist/cjs/question/read-and-acknowledge.schema.d.ts +0 -30
- package/dist/cjs/question/read-and-acknowledge.schema.d.ts.map +0 -1
- package/dist/cjs/question/read-and-acknowledge.schema.js +0 -20
- package/dist/cjs/recruiter-job-description/index.d.ts +0 -2
- package/dist/cjs/recruiter-job-description/index.d.ts.map +0 -1
- package/dist/cjs/recruiter-job-description/index.js +0 -17
- package/dist/cjs/recruiter-job-description/recruiter-job-description.schema.d.ts +0 -28
- package/dist/cjs/recruiter-job-description/recruiter-job-description.schema.d.ts.map +0 -1
- package/dist/cjs/recruiter-job-description/recruiter-job-description.schema.js +0 -38
- package/dist/cjs/resume/index.d.ts +0 -3
- package/dist/cjs/resume/index.d.ts.map +0 -1
- package/dist/cjs/resume/index.js +0 -18
- package/dist/cjs/resume/resume.constant.d.ts +0 -36
- package/dist/cjs/resume/resume.constant.d.ts.map +0 -1
- package/dist/cjs/resume/resume.constant.js +0 -42
- package/dist/cjs/resume/resume.schema.d.ts +0 -532
- package/dist/cjs/resume/resume.schema.d.ts.map +0 -1
- package/dist/cjs/resume/resume.schema.js +0 -225
- package/dist/cjs/skill/index.d.ts +0 -2
- package/dist/cjs/skill/index.d.ts.map +0 -1
- package/dist/cjs/skill/index.js +0 -17
- package/dist/cjs/skill/skill.schema.d.ts +0 -28
- package/dist/cjs/skill/skill.schema.d.ts.map +0 -1
- package/dist/cjs/skill/skill.schema.js +0 -21
- package/dist/cjs/social-account/index.d.ts +0 -2
- package/dist/cjs/social-account/index.d.ts.map +0 -1
- package/dist/cjs/social-account/index.js +0 -17
- package/dist/cjs/social-account/social-account.schema.d.ts +0 -12
- package/dist/cjs/social-account/social-account.schema.d.ts.map +0 -1
- package/dist/cjs/social-account/social-account.schema.js +0 -18
- package/dist/cjs/subscription/index.d.ts +0 -3
- package/dist/cjs/subscription/index.d.ts.map +0 -1
- package/dist/cjs/subscription/index.js +0 -18
- package/dist/cjs/subscription/subscription.constant.d.ts +0 -19
- package/dist/cjs/subscription/subscription.constant.d.ts.map +0 -1
- package/dist/cjs/subscription/subscription.constant.js +0 -24
- package/dist/cjs/subscription/subscription.schema.d.ts +0 -35
- package/dist/cjs/subscription/subscription.schema.d.ts.map +0 -1
- package/dist/cjs/subscription/subscription.schema.js +0 -32
- package/dist/cjs/uploaded-file/index.d.ts +0 -2
- package/dist/cjs/uploaded-file/index.d.ts.map +0 -1
- package/dist/cjs/uploaded-file/index.js +0 -17
- package/dist/cjs/uploaded-file/uploaded-file.schema.d.ts +0 -16
- package/dist/cjs/uploaded-file/uploaded-file.schema.d.ts.map +0 -1
- package/dist/cjs/uploaded-file/uploaded-file.schema.js +0 -15
- package/dist/cjs/user/create-user.schema.d.ts +0 -15
- package/dist/cjs/user/create-user.schema.d.ts.map +0 -1
- package/dist/cjs/user/create-user.schema.js +0 -14
- package/dist/cjs/user/education/education.schema.d.ts +0 -73
- package/dist/cjs/user/education/education.schema.d.ts.map +0 -1
- package/dist/cjs/user/education/education.schema.js +0 -64
- package/dist/cjs/user/education/index.d.ts +0 -2
- package/dist/cjs/user/education/index.d.ts.map +0 -1
- package/dist/cjs/user/education/index.js +0 -17
- package/dist/cjs/user/general-detail/general-detail.schema.d.ts +0 -53
- package/dist/cjs/user/general-detail/general-detail.schema.d.ts.map +0 -1
- package/dist/cjs/user/general-detail/general-detail.schema.js +0 -44
- package/dist/cjs/user/general-detail/index.d.ts +0 -2
- package/dist/cjs/user/general-detail/index.d.ts.map +0 -1
- package/dist/cjs/user/general-detail/index.js +0 -17
- package/dist/cjs/user/index.d.ts +0 -24
- package/dist/cjs/user/index.d.ts.map +0 -1
- package/dist/cjs/user/index.js +0 -39
- package/dist/cjs/user/project/index.d.ts +0 -2
- package/dist/cjs/user/project/index.d.ts.map +0 -1
- package/dist/cjs/user/project/index.js +0 -17
- package/dist/cjs/user/project/project.schema.d.ts +0 -18
- package/dist/cjs/user/project/project.schema.d.ts.map +0 -1
- package/dist/cjs/user/project/project.schema.js +0 -27
- package/dist/cjs/user/update-additional-info.schema.d.ts +0 -12
- package/dist/cjs/user/update-additional-info.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-additional-info.schema.js +0 -13
- package/dist/cjs/user/update-certification.schema.d.ts +0 -18
- package/dist/cjs/user/update-certification.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-certification.schema.js +0 -13
- package/dist/cjs/user/update-education.schema.d.ts +0 -43
- package/dist/cjs/user/update-education.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-education.schema.js +0 -16
- package/dist/cjs/user/update-interest.schema.d.ts +0 -12
- package/dist/cjs/user/update-interest.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-interest.schema.js +0 -13
- package/dist/cjs/user/update-language.schema.d.ts +0 -14
- package/dist/cjs/user/update-language.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-language.schema.js +0 -13
- package/dist/cjs/user/update-project.schema.d.ts +0 -17
- package/dist/cjs/user/update-project.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-project.schema.js +0 -13
- package/dist/cjs/user/update-skill.schema.d.ts +0 -18
- package/dist/cjs/user/update-skill.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-skill.schema.js +0 -13
- package/dist/cjs/user/update-social-account.schema.d.ts +0 -12
- package/dist/cjs/user/update-social-account.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-social-account.schema.js +0 -13
- package/dist/cjs/user/update-user.schema.d.ts +0 -19
- package/dist/cjs/user/update-user.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-user.schema.js +0 -16
- package/dist/cjs/user/update-work-experience.schema.d.ts +0 -38
- package/dist/cjs/user/update-work-experience.schema.d.ts.map +0 -1
- package/dist/cjs/user/update-work-experience.schema.js +0 -13
- package/dist/cjs/user/user-additional-info/index.d.ts +0 -2
- package/dist/cjs/user/user-additional-info/index.d.ts.map +0 -1
- package/dist/cjs/user/user-additional-info/index.js +0 -17
- package/dist/cjs/user/user-additional-info/user-additional-info.schema.d.ts +0 -12
- package/dist/cjs/user/user-additional-info/user-additional-info.schema.d.ts.map +0 -1
- package/dist/cjs/user/user-additional-info/user-additional-info.schema.js +0 -14
- package/dist/cjs/user/user-certification/index.d.ts +0 -2
- package/dist/cjs/user/user-certification/index.d.ts.map +0 -1
- package/dist/cjs/user/user-certification/index.js +0 -17
- package/dist/cjs/user/user-certification/user-certification.schema.d.ts +0 -20
- package/dist/cjs/user/user-certification/user-certification.schema.d.ts.map +0 -1
- package/dist/cjs/user/user-certification/user-certification.schema.js +0 -24
- package/dist/cjs/user/user-completeness.schema.d.ts +0 -136
- package/dist/cjs/user/user-completeness.schema.d.ts.map +0 -1
- package/dist/cjs/user/user-completeness.schema.js +0 -22
- package/dist/cjs/user/user-interest/index.d.ts +0 -2
- package/dist/cjs/user/user-interest/index.d.ts.map +0 -1
- package/dist/cjs/user/user-interest/index.js +0 -17
- package/dist/cjs/user/user-interest/user-interest.schema.d.ts +0 -12
- package/dist/cjs/user/user-interest/user-interest.schema.d.ts.map +0 -1
- package/dist/cjs/user/user-interest/user-interest.schema.js +0 -10
- package/dist/cjs/user/user-language/index.d.ts +0 -2
- package/dist/cjs/user/user-language/index.d.ts.map +0 -1
- package/dist/cjs/user/user-language/index.js +0 -17
- package/dist/cjs/user/user-language/user-language.schema.d.ts +0 -16
- package/dist/cjs/user/user-language/user-language.schema.d.ts.map +0 -1
- package/dist/cjs/user/user-language/user-language.schema.js +0 -24
- package/dist/cjs/user/user-skill/index.d.ts +0 -2
- package/dist/cjs/user/user-skill/index.d.ts.map +0 -1
- package/dist/cjs/user/user-skill/index.js +0 -17
- package/dist/cjs/user/user-skill/user-skill.schema.d.ts +0 -28
- package/dist/cjs/user/user-skill/user-skill.schema.d.ts.map +0 -1
- package/dist/cjs/user/user-skill/user-skill.schema.js +0 -21
- package/dist/cjs/user/user.schema.d.ts +0 -192
- package/dist/cjs/user/user.schema.d.ts.map +0 -1
- package/dist/cjs/user/user.schema.js +0 -138
- package/dist/cjs/user/user.types.d.ts +0 -19
- package/dist/cjs/user/user.types.d.ts.map +0 -1
- package/dist/cjs/user/user.types.js +0 -2
- package/dist/cjs/user/work-experience/index.d.ts +0 -2
- package/dist/cjs/user/work-experience/index.d.ts.map +0 -1
- package/dist/cjs/user/work-experience/index.js +0 -17
- package/dist/cjs/user/work-experience/work-experience.schema.d.ts +0 -69
- package/dist/cjs/user/work-experience/work-experience.schema.d.ts.map +0 -1
- package/dist/cjs/user/work-experience/work-experience.schema.js +0 -29
- package/dist/cjs/yup-extended.d.ts +0 -41
- package/dist/cjs/yup-extended.d.ts.map +0 -1
- package/dist/cjs/yup-extended.js +0 -247
- package/dist/esm/ai/ai.types.d.ts +0 -172
- package/dist/esm/ai/ai.types.d.ts.map +0 -1
- package/dist/esm/ai/ai.types.js +0 -1
- package/dist/esm/ai/index.d.ts +0 -2
- package/dist/esm/ai/index.d.ts.map +0 -1
- package/dist/esm/ai/index.js +0 -1
- package/dist/esm/category/category.schema.d.ts +0 -8
- package/dist/esm/category/category.schema.d.ts.map +0 -1
- package/dist/esm/category/category.schema.js +0 -8
- package/dist/esm/category/index.d.ts +0 -2
- package/dist/esm/category/index.d.ts.map +0 -1
- package/dist/esm/category/index.js +0 -1
- package/dist/esm/common/common.schema.d.ts +0 -60
- package/dist/esm/common/common.schema.d.ts.map +0 -1
- package/dist/esm/common/common.schema.js +0 -57
- package/dist/esm/common/common.types.d.ts +0 -52
- package/dist/esm/common/common.types.d.ts.map +0 -1
- package/dist/esm/common/common.types.js +0 -1
- package/dist/esm/common/index.d.ts +0 -4
- package/dist/esm/common/index.d.ts.map +0 -1
- package/dist/esm/common/index.js +0 -3
- package/dist/esm/common/utils.d.ts +0 -6
- package/dist/esm/common/utils.d.ts.map +0 -1
- package/dist/esm/common/utils.js +0 -11
- package/dist/esm/constants/auth/auth.d.ts +0 -12
- package/dist/esm/constants/auth/auth.d.ts.map +0 -1
- package/dist/esm/constants/auth/auth.js +0 -14
- package/dist/esm/constants/auth/index.d.ts +0 -2
- package/dist/esm/constants/auth/index.d.ts.map +0 -1
- package/dist/esm/constants/auth/index.js +0 -1
- package/dist/esm/constants/authorization/authorization.d.ts +0 -10
- package/dist/esm/constants/authorization/authorization.d.ts.map +0 -1
- package/dist/esm/constants/authorization/authorization.js +0 -12
- package/dist/esm/constants/authorization/index.d.ts +0 -2
- package/dist/esm/constants/authorization/index.d.ts.map +0 -1
- package/dist/esm/constants/authorization/index.js +0 -1
- package/dist/esm/constants/campaign/campaign.d.ts +0 -8
- package/dist/esm/constants/campaign/campaign.d.ts.map +0 -1
- package/dist/esm/constants/campaign/campaign.js +0 -9
- package/dist/esm/constants/campaign/index.d.ts +0 -2
- package/dist/esm/constants/campaign/index.d.ts.map +0 -1
- package/dist/esm/constants/campaign/index.js +0 -1
- package/dist/esm/constants/common/common.d.ts +0 -30
- package/dist/esm/constants/common/common.d.ts.map +0 -1
- package/dist/esm/constants/common/common.js +0 -33
- package/dist/esm/constants/common/index.d.ts +0 -2
- package/dist/esm/constants/common/index.d.ts.map +0 -1
- package/dist/esm/constants/common/index.js +0 -1
- package/dist/esm/constants/database/database.d.ts +0 -370
- package/dist/esm/constants/database/database.d.ts.map +0 -1
- package/dist/esm/constants/database/database.js +0 -372
- package/dist/esm/constants/database/index.d.ts +0 -2
- package/dist/esm/constants/database/index.d.ts.map +0 -1
- package/dist/esm/constants/database/index.js +0 -1
- package/dist/esm/constants/education/education.d.ts +0 -19
- package/dist/esm/constants/education/education.d.ts.map +0 -1
- package/dist/esm/constants/education/education.js +0 -21
- package/dist/esm/constants/education/index.d.ts +0 -2
- package/dist/esm/constants/education/index.d.ts.map +0 -1
- package/dist/esm/constants/education/index.js +0 -1
- package/dist/esm/constants/file/file.d.ts +0 -31
- package/dist/esm/constants/file/file.d.ts.map +0 -1
- package/dist/esm/constants/file/file.js +0 -36
- package/dist/esm/constants/file/index.d.ts +0 -2
- package/dist/esm/constants/file/index.d.ts.map +0 -1
- package/dist/esm/constants/file/index.js +0 -1
- package/dist/esm/constants/http/http.d.ts +0 -147
- package/dist/esm/constants/http/http.d.ts.map +0 -1
- package/dist/esm/constants/http/http.js +0 -150
- package/dist/esm/constants/http/index.d.ts +0 -2
- package/dist/esm/constants/http/index.d.ts.map +0 -1
- package/dist/esm/constants/http/index.js +0 -1
- package/dist/esm/constants/index.d.ts +0 -17
- package/dist/esm/constants/index.d.ts.map +0 -1
- package/dist/esm/constants/index.js +0 -33
- package/dist/esm/constants/job/index.d.ts +0 -2
- package/dist/esm/constants/job/index.d.ts.map +0 -1
- package/dist/esm/constants/job/index.js +0 -1
- package/dist/esm/constants/job/job.d.ts +0 -53
- package/dist/esm/constants/job/job.d.ts.map +0 -1
- package/dist/esm/constants/job/job.js +0 -59
- package/dist/esm/constants/notification/index.d.ts +0 -2
- package/dist/esm/constants/notification/index.d.ts.map +0 -1
- package/dist/esm/constants/notification/index.js +0 -1
- package/dist/esm/constants/notification/notification.d.ts +0 -15
- package/dist/esm/constants/notification/notification.d.ts.map +0 -1
- package/dist/esm/constants/notification/notification.js +0 -16
- package/dist/esm/constants/page/index.d.ts +0 -2
- package/dist/esm/constants/page/index.d.ts.map +0 -1
- package/dist/esm/constants/page/index.js +0 -1
- package/dist/esm/constants/page/page.d.ts +0 -8
- package/dist/esm/constants/page/page.d.ts.map +0 -1
- package/dist/esm/constants/page/page.js +0 -9
- package/dist/esm/constants/report/index.d.ts +0 -2
- package/dist/esm/constants/report/index.d.ts.map +0 -1
- package/dist/esm/constants/report/index.js +0 -1
- package/dist/esm/constants/report/report.d.ts +0 -18
- package/dist/esm/constants/report/report.d.ts.map +0 -1
- package/dist/esm/constants/report/report.js +0 -20
- package/dist/esm/constants/reward/index.d.ts +0 -2
- package/dist/esm/constants/reward/index.d.ts.map +0 -1
- package/dist/esm/constants/reward/index.js +0 -1
- package/dist/esm/constants/reward/reward.d.ts +0 -37
- package/dist/esm/constants/reward/reward.d.ts.map +0 -1
- package/dist/esm/constants/reward/reward.js +0 -40
- package/dist/esm/constants/user/index.d.ts +0 -2
- package/dist/esm/constants/user/index.d.ts.map +0 -1
- package/dist/esm/constants/user/index.js +0 -1
- package/dist/esm/constants/user/user.d.ts +0 -78
- package/dist/esm/constants/user/user.d.ts.map +0 -1
- package/dist/esm/constants/user/user.js +0 -84
- package/dist/esm/constants/validation/index.d.ts +0 -2
- package/dist/esm/constants/validation/index.d.ts.map +0 -1
- package/dist/esm/constants/validation/index.js +0 -1
- package/dist/esm/constants/validation/validation.d.ts +0 -27
- package/dist/esm/constants/validation/validation.d.ts.map +0 -1
- package/dist/esm/constants/validation/validation.js +0 -28
- package/dist/esm/constants/webhook/index.d.ts +0 -2
- package/dist/esm/constants/webhook/index.d.ts.map +0 -1
- package/dist/esm/constants/webhook/index.js +0 -1
- package/dist/esm/constants/webhook/webhook.d.ts +0 -11
- package/dist/esm/constants/webhook/webhook.d.ts.map +0 -1
- package/dist/esm/constants/webhook/webhook.js +0 -13
- package/dist/esm/course/course.constant.d.ts +0 -6
- package/dist/esm/course/course.constant.d.ts.map +0 -1
- package/dist/esm/course/course.constant.js +0 -6
- package/dist/esm/course/course.schema.d.ts +0 -11
- package/dist/esm/course/course.schema.d.ts.map +0 -1
- package/dist/esm/course/course.schema.js +0 -13
- package/dist/esm/course/index.d.ts +0 -3
- package/dist/esm/course/index.d.ts.map +0 -1
- package/dist/esm/course/index.js +0 -2
- package/dist/esm/design-and-font/design-and-font.schema.d.ts +0 -46
- package/dist/esm/design-and-font/design-and-font.schema.d.ts.map +0 -1
- package/dist/esm/design-and-font/design-and-font.schema.js +0 -25
- package/dist/esm/design-and-font/index.d.ts +0 -2
- package/dist/esm/design-and-font/index.d.ts.map +0 -1
- package/dist/esm/design-and-font/index.js +0 -1
- package/dist/esm/designation/designation.schema.d.ts +0 -8
- package/dist/esm/designation/designation.schema.d.ts.map +0 -1
- package/dist/esm/designation/designation.schema.js +0 -8
- package/dist/esm/designation/index.d.ts +0 -2
- package/dist/esm/designation/index.d.ts.map +0 -1
- package/dist/esm/designation/index.js +0 -1
- package/dist/esm/duration/duration.schema.d.ts +0 -19
- package/dist/esm/duration/duration.schema.d.ts.map +0 -1
- package/dist/esm/duration/duration.schema.js +0 -31
- package/dist/esm/duration/index.d.ts +0 -2
- package/dist/esm/duration/index.d.ts.map +0 -1
- package/dist/esm/duration/index.js +0 -1
- package/dist/esm/field-of-study/field-of-study.schema.d.ts +0 -8
- package/dist/esm/field-of-study/field-of-study.schema.d.ts.map +0 -1
- package/dist/esm/field-of-study/field-of-study.schema.js +0 -8
- package/dist/esm/field-of-study/index.d.ts +0 -2
- package/dist/esm/field-of-study/index.d.ts.map +0 -1
- package/dist/esm/field-of-study/index.js +0 -1
- package/dist/esm/filter/filter.schema.d.ts +0 -8
- package/dist/esm/filter/filter.schema.d.ts.map +0 -1
- package/dist/esm/filter/filter.schema.js +0 -20
- package/dist/esm/filter/index.d.ts +0 -2
- package/dist/esm/filter/index.d.ts.map +0 -1
- package/dist/esm/filter/index.js +0 -1
- package/dist/esm/group/group-membership.schema.d.ts +0 -19
- package/dist/esm/group/group-membership.schema.d.ts.map +0 -1
- package/dist/esm/group/group-membership.schema.js +0 -13
- package/dist/esm/group/group.schema.d.ts +0 -109
- package/dist/esm/group/group.schema.d.ts.map +0 -1
- package/dist/esm/group/group.schema.js +0 -89
- package/dist/esm/group/index.d.ts +0 -3
- package/dist/esm/group/index.d.ts.map +0 -1
- package/dist/esm/group/index.js +0 -2
- package/dist/esm/index.d.ts +0 -30
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -29
- package/dist/esm/interfaces.index.d.ts +0 -2410
- package/dist/esm/interfaces.index.d.ts.map +0 -1
- package/dist/esm/interfaces.index.js +0 -1
- package/dist/esm/job/index.d.ts +0 -5
- package/dist/esm/job/index.d.ts.map +0 -1
- package/dist/esm/job/index.js +0 -4
- package/dist/esm/job/job.constant.d.ts +0 -9
- package/dist/esm/job/job.constant.d.ts.map +0 -1
- package/dist/esm/job/job.constant.js +0 -9
- package/dist/esm/job/job.schema.d.ts +0 -281
- package/dist/esm/job/job.schema.d.ts.map +0 -1
- package/dist/esm/job/job.schema.js +0 -408
- package/dist/esm/job/job.types.d.ts +0 -13
- package/dist/esm/job/job.types.d.ts.map +0 -1
- package/dist/esm/job/job.types.js +0 -1
- package/dist/esm/job/utils.d.ts +0 -4
- package/dist/esm/job/utils.d.ts.map +0 -1
- package/dist/esm/job/utils.js +0 -13
- package/dist/esm/job-application/index.d.ts +0 -3
- package/dist/esm/job-application/index.d.ts.map +0 -1
- package/dist/esm/job-application/index.js +0 -2
- package/dist/esm/job-application/job-application.constant.d.ts +0 -20
- package/dist/esm/job-application/job-application.constant.d.ts.map +0 -1
- package/dist/esm/job-application/job-application.constant.js +0 -35
- package/dist/esm/job-application/job-application.schema.d.ts +0 -248
- package/dist/esm/job-application/job-application.schema.d.ts.map +0 -1
- package/dist/esm/job-application/job-application.schema.js +0 -112
- package/dist/esm/job-role-template/index.d.ts +0 -2
- package/dist/esm/job-role-template/index.d.ts.map +0 -1
- package/dist/esm/job-role-template/index.js +0 -1
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +0 -189
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +0 -1
- package/dist/esm/job-role-template/job-role-template.schema.js +0 -10
- package/dist/esm/language/index.d.ts +0 -2
- package/dist/esm/language/index.d.ts.map +0 -1
- package/dist/esm/language/index.js +0 -1
- package/dist/esm/language/language.schema.d.ts +0 -8
- package/dist/esm/language/language.schema.d.ts.map +0 -1
- package/dist/esm/language/language.schema.js +0 -17
- package/dist/esm/location/index.d.ts +0 -2
- package/dist/esm/location/index.d.ts.map +0 -1
- package/dist/esm/location/index.js +0 -1
- package/dist/esm/location/location.schema.d.ts +0 -26
- package/dist/esm/location/location.schema.d.ts.map +0 -1
- package/dist/esm/location/location.schema.js +0 -13
- package/dist/esm/page/company/company.schema.d.ts +0 -21
- package/dist/esm/page/company/company.schema.d.ts.map +0 -1
- package/dist/esm/page/company/company.schema.js +0 -15
- package/dist/esm/page/company/index.d.ts +0 -3
- package/dist/esm/page/company/index.d.ts.map +0 -1
- package/dist/esm/page/company/index.js +0 -2
- package/dist/esm/page/company/perks-and-benefits/index.d.ts +0 -2
- package/dist/esm/page/company/perks-and-benefits/index.d.ts.map +0 -1
- package/dist/esm/page/company/perks-and-benefits/index.js +0 -1
- package/dist/esm/page/company/perks-and-benefits/perks-and-benefits.schema.d.ts +0 -19
- package/dist/esm/page/company/perks-and-benefits/perks-and-benefits.schema.d.ts.map +0 -1
- package/dist/esm/page/company/perks-and-benefits/perks-and-benefits.schema.js +0 -10
- package/dist/esm/page/index.d.ts +0 -5
- package/dist/esm/page/index.d.ts.map +0 -1
- package/dist/esm/page/index.js +0 -4
- package/dist/esm/page/institute/index.d.ts +0 -2
- package/dist/esm/page/institute/index.d.ts.map +0 -1
- package/dist/esm/page/institute/index.js +0 -1
- package/dist/esm/page/institute/institute.schema.d.ts +0 -2
- package/dist/esm/page/institute/institute.schema.d.ts.map +0 -1
- package/dist/esm/page/page-location/index.d.ts +0 -2
- package/dist/esm/page/page-location/index.d.ts.map +0 -1
- package/dist/esm/page/page-location/index.js +0 -1
- package/dist/esm/page/page-location/page-location.schema.d.ts +0 -22
- package/dist/esm/page/page-location/page-location.schema.d.ts.map +0 -1
- package/dist/esm/page/page-location/page-location.schema.js +0 -18
- package/dist/esm/page/page.constant.d.ts +0 -23
- package/dist/esm/page/page.constant.d.ts.map +0 -1
- package/dist/esm/page/page.constant.js +0 -33
- package/dist/esm/page/page.schema.d.ts +0 -96
- package/dist/esm/page/page.schema.d.ts.map +0 -1
- package/dist/esm/page/page.schema.js +0 -70
- package/dist/esm/pagination/index.d.ts +0 -3
- package/dist/esm/pagination/index.d.ts.map +0 -1
- package/dist/esm/pagination/index.js +0 -2
- package/dist/esm/pagination/pagination.constant.d.ts +0 -5
- package/dist/esm/pagination/pagination.constant.d.ts.map +0 -1
- package/dist/esm/pagination/pagination.constant.js +0 -10
- package/dist/esm/pagination/pagination.schema.d.ts +0 -18
- package/dist/esm/pagination/pagination.schema.d.ts.map +0 -1
- package/dist/esm/pagination/pagination.schema.js +0 -12
- package/dist/esm/phone/index.d.ts +0 -2
- package/dist/esm/phone/index.d.ts.map +0 -1
- package/dist/esm/phone/index.js +0 -1
- package/dist/esm/phone/mobile.schema.d.ts +0 -13
- package/dist/esm/phone/mobile.schema.d.ts.map +0 -1
- package/dist/esm/phone/mobile.schema.js +0 -14
- package/dist/esm/question/choice-question.schema.d.ts +0 -42
- package/dist/esm/question/choice-question.schema.d.ts.map +0 -1
- package/dist/esm/question/choice-question.schema.js +0 -139
- package/dist/esm/question/index.d.ts +0 -6
- package/dist/esm/question/index.d.ts.map +0 -1
- package/dist/esm/question/index.js +0 -5
- package/dist/esm/question/input-question.schema.d.ts +0 -27
- package/dist/esm/question/input-question.schema.d.ts.map +0 -1
- package/dist/esm/question/input-question.schema.js +0 -19
- package/dist/esm/question/question.constant.d.ts +0 -12
- package/dist/esm/question/question.constant.d.ts.map +0 -1
- package/dist/esm/question/question.constant.js +0 -13
- package/dist/esm/question/question.schema.d.ts +0 -24
- package/dist/esm/question/question.schema.d.ts.map +0 -1
- package/dist/esm/question/question.schema.js +0 -19
- package/dist/esm/question/read-and-acknowledge.schema.d.ts +0 -30
- package/dist/esm/question/read-and-acknowledge.schema.d.ts.map +0 -1
- package/dist/esm/question/read-and-acknowledge.schema.js +0 -17
- package/dist/esm/recruiter-job-description/index.d.ts +0 -2
- package/dist/esm/recruiter-job-description/index.d.ts.map +0 -1
- package/dist/esm/recruiter-job-description/index.js +0 -1
- package/dist/esm/recruiter-job-description/recruiter-job-description.schema.d.ts +0 -28
- package/dist/esm/recruiter-job-description/recruiter-job-description.schema.d.ts.map +0 -1
- package/dist/esm/recruiter-job-description/recruiter-job-description.schema.js +0 -35
- package/dist/esm/resume/index.d.ts +0 -3
- package/dist/esm/resume/index.d.ts.map +0 -1
- package/dist/esm/resume/index.js +0 -2
- package/dist/esm/resume/resume.constant.d.ts +0 -36
- package/dist/esm/resume/resume.constant.d.ts.map +0 -1
- package/dist/esm/resume/resume.constant.js +0 -39
- package/dist/esm/resume/resume.schema.d.ts +0 -532
- package/dist/esm/resume/resume.schema.d.ts.map +0 -1
- package/dist/esm/resume/resume.schema.js +0 -221
- package/dist/esm/skill/index.d.ts +0 -2
- package/dist/esm/skill/index.d.ts.map +0 -1
- package/dist/esm/skill/index.js +0 -1
- package/dist/esm/skill/skill.schema.d.ts +0 -28
- package/dist/esm/skill/skill.schema.d.ts.map +0 -1
- package/dist/esm/skill/skill.schema.js +0 -18
- package/dist/esm/social-account/index.d.ts +0 -2
- package/dist/esm/social-account/index.d.ts.map +0 -1
- package/dist/esm/social-account/index.js +0 -1
- package/dist/esm/social-account/social-account.schema.d.ts +0 -12
- package/dist/esm/social-account/social-account.schema.d.ts.map +0 -1
- package/dist/esm/social-account/social-account.schema.js +0 -15
- package/dist/esm/subscription/index.d.ts +0 -3
- package/dist/esm/subscription/index.d.ts.map +0 -1
- package/dist/esm/subscription/index.js +0 -2
- package/dist/esm/subscription/subscription.constant.d.ts +0 -19
- package/dist/esm/subscription/subscription.constant.d.ts.map +0 -1
- package/dist/esm/subscription/subscription.constant.js +0 -21
- package/dist/esm/subscription/subscription.schema.d.ts +0 -35
- package/dist/esm/subscription/subscription.schema.d.ts.map +0 -1
- package/dist/esm/subscription/subscription.schema.js +0 -29
- package/dist/esm/uploaded-file/index.d.ts +0 -2
- package/dist/esm/uploaded-file/index.d.ts.map +0 -1
- package/dist/esm/uploaded-file/index.js +0 -1
- package/dist/esm/uploaded-file/uploaded-file.schema.d.ts +0 -16
- package/dist/esm/uploaded-file/uploaded-file.schema.d.ts.map +0 -1
- package/dist/esm/uploaded-file/uploaded-file.schema.js +0 -12
- package/dist/esm/user/create-user.schema.d.ts +0 -15
- package/dist/esm/user/create-user.schema.d.ts.map +0 -1
- package/dist/esm/user/create-user.schema.js +0 -11
- package/dist/esm/user/education/education.schema.d.ts +0 -73
- package/dist/esm/user/education/education.schema.d.ts.map +0 -1
- package/dist/esm/user/education/education.schema.js +0 -61
- package/dist/esm/user/education/index.d.ts +0 -2
- package/dist/esm/user/education/index.d.ts.map +0 -1
- package/dist/esm/user/education/index.js +0 -1
- package/dist/esm/user/general-detail/general-detail.schema.d.ts +0 -53
- package/dist/esm/user/general-detail/general-detail.schema.d.ts.map +0 -1
- package/dist/esm/user/general-detail/general-detail.schema.js +0 -41
- package/dist/esm/user/general-detail/index.d.ts +0 -2
- package/dist/esm/user/general-detail/index.d.ts.map +0 -1
- package/dist/esm/user/general-detail/index.js +0 -1
- package/dist/esm/user/index.d.ts +0 -24
- package/dist/esm/user/index.d.ts.map +0 -1
- package/dist/esm/user/index.js +0 -23
- package/dist/esm/user/project/index.d.ts +0 -2
- package/dist/esm/user/project/index.d.ts.map +0 -1
- package/dist/esm/user/project/index.js +0 -1
- package/dist/esm/user/project/project.schema.d.ts +0 -18
- package/dist/esm/user/project/project.schema.d.ts.map +0 -1
- package/dist/esm/user/project/project.schema.js +0 -24
- package/dist/esm/user/update-additional-info.schema.d.ts +0 -12
- package/dist/esm/user/update-additional-info.schema.d.ts.map +0 -1
- package/dist/esm/user/update-additional-info.schema.js +0 -10
- package/dist/esm/user/update-certification.schema.d.ts +0 -18
- package/dist/esm/user/update-certification.schema.d.ts.map +0 -1
- package/dist/esm/user/update-certification.schema.js +0 -10
- package/dist/esm/user/update-education.schema.d.ts +0 -43
- package/dist/esm/user/update-education.schema.d.ts.map +0 -1
- package/dist/esm/user/update-education.schema.js +0 -13
- package/dist/esm/user/update-interest.schema.d.ts +0 -12
- package/dist/esm/user/update-interest.schema.d.ts.map +0 -1
- package/dist/esm/user/update-interest.schema.js +0 -10
- package/dist/esm/user/update-language.schema.d.ts +0 -14
- package/dist/esm/user/update-language.schema.d.ts.map +0 -1
- package/dist/esm/user/update-language.schema.js +0 -10
- package/dist/esm/user/update-project.schema.d.ts +0 -17
- package/dist/esm/user/update-project.schema.d.ts.map +0 -1
- package/dist/esm/user/update-project.schema.js +0 -10
- package/dist/esm/user/update-skill.schema.d.ts +0 -18
- package/dist/esm/user/update-skill.schema.d.ts.map +0 -1
- package/dist/esm/user/update-skill.schema.js +0 -10
- package/dist/esm/user/update-social-account.schema.d.ts +0 -12
- package/dist/esm/user/update-social-account.schema.d.ts.map +0 -1
- package/dist/esm/user/update-social-account.schema.js +0 -10
- package/dist/esm/user/update-user.schema.d.ts +0 -19
- package/dist/esm/user/update-user.schema.d.ts.map +0 -1
- package/dist/esm/user/update-user.schema.js +0 -13
- package/dist/esm/user/update-work-experience.schema.d.ts +0 -38
- package/dist/esm/user/update-work-experience.schema.d.ts.map +0 -1
- package/dist/esm/user/update-work-experience.schema.js +0 -10
- package/dist/esm/user/user-additional-info/index.d.ts +0 -2
- package/dist/esm/user/user-additional-info/index.d.ts.map +0 -1
- package/dist/esm/user/user-additional-info/index.js +0 -1
- package/dist/esm/user/user-additional-info/user-additional-info.schema.d.ts +0 -12
- package/dist/esm/user/user-additional-info/user-additional-info.schema.d.ts.map +0 -1
- package/dist/esm/user/user-additional-info/user-additional-info.schema.js +0 -11
- package/dist/esm/user/user-certification/index.d.ts +0 -2
- package/dist/esm/user/user-certification/index.d.ts.map +0 -1
- package/dist/esm/user/user-certification/index.js +0 -1
- package/dist/esm/user/user-certification/user-certification.schema.d.ts +0 -20
- package/dist/esm/user/user-certification/user-certification.schema.d.ts.map +0 -1
- package/dist/esm/user/user-certification/user-certification.schema.js +0 -21
- package/dist/esm/user/user-completeness.schema.d.ts +0 -136
- package/dist/esm/user/user-completeness.schema.d.ts.map +0 -1
- package/dist/esm/user/user-completeness.schema.js +0 -19
- package/dist/esm/user/user-interest/index.d.ts +0 -2
- package/dist/esm/user/user-interest/index.d.ts.map +0 -1
- package/dist/esm/user/user-interest/index.js +0 -1
- package/dist/esm/user/user-interest/user-interest.schema.d.ts +0 -12
- package/dist/esm/user/user-interest/user-interest.schema.d.ts.map +0 -1
- package/dist/esm/user/user-interest/user-interest.schema.js +0 -7
- package/dist/esm/user/user-language/index.d.ts +0 -2
- package/dist/esm/user/user-language/index.d.ts.map +0 -1
- package/dist/esm/user/user-language/index.js +0 -1
- package/dist/esm/user/user-language/user-language.schema.d.ts +0 -16
- package/dist/esm/user/user-language/user-language.schema.d.ts.map +0 -1
- package/dist/esm/user/user-language/user-language.schema.js +0 -21
- package/dist/esm/user/user-skill/index.d.ts +0 -2
- package/dist/esm/user/user-skill/index.d.ts.map +0 -1
- package/dist/esm/user/user-skill/index.js +0 -1
- package/dist/esm/user/user-skill/user-skill.schema.d.ts +0 -28
- package/dist/esm/user/user-skill/user-skill.schema.d.ts.map +0 -1
- package/dist/esm/user/user-skill/user-skill.schema.js +0 -18
- package/dist/esm/user/user.schema.d.ts +0 -192
- package/dist/esm/user/user.schema.d.ts.map +0 -1
- package/dist/esm/user/user.schema.js +0 -135
- package/dist/esm/user/user.types.d.ts +0 -19
- package/dist/esm/user/user.types.d.ts.map +0 -1
- package/dist/esm/user/user.types.js +0 -1
- package/dist/esm/user/work-experience/index.d.ts +0 -2
- package/dist/esm/user/work-experience/index.d.ts.map +0 -1
- package/dist/esm/user/work-experience/index.js +0 -1
- package/dist/esm/user/work-experience/work-experience.schema.d.ts +0 -69
- package/dist/esm/user/work-experience/work-experience.schema.d.ts.map +0 -1
- package/dist/esm/user/work-experience/work-experience.schema.js +0 -26
- package/dist/esm/yup-extended.d.ts +0 -41
- package/dist/esm/yup-extended.d.ts.map +0 -1
- package/dist/esm/yup-extended.js +0 -225
package/dist/index.js
ADDED
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
// src/common/common.schema.ts
|
|
2
|
+
import { boolean, number, object, string } from "yup";
|
|
3
|
+
var TermsAcceptedSchema = object({
|
|
4
|
+
termsAccepted: boolean().oneOf([true], "You must accept the terms and conditions").required("You must accept the terms and conditions").default(false).label("Terms Accepted")
|
|
5
|
+
});
|
|
6
|
+
var DbDefaultSchema = object().shape({
|
|
7
|
+
shortId: string().required().max(12).label("Short ID"),
|
|
8
|
+
createdBy: string().required().label("Created By"),
|
|
9
|
+
createdAt: number().required().label("Created At"),
|
|
10
|
+
updatedBy: string().label("Updated By"),
|
|
11
|
+
updatedAt: number().optional().label("Updated At")
|
|
12
|
+
}).label("Db Default Schema").noUnknown().strict();
|
|
13
|
+
var CompletenessScoreSchema = (minScore = 50) => object().shape({
|
|
14
|
+
score: number().min(minScore).max(100).default(0).label("Score"),
|
|
15
|
+
totalSteps: number().min(0).default(0).label("Total Steps"),
|
|
16
|
+
completedSteps: number().min(0).default(0).label("Completed Steps")
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// src/common/common.constant.ts
|
|
20
|
+
var StudyType = /* @__PURE__ */ ((StudyType2) => {
|
|
21
|
+
StudyType2["FullTime"] = "full_time";
|
|
22
|
+
StudyType2["PartTime"] = "part_time";
|
|
23
|
+
StudyType2["Online"] = "online";
|
|
24
|
+
StudyType2["Distance"] = "distance";
|
|
25
|
+
StudyType2["Other"] = "other";
|
|
26
|
+
return StudyType2;
|
|
27
|
+
})(StudyType || {});
|
|
28
|
+
var SupportedStudyTypes = Object.values(StudyType);
|
|
29
|
+
var EducationLevel = /* @__PURE__ */ ((EducationLevel2) => {
|
|
30
|
+
EducationLevel2["Undergraduate"] = "undergraduate";
|
|
31
|
+
EducationLevel2["Diploma"] = "diploma";
|
|
32
|
+
EducationLevel2["Bachelor"] = "bachelor";
|
|
33
|
+
EducationLevel2["Master"] = "master";
|
|
34
|
+
EducationLevel2["Doctoral"] = "doctoral";
|
|
35
|
+
EducationLevel2["NoFormalEducation"] = "no_formal_education";
|
|
36
|
+
EducationLevel2["Unspecified"] = "unspecified";
|
|
37
|
+
return EducationLevel2;
|
|
38
|
+
})(EducationLevel || {});
|
|
39
|
+
var SupportedEducationLevels = Object.values(EducationLevel);
|
|
40
|
+
var ExperienceLevel = /* @__PURE__ */ ((ExperienceLevel2) => {
|
|
41
|
+
ExperienceLevel2["Executive"] = "executive";
|
|
42
|
+
ExperienceLevel2["Director"] = "director";
|
|
43
|
+
ExperienceLevel2["Senior"] = "senior";
|
|
44
|
+
ExperienceLevel2["MidSenior"] = "mid_senior";
|
|
45
|
+
ExperienceLevel2["Associate"] = "associate";
|
|
46
|
+
ExperienceLevel2["Entry"] = "entry";
|
|
47
|
+
ExperienceLevel2["Student"] = "student";
|
|
48
|
+
return ExperienceLevel2;
|
|
49
|
+
})(ExperienceLevel || {});
|
|
50
|
+
var SupportedExperienceLevels = Object.values(ExperienceLevel);
|
|
51
|
+
|
|
52
|
+
// src/duration/duration.schema.ts
|
|
53
|
+
import { boolean as boolean2, object as object2, ref } from "yup";
|
|
54
|
+
|
|
55
|
+
// src/extensions/date-string.extension.ts
|
|
56
|
+
import dayjs from "dayjs";
|
|
57
|
+
import { MixedSchema } from "yup";
|
|
58
|
+
var DateStringSchema = class extends MixedSchema {
|
|
59
|
+
constructor() {
|
|
60
|
+
super({
|
|
61
|
+
type: "mixed",
|
|
62
|
+
check: (value) => this.isValidDateString(value)
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
isValidDateString(value) {
|
|
66
|
+
return dayjs(value).isValid();
|
|
67
|
+
}
|
|
68
|
+
format(format, message = "Invalid date format") {
|
|
69
|
+
return this.test("format", message, function(value) {
|
|
70
|
+
const { path, createError } = this;
|
|
71
|
+
if (value && !dayjs(value, format, true).isValid()) {
|
|
72
|
+
return createError({ path, message });
|
|
73
|
+
}
|
|
74
|
+
return true;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Add min date validation method
|
|
78
|
+
min(minDate, message = "Date is too early") {
|
|
79
|
+
return this.test("min", message, function(value) {
|
|
80
|
+
const { path, createError, parent } = this;
|
|
81
|
+
const resolvedMinDate = typeof minDate === "object" ? minDate.getter(parent) : minDate;
|
|
82
|
+
if (value && dayjs(value).isBefore(dayjs(resolvedMinDate))) {
|
|
83
|
+
return createError({ path, message });
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
max(maxDate, message = "Date is too late") {
|
|
89
|
+
return this.test("max", message, function(value) {
|
|
90
|
+
const { path, createError, parent } = this;
|
|
91
|
+
const resolvedMaxDate = typeof maxDate === "object" ? maxDate.getter(parent) : maxDate;
|
|
92
|
+
if (value && dayjs(value).isAfter(dayjs(resolvedMaxDate))) {
|
|
93
|
+
return createError({ path, message });
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
function dateString() {
|
|
100
|
+
return new DateStringSchema();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// src/duration/duration.schema.ts
|
|
104
|
+
var DurationSchema = (options) => {
|
|
105
|
+
const { startKey = "startDate", endKey = "endDate", format } = options || {};
|
|
106
|
+
const startLabel = options?.startLabel || startKey;
|
|
107
|
+
const endLabel = options?.endLabel || endKey;
|
|
108
|
+
return object2().shape({
|
|
109
|
+
[startKey]: dateString().format(format, `${startLabel} must be in the format ${format}`).required(`${startLabel} is required`).typeError(`${startLabel} must be a valid date`),
|
|
110
|
+
[endKey]: dateString().format(format, `${endLabel} must be in the format ${format}`).when("isActive", {
|
|
111
|
+
is: (val) => Boolean(val) === false,
|
|
112
|
+
then: (schema) => schema.typeError(`${endLabel} must be a valid date`).min(ref(startKey), `${endLabel} must be after ${startKey}`).required(`${endLabel} is required`),
|
|
113
|
+
otherwise: (schema) => schema.nullable().default(null).label(endLabel)
|
|
114
|
+
// .test(
|
|
115
|
+
// "notAllowed",
|
|
116
|
+
// `${endLabel} must not be present when isActive is true`,
|
|
117
|
+
// (value) => !value
|
|
118
|
+
// ),ccc
|
|
119
|
+
}),
|
|
120
|
+
isActive: boolean2().optional().default(false).typeError("isActive must be a boolean value")
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// src/group/group.schema.ts
|
|
125
|
+
import { array, boolean as boolean3, mixed, number as number2, object as object3, string as string2 } from "yup";
|
|
126
|
+
|
|
127
|
+
// src/group/group.constant.ts
|
|
128
|
+
var GroupVisibility = /* @__PURE__ */ ((GroupVisibility2) => {
|
|
129
|
+
GroupVisibility2["Public"] = "public";
|
|
130
|
+
GroupVisibility2["Private"] = "private";
|
|
131
|
+
return GroupVisibility2;
|
|
132
|
+
})(GroupVisibility || {});
|
|
133
|
+
var GroupMembershipStatus = /* @__PURE__ */ ((GroupMembershipStatus2) => {
|
|
134
|
+
GroupMembershipStatus2["Pending"] = "pending";
|
|
135
|
+
GroupMembershipStatus2["Approved"] = "approved";
|
|
136
|
+
GroupMembershipStatus2["Rejected"] = "rejected";
|
|
137
|
+
return GroupMembershipStatus2;
|
|
138
|
+
})(GroupMembershipStatus || {});
|
|
139
|
+
var GroupManagedBy = /* @__PURE__ */ ((GroupManagedBy2) => {
|
|
140
|
+
GroupManagedBy2["System"] = "system";
|
|
141
|
+
GroupManagedBy2["Community"] = "community";
|
|
142
|
+
return GroupManagedBy2;
|
|
143
|
+
})(GroupManagedBy || {});
|
|
144
|
+
var GroupStatus = /* @__PURE__ */ ((GroupStatus2) => {
|
|
145
|
+
GroupStatus2["Active"] = "active";
|
|
146
|
+
GroupStatus2["Archived"] = "archived";
|
|
147
|
+
return GroupStatus2;
|
|
148
|
+
})(GroupStatus || {});
|
|
149
|
+
|
|
150
|
+
// src/group/group.schema.ts
|
|
151
|
+
var GroupTranslationSchema = object3({
|
|
152
|
+
language: string2().required("Language is required"),
|
|
153
|
+
name: string2().required("Name is required"),
|
|
154
|
+
description: string2().optional(),
|
|
155
|
+
slug: string2().optional(),
|
|
156
|
+
seo: object3({
|
|
157
|
+
description: string2().optional(),
|
|
158
|
+
keywords: array().of(string2().required()).optional()
|
|
159
|
+
}).optional()
|
|
160
|
+
});
|
|
161
|
+
var GroupSchema = object3().shape({
|
|
162
|
+
name: string2().required().min(3).max(100).label("Name"),
|
|
163
|
+
description: string2().required().min(10).max(1e3).label("Description"),
|
|
164
|
+
slug: string2().required().label("Slug"),
|
|
165
|
+
banner: string2().label("Banner"),
|
|
166
|
+
logo: object3().shape({
|
|
167
|
+
light: string2().required().label("Light Logo"),
|
|
168
|
+
dark: string2().optional().nullable().label("Dark Logo")
|
|
169
|
+
}).optional().nullable().default(null).label("Logo"),
|
|
170
|
+
isFeatured: boolean3().label("Is Featured"),
|
|
171
|
+
isDiscoverable: boolean3().default(true).label("Is Discoverable"),
|
|
172
|
+
featuredMarkets: array().of(string2()).optional().default([]).label("Featured Markets"),
|
|
173
|
+
followersCount: number2().min(0).label("Followers Count"),
|
|
174
|
+
membersCount: number2().min(0).label("Members Count"),
|
|
175
|
+
visibility: mixed().oneOf(Object.values(GroupVisibility)).default("public" /* Public */).label("Visibility"),
|
|
176
|
+
groupRules: string2().optional().label("Group Rules"),
|
|
177
|
+
countries: array().of(string2()).optional().label("Countries"),
|
|
178
|
+
filterQuery: object3().shape({
|
|
179
|
+
jobs: string2().label("Job"),
|
|
180
|
+
courses: string2().label("Course"),
|
|
181
|
+
discussions: string2().label("Discussion")
|
|
182
|
+
}).label("Filter Query"),
|
|
183
|
+
seo: object3().shape({
|
|
184
|
+
description: string2().optional().label("Description"),
|
|
185
|
+
keywords: array().of(string2()).optional().label("Keywords")
|
|
186
|
+
}).optional().label("SEO"),
|
|
187
|
+
translation: array().of(GroupTranslationSchema).optional().label("Translations"),
|
|
188
|
+
managedBy: mixed().oneOf(Object.values(GroupManagedBy)).default("community" /* Community */).label("Managed By"),
|
|
189
|
+
status: mixed().oneOf(Object.values(GroupStatus)).default("active" /* Active */).label("Status"),
|
|
190
|
+
createdAt: number2().optional().label("Created At"),
|
|
191
|
+
updatedAt: number2().optional().label("Updated At")
|
|
192
|
+
}).label("Group Schema");
|
|
193
|
+
var GroupMembershipSchema = object3({
|
|
194
|
+
groupId: string2().required().label("Group ID"),
|
|
195
|
+
userId: string2().required().label("User ID"),
|
|
196
|
+
status: mixed().oneOf(Object.values(GroupMembershipStatus)).required().label("Status"),
|
|
197
|
+
createdAt: number2().optional().label("Created At"),
|
|
198
|
+
updatedAt: number2().optional().label("Updated At")
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
// src/location/location.schema.ts
|
|
202
|
+
import { array as array2, number as number3, object as object4, string as string3 } from "yup";
|
|
203
|
+
var LocationSchema = object4({
|
|
204
|
+
placeId: string3().optional().nullable(),
|
|
205
|
+
country: string3().required(),
|
|
206
|
+
countryCode: string3().required(),
|
|
207
|
+
state: string3().optional().nullable(),
|
|
208
|
+
stateCode: string3().optional().nullable(),
|
|
209
|
+
city: string3().optional().nullable(),
|
|
210
|
+
address: string3().optional().nullable(),
|
|
211
|
+
geo: object4({
|
|
212
|
+
type: string3().oneOf(["Point"]).default("Point"),
|
|
213
|
+
coordinates: array2().of(number3().required()).length(2).required()
|
|
214
|
+
// [longitude, latitude]
|
|
215
|
+
}).required()
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
// src/page/page.schema.ts
|
|
219
|
+
import { array as array5, boolean as boolean7, date, number as number4, object as object10, string as string7 } from "yup";
|
|
220
|
+
|
|
221
|
+
// src/page/page.constant.ts
|
|
222
|
+
var PageType = /* @__PURE__ */ ((PageType2) => {
|
|
223
|
+
PageType2["Institute"] = "institute";
|
|
224
|
+
PageType2["Company"] = "company";
|
|
225
|
+
return PageType2;
|
|
226
|
+
})(PageType || {});
|
|
227
|
+
var SupportedPageTypes = Object.values(PageType);
|
|
228
|
+
var PageStatus = /* @__PURE__ */ ((PageStatus2) => {
|
|
229
|
+
PageStatus2["Published"] = "published";
|
|
230
|
+
PageStatus2["Draft"] = "draft";
|
|
231
|
+
PageStatus2["Suspended"] = "suspended";
|
|
232
|
+
PageStatus2["UnderReview"] = "under-review";
|
|
233
|
+
PageStatus2["Archived"] = "archived";
|
|
234
|
+
PageStatus2["Unpublished"] = "unpublished";
|
|
235
|
+
PageStatus2["Rejected"] = "rejected";
|
|
236
|
+
return PageStatus2;
|
|
237
|
+
})(PageStatus || {});
|
|
238
|
+
var SupportedPageStatuses = Object.values(PageStatus);
|
|
239
|
+
var GeneraDetailFields = [
|
|
240
|
+
"name",
|
|
241
|
+
"about",
|
|
242
|
+
"website",
|
|
243
|
+
"headline",
|
|
244
|
+
"categories",
|
|
245
|
+
"yearFounded",
|
|
246
|
+
"employeeCount",
|
|
247
|
+
"logo"
|
|
248
|
+
];
|
|
249
|
+
var ContactTypes = /* @__PURE__ */ ((ContactTypes2) => {
|
|
250
|
+
ContactTypes2["Email"] = "email";
|
|
251
|
+
ContactTypes2["Phone"] = "phone";
|
|
252
|
+
return ContactTypes2;
|
|
253
|
+
})(ContactTypes || {});
|
|
254
|
+
var SupportedContactTypes = Object.values(ContactTypes);
|
|
255
|
+
|
|
256
|
+
// src/page/page-location.schema.ts
|
|
257
|
+
import { boolean as boolean4, object as object5, string as string4 } from "yup";
|
|
258
|
+
var PageLocationSchema = object5().shape({
|
|
259
|
+
isHeadquarters: boolean4().oneOf([true, false]).default(false).label("Is Headquarters"),
|
|
260
|
+
coverImage: string4().optional().label("Cover Image"),
|
|
261
|
+
name: string4().required().label("Office Name"),
|
|
262
|
+
/* TODO: Add Location Schema to enable geo spacial search*/
|
|
263
|
+
// location: LocationSchema,
|
|
264
|
+
contact: object5().shape({
|
|
265
|
+
email: string4().email().optional().label("Email"),
|
|
266
|
+
phone: string4().optional().label("Phone"),
|
|
267
|
+
address: string4().required().label("Address")
|
|
268
|
+
})
|
|
269
|
+
}).label("PageLocationSchema");
|
|
270
|
+
|
|
271
|
+
// src/page/institute/institute.schema.ts
|
|
272
|
+
import { object as object6 } from "yup";
|
|
273
|
+
var InstituteSchema = object6().shape({}).label("InstituteSchema");
|
|
274
|
+
|
|
275
|
+
// src/page/company/company.schema.ts
|
|
276
|
+
import { array as array4, boolean as boolean5, object as object8 } from "yup";
|
|
277
|
+
|
|
278
|
+
// src/page/company/perks-and-benefits.schema.ts
|
|
279
|
+
import { array as array3 } from "yup";
|
|
280
|
+
import { object as object7, string as string5 } from "yup";
|
|
281
|
+
var PerksAndBenefitSchema = object7().shape({
|
|
282
|
+
name: string5().trim().max(50).required().label("Name"),
|
|
283
|
+
description: string5().max(1e3).required().label("Description"),
|
|
284
|
+
category: array3().of(string5()).optional().label("Category")
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
// src/page/company/company.schema.ts
|
|
288
|
+
var CompanySchema = object8().shape({
|
|
289
|
+
equalOpportunityEmployer: boolean5().optional().label("Equal Opportunity Employer"),
|
|
290
|
+
perksAndBenefits: array4().of(PerksAndBenefitSchema).optional().label("Perks and Benefits")
|
|
291
|
+
}).noUnknown().strict().label("Company Schema");
|
|
292
|
+
|
|
293
|
+
// src/social-account/social-account.schema.ts
|
|
294
|
+
import { boolean as boolean6, object as object9, string as string6 } from "yup";
|
|
295
|
+
|
|
296
|
+
// src/social-account/social-account.constant.ts
|
|
297
|
+
var SocialAccount = /* @__PURE__ */ ((SocialAccount2) => {
|
|
298
|
+
SocialAccount2["Facebook"] = "facebook";
|
|
299
|
+
SocialAccount2["Twitter"] = "twitter";
|
|
300
|
+
SocialAccount2["LinkedIn"] = "linkedin";
|
|
301
|
+
SocialAccount2["Instagram"] = "instagram";
|
|
302
|
+
SocialAccount2["YouTube"] = "youtube";
|
|
303
|
+
SocialAccount2["Pinterest"] = "pinterest";
|
|
304
|
+
SocialAccount2["Snapchat"] = "snapchat";
|
|
305
|
+
SocialAccount2["TikTok"] = "tiktok";
|
|
306
|
+
SocialAccount2["WhatsApp"] = "whatsapp";
|
|
307
|
+
SocialAccount2["Telegram"] = "telegram";
|
|
308
|
+
SocialAccount2["Reddit"] = "reddit";
|
|
309
|
+
SocialAccount2["Tumblr"] = "tumblr";
|
|
310
|
+
SocialAccount2["Medium"] = "medium";
|
|
311
|
+
SocialAccount2["Quora"] = "quora";
|
|
312
|
+
SocialAccount2["GitHub"] = "github";
|
|
313
|
+
SocialAccount2["GitLab"] = "gitlab";
|
|
314
|
+
SocialAccount2["Bitbucket"] = "bitbucket";
|
|
315
|
+
SocialAccount2["StackOverflow"] = "stackoverflow";
|
|
316
|
+
SocialAccount2["Behance"] = "behance";
|
|
317
|
+
SocialAccount2["Dribbble"] = "dribbble";
|
|
318
|
+
SocialAccount2["Vimeo"] = "vimeo";
|
|
319
|
+
SocialAccount2["Flickr"] = "flickr";
|
|
320
|
+
SocialAccount2["SoundCloud"] = "soundcloud";
|
|
321
|
+
SocialAccount2["Spotify"] = "spotify";
|
|
322
|
+
SocialAccount2["Twitch"] = "twitch";
|
|
323
|
+
SocialAccount2["Discord"] = "discord";
|
|
324
|
+
SocialAccount2["Clubhouse"] = "clubhouse";
|
|
325
|
+
SocialAccount2["Website"] = "website";
|
|
326
|
+
SocialAccount2["Other"] = "other";
|
|
327
|
+
return SocialAccount2;
|
|
328
|
+
})(SocialAccount || {});
|
|
329
|
+
var SupportedSocialAccounts = Object.values(SocialAccount);
|
|
330
|
+
|
|
331
|
+
// src/social-account/social-account.schema.ts
|
|
332
|
+
var SocialAccountSchema = object9().shape({
|
|
333
|
+
// TODO: Remove isNew — it's unused. Backend (user-social-accounts.service.ts) just strips it before saving.
|
|
334
|
+
isNew: boolean6().default(false).optional().label("Is New"),
|
|
335
|
+
type: string6().oneOf(SupportedSocialAccounts).required().label("Account Type"),
|
|
336
|
+
url: string6().required().label("URL")
|
|
337
|
+
}).noUnknown().strict().label("Social Account");
|
|
338
|
+
|
|
339
|
+
// src/page/page.schema.ts
|
|
340
|
+
var PageSchema = object10().shape({
|
|
341
|
+
id: string7().required().label("ID"),
|
|
342
|
+
shortId: string7().required().label("Short ID"),
|
|
343
|
+
name: string7().required().label("Name"),
|
|
344
|
+
headline: string7().max(100).optional().label("Headline"),
|
|
345
|
+
about: string7().required().min(100).max(1e4).label("About"),
|
|
346
|
+
website: string7().required().label("Website"),
|
|
347
|
+
slug: string7().required().label("Slug"),
|
|
348
|
+
employeeCount: string7().optional().label("Employee Count"),
|
|
349
|
+
yearFounded: string7().optional().label("Year Founded"),
|
|
350
|
+
type: string7().oneOf(SupportedPageTypes).required().label("Page Type"),
|
|
351
|
+
locations: array5().of(PageLocationSchema).optional().label("Locations"),
|
|
352
|
+
/*
|
|
353
|
+
* @deprecated
|
|
354
|
+
* 'locations' prop already has contact information, so this can be removed
|
|
355
|
+
*/
|
|
356
|
+
contacts: array5().of(
|
|
357
|
+
object10().shape({
|
|
358
|
+
type: string7().oneOf(SupportedContactTypes).required().label("Type"),
|
|
359
|
+
value: string7().required().label("Value"),
|
|
360
|
+
label: string7().optional().label("Label"),
|
|
361
|
+
isPrimary: boolean7().optional().default(false).label("Is Primary"),
|
|
362
|
+
isVerified: boolean7().optional().default(false).label("Is Verified")
|
|
363
|
+
})
|
|
364
|
+
).optional().label("Contacts"),
|
|
365
|
+
verified: date().optional().label("Verified"),
|
|
366
|
+
logo: object10().shape({
|
|
367
|
+
dark: string7().optional().nullable().label("Dark Logo"),
|
|
368
|
+
light: string7().required().label("Light Logo")
|
|
369
|
+
}).optional().nullable().default(null).label("Logo"),
|
|
370
|
+
categories: array5().of(string7().trim().required()).required().min(1).label("Categories"),
|
|
371
|
+
socialAccounts: array5().of(SocialAccountSchema).optional().label("Social Accounts"),
|
|
372
|
+
isOwner: boolean7().optional().label("Is Owner"),
|
|
373
|
+
isFeatured: boolean7().optional().default(false).label("Is Featured"),
|
|
374
|
+
featuredMarkets: array5().of(string7().required()).optional().default([]).label("Featured Markets"),
|
|
375
|
+
status: string7().oneOf(SupportedPageStatuses).required().label("Status"),
|
|
376
|
+
followersCount: number4().min(0).optional().label("Followers Count")
|
|
377
|
+
}).concat(CompanySchema).concat(InstituteSchema).concat(DbDefaultSchema).noUnknown(true).strict(true).required().label("Page Schema");
|
|
378
|
+
|
|
379
|
+
// src/pagination/pagination.schema.ts
|
|
380
|
+
import { number as number5, object as object11, string as string8 } from "yup";
|
|
381
|
+
var PaginationSchema = object11().shape({
|
|
382
|
+
page: number5().required().min(1).label("Page").default(1),
|
|
383
|
+
limit: number5().required().min(1).max(100).label("Limit").default(10),
|
|
384
|
+
sortBy: string8().notOneOf([""]).optional().label("SortBy"),
|
|
385
|
+
nextPage: string8().optional().label("Next Page Token"),
|
|
386
|
+
prevPage: string8().optional().label("Previous Page Token"),
|
|
387
|
+
sortDirection: string8().oneOf(["asc", "desc"]).optional().label("Sort Direction")
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
// src/pagination/pagination.constant.ts
|
|
391
|
+
var DefaultPaginatedResponse = {
|
|
392
|
+
results: [],
|
|
393
|
+
total: 0,
|
|
394
|
+
page: 1,
|
|
395
|
+
limit: 10
|
|
396
|
+
};
|
|
397
|
+
var DefaultPaginationOptions = {
|
|
398
|
+
page: 1,
|
|
399
|
+
limit: 10
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
// src/skill/skill.schema.ts
|
|
403
|
+
import { array as array6, object as object12, string as string9 } from "yup";
|
|
404
|
+
var SkillSchema = object12({
|
|
405
|
+
name: string9().trim().required().label("Skill Name"),
|
|
406
|
+
logo: object12({
|
|
407
|
+
light: string9().required().label("Light Logo"),
|
|
408
|
+
dark: string9().optional().nullable().label("Dark Logo")
|
|
409
|
+
}).optional().nullable().default(null).label("Logo"),
|
|
410
|
+
tags: array6().of(string9().max(50)).max(20).optional().label("Tags")
|
|
411
|
+
}).concat(DbDefaultSchema).noUnknown().strict().label("Skill");
|
|
412
|
+
|
|
413
|
+
// src/user/user.schema.ts
|
|
414
|
+
import { array as array10, number as number7, object as object24, string as string22 } from "yup";
|
|
415
|
+
|
|
416
|
+
// src/user/user.constant.ts
|
|
417
|
+
var UserRole = /* @__PURE__ */ ((UserRole2) => {
|
|
418
|
+
UserRole2["Admin"] = "admin";
|
|
419
|
+
UserRole2["Moderator"] = "moderator";
|
|
420
|
+
UserRole2["Manager"] = "manager";
|
|
421
|
+
UserRole2["Recruiter"] = "recruiter";
|
|
422
|
+
UserRole2["JobSeeker"] = "job_seeker";
|
|
423
|
+
UserRole2["Coordinator"] = "coordinator";
|
|
424
|
+
UserRole2["System"] = "system";
|
|
425
|
+
UserRole2["Normal"] = "normal";
|
|
426
|
+
return UserRole2;
|
|
427
|
+
})(UserRole || {});
|
|
428
|
+
var SupportedUserRoles = Object.values(UserRole);
|
|
429
|
+
var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
430
|
+
UserStatus2["Active"] = "active";
|
|
431
|
+
UserStatus2["Blocked"] = "blocked";
|
|
432
|
+
UserStatus2["Pending"] = "pending";
|
|
433
|
+
UserStatus2["Deleted"] = "deleted";
|
|
434
|
+
UserStatus2["MarkedForDeletion"] = "marked_for_deletion";
|
|
435
|
+
return UserStatus2;
|
|
436
|
+
})(UserStatus || {});
|
|
437
|
+
var SupportedUserStatuses = Object.values(UserStatus);
|
|
438
|
+
var DefaultUserRoles = ["normal" /* Normal */];
|
|
439
|
+
var UserProfileVisibility = /* @__PURE__ */ ((UserProfileVisibility2) => {
|
|
440
|
+
UserProfileVisibility2["Public"] = "public";
|
|
441
|
+
UserProfileVisibility2["Private"] = "private";
|
|
442
|
+
UserProfileVisibility2["Hidden"] = "hidden";
|
|
443
|
+
return UserProfileVisibility2;
|
|
444
|
+
})(UserProfileVisibility || {});
|
|
445
|
+
var SupportedUserProfileVisibilities = Object.values(
|
|
446
|
+
UserProfileVisibility
|
|
447
|
+
);
|
|
448
|
+
var UserDetailType = /* @__PURE__ */ ((UserDetailType2) => {
|
|
449
|
+
UserDetailType2["Overview"] = "overview";
|
|
450
|
+
UserDetailType2["AdditionalInfo"] = "additionalInfo";
|
|
451
|
+
UserDetailType2["General"] = "general";
|
|
452
|
+
UserDetailType2["SocialAccounts"] = "socialAccounts";
|
|
453
|
+
UserDetailType2["WorkExperiences"] = "workExperiences";
|
|
454
|
+
UserDetailType2["Educations"] = "educations";
|
|
455
|
+
UserDetailType2["Skills"] = "skills";
|
|
456
|
+
UserDetailType2["Languages"] = "languages";
|
|
457
|
+
UserDetailType2["Certifications"] = "certifications";
|
|
458
|
+
UserDetailType2["Interests"] = "interests";
|
|
459
|
+
UserDetailType2["Projects"] = "projects";
|
|
460
|
+
return UserDetailType2;
|
|
461
|
+
})(UserDetailType || {});
|
|
462
|
+
var ProficiencyLevel = /* @__PURE__ */ ((ProficiencyLevel2) => {
|
|
463
|
+
ProficiencyLevel2["BasicAwareness"] = "basic_awareness";
|
|
464
|
+
ProficiencyLevel2["Beginner"] = "beginner";
|
|
465
|
+
ProficiencyLevel2["Intermediate"] = "intermediate";
|
|
466
|
+
ProficiencyLevel2["Advanced"] = "advanced";
|
|
467
|
+
ProficiencyLevel2["Expert"] = "expert";
|
|
468
|
+
return ProficiencyLevel2;
|
|
469
|
+
})(ProficiencyLevel || {});
|
|
470
|
+
var SupportedProficiencyLevels = Object.values(ProficiencyLevel);
|
|
471
|
+
var JobSearchUrgency = /* @__PURE__ */ ((JobSearchUrgency2) => {
|
|
472
|
+
JobSearchUrgency2["Asap"] = "asap";
|
|
473
|
+
JobSearchUrgency2["WithinThreeMonths"] = "within_3_months";
|
|
474
|
+
JobSearchUrgency2["WithinSixMonths"] = "within_6_months";
|
|
475
|
+
JobSearchUrgency2["PassivelyBrowsing"] = "passively_browsing";
|
|
476
|
+
return JobSearchUrgency2;
|
|
477
|
+
})(JobSearchUrgency || {});
|
|
478
|
+
var SupportedJobSearchUrgencies = Object.values(JobSearchUrgency);
|
|
479
|
+
var ReferralSource = /* @__PURE__ */ ((ReferralSource2) => {
|
|
480
|
+
ReferralSource2["Recruiter"] = "recruiter";
|
|
481
|
+
ReferralSource2["LinkedIn"] = "linkedin";
|
|
482
|
+
ReferralSource2["TikTokInstagram"] = "tiktok_instagram";
|
|
483
|
+
ReferralSource2["Google"] = "google";
|
|
484
|
+
ReferralSource2["Reddit"] = "reddit";
|
|
485
|
+
ReferralSource2["ChatGptGemini"] = "chatgpt_gemini";
|
|
486
|
+
ReferralSource2["Friend"] = "friend";
|
|
487
|
+
ReferralSource2["Other"] = "other";
|
|
488
|
+
return ReferralSource2;
|
|
489
|
+
})(ReferralSource || {});
|
|
490
|
+
var SupportedReferralSources = Object.values(ReferralSource);
|
|
491
|
+
var SupportedSalaryCurrencies = ["USD", "EUR", "GBP", "SEK", "INR"];
|
|
492
|
+
var MIN_SALARY_LOWER_BOUND = 0;
|
|
493
|
+
var MIN_SALARY_UPPER_BOUND = 1e6;
|
|
494
|
+
|
|
495
|
+
// src/user/work-experience.schema.ts
|
|
496
|
+
import { boolean as boolean8, object as object13, string as string10 } from "yup";
|
|
497
|
+
var WorkExperienceSchema = object13().shape({
|
|
498
|
+
company: PageSchema.pick(["name", "slug", "type", "logo"]).deepPartial().concat(PageSchema.pick(["name", "type"])).required().label("Company"),
|
|
499
|
+
designation: string10().trim().required().label("Designation"),
|
|
500
|
+
duration: DurationSchema({
|
|
501
|
+
format: "YYYY-MM",
|
|
502
|
+
startLabel: "Start Date",
|
|
503
|
+
endLabel: "End Date"
|
|
504
|
+
}).required().label("Duration"),
|
|
505
|
+
description: string10().trim().max(3e3).optional().label("Description"),
|
|
506
|
+
location: LocationSchema.required().label("Location"),
|
|
507
|
+
isRemote: boolean8().oneOf([true, false]).default(false).label("Is Remote")
|
|
508
|
+
}).noUnknown().strict().label("Work Experience");
|
|
509
|
+
|
|
510
|
+
// src/user/education.schema.ts
|
|
511
|
+
import { boolean as boolean9, object as object14, string as string11 } from "yup";
|
|
512
|
+
var EducationSchema = object14({
|
|
513
|
+
institute: PageSchema.pick(["name", "slug", "type", "logo"]).deepPartial().concat(PageSchema.pick(["name", "type"])).required().label("Institute"),
|
|
514
|
+
course: string11().trim().required().label("Course"),
|
|
515
|
+
fieldOfStudy: string11().trim().required().label("Field of Study"),
|
|
516
|
+
duration: DurationSchema({
|
|
517
|
+
format: "YYYY-MM",
|
|
518
|
+
startLabel: "Start Date",
|
|
519
|
+
endLabel: "End Date"
|
|
520
|
+
}).required().label("Duration"),
|
|
521
|
+
description: string11().trim().max(3e3).optional().label("Description"),
|
|
522
|
+
isDistanceLearning: boolean9().default(false).label("Is Distance Learning"),
|
|
523
|
+
location: LocationSchema.required().label("Location"),
|
|
524
|
+
studyType: string11().oneOf(SupportedStudyTypes).trim().max(50).required().label("Study Type")
|
|
525
|
+
}).noUnknown().strict().label("Education");
|
|
526
|
+
|
|
527
|
+
// src/user/user-skill.schema.ts
|
|
528
|
+
import { object as object15, string as string12 } from "yup";
|
|
529
|
+
var UserSkillSchema = object15({
|
|
530
|
+
name: string12().required().label("Name"),
|
|
531
|
+
proficiencyLevel: string12().oneOf(SupportedProficiencyLevels).required().label("Proficiency Level"),
|
|
532
|
+
lastUsed: dateString().format("YYYY-MM").nullable().optional().label("Last Used")
|
|
533
|
+
}).noUnknown().strict().label("Skill");
|
|
534
|
+
|
|
535
|
+
// src/user/project.schema.ts
|
|
536
|
+
import { object as object16, string as string13 } from "yup";
|
|
537
|
+
var UserProjectSchema = object16({
|
|
538
|
+
name: string13().trim().max(50).required().label("Name"),
|
|
539
|
+
url: string13().optional().label("URL"),
|
|
540
|
+
description: string13().trim().min(100).max(3e3).required().label("Description"),
|
|
541
|
+
duration: DurationSchema({
|
|
542
|
+
format: "YYYY-MM",
|
|
543
|
+
startLabel: "Start Date",
|
|
544
|
+
endLabel: "End Date"
|
|
545
|
+
}).optional().nullable().label("Duration")
|
|
546
|
+
}).noUnknown().strict().label("Project");
|
|
547
|
+
|
|
548
|
+
// src/user/user-certification.schema.ts
|
|
549
|
+
import { object as object17, string as string14 } from "yup";
|
|
550
|
+
var UserCertificationSchema = object17({
|
|
551
|
+
name: string14().trim().max(100).required().label("Name"),
|
|
552
|
+
// TODO: Add validation for authority
|
|
553
|
+
authority: string14().trim().max(100).required().label("Authority"),
|
|
554
|
+
licenseNumber: string14().trim().max(50).optional().label("License Number"),
|
|
555
|
+
duration: DurationSchema({
|
|
556
|
+
format: "YYYY-MM",
|
|
557
|
+
startLabel: "Start Date",
|
|
558
|
+
endLabel: "End Date"
|
|
559
|
+
}).optional().nullable().label("Duration"),
|
|
560
|
+
url: string14().optional().label("URL")
|
|
561
|
+
}).noUnknown().strict().label("Certification");
|
|
562
|
+
|
|
563
|
+
// src/user/user-interest.schema.ts
|
|
564
|
+
import { string as string15 } from "yup";
|
|
565
|
+
var UserInterestSchema = string15().trim().required().label("Interest");
|
|
566
|
+
|
|
567
|
+
// src/user/user-language.schema.ts
|
|
568
|
+
import { object as object18, string as string16 } from "yup";
|
|
569
|
+
var UserLanguageSchema = object18({
|
|
570
|
+
name: string16().trim().required().label("Name"),
|
|
571
|
+
proficiencyLevel: string16().oneOf(SupportedProficiencyLevels).trim().max(50).required().label("Proficiency Level")
|
|
572
|
+
}).noUnknown().strict().label("Language");
|
|
573
|
+
|
|
574
|
+
// src/user/user-additional-info.schema.ts
|
|
575
|
+
import { object as object19, string as string17 } from "yup";
|
|
576
|
+
var UserAdditionalInfoSchema = object19({
|
|
577
|
+
title: string17().trim().max(60).required().label("Title"),
|
|
578
|
+
description: string17().trim().max(1e3).required().label("Description")
|
|
579
|
+
}).noUnknown().strict().label("User Additional Info");
|
|
580
|
+
|
|
581
|
+
// src/user/general-detail.schema.ts
|
|
582
|
+
import { object as object20, string as string18 } from "yup";
|
|
583
|
+
var UserGeneralDetailSchema = object20({
|
|
584
|
+
id: string18().optional().label("ID"),
|
|
585
|
+
name: object20().shape({
|
|
586
|
+
first: string18().trim().max(50).required().label("First Name"),
|
|
587
|
+
last: string18().trim().max(50).optional().label("Last Name")
|
|
588
|
+
}).required().label("Name"),
|
|
589
|
+
headline: string18().trim().max(200).optional().label("Headline"),
|
|
590
|
+
image: string18().optional().label("Image"),
|
|
591
|
+
aboutMe: string18().trim().max(3e3).optional().label("About Me"),
|
|
592
|
+
email: string18().required().label("Email"),
|
|
593
|
+
mobile: string18().nullable().optional().label("Mobile"),
|
|
594
|
+
emailVerified: string18().nullable().optional().label("Email Verified"),
|
|
595
|
+
mobileVerified: string18().nullable().optional().label("Mobile Verified"),
|
|
596
|
+
experienceLevel: string18().oneOf(SupportedExperienceLevels).required().label("Experience level"),
|
|
597
|
+
location: LocationSchema.required().label("Location"),
|
|
598
|
+
region: object20().shape({
|
|
599
|
+
country: string18().trim().required().label("Region Country"),
|
|
600
|
+
lang: string18().trim().required().label("Region Language")
|
|
601
|
+
}).optional().default(void 0).label("Region"),
|
|
602
|
+
profileVisibility: string18().oneOf(SupportedUserProfileVisibilities).default("public" /* Public */).label("Profile Visibility")
|
|
603
|
+
}).noUnknown().strict().label("General Detail");
|
|
604
|
+
|
|
605
|
+
// src/user/user-job-preferences.schema.ts
|
|
606
|
+
import { array as array7, boolean as boolean10, date as date2, number as number6, object as object21, string as string19 } from "yup";
|
|
607
|
+
var UserJobPreferencesSchema = object21({
|
|
608
|
+
/**
|
|
609
|
+
* Whether the job seeker is openly signalling availability. Surfaces the
|
|
610
|
+
* "Open to work" badge on the public profile and boosts visibility in
|
|
611
|
+
* recruiter search. Defaults to `false` — users must opt in.
|
|
612
|
+
*/
|
|
613
|
+
openToWork: boolean10().default(false).label("Open to Work"),
|
|
614
|
+
/**
|
|
615
|
+
* How urgently the user is looking for their next job. Drives match scoring
|
|
616
|
+
* and can downgrade the visibility of expired or low-relevance postings for
|
|
617
|
+
* users in `passively_browsing` mode.
|
|
618
|
+
*/
|
|
619
|
+
jobSearchUrgency: string19().oneOf(SupportedJobSearchUrgencies).required().label("Job Search Urgency"),
|
|
620
|
+
/**
|
|
621
|
+
* Locations the user wants to work in. Stores the full `LocationSchema`
|
|
622
|
+
* shape (country, city, state, geo, etc.) as returned by the locations
|
|
623
|
+
* autocomplete API.
|
|
624
|
+
*/
|
|
625
|
+
jobLocations: array7().of(LocationSchema.required().label("Job Location")).min(1, "Pick at least one preferred location.").required().label("Job Locations"),
|
|
626
|
+
/**
|
|
627
|
+
* Seniority levels the user wants jobs to be matched against. Multi-select
|
|
628
|
+
* (up to 2) for borderline candidates.
|
|
629
|
+
*
|
|
630
|
+
* Distinct from the singular `experienceLevel` field on `UserSchema`
|
|
631
|
+
* (concat'd via `UserGeneralDetailSchema`) — that field captures the user's
|
|
632
|
+
* own current seniority, while these are the levels they want to *target*.
|
|
633
|
+
* Both reuse the same `ExperienceLevel` taxonomy from `common.constant.ts`
|
|
634
|
+
* so search/match logic doesn't have to translate between two vocabularies.
|
|
635
|
+
*/
|
|
636
|
+
targetExperienceLevels: array7().of(string19().oneOf(SupportedExperienceLevels).required()).min(1, "Pick at least one experience level.").max(2, "You can select at most 2 experience levels.").required().label("Target Experience Levels"),
|
|
637
|
+
/**
|
|
638
|
+
* Specializations the user is searching for — free-form titles.
|
|
639
|
+
*
|
|
640
|
+
* Job titles are an open vocabulary (think O*NET, ESCO, LinkedIn's title
|
|
641
|
+
* graph), so the schema only enforces length bounds per entry. The wizard
|
|
642
|
+
* surfaces a curated "Popular Roles" picker for discovery, but the user
|
|
643
|
+
* can ultimately add any title; matching/normalization happens downstream.
|
|
644
|
+
*/
|
|
645
|
+
jobRoles: array7().of(string19().trim().max(120).required()).min(1, "Pick at least one role.").required().label("Job Roles"),
|
|
646
|
+
/**
|
|
647
|
+
* Minimum acceptable annual base salary, in `minSalaryCurrency`.
|
|
648
|
+
* Stored as an integer in the currency's major unit (e.g. dollars, not cents).
|
|
649
|
+
* Defaults to 0 ("any salary") rather than being optional — every job-seeker
|
|
650
|
+
* has a floor, even if it's zero.
|
|
651
|
+
*/
|
|
652
|
+
minSalary: number6().integer().min(MIN_SALARY_LOWER_BOUND).max(MIN_SALARY_UPPER_BOUND).default(0).required().label("Minimum Salary"),
|
|
653
|
+
minSalaryCurrency: string19().oneOf(SupportedSalaryCurrencies).default("USD").required().label("Minimum Salary Currency"),
|
|
654
|
+
/**
|
|
655
|
+
* Marketing-attribution capture from the final onboarding step.
|
|
656
|
+
*/
|
|
657
|
+
referralSource: string19().oneOf(SupportedReferralSources).required().label("Referral Source"),
|
|
658
|
+
/**
|
|
659
|
+
* Resumes the user has uploaded. Embedded directly on the user document
|
|
660
|
+
* (capped at 5) — they're cheap to denormalize, every wizard step that
|
|
661
|
+
* cares about them is already loading the user doc, and the cap keeps the
|
|
662
|
+
* subdoc bounded.
|
|
663
|
+
*
|
|
664
|
+
* The binary itself lives in object storage (GCS); only a stable URL/key
|
|
665
|
+
* the API can sign for download is kept here.
|
|
666
|
+
*
|
|
667
|
+
* Distinct from the `Resumes` collection used by the (currently unused)
|
|
668
|
+
* AI resume-builder flow — onboarding uploads land here, AI-built resumes
|
|
669
|
+
* live in their own collection.
|
|
670
|
+
*/
|
|
671
|
+
resumes: array7().of(
|
|
672
|
+
object21({
|
|
673
|
+
// Stable id assigned on upload — used to address a specific entry
|
|
674
|
+
// for delete / set-primary operations without exposing the GCS URL
|
|
675
|
+
// as a route key.
|
|
676
|
+
id: string19().required().label("ID"),
|
|
677
|
+
url: string19().required().label("Resume URL"),
|
|
678
|
+
filename: string19().trim().max(255).optional().label("Filename"),
|
|
679
|
+
sizeBytes: number6().integer().min(0).optional().label("Size (bytes)"),
|
|
680
|
+
mimeType: string19().trim().max(120).optional().label("MIME Type"),
|
|
681
|
+
uploadedAt: date2().required().label("Uploaded At"),
|
|
682
|
+
isPrimary: boolean10().default(false).label("Is Primary")
|
|
683
|
+
}).noUnknown().strict().label("Resume")
|
|
684
|
+
).max(5, "You can keep at most 5 resumes on file.").default([]).label("Resumes"),
|
|
685
|
+
/**
|
|
686
|
+
* Set when the user finishes the wizard's last step. Acts as the gate the
|
|
687
|
+
* onboarding hook checks to redirect users who haven't completed setup.
|
|
688
|
+
*/
|
|
689
|
+
onboardingCompletedAt: date2().nullable().optional().label("Onboarding Completed At"),
|
|
690
|
+
/**
|
|
691
|
+
* Parser-suggested values for wizard fields, written by the resume-upload
|
|
692
|
+
* flow. Every parser-derived field lands here — including profile-shaped
|
|
693
|
+
* fields (headline, aboutMe, mobile, location, experienceLevel,
|
|
694
|
+
* socialAccounts, workExperiences, educations) — so nothing reaches the
|
|
695
|
+
* top-level user document until the user confirms it on the matching
|
|
696
|
+
* wizard step. When a user clicks Next on a step, the API drops the
|
|
697
|
+
* matching key from this sub-doc so a re-uploaded resume can't overwrite
|
|
698
|
+
* confirmed answers.
|
|
699
|
+
*
|
|
700
|
+
* READ RULE — strict:
|
|
701
|
+
* `pendingPrefill.<field>` is ONLY for seeding a wizard step's form
|
|
702
|
+
* initial value (e.g. `prefer(user.<field>, user.pendingPrefill?.<field>)`
|
|
703
|
+
* in a step's `load`). It is NOT the user's actual value — it's an
|
|
704
|
+
* unconfirmed suggestion. Never substitute it as a fallback in profile
|
|
705
|
+
* pages, search/match, recommendations, public profile, dashboards, or
|
|
706
|
+
* APIs. If `user.<field>` is empty there, the correct behavior is empty,
|
|
707
|
+
* because the user has not confirmed it yet.
|
|
708
|
+
*/
|
|
709
|
+
pendingPrefill: object21({
|
|
710
|
+
headline: string19().trim().optional().label("Pending Headline"),
|
|
711
|
+
aboutMe: string19().trim().optional().label("Pending About Me"),
|
|
712
|
+
mobile: string19().trim().optional().label("Pending Mobile"),
|
|
713
|
+
location: LocationSchema.optional().default(void 0).label("Pending Location"),
|
|
714
|
+
experienceLevel: string19().oneOf(SupportedExperienceLevels).optional().label("Pending Experience Level"),
|
|
715
|
+
socialAccounts: array7().of(SocialAccountSchema.required()).optional().label("Pending Social Accounts"),
|
|
716
|
+
workExperiences: array7().of(WorkExperienceSchema.required()).optional().label("Pending Work Experiences"),
|
|
717
|
+
educations: array7().of(EducationSchema.required()).optional().label("Pending Educations")
|
|
718
|
+
}).nullable().optional().default(void 0).label("Pending Prefill")
|
|
719
|
+
}).noUnknown().strict().label("User Job Preferences Schema");
|
|
720
|
+
|
|
721
|
+
// src/user/user-recruiter-profile.schema.ts
|
|
722
|
+
import { array as array8, object as object22, string as string20 } from "yup";
|
|
723
|
+
var RecruiterPageLinkSchema = object22({
|
|
724
|
+
page: PageSchema.pick(["name", "slug", "type", "logo"]).deepPartial().concat(PageSchema.pick(["name", "type"])).required().label("Company Page"),
|
|
725
|
+
jobTitle: string20().trim().max(100).optional().label("Job Title")
|
|
726
|
+
}).noUnknown().strict().label("Recruiter Page Link");
|
|
727
|
+
var UserRecruiterProfileSchema = object22({
|
|
728
|
+
recruiterProfile: object22({
|
|
729
|
+
hiringFor: array8().of(RecruiterPageLinkSchema).default([]).label("Hiring For")
|
|
730
|
+
}).optional().default(void 0).label("Recruiter Profile")
|
|
731
|
+
}).noUnknown().strict().label("User Recruiter Profile");
|
|
732
|
+
|
|
733
|
+
// src/user/user-coordinator-profile.schema.ts
|
|
734
|
+
import { array as array9, object as object23, string as string21 } from "yup";
|
|
735
|
+
var CoordinatorPageLinkSchema = object23({
|
|
736
|
+
page: PageSchema.pick(["name", "slug", "type", "logo"]).deepPartial().concat(PageSchema.pick(["name", "type"])).required().label("Institute Page"),
|
|
737
|
+
jobTitle: string21().trim().max(100).optional().label("Job Title")
|
|
738
|
+
}).noUnknown().strict().label("Coordinator Page Link");
|
|
739
|
+
var UserCoordinatorProfileSchema = object23({
|
|
740
|
+
coordinatorProfile: object23({
|
|
741
|
+
coordinatesAt: array9().of(CoordinatorPageLinkSchema).default([]).label("Coordinates At")
|
|
742
|
+
}).optional().default(void 0).label("Coordinator Profile")
|
|
743
|
+
}).noUnknown().strict().label("User Coordinator Profile");
|
|
744
|
+
|
|
745
|
+
// src/user/user.schema.ts
|
|
746
|
+
var UserSchema = object24({
|
|
747
|
+
/**
|
|
748
|
+
* Related auth account id from auth Server (e.g. Better auth https://auth.thejob.dev)
|
|
749
|
+
*/
|
|
750
|
+
authAccountId: string22().required().label("Auth Account ID"),
|
|
751
|
+
/**
|
|
752
|
+
* Social media information about the user (e.g. LinkedIn, GitHub, etc.)
|
|
753
|
+
*/
|
|
754
|
+
socialAccounts: array10().of(SocialAccountSchema).default([]).label("Social Accounts"),
|
|
755
|
+
/**
|
|
756
|
+
* Work experience information about the user
|
|
757
|
+
*/
|
|
758
|
+
workExperiences: array10().of(WorkExperienceSchema).required().default([]).label("Work Experiences"),
|
|
759
|
+
/**
|
|
760
|
+
* Education information about the user
|
|
761
|
+
*/
|
|
762
|
+
educations: array10().of(EducationSchema).required().default([]).label("Educations"),
|
|
763
|
+
/**
|
|
764
|
+
* Skills information about the user
|
|
765
|
+
*/
|
|
766
|
+
skills: array10().of(UserSkillSchema).required().default([]).label("Skills"),
|
|
767
|
+
/**
|
|
768
|
+
* Projects information about the user
|
|
769
|
+
*/
|
|
770
|
+
projects: array10().of(UserProjectSchema).default([]).label("Projects"),
|
|
771
|
+
/**
|
|
772
|
+
* Certifications information about the user
|
|
773
|
+
*/
|
|
774
|
+
certifications: array10().of(UserCertificationSchema).default([]).label("Certifications"),
|
|
775
|
+
/**
|
|
776
|
+
* Interests information about the user.
|
|
777
|
+
*/
|
|
778
|
+
interests: array10().of(UserInterestSchema).optional().default([]).label("Interests"),
|
|
779
|
+
/**
|
|
780
|
+
* Languages information about the user
|
|
781
|
+
*/
|
|
782
|
+
languages: array10().of(UserLanguageSchema).required().default([]).label("Languages"),
|
|
783
|
+
/**
|
|
784
|
+
* Additional information about the user
|
|
785
|
+
*/
|
|
786
|
+
additionalInfo: array10().of(UserAdditionalInfoSchema).default([]).label("Additional Information"),
|
|
787
|
+
/**
|
|
788
|
+
* Status of the user account
|
|
789
|
+
*/
|
|
790
|
+
status: string22().oneOf(SupportedUserStatuses).required().label("Status"),
|
|
791
|
+
/**
|
|
792
|
+
* Roles assigned to the user
|
|
793
|
+
*/
|
|
794
|
+
roles: array10().of(string22().oneOf(SupportedUserRoles)).required().default(DefaultUserRoles).label("Roles"),
|
|
795
|
+
/**
|
|
796
|
+
* Vector embedding of the user's profile for semantic/hybrid search.
|
|
797
|
+
* Generated from a structured summary of skills, experience, education, etc.
|
|
798
|
+
* Only generated for public profiles with sufficient completeness (≥60%).
|
|
799
|
+
*/
|
|
800
|
+
embedding: object24({
|
|
801
|
+
vector: array10(number7().required()).optional().label("Embedding vector"),
|
|
802
|
+
model: string22().optional().label("Embedding model")
|
|
803
|
+
}).nullable().optional().label("Embedding")
|
|
804
|
+
}).concat(UserGeneralDetailSchema).concat(UserJobPreferencesSchema).concat(UserRecruiterProfileSchema).concat(UserCoordinatorProfileSchema).noUnknown().strict().label("User Schema");
|
|
805
|
+
|
|
806
|
+
// src/user/user-completeness.schema.ts
|
|
807
|
+
import { object as object25 } from "yup";
|
|
808
|
+
var UserCompletenessSchema = object25({
|
|
809
|
+
additionalInfo: CompletenessScoreSchema(0).label("Additional Info"),
|
|
810
|
+
// Optional
|
|
811
|
+
certifications: CompletenessScoreSchema(0).label("Certifications"),
|
|
812
|
+
// Optional
|
|
813
|
+
educations: CompletenessScoreSchema().label("Educations"),
|
|
814
|
+
general: CompletenessScoreSchema().label("General"),
|
|
815
|
+
overview: CompletenessScoreSchema().label("Overview"),
|
|
816
|
+
interests: CompletenessScoreSchema(0).label("Interests"),
|
|
817
|
+
// Optional
|
|
818
|
+
languages: CompletenessScoreSchema().label("Languages"),
|
|
819
|
+
projects: CompletenessScoreSchema(0).label("Projects"),
|
|
820
|
+
// Optional
|
|
821
|
+
skills: CompletenessScoreSchema().label("Skills"),
|
|
822
|
+
socialAccounts: CompletenessScoreSchema(0).label("Social Accounts"),
|
|
823
|
+
// Optional
|
|
824
|
+
workExperiences: CompletenessScoreSchema().label("Work Experience")
|
|
825
|
+
});
|
|
826
|
+
var StudentCompletenessSchema = UserCompletenessSchema.omit([
|
|
827
|
+
"workExperiences" /* WorkExperiences */
|
|
828
|
+
]);
|
|
829
|
+
export {
|
|
830
|
+
CompletenessScoreSchema,
|
|
831
|
+
ContactTypes,
|
|
832
|
+
CoordinatorPageLinkSchema,
|
|
833
|
+
DateStringSchema,
|
|
834
|
+
DbDefaultSchema,
|
|
835
|
+
DefaultPaginatedResponse,
|
|
836
|
+
DefaultPaginationOptions,
|
|
837
|
+
DefaultUserRoles,
|
|
838
|
+
DurationSchema,
|
|
839
|
+
EducationLevel,
|
|
840
|
+
EducationSchema,
|
|
841
|
+
ExperienceLevel,
|
|
842
|
+
GeneraDetailFields,
|
|
843
|
+
GroupManagedBy,
|
|
844
|
+
GroupMembershipSchema,
|
|
845
|
+
GroupMembershipStatus,
|
|
846
|
+
GroupSchema,
|
|
847
|
+
GroupStatus,
|
|
848
|
+
GroupTranslationSchema,
|
|
849
|
+
GroupVisibility,
|
|
850
|
+
JobSearchUrgency,
|
|
851
|
+
LocationSchema,
|
|
852
|
+
MIN_SALARY_LOWER_BOUND,
|
|
853
|
+
MIN_SALARY_UPPER_BOUND,
|
|
854
|
+
PageSchema,
|
|
855
|
+
PageStatus,
|
|
856
|
+
PageType,
|
|
857
|
+
PaginationSchema,
|
|
858
|
+
ProficiencyLevel,
|
|
859
|
+
RecruiterPageLinkSchema,
|
|
860
|
+
ReferralSource,
|
|
861
|
+
SkillSchema,
|
|
862
|
+
SocialAccount,
|
|
863
|
+
SocialAccountSchema,
|
|
864
|
+
StudentCompletenessSchema,
|
|
865
|
+
StudyType,
|
|
866
|
+
SupportedContactTypes,
|
|
867
|
+
SupportedEducationLevels,
|
|
868
|
+
SupportedExperienceLevels,
|
|
869
|
+
SupportedJobSearchUrgencies,
|
|
870
|
+
SupportedPageStatuses,
|
|
871
|
+
SupportedPageTypes,
|
|
872
|
+
SupportedProficiencyLevels,
|
|
873
|
+
SupportedReferralSources,
|
|
874
|
+
SupportedSalaryCurrencies,
|
|
875
|
+
SupportedSocialAccounts,
|
|
876
|
+
SupportedStudyTypes,
|
|
877
|
+
SupportedUserProfileVisibilities,
|
|
878
|
+
SupportedUserRoles,
|
|
879
|
+
SupportedUserStatuses,
|
|
880
|
+
TermsAcceptedSchema,
|
|
881
|
+
UserAdditionalInfoSchema,
|
|
882
|
+
UserCertificationSchema,
|
|
883
|
+
UserCompletenessSchema,
|
|
884
|
+
UserCoordinatorProfileSchema,
|
|
885
|
+
UserDetailType,
|
|
886
|
+
UserGeneralDetailSchema,
|
|
887
|
+
UserInterestSchema,
|
|
888
|
+
UserJobPreferencesSchema,
|
|
889
|
+
UserLanguageSchema,
|
|
890
|
+
UserProfileVisibility,
|
|
891
|
+
UserProjectSchema,
|
|
892
|
+
UserRecruiterProfileSchema,
|
|
893
|
+
UserRole,
|
|
894
|
+
UserSchema,
|
|
895
|
+
UserSkillSchema,
|
|
896
|
+
UserStatus,
|
|
897
|
+
WorkExperienceSchema,
|
|
898
|
+
dateString
|
|
899
|
+
};
|