@thejob/schema 1.0.37 → 1.0.39
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 +148 -3
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +42 -1
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/utils.d.ts +3 -83
- package/dist/cjs/job/utils.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.d.ts +11 -11
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +42 -1
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/question/question.schema.d.ts +4 -2
- package/dist/cjs/question/question.schema.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 +148 -3
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +42 -1
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/utils.d.ts +3 -83
- package/dist/esm/job/utils.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.d.ts +11 -11
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +42 -1
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/question/question.schema.d.ts +4 -2
- package/dist/esm/question/question.schema.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
package/dist/cjs/job/utils.d.ts
CHANGED
|
@@ -1,84 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
default: boolean;
|
|
5
|
-
title: string;
|
|
6
|
-
type: QuestionType.Input;
|
|
7
|
-
isOptional: boolean | undefined;
|
|
8
|
-
readonly: boolean | undefined;
|
|
9
|
-
isNew: boolean | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
type: QuestionType.Input;
|
|
12
|
-
preferredAnswer: string | undefined;
|
|
13
|
-
answers: string | undefined;
|
|
14
|
-
}, import("yup").AnyObject, {
|
|
15
|
-
label: undefined;
|
|
16
|
-
default: false;
|
|
17
|
-
title: undefined;
|
|
18
|
-
type: undefined;
|
|
19
|
-
isOptional: undefined;
|
|
20
|
-
readonly: undefined;
|
|
21
|
-
isNew: undefined;
|
|
22
|
-
preferredAnswer: undefined;
|
|
23
|
-
answers: undefined;
|
|
24
|
-
}, ""> | import("yup").ObjectSchema<{
|
|
25
|
-
label: string | undefined;
|
|
26
|
-
default: boolean;
|
|
27
|
-
title: string;
|
|
28
|
-
type: QuestionType.Choice;
|
|
29
|
-
isOptional: boolean | undefined;
|
|
30
|
-
readonly: boolean | undefined;
|
|
31
|
-
isNew: boolean | undefined;
|
|
32
|
-
} & {
|
|
33
|
-
type: QuestionType.Choice;
|
|
34
|
-
optionsFrom: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
|
|
35
|
-
options: (string | {
|
|
36
|
-
logo?: string | undefined;
|
|
37
|
-
name: string;
|
|
38
|
-
id: string;
|
|
39
|
-
} | {
|
|
40
|
-
value: "others" | (string | undefined)[];
|
|
41
|
-
otherValue: string | string[];
|
|
42
|
-
} | undefined)[];
|
|
43
|
-
answerChoiceType: NonNullable<import("../question").AnswerChoiceType | undefined>;
|
|
44
|
-
preferredAnswer: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
45
|
-
answers: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
46
|
-
}, import("yup").AnyObject, {
|
|
47
|
-
label: undefined;
|
|
48
|
-
default: false;
|
|
49
|
-
title: undefined;
|
|
50
|
-
type: undefined;
|
|
51
|
-
isOptional: undefined;
|
|
52
|
-
readonly: undefined;
|
|
53
|
-
isNew: undefined;
|
|
54
|
-
optionsFrom: undefined;
|
|
55
|
-
options: "";
|
|
56
|
-
answerChoiceType: import("../question").AnswerChoiceType.Single;
|
|
57
|
-
preferredAnswer: undefined;
|
|
58
|
-
answers: undefined;
|
|
59
|
-
}, ""> | import("yup").ObjectSchema<{
|
|
60
|
-
label: string | undefined;
|
|
61
|
-
default: boolean;
|
|
62
|
-
title: string;
|
|
63
|
-
type: QuestionType.ReadAndAcknowledge;
|
|
64
|
-
isOptional: boolean | undefined;
|
|
65
|
-
readonly: boolean | undefined;
|
|
66
|
-
isNew: boolean | undefined;
|
|
67
|
-
} & {
|
|
68
|
-
type: QuestionType.ReadAndAcknowledge;
|
|
69
|
-
description: string;
|
|
70
|
-
preferredAnswer: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
|
|
71
|
-
answers: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
|
|
72
|
-
}, import("yup").AnyObject, {
|
|
73
|
-
label: undefined;
|
|
74
|
-
default: false;
|
|
75
|
-
title: undefined;
|
|
76
|
-
type: undefined;
|
|
77
|
-
isOptional: undefined;
|
|
78
|
-
readonly: undefined;
|
|
79
|
-
isNew: undefined;
|
|
80
|
-
description: undefined;
|
|
81
|
-
preferredAnswer: undefined;
|
|
82
|
-
answers: undefined;
|
|
83
|
-
}, "">;
|
|
1
|
+
import { ObjectSchema } from "yup";
|
|
2
|
+
import { QuestionType, TQuestionSchema } from "../question";
|
|
3
|
+
export declare const getSchemaByQuestion: (type: QuestionType) => ObjectSchema<TQuestionSchema>;
|
|
84
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/job/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/job/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAGL,YAAY,EAEZ,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB,GAC9B,MAAM,YAAY,KACjB,YAAY,CAAC,eAAe,CAW9B,CAAC"}
|
|
@@ -245,19 +245,9 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
245
245
|
isNew?: boolean | undefined;
|
|
246
246
|
isOptional?: boolean | undefined;
|
|
247
247
|
readonly?: boolean | undefined;
|
|
248
|
-
|
|
249
|
-
answers?: string | undefined;
|
|
250
|
-
type: import("../question").QuestionType.Input;
|
|
251
|
-
default: boolean;
|
|
252
|
-
title: string;
|
|
253
|
-
} | {
|
|
254
|
-
label?: string | undefined;
|
|
255
|
-
isNew?: boolean | undefined;
|
|
256
|
-
isOptional?: boolean | undefined;
|
|
257
|
-
readonly?: boolean | undefined;
|
|
248
|
+
optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
|
|
258
249
|
preferredAnswer?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
259
250
|
answers?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
260
|
-
optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
|
|
261
251
|
type: import("../question").QuestionType.Choice;
|
|
262
252
|
default: boolean;
|
|
263
253
|
title: string;
|
|
@@ -270,6 +260,16 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
270
260
|
otherValue: string | string[];
|
|
271
261
|
} | undefined)[];
|
|
272
262
|
answerChoiceType: NonNullable<import("../question").AnswerChoiceType | undefined>;
|
|
263
|
+
} | {
|
|
264
|
+
label?: string | undefined;
|
|
265
|
+
isNew?: boolean | undefined;
|
|
266
|
+
isOptional?: boolean | undefined;
|
|
267
|
+
readonly?: boolean | undefined;
|
|
268
|
+
preferredAnswer?: string | undefined;
|
|
269
|
+
answers?: string | undefined;
|
|
270
|
+
type: import("../question").QuestionType.Input;
|
|
271
|
+
default: boolean;
|
|
272
|
+
title: string;
|
|
273
273
|
} | {
|
|
274
274
|
label?: string | undefined;
|
|
275
275
|
isNew?: boolean | undefined;
|
|
@@ -21,6 +21,47 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
21
21
|
} | undefined>;
|
|
22
22
|
tags: any[] | undefined;
|
|
23
23
|
questionnaire: ({
|
|
24
|
+
label?: string | undefined;
|
|
25
|
+
isNew?: boolean | undefined;
|
|
26
|
+
isOptional?: boolean | undefined;
|
|
27
|
+
readonly?: boolean | undefined;
|
|
28
|
+
optionsFrom?: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
|
|
29
|
+
preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
|
|
30
|
+
answers?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
|
|
31
|
+
type: import("..").QuestionType.Choice;
|
|
32
|
+
default: boolean;
|
|
33
|
+
title: string;
|
|
34
|
+
options: (string | {
|
|
35
|
+
logo?: string | undefined;
|
|
36
|
+
name: string;
|
|
37
|
+
id: string;
|
|
38
|
+
} | {
|
|
39
|
+
value: "others" | (string | undefined)[];
|
|
40
|
+
otherValue: string | string[];
|
|
41
|
+
} | undefined)[];
|
|
42
|
+
answerChoiceType: NonNullable<import("..").AnswerChoiceType | undefined>;
|
|
43
|
+
} | {
|
|
44
|
+
label?: string | undefined;
|
|
45
|
+
isNew?: boolean | undefined;
|
|
46
|
+
isOptional?: boolean | undefined;
|
|
47
|
+
readonly?: boolean | undefined;
|
|
48
|
+
preferredAnswer?: string | undefined;
|
|
49
|
+
answers?: string | undefined;
|
|
50
|
+
type: import("..").QuestionType.Input;
|
|
51
|
+
default: boolean;
|
|
52
|
+
title: string;
|
|
53
|
+
} | {
|
|
54
|
+
label?: string | undefined;
|
|
55
|
+
isNew?: boolean | undefined;
|
|
56
|
+
isOptional?: boolean | undefined;
|
|
57
|
+
readonly?: boolean | undefined;
|
|
58
|
+
type: import("..").QuestionType.ReadAndAcknowledge;
|
|
59
|
+
default: boolean;
|
|
60
|
+
description: string;
|
|
61
|
+
title: string;
|
|
62
|
+
preferredAnswer: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
|
|
63
|
+
answers: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
|
|
64
|
+
} | {
|
|
24
65
|
label?: string | undefined;
|
|
25
66
|
isNew?: boolean | undefined;
|
|
26
67
|
isOptional?: boolean | undefined;
|
|
@@ -34,8 +75,8 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
34
75
|
isNew?: boolean | undefined;
|
|
35
76
|
isOptional?: boolean | undefined;
|
|
36
77
|
readonly?: boolean | undefined;
|
|
37
|
-
preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
|
|
38
78
|
optionsFrom?: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
|
|
79
|
+
preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
|
|
39
80
|
type: import("..").QuestionType.Choice;
|
|
40
81
|
default: boolean;
|
|
41
82
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TNameIdLogoSchema, TOtherValueSchema } from "../common";
|
|
2
|
-
import {
|
|
2
|
+
import { TChoiceQuestionSchema } from "./choice-question.schema";
|
|
3
|
+
import { TInputQuestionSchema } from "./input-question.schema";
|
|
4
|
+
import { TReadAndAcknowledgeQuestionSchema } from "./read-and-acknowledge.schema";
|
|
3
5
|
export type TMixedValue = string | boolean | number | TNameIdLogoSchema | TOtherValueSchema;
|
|
4
6
|
export declare const QuestionSchema: import("yup").ObjectSchema<{
|
|
5
7
|
label: string | undefined;
|
|
@@ -18,5 +20,5 @@ export declare const QuestionSchema: import("yup").ObjectSchema<{
|
|
|
18
20
|
readonly: undefined;
|
|
19
21
|
isNew: undefined;
|
|
20
22
|
}, "">;
|
|
21
|
-
export type TQuestionSchema =
|
|
23
|
+
export type TQuestionSchema = TInputQuestionSchema | TChoiceQuestionSchema | TReadAndAcknowledgeQuestionSchema;
|
|
22
24
|
//# sourceMappingURL=question.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/question.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/question.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC;AAElF,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,OAAO,GACP,MAAM,GACN,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;MAQzB,CAAC;AAEH,MAAM,MAAM,eAAe,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,iCAAiC,CAAC"}
|
|
@@ -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"}
|
|
@@ -28,14 +28,15 @@ exports.SupportedResumeStatuses = Object.values(ResumeStatus);
|
|
|
28
28
|
var ResumeSectionType;
|
|
29
29
|
(function (ResumeSectionType) {
|
|
30
30
|
ResumeSectionType["GeneralInfo"] = "generalInfo";
|
|
31
|
-
ResumeSectionType["
|
|
32
|
-
ResumeSectionType["
|
|
33
|
-
ResumeSectionType["
|
|
34
|
-
ResumeSectionType["
|
|
35
|
-
ResumeSectionType["
|
|
36
|
-
ResumeSectionType["
|
|
31
|
+
ResumeSectionType["WorkExperiences"] = "workExperiences";
|
|
32
|
+
ResumeSectionType["Educations"] = "educations";
|
|
33
|
+
ResumeSectionType["Skills"] = "skills";
|
|
34
|
+
ResumeSectionType["Projects"] = "projects";
|
|
35
|
+
ResumeSectionType["Certifications"] = "certifications";
|
|
36
|
+
ResumeSectionType["Interests"] = "interests";
|
|
37
37
|
ResumeSectionType["AdditionalInfo"] = "additionalInfo";
|
|
38
|
-
ResumeSectionType["
|
|
39
|
-
ResumeSectionType["
|
|
38
|
+
ResumeSectionType["Languages"] = "languages";
|
|
39
|
+
ResumeSectionType["References"] = "references";
|
|
40
|
+
ResumeSectionType["SocialAccounts"] = "socialAccounts";
|
|
40
41
|
})(ResumeSectionType || (exports.ResumeSectionType = ResumeSectionType = {}));
|
|
41
42
|
exports.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,CAAC;AAEjC,MAAM,MAAM,6BAA6B,GAAG,SAAS,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAOF,QAAA,MAAM,wBAAwB,EAAI,WAAW,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C,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewResumePromptSchema = exports.ResumeSchema = exports.ResumeSchemaV2 = void 0;
|
|
3
|
+
exports.NewResumePromptSchema = exports.ResumeSchema = exports.ResumeSchemaV2 = exports.ResumeSocialAccountSectionSchema = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
const user_1 = require("../user");
|
|
6
6
|
const yup_extended_1 = require("../yup-extended");
|
|
@@ -53,6 +53,7 @@ const ResumeInterestSectionSchema = (0, yup_extended_1.reach)(user_1.UserSchema,
|
|
|
53
53
|
*/
|
|
54
54
|
}
|
|
55
55
|
const ResumeLanguageSectionSchema = (0, yup_extended_1.reach)(user_1.UserSchema, "languages");
|
|
56
|
+
exports.ResumeSocialAccountSectionSchema = (0, yup_extended_1.reach)(user_1.UserSchema, "socialAccounts");
|
|
56
57
|
{
|
|
57
58
|
/**
|
|
58
59
|
* Note: Not supported yet.
|
|
@@ -107,27 +108,30 @@ exports.ResumeSchemaV2 = (0, yup_extended_1.object)()
|
|
|
107
108
|
case resume_constant_1.ResumeSectionType.GeneralInfo:
|
|
108
109
|
// GeneralInfo schema is a single object schema, use it directly with null default
|
|
109
110
|
return ResumeGeneralInfoSectionSchema.nullable().default(null);
|
|
110
|
-
case resume_constant_1.ResumeSectionType.
|
|
111
|
+
case resume_constant_1.ResumeSectionType.WorkExperiences:
|
|
111
112
|
// WorkExperience schema is already an array schema, use it directly with empty array default
|
|
112
113
|
return ResumeWorkExperienceSectionSchema.default([]);
|
|
113
|
-
case resume_constant_1.ResumeSectionType.
|
|
114
|
+
case resume_constant_1.ResumeSectionType.Educations:
|
|
114
115
|
// Education schema is already an array schema, use it directly with empty array default
|
|
115
116
|
return ResumeEducationSectionSchema.default([]);
|
|
116
|
-
case resume_constant_1.ResumeSectionType.
|
|
117
|
+
case resume_constant_1.ResumeSectionType.Skills:
|
|
117
118
|
// Skill schema is already an array schema, use it directly with empty array default
|
|
118
119
|
return ResumeSkillSectionSchema.default([]);
|
|
119
|
-
case resume_constant_1.ResumeSectionType.
|
|
120
|
+
case resume_constant_1.ResumeSectionType.Projects:
|
|
120
121
|
// Project schema is already an array schema, use it directly with empty array default
|
|
121
122
|
return ResumeProjectSectionSchema.default([]);
|
|
122
|
-
case resume_constant_1.ResumeSectionType.
|
|
123
|
+
case resume_constant_1.ResumeSectionType.Certifications:
|
|
123
124
|
// Certification schema is already an array schema, use it directly with empty array default
|
|
124
125
|
return ResumeCertificationSectionSchema.default([]);
|
|
125
|
-
case resume_constant_1.ResumeSectionType.
|
|
126
|
+
case resume_constant_1.ResumeSectionType.Interests:
|
|
126
127
|
// Interest schema is already an array schema, use it directly with empty array default
|
|
127
128
|
return ResumeInterestSectionSchema.default([]);
|
|
128
|
-
case resume_constant_1.ResumeSectionType.
|
|
129
|
+
case resume_constant_1.ResumeSectionType.Languages:
|
|
129
130
|
// Language schema is already an array schema, use it directly with empty array default
|
|
130
131
|
return ResumeLanguageSectionSchema.default([]);
|
|
132
|
+
case resume_constant_1.ResumeSectionType.SocialAccounts:
|
|
133
|
+
// SocialAccounts schema is already an array schema, use it directly with empty array default
|
|
134
|
+
return exports.ResumeSocialAccountSectionSchema.default([]);
|
|
131
135
|
// case ResumeSectionType.AdditionalInfo:
|
|
132
136
|
// // AdditionalInfo schema is already an array schema, use it directly with empty array default
|
|
133
137
|
// return ResumeAdditionalInfoSectionSchema.default([]);
|
|
@@ -161,6 +161,16 @@ export interface IAiPromptJobApplicationSummary {
|
|
|
161
161
|
workingHoursPerWeek?: number | undefined;
|
|
162
162
|
tags?: any[] | undefined;
|
|
163
163
|
questionnaire?: ({
|
|
164
|
+
label?: string | undefined;
|
|
165
|
+
isNew?: boolean | undefined;
|
|
166
|
+
isOptional?: boolean | undefined;
|
|
167
|
+
readonly?: boolean | undefined;
|
|
168
|
+
preferredAnswer?: string | undefined;
|
|
169
|
+
answers?: string | undefined;
|
|
170
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
171
|
+
default: boolean;
|
|
172
|
+
title: string;
|
|
173
|
+
} | {
|
|
164
174
|
label?: string | undefined;
|
|
165
175
|
isNew?: boolean | undefined;
|
|
166
176
|
isOptional?: boolean | undefined;
|
|
@@ -169,6 +179,26 @@ export interface IAiPromptJobApplicationSummary {
|
|
|
169
179
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
170
180
|
default: boolean;
|
|
171
181
|
title: string;
|
|
182
|
+
} | {
|
|
183
|
+
label?: string | undefined;
|
|
184
|
+
isNew?: boolean | undefined;
|
|
185
|
+
isOptional?: boolean | undefined;
|
|
186
|
+
readonly?: boolean | undefined;
|
|
187
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
188
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
189
|
+
optionsFrom?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.EducationLevel | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.ExperienceLevel | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Skill | undefined;
|
|
190
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
191
|
+
default: boolean;
|
|
192
|
+
title: string;
|
|
193
|
+
options: (string | {
|
|
194
|
+
logo?: string | undefined;
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
} | {
|
|
198
|
+
value: "others" | (string | undefined)[];
|
|
199
|
+
otherValue: string | string[];
|
|
200
|
+
} | undefined)[];
|
|
201
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
172
202
|
} | {
|
|
173
203
|
label?: string | undefined;
|
|
174
204
|
isNew?: boolean | undefined;
|
|
@@ -188,6 +218,17 @@ export interface IAiPromptJobApplicationSummary {
|
|
|
188
218
|
otherValue: string | string[];
|
|
189
219
|
} | undefined)[];
|
|
190
220
|
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
221
|
+
} | {
|
|
222
|
+
label?: string | undefined;
|
|
223
|
+
isNew?: boolean | undefined;
|
|
224
|
+
isOptional?: boolean | undefined;
|
|
225
|
+
readonly?: boolean | undefined;
|
|
226
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
227
|
+
description: string;
|
|
228
|
+
default: boolean;
|
|
229
|
+
title: string;
|
|
230
|
+
preferredAnswer: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.No | undefined>;
|
|
231
|
+
answers: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.No | undefined>;
|
|
191
232
|
} | {
|
|
192
233
|
label?: string | undefined;
|
|
193
234
|
isNew?: boolean | undefined;
|
|
@@ -783,6 +824,16 @@ export interface IJobSchema {
|
|
|
783
824
|
workingHoursPerWeek?: number | undefined;
|
|
784
825
|
tags?: any[] | undefined;
|
|
785
826
|
questionnaire?: ({
|
|
827
|
+
label?: string | undefined;
|
|
828
|
+
isNew?: boolean | undefined;
|
|
829
|
+
isOptional?: boolean | undefined;
|
|
830
|
+
readonly?: boolean | undefined;
|
|
831
|
+
preferredAnswer?: string | undefined;
|
|
832
|
+
answers?: string | undefined;
|
|
833
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
834
|
+
default: boolean;
|
|
835
|
+
title: string;
|
|
836
|
+
} | {
|
|
786
837
|
label?: string | undefined;
|
|
787
838
|
isNew?: boolean | undefined;
|
|
788
839
|
isOptional?: boolean | undefined;
|
|
@@ -791,6 +842,26 @@ export interface IJobSchema {
|
|
|
791
842
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
792
843
|
default: boolean;
|
|
793
844
|
title: string;
|
|
845
|
+
} | {
|
|
846
|
+
label?: string | undefined;
|
|
847
|
+
isNew?: boolean | undefined;
|
|
848
|
+
isOptional?: boolean | undefined;
|
|
849
|
+
readonly?: boolean | undefined;
|
|
850
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
851
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
852
|
+
optionsFrom?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.EducationLevel | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.ExperienceLevel | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Skill | undefined;
|
|
853
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
854
|
+
default: boolean;
|
|
855
|
+
title: string;
|
|
856
|
+
options: (string | {
|
|
857
|
+
logo?: string | undefined;
|
|
858
|
+
id: string;
|
|
859
|
+
name: string;
|
|
860
|
+
} | {
|
|
861
|
+
value: "others" | (string | undefined)[];
|
|
862
|
+
otherValue: string | string[];
|
|
863
|
+
} | undefined)[];
|
|
864
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
794
865
|
} | {
|
|
795
866
|
label?: string | undefined;
|
|
796
867
|
isNew?: boolean | undefined;
|
|
@@ -810,6 +881,17 @@ export interface IJobSchema {
|
|
|
810
881
|
otherValue: string | string[];
|
|
811
882
|
} | undefined)[];
|
|
812
883
|
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
884
|
+
} | {
|
|
885
|
+
label?: string | undefined;
|
|
886
|
+
isNew?: boolean | undefined;
|
|
887
|
+
isOptional?: boolean | undefined;
|
|
888
|
+
readonly?: boolean | undefined;
|
|
889
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
890
|
+
description: string;
|
|
891
|
+
default: boolean;
|
|
892
|
+
title: string;
|
|
893
|
+
preferredAnswer: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.No | undefined>;
|
|
894
|
+
answers: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.No | undefined>;
|
|
813
895
|
} | {
|
|
814
896
|
label?: string | undefined;
|
|
815
897
|
isNew?: boolean | undefined;
|
|
@@ -1305,6 +1387,16 @@ export interface IJobRoleTemplateSchema {
|
|
|
1305
1387
|
} | undefined)[] | undefined;
|
|
1306
1388
|
tags?: any[] | undefined;
|
|
1307
1389
|
questionnaire?: ({
|
|
1390
|
+
label?: string | undefined;
|
|
1391
|
+
isNew?: boolean | undefined;
|
|
1392
|
+
isOptional?: boolean | undefined;
|
|
1393
|
+
readonly?: boolean | undefined;
|
|
1394
|
+
preferredAnswer?: string | undefined;
|
|
1395
|
+
answers?: string | undefined;
|
|
1396
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
1397
|
+
default: boolean;
|
|
1398
|
+
title: string;
|
|
1399
|
+
} | {
|
|
1308
1400
|
label?: string | undefined;
|
|
1309
1401
|
isNew?: boolean | undefined;
|
|
1310
1402
|
isOptional?: boolean | undefined;
|
|
@@ -1313,6 +1405,26 @@ export interface IJobRoleTemplateSchema {
|
|
|
1313
1405
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Input;
|
|
1314
1406
|
default: boolean;
|
|
1315
1407
|
title: string;
|
|
1408
|
+
} | {
|
|
1409
|
+
label?: string | undefined;
|
|
1410
|
+
isNew?: boolean | undefined;
|
|
1411
|
+
isOptional?: boolean | undefined;
|
|
1412
|
+
readonly?: boolean | undefined;
|
|
1413
|
+
preferredAnswer?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
1414
|
+
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
1415
|
+
optionsFrom?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.EducationLevel | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.ExperienceLevel | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Skill | undefined;
|
|
1416
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
1417
|
+
default: boolean;
|
|
1418
|
+
title: string;
|
|
1419
|
+
options: (string | {
|
|
1420
|
+
logo?: string | undefined;
|
|
1421
|
+
id: string;
|
|
1422
|
+
name: string;
|
|
1423
|
+
} | {
|
|
1424
|
+
value: "others" | (string | undefined)[];
|
|
1425
|
+
otherValue: string | string[];
|
|
1426
|
+
} | undefined)[];
|
|
1427
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
1316
1428
|
} | {
|
|
1317
1429
|
label?: string | undefined;
|
|
1318
1430
|
isNew?: boolean | undefined;
|
|
@@ -1332,6 +1444,17 @@ export interface IJobRoleTemplateSchema {
|
|
|
1332
1444
|
otherValue: string | string[];
|
|
1333
1445
|
} | undefined)[];
|
|
1334
1446
|
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
1447
|
+
} | {
|
|
1448
|
+
label?: string | undefined;
|
|
1449
|
+
isNew?: boolean | undefined;
|
|
1450
|
+
isOptional?: boolean | undefined;
|
|
1451
|
+
readonly?: boolean | undefined;
|
|
1452
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
1453
|
+
description: string;
|
|
1454
|
+
default: boolean;
|
|
1455
|
+
title: string;
|
|
1456
|
+
preferredAnswer: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.No | undefined>;
|
|
1457
|
+
answers: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").Common.No | undefined>;
|
|
1335
1458
|
} | {
|
|
1336
1459
|
label?: string | undefined;
|
|
1337
1460
|
isNew?: boolean | undefined;
|
|
@@ -1486,13 +1609,29 @@ export interface IInputQuestionSchema {
|
|
|
1486
1609
|
export interface IMixedValue {
|
|
1487
1610
|
}
|
|
1488
1611
|
export interface IQuestionSchema {
|
|
1489
|
-
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType | undefined>;
|
|
1490
1612
|
label?: string | undefined;
|
|
1491
1613
|
isNew?: boolean | undefined;
|
|
1492
|
-
default: boolean;
|
|
1493
|
-
title: string;
|
|
1494
1614
|
isOptional?: boolean | undefined;
|
|
1495
1615
|
readonly?: boolean | undefined;
|
|
1616
|
+
preferredAnswer?: string | number | boolean | {
|
|
1617
|
+
logo?: string | undefined;
|
|
1618
|
+
id: string;
|
|
1619
|
+
name: string;
|
|
1620
|
+
} | {
|
|
1621
|
+
value: "others" | (string | undefined)[];
|
|
1622
|
+
otherValue: string | string[];
|
|
1623
|
+
} | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
1624
|
+
answers?: string | number | boolean | {
|
|
1625
|
+
logo?: string | undefined;
|
|
1626
|
+
id: string;
|
|
1627
|
+
name: string;
|
|
1628
|
+
} | {
|
|
1629
|
+
value: "others" | (string | undefined)[];
|
|
1630
|
+
otherValue: string | string[];
|
|
1631
|
+
} | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue[] | undefined;
|
|
1632
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType;
|
|
1633
|
+
default: boolean;
|
|
1634
|
+
title: string;
|
|
1496
1635
|
}
|
|
1497
1636
|
export interface IReadAndAcknowledgeQuestionSchema {
|
|
1498
1637
|
label?: string | undefined;
|
|
@@ -1555,6 +1694,8 @@ export interface IResumeInterestSectionSchema {
|
|
|
1555
1694
|
}
|
|
1556
1695
|
export interface IResumeLanguageSectionSchema {
|
|
1557
1696
|
}
|
|
1697
|
+
export interface IResumeSocialAccountSectionSchema {
|
|
1698
|
+
}
|
|
1558
1699
|
export interface IResumeSchemaV2 {
|
|
1559
1700
|
updatedBy?: string | undefined;
|
|
1560
1701
|
updatedAt?: number | undefined;
|
|
@@ -1567,6 +1708,10 @@ export interface IResumeSchemaV2 {
|
|
|
1567
1708
|
sections: {
|
|
1568
1709
|
id: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/resume/resume.constant").ResumeSectionType | undefined>;
|
|
1569
1710
|
data: {
|
|
1711
|
+
type: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").SocialAccount | undefined>;
|
|
1712
|
+
isNew: boolean;
|
|
1713
|
+
url: string;
|
|
1714
|
+
}[] | {
|
|
1570
1715
|
description?: string | undefined;
|
|
1571
1716
|
company: NonNullable<{
|
|
1572
1717
|
value: "others" | (string | undefined)[];
|