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