@thejob/schema 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/interfaces.index.d.ts +6 -0
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/resume/resume.constant.d.ts +9 -8
- package/dist/cjs/resume/resume.constant.d.ts.map +1 -1
- package/dist/cjs/resume/resume.constant.js +9 -8
- package/dist/cjs/resume/resume.schema.d.ts +6 -0
- package/dist/cjs/resume/resume.schema.d.ts.map +1 -1
- package/dist/cjs/resume/resume.schema.js +12 -8
- package/dist/esm/interfaces.index.d.ts +6 -0
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/resume/resume.constant.d.ts +9 -8
- package/dist/esm/resume/resume.constant.d.ts.map +1 -1
- package/dist/esm/resume/resume.constant.js +9 -8
- package/dist/esm/resume/resume.schema.d.ts +6 -0
- package/dist/esm/resume/resume.schema.d.ts.map +1 -1
- package/dist/esm/resume/resume.schema.js +11 -7
- package/package.json +1 -1
|
@@ -21,15 +21,16 @@ export declare enum ResumeStatus {
|
|
|
21
21
|
export declare const SupportedResumeStatuses: ResumeStatus[];
|
|
22
22
|
export declare enum ResumeSectionType {
|
|
23
23
|
GeneralInfo = "generalInfo",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
WorkExperiences = "workExperiences",
|
|
25
|
+
Educations = "educations",
|
|
26
|
+
Skills = "skills",
|
|
27
|
+
Projects = "projects",
|
|
28
|
+
Certifications = "certifications",
|
|
29
|
+
Interests = "interests",
|
|
30
30
|
AdditionalInfo = "additionalInfo",
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
Languages = "languages",
|
|
32
|
+
References = "references",
|
|
33
|
+
SocialAccounts = "socialAccounts"
|
|
33
34
|
}
|
|
34
35
|
export declare const SupportedResumeSectionTypes: ResumeSectionType[];
|
|
35
36
|
//# sourceMappingURL=resume.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume.constant.d.ts","sourceRoot":"","sources":["../../../src/resume/resume.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,6BAA6B,uBAAqC,CAAC;AAEhF,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB,kBAAgC,CAAC;AAEtE,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,uBAAuB,gBAA8B,CAAC;AAEnE,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,
|
|
1
|
+
{"version":3,"file":"resume.constant.d.ts","sourceRoot":"","sources":["../../../src/resume/resume.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,6BAA6B,uBAAqC,CAAC;AAEhF,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAC9B;AAED,eAAO,MAAM,wBAAwB,kBAAgC,CAAC;AAEtE,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,uBAAuB,gBAA8B,CAAC;AAEnE,oBAAY,iBAAiB;IAC3B,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,cAAc,mBAAmB;CAClC;AAED,eAAO,MAAM,2BAA2B,qBAAmC,CAAC"}
|
|
@@ -25,14 +25,15 @@ export const SupportedResumeStatuses = Object.values(ResumeStatus);
|
|
|
25
25
|
export var ResumeSectionType;
|
|
26
26
|
(function (ResumeSectionType) {
|
|
27
27
|
ResumeSectionType["GeneralInfo"] = "generalInfo";
|
|
28
|
-
ResumeSectionType["
|
|
29
|
-
ResumeSectionType["
|
|
30
|
-
ResumeSectionType["
|
|
31
|
-
ResumeSectionType["
|
|
32
|
-
ResumeSectionType["
|
|
33
|
-
ResumeSectionType["
|
|
28
|
+
ResumeSectionType["WorkExperiences"] = "workExperiences";
|
|
29
|
+
ResumeSectionType["Educations"] = "educations";
|
|
30
|
+
ResumeSectionType["Skills"] = "skills";
|
|
31
|
+
ResumeSectionType["Projects"] = "projects";
|
|
32
|
+
ResumeSectionType["Certifications"] = "certifications";
|
|
33
|
+
ResumeSectionType["Interests"] = "interests";
|
|
34
34
|
ResumeSectionType["AdditionalInfo"] = "additionalInfo";
|
|
35
|
-
ResumeSectionType["
|
|
36
|
-
ResumeSectionType["
|
|
35
|
+
ResumeSectionType["Languages"] = "languages";
|
|
36
|
+
ResumeSectionType["References"] = "references";
|
|
37
|
+
ResumeSectionType["SocialAccounts"] = "socialAccounts";
|
|
37
38
|
})(ResumeSectionType || (ResumeSectionType = {}));
|
|
38
39
|
export const SupportedResumeSectionTypes = Object.values(ResumeSectionType);
|
|
@@ -65,12 +65,18 @@ declare const ResumeInterestSectionSchema: ArraySchema<TUserSchema["interests"],
|
|
|
65
65
|
export type TResumeInterestSectionSchema = InferType<typeof ResumeInterestSectionSchema>;
|
|
66
66
|
declare const ResumeLanguageSectionSchema: ArraySchema<TUserSchema["languages"], object>;
|
|
67
67
|
export type TResumeLanguageSectionSchema = InferType<typeof ResumeLanguageSectionSchema>;
|
|
68
|
+
export declare const ResumeSocialAccountSectionSchema: ArraySchema<TUserSchema["socialAccounts"], object>;
|
|
69
|
+
export type TResumeSocialAccountSectionSchema = InferType<typeof ResumeSocialAccountSectionSchema>;
|
|
68
70
|
export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
69
71
|
userId: string;
|
|
70
72
|
slug: string;
|
|
71
73
|
sections: {
|
|
72
74
|
id: NonNullable<ResumeSectionType | undefined>;
|
|
73
75
|
data: {
|
|
76
|
+
type: NonNullable<import("../common").SocialAccount | undefined>;
|
|
77
|
+
url: string;
|
|
78
|
+
isNew: boolean;
|
|
79
|
+
}[] | {
|
|
74
80
|
id?: string | undefined;
|
|
75
81
|
headline?: string | undefined;
|
|
76
82
|
image?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume.schema.d.ts","sourceRoot":"","sources":["../../../src/resume/resume.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAuC,MAAM,SAAS,CAAC;AAC3E,OAAO,EAEL,WAAW,EAEX,SAAS,EAMV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EAIb,MAAM,mBAAmB,CAAC;AAO3B,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA0B,CAAC;AAE/D,MAAM,MAAM,+BAA+B,GAAG,SAAS,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAOF,QAAA,MAAM,iCAAiC,EACrC,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,MAAM,CACf,CAAC;AAEtC,MAAM,MAAM,kCAAkC,GAAG,SAAS,CACxD,OAAO,iCAAiC,CACzC,CAAC;AAOF,QAAA,MAAM,4BAA4B,EAChC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,CACf,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBb,CAAC;AAEvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -50,6 +50,7 @@ const ResumeInterestSectionSchema = reach(UserSchema, "interests");
|
|
|
50
50
|
*/
|
|
51
51
|
}
|
|
52
52
|
const ResumeLanguageSectionSchema = reach(UserSchema, "languages");
|
|
53
|
+
export const ResumeSocialAccountSectionSchema = reach(UserSchema, "socialAccounts");
|
|
53
54
|
{
|
|
54
55
|
/**
|
|
55
56
|
* Note: Not supported yet.
|
|
@@ -104,27 +105,30 @@ export const ResumeSchemaV2 = object()
|
|
|
104
105
|
case ResumeSectionType.GeneralInfo:
|
|
105
106
|
// GeneralInfo schema is a single object schema, use it directly with null default
|
|
106
107
|
return ResumeGeneralInfoSectionSchema.nullable().default(null);
|
|
107
|
-
case ResumeSectionType.
|
|
108
|
+
case ResumeSectionType.WorkExperiences:
|
|
108
109
|
// WorkExperience schema is already an array schema, use it directly with empty array default
|
|
109
110
|
return ResumeWorkExperienceSectionSchema.default([]);
|
|
110
|
-
case ResumeSectionType.
|
|
111
|
+
case ResumeSectionType.Educations:
|
|
111
112
|
// Education schema is already an array schema, use it directly with empty array default
|
|
112
113
|
return ResumeEducationSectionSchema.default([]);
|
|
113
|
-
case ResumeSectionType.
|
|
114
|
+
case ResumeSectionType.Skills:
|
|
114
115
|
// Skill schema is already an array schema, use it directly with empty array default
|
|
115
116
|
return ResumeSkillSectionSchema.default([]);
|
|
116
|
-
case ResumeSectionType.
|
|
117
|
+
case ResumeSectionType.Projects:
|
|
117
118
|
// Project schema is already an array schema, use it directly with empty array default
|
|
118
119
|
return ResumeProjectSectionSchema.default([]);
|
|
119
|
-
case ResumeSectionType.
|
|
120
|
+
case ResumeSectionType.Certifications:
|
|
120
121
|
// Certification schema is already an array schema, use it directly with empty array default
|
|
121
122
|
return ResumeCertificationSectionSchema.default([]);
|
|
122
|
-
case ResumeSectionType.
|
|
123
|
+
case ResumeSectionType.Interests:
|
|
123
124
|
// Interest schema is already an array schema, use it directly with empty array default
|
|
124
125
|
return ResumeInterestSectionSchema.default([]);
|
|
125
|
-
case ResumeSectionType.
|
|
126
|
+
case ResumeSectionType.Languages:
|
|
126
127
|
// Language schema is already an array schema, use it directly with empty array default
|
|
127
128
|
return ResumeLanguageSectionSchema.default([]);
|
|
129
|
+
case ResumeSectionType.SocialAccounts:
|
|
130
|
+
// SocialAccounts schema is already an array schema, use it directly with empty array default
|
|
131
|
+
return ResumeSocialAccountSectionSchema.default([]);
|
|
128
132
|
// case ResumeSectionType.AdditionalInfo:
|
|
129
133
|
// // AdditionalInfo schema is already an array schema, use it directly with empty array default
|
|
130
134
|
// return ResumeAdditionalInfoSectionSchema.default([]);
|