@thejob/schema 1.0.28 → 1.0.30
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/index.d.ts +0 -5
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/interfaces.index.d.ts +55 -49
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +15 -10
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.d.ts +16 -11
- package/dist/cjs/job-application/job-application.schema.d.ts.map +1 -1
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +15 -10
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.d.ts +6 -10
- package/dist/cjs/question/choice-question.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.js +15 -9
- package/dist/cjs/question/input-question.schema.d.ts +2 -2
- package/dist/cjs/question/input-question.schema.d.ts.map +1 -1
- package/dist/cjs/question/input-question.schema.js +3 -3
- package/dist/cjs/question/question.schema.js +5 -0
- package/dist/cjs/question/read-and-acknowledge.schema.d.ts +28 -3
- package/dist/cjs/question/read-and-acknowledge.schema.d.ts.map +1 -1
- package/dist/cjs/question/read-and-acknowledge.schema.js +13 -6
- package/dist/esm/index.d.ts +0 -5
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/interfaces.index.d.ts +55 -49
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +15 -10
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.d.ts +16 -11
- package/dist/esm/job-application/job-application.schema.d.ts.map +1 -1
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +15 -10
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/question/choice-question.schema.d.ts +6 -10
- package/dist/esm/question/choice-question.schema.d.ts.map +1 -1
- package/dist/esm/question/choice-question.schema.js +17 -11
- package/dist/esm/question/input-question.schema.d.ts +2 -2
- package/dist/esm/question/input-question.schema.d.ts.map +1 -1
- package/dist/esm/question/input-question.schema.js +3 -3
- package/dist/esm/question/question.schema.js +5 -0
- package/dist/esm/question/read-and-acknowledge.schema.d.ts +28 -3
- package/dist/esm/question/read-and-acknowledge.schema.d.ts.map +1 -1
- package/dist/esm/question/read-and-acknowledge.schema.js +13 -6
- package/package.json +1 -1
|
@@ -142,15 +142,8 @@ export declare const JobSchema: ObjectSchema<{
|
|
|
142
142
|
isOptional?: boolean | undefined;
|
|
143
143
|
readonly?: boolean | undefined;
|
|
144
144
|
preferredAnswer?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
145
|
-
answers?: import("../question").TMixedValue | (
|
|
146
|
-
|
|
147
|
-
name: string;
|
|
148
|
-
id: string;
|
|
149
|
-
} | {
|
|
150
|
-
value: "others" | (string | undefined)[];
|
|
151
|
-
otherValue: string | string[];
|
|
152
|
-
} | undefined)[] | undefined;
|
|
153
|
-
optionsFrom?: string | undefined;
|
|
145
|
+
answers?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
146
|
+
optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
|
|
154
147
|
type: import("../question").QuestionType.Choice;
|
|
155
148
|
default: boolean;
|
|
156
149
|
title: string;
|
|
@@ -162,7 +155,19 @@ export declare const JobSchema: ObjectSchema<{
|
|
|
162
155
|
value: "others" | (string | undefined)[];
|
|
163
156
|
otherValue: string | string[];
|
|
164
157
|
} | undefined)[];
|
|
165
|
-
|
|
158
|
+
answerChoiceType: NonNullable<import("../question").AnswerChoiceType | undefined>;
|
|
159
|
+
} | {
|
|
160
|
+
label?: string | undefined;
|
|
161
|
+
isNew?: boolean | undefined;
|
|
162
|
+
isOptional?: boolean | undefined;
|
|
163
|
+
readonly?: boolean | undefined;
|
|
164
|
+
type: import("../question").QuestionType.ReadAndAcknowledge;
|
|
165
|
+
default: boolean;
|
|
166
|
+
description: string;
|
|
167
|
+
title: string;
|
|
168
|
+
preferredAnswer: NonNullable<import("../common").Common.Yes | import("../common").Common.No | undefined>;
|
|
169
|
+
answers: NonNullable<import("../common").Common.Yes | import("../common").Common.No | undefined>;
|
|
170
|
+
})[] | undefined;
|
|
166
171
|
status: NonNullable<JobStatus | undefined>;
|
|
167
172
|
seoTags: {
|
|
168
173
|
meta: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAKnB,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAKnB,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqYP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionType } from "../question";
|
|
1
|
+
import { AnswerChoiceType, QuestionType } from "../question";
|
|
2
2
|
import { InferType, ObjectSchema } from "../yup-extended";
|
|
3
3
|
import { JobApplicationStatus } from "./job-application.constant";
|
|
4
4
|
export declare const JobApplicationSchema: ObjectSchema<{
|
|
@@ -257,15 +257,8 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
257
257
|
isOptional?: boolean | undefined;
|
|
258
258
|
readonly?: boolean | undefined;
|
|
259
259
|
preferredAnswer?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
260
|
-
answers?: import("../question").TMixedValue | (
|
|
261
|
-
|
|
262
|
-
name: string;
|
|
263
|
-
id: string;
|
|
264
|
-
} | {
|
|
265
|
-
value: "others" | (string | undefined)[];
|
|
266
|
-
otherValue: string | string[];
|
|
267
|
-
} | undefined)[] | undefined;
|
|
268
|
-
optionsFrom?: string | undefined;
|
|
260
|
+
answers?: import("../question").TMixedValue | import("../question").TMixedValue[] | undefined;
|
|
261
|
+
optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
|
|
269
262
|
type: QuestionType.Choice;
|
|
270
263
|
default: boolean;
|
|
271
264
|
title: string;
|
|
@@ -277,7 +270,19 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
277
270
|
value: "others" | (string | undefined)[];
|
|
278
271
|
otherValue: string | string[];
|
|
279
272
|
} | undefined)[];
|
|
280
|
-
|
|
273
|
+
answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
|
|
274
|
+
} | {
|
|
275
|
+
label?: string | undefined;
|
|
276
|
+
isNew?: boolean | undefined;
|
|
277
|
+
isOptional?: boolean | undefined;
|
|
278
|
+
readonly?: boolean | undefined;
|
|
279
|
+
type: QuestionType.ReadAndAcknowledge;
|
|
280
|
+
default: boolean;
|
|
281
|
+
description: string;
|
|
282
|
+
title: string;
|
|
283
|
+
preferredAnswer: NonNullable<import("../common").Common.Yes | import("../common").Common.No | undefined>;
|
|
284
|
+
answers: NonNullable<import("../common").Common.Yes | import("../common").Common.No | undefined>;
|
|
285
|
+
})[] | undefined;
|
|
281
286
|
history: {
|
|
282
287
|
message?: string | undefined;
|
|
283
288
|
updatedBy: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-application.schema.d.ts","sourceRoot":"","sources":["../../../src/job-application/job-application.schema.ts"],"names":[],"mappings":"AAWA,OAAO,
|
|
1
|
+
{"version":3,"file":"job-application.schema.d.ts","sourceRoot":"","sources":["../../../src/job-application/job-application.schema.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAmB,MAAM,aAAa,CAAC;AAQ9E,OAAO,EAIL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EAGrB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiHN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -36,15 +36,8 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
36
36
|
isOptional?: boolean | undefined;
|
|
37
37
|
readonly?: boolean | undefined;
|
|
38
38
|
preferredAnswer?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
|
|
39
|
-
answers?: import("..").TMixedValue | (
|
|
40
|
-
|
|
41
|
-
name: string;
|
|
42
|
-
id: string;
|
|
43
|
-
} | {
|
|
44
|
-
value: "others" | (string | undefined)[];
|
|
45
|
-
otherValue: string | string[];
|
|
46
|
-
} | undefined)[] | undefined;
|
|
47
|
-
optionsFrom?: string | undefined;
|
|
39
|
+
answers?: import("..").TMixedValue | import("..").TMixedValue[] | undefined;
|
|
40
|
+
optionsFrom?: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
|
|
48
41
|
type: import("..").QuestionType.Choice;
|
|
49
42
|
default: boolean;
|
|
50
43
|
title: string;
|
|
@@ -56,7 +49,19 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
56
49
|
value: "others" | (string | undefined)[];
|
|
57
50
|
otherValue: string | string[];
|
|
58
51
|
} | undefined)[];
|
|
59
|
-
|
|
52
|
+
answerChoiceType: NonNullable<import("..").AnswerChoiceType | undefined>;
|
|
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
|
+
})[] | undefined;
|
|
60
65
|
}, import("yup").AnyObject, {
|
|
61
66
|
headline: undefined;
|
|
62
67
|
slug: undefined;
|
|
@@ -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,6 @@
|
|
|
1
|
+
import { Common } from "../common";
|
|
1
2
|
import { InferType } from "../yup-extended";
|
|
2
|
-
import { QuestionType } from "./question.constant";
|
|
3
|
+
import { AnswerChoiceType, QuestionType } from "./question.constant";
|
|
3
4
|
import { TMixedValue } from "./question.schema";
|
|
4
5
|
export declare const ChoiceQuestionSchema: import("yup").ObjectSchema<{
|
|
5
6
|
label: string | undefined;
|
|
@@ -11,7 +12,7 @@ export declare const ChoiceQuestionSchema: import("yup").ObjectSchema<{
|
|
|
11
12
|
isNew: boolean | undefined;
|
|
12
13
|
} & {
|
|
13
14
|
type: QuestionType.Choice;
|
|
14
|
-
optionsFrom:
|
|
15
|
+
optionsFrom: Common.EducationLevel | Common.ExperienceLevel | Common.Skill | undefined;
|
|
15
16
|
options: (string | {
|
|
16
17
|
logo?: string | undefined;
|
|
17
18
|
name: string;
|
|
@@ -20,15 +21,9 @@ export declare const ChoiceQuestionSchema: import("yup").ObjectSchema<{
|
|
|
20
21
|
value: "others" | (string | undefined)[];
|
|
21
22
|
otherValue: string | string[];
|
|
22
23
|
} | undefined)[];
|
|
24
|
+
answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
|
|
23
25
|
preferredAnswer: TMixedValue | TMixedValue[] | undefined;
|
|
24
|
-
answers: TMixedValue |
|
|
25
|
-
logo?: string | undefined;
|
|
26
|
-
name: string;
|
|
27
|
-
id: string;
|
|
28
|
-
} | {
|
|
29
|
-
value: "others" | (string | undefined)[];
|
|
30
|
-
otherValue: string | string[];
|
|
31
|
-
} | undefined)[] | undefined;
|
|
26
|
+
answers: TMixedValue | TMixedValue[] | undefined;
|
|
32
27
|
}, import("yup").AnyObject, {
|
|
33
28
|
label: undefined;
|
|
34
29
|
default: false;
|
|
@@ -39,6 +34,7 @@ export declare const ChoiceQuestionSchema: import("yup").ObjectSchema<{
|
|
|
39
34
|
isNew: undefined;
|
|
40
35
|
optionsFrom: undefined;
|
|
41
36
|
options: "";
|
|
37
|
+
answerChoiceType: AnswerChoiceType.Single;
|
|
42
38
|
preferredAnswer: undefined;
|
|
43
39
|
answers: undefined;
|
|
44
40
|
}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"choice-question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/choice-question.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"choice-question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/choice-question.schema.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EAKP,MAAM,WAAW,CAAC;AACnB,OAAO,EAAS,SAAS,EAA+B,MAAM,iBAAiB,CAAC;AAChF,OAAO,EACL,gBAAgB,EAChB,YAAY,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAkB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA+HhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsChC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -79,15 +79,15 @@ const ChoicePreferredAnswerSchema = (label = "Preferred answer") => (0, yup_exte
|
|
|
79
79
|
.optional()
|
|
80
80
|
.label(label),
|
|
81
81
|
});
|
|
82
|
-
const
|
|
82
|
+
const getChoiceAnswerSchema = (answerChoiceType, isOptional) => {
|
|
83
83
|
const commonSchema = (0, yup_extended_1.mixed)().oneOfSchema([
|
|
84
84
|
(0, yup_extended_1.string)().max(500),
|
|
85
85
|
common_1.NameIdLogoSchema,
|
|
86
86
|
common_1.OtherValueSchema,
|
|
87
87
|
]);
|
|
88
|
-
if (
|
|
88
|
+
if (answerChoiceType === question_constant_1.AnswerChoiceType.Multiple) {
|
|
89
89
|
const multiAnswerSchema = (0, yup_extended_1.array)().of(commonSchema);
|
|
90
|
-
if (
|
|
90
|
+
if (isOptional) {
|
|
91
91
|
return multiAnswerSchema.optional().default([]);
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
@@ -99,20 +99,23 @@ const ChoiceAnswerSchema = (0, yup_extended_1.lazy)((question) => {
|
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
101
|
// Single choice
|
|
102
|
-
if (
|
|
102
|
+
if (isOptional) {
|
|
103
103
|
return commonSchema.optional();
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
106
|
return commonSchema.required("Select an option.");
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
}
|
|
109
|
+
};
|
|
110
110
|
exports.ChoiceQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_extended_1.object)().shape({
|
|
111
111
|
type: (0, yup_extended_1.string)()
|
|
112
112
|
.oneOf([question_constant_1.QuestionType.Choice])
|
|
113
113
|
.required()
|
|
114
114
|
.label("Question type"),
|
|
115
|
-
optionsFrom: (0, yup_extended_1.string)()
|
|
115
|
+
optionsFrom: (0, yup_extended_1.string)()
|
|
116
|
+
.oneOf([common_1.Common.Skill, common_1.Common.EducationLevel, common_1.Common.ExperienceLevel])
|
|
117
|
+
.optional()
|
|
118
|
+
.label("Option field"),
|
|
116
119
|
options: (0, yup_extended_1.array)()
|
|
117
120
|
.of((0, yup_extended_1.lazy)((option) => {
|
|
118
121
|
if (typeof option === "string") {
|
|
@@ -128,8 +131,11 @@ exports.ChoiceQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_e
|
|
|
128
131
|
.min(1)
|
|
129
132
|
.required()
|
|
130
133
|
.label("Options"),
|
|
131
|
-
|
|
134
|
+
answerChoiceType: (0, yup_extended_1.string)()
|
|
135
|
+
.oneOf(question_constant_1.SupportedAnswerChoiceTypes)
|
|
136
|
+
.required()
|
|
137
|
+
.default(question_constant_1.AnswerChoiceType.Single)
|
|
138
|
+
.label("Type"),
|
|
132
139
|
preferredAnswer: ChoicePreferredAnswerSchema("Preferred answer"),
|
|
133
|
-
|
|
134
|
-
answers: ChoiceAnswerSchema,
|
|
140
|
+
answers: (0, yup_extended_1.mixed)().when(["answerChoiceType", "isOptional"], ([answerChoiceType, isOptional], schema) => getChoiceAnswerSchema(answerChoiceType, isOptional)),
|
|
135
141
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InferType } from "../yup-extended";
|
|
1
|
+
import { InferType, ObjectSchema } from "../yup-extended";
|
|
2
2
|
import { QuestionType } from "./question.constant";
|
|
3
|
-
export declare const InputQuestionSchema:
|
|
3
|
+
export declare const InputQuestionSchema: ObjectSchema<{
|
|
4
4
|
label: string | undefined;
|
|
5
5
|
default: boolean;
|
|
6
6
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/input-question.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-question.schema.d.ts","sourceRoot":"","sources":["../../../src/question/input-question.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAU,YAAY,EAAU,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;MAe/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InputQuestionSchema = void 0;
|
|
4
|
+
// input-question.schema.ts
|
|
4
5
|
const yup_extended_1 = require("../yup-extended");
|
|
5
|
-
const question_constant_1 = require("./question.constant");
|
|
6
6
|
const question_schema_1 = require("./question.schema");
|
|
7
|
+
const question_constant_1 = require("./question.constant");
|
|
7
8
|
exports.InputQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_extended_1.object)().shape({
|
|
8
9
|
type: (0, yup_extended_1.string)()
|
|
9
10
|
.oneOf([question_constant_1.QuestionType.Input])
|
|
@@ -16,6 +17,5 @@ exports.InputQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_ex
|
|
|
16
17
|
is: false,
|
|
17
18
|
then: (schema) => schema.required("This field is required."),
|
|
18
19
|
otherwise: (schema) => schema.optional(),
|
|
19
|
-
})
|
|
20
|
-
.label("Answer"),
|
|
20
|
+
}),
|
|
21
21
|
}));
|
|
@@ -12,6 +12,11 @@ exports.QuestionSchema = (0, yup_extended_1.object)().shape({
|
|
|
12
12
|
readonly: (0, yup_extended_1.boolean)().optional().label("Readonly"),
|
|
13
13
|
isNew: (0, yup_extended_1.boolean)().optional().label("Is New"),
|
|
14
14
|
});
|
|
15
|
+
// export type TQuestionnaire = (
|
|
16
|
+
// | TInputQuestionSchema
|
|
17
|
+
// | TChoiceQuestionSchema
|
|
18
|
+
// | TReadAndAcknowledgeQuestionSchema
|
|
19
|
+
// )[];
|
|
15
20
|
// Note: The TMixedValue and TQuestionSchema types might need adjustments
|
|
16
21
|
// depending on how you use them downstream, but this is the logical
|
|
17
22
|
// change for the schema itself.
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Common } from "../common";
|
|
2
|
+
import { InferType } from "../yup-extended";
|
|
3
|
+
import { QuestionType } from "./question.constant";
|
|
4
|
+
export declare const ReadAndAcknowledgeQuestionSchema: import("yup").ObjectSchema<{
|
|
5
|
+
label: string | undefined;
|
|
6
|
+
default: boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
type: QuestionType.ReadAndAcknowledge;
|
|
9
|
+
isOptional: boolean | undefined;
|
|
10
|
+
readonly: boolean | undefined;
|
|
11
|
+
isNew: boolean | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
type: QuestionType.ReadAndAcknowledge;
|
|
14
|
+
description: string;
|
|
15
|
+
preferredAnswer: NonNullable<Common.Yes | Common.No | undefined>;
|
|
16
|
+
answers: NonNullable<Common.Yes | Common.No | undefined>;
|
|
17
|
+
}, import("yup").AnyObject, {
|
|
18
|
+
label: undefined;
|
|
19
|
+
default: false;
|
|
20
|
+
title: undefined;
|
|
21
|
+
type: undefined;
|
|
22
|
+
isOptional: undefined;
|
|
23
|
+
readonly: undefined;
|
|
24
|
+
isNew: undefined;
|
|
25
|
+
description: undefined;
|
|
26
|
+
preferredAnswer: undefined;
|
|
27
|
+
answers: undefined;
|
|
28
|
+
}, "">;
|
|
4
29
|
export type TReadAndAcknowledgeQuestionSchema = InferType<typeof ReadAndAcknowledgeQuestionSchema>;
|
|
5
30
|
//# sourceMappingURL=read-and-acknowledge.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-and-acknowledge.schema.d.ts","sourceRoot":"","sources":["../../../src/question/read-and-acknowledge.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"read-and-acknowledge.schema.d.ts","sourceRoot":"","sources":["../../../src/question/read-and-acknowledge.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,SAAS,EAAkB,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOnD,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;MAU5C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,SAAS,CACvD,OAAO,gCAAgC,CACxC,CAAC"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReadAndAcknowledgeQuestionSchema = void 0;
|
|
4
|
+
// read-and-acknowledge-question.schema.ts
|
|
4
5
|
const common_1 = require("../common");
|
|
5
6
|
const yup_extended_1 = require("../yup-extended");
|
|
7
|
+
const question_constant_1 = require("./question.constant");
|
|
6
8
|
const question_schema_1 = require("./question.schema");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const AcknowledgeAnswerSchema = (0, yup_extended_1.string)()
|
|
10
|
+
.oneOf([common_1.Common.Yes, common_1.Common.No])
|
|
11
|
+
.required("This question must be acknowledged.");
|
|
12
|
+
exports.ReadAndAcknowledgeQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_extended_1.object)().shape({
|
|
13
|
+
type: (0, yup_extended_1.string)()
|
|
14
|
+
.oneOf([question_constant_1.QuestionType.ReadAndAcknowledge])
|
|
11
15
|
.required()
|
|
12
|
-
.label("
|
|
13
|
-
|
|
16
|
+
.label("Question type"),
|
|
17
|
+
description: (0, yup_extended_1.string)().max(10000).required().label("Content"),
|
|
18
|
+
preferredAnswer: AcknowledgeAnswerSchema.label("Preferred Answer"),
|
|
19
|
+
answers: AcknowledgeAnswerSchema.label("Answer"),
|
|
20
|
+
}));
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -23,9 +23,4 @@ export * from "./group";
|
|
|
23
23
|
export * from "./social-account";
|
|
24
24
|
export * from "./yup-extended";
|
|
25
25
|
export * from './interfaces.index';
|
|
26
|
-
export * from './interfaces.index';
|
|
27
|
-
export * from './interfaces.index';
|
|
28
|
-
export * from './interfaces.index';
|
|
29
|
-
export * from './interfaces.index';
|
|
30
|
-
export * from './interfaces.index';
|
|
31
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -23,8 +23,3 @@ export * from "./group";
|
|
|
23
23
|
export * from "./social-account";
|
|
24
24
|
export * from "./yup-extended";
|
|
25
25
|
export * from './interfaces.index';
|
|
26
|
-
export * from './interfaces.index';
|
|
27
|
-
export * from './interfaces.index';
|
|
28
|
-
export * from './interfaces.index';
|
|
29
|
-
export * from './interfaces.index';
|
|
30
|
-
export * from './interfaces.index';
|
|
@@ -174,15 +174,8 @@ export interface IJobSchema {
|
|
|
174
174
|
isOptional?: boolean | undefined;
|
|
175
175
|
readonly?: boolean | undefined;
|
|
176
176
|
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;
|
|
177
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (
|
|
178
|
-
|
|
179
|
-
name: string;
|
|
180
|
-
id: string;
|
|
181
|
-
} | {
|
|
182
|
-
value: "others" | (string | undefined)[];
|
|
183
|
-
otherValue: string | string[];
|
|
184
|
-
} | undefined)[] | undefined;
|
|
185
|
-
optionsFrom?: string | undefined;
|
|
177
|
+
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;
|
|
178
|
+
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;
|
|
186
179
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
187
180
|
default: boolean;
|
|
188
181
|
title: string;
|
|
@@ -194,7 +187,19 @@ export interface IJobSchema {
|
|
|
194
187
|
value: "others" | (string | undefined)[];
|
|
195
188
|
otherValue: string | string[];
|
|
196
189
|
} | undefined)[];
|
|
197
|
-
|
|
190
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
191
|
+
} | {
|
|
192
|
+
label?: string | undefined;
|
|
193
|
+
isNew?: boolean | undefined;
|
|
194
|
+
isOptional?: boolean | undefined;
|
|
195
|
+
readonly?: boolean | undefined;
|
|
196
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
197
|
+
description: string;
|
|
198
|
+
default: boolean;
|
|
199
|
+
title: string;
|
|
200
|
+
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>;
|
|
201
|
+
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>;
|
|
202
|
+
})[] | undefined;
|
|
198
203
|
jdSummary?: string | undefined;
|
|
199
204
|
canCreateAlert?: boolean | undefined;
|
|
200
205
|
canDirectApply?: boolean | undefined;
|
|
@@ -350,15 +355,8 @@ export interface IobRoleTemplate {
|
|
|
350
355
|
isOptional?: boolean | undefined;
|
|
351
356
|
readonly?: boolean | undefined;
|
|
352
357
|
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;
|
|
353
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (
|
|
354
|
-
|
|
355
|
-
name: string;
|
|
356
|
-
id: string;
|
|
357
|
-
} | {
|
|
358
|
-
value: "others" | (string | undefined)[];
|
|
359
|
-
otherValue: string | string[];
|
|
360
|
-
} | undefined)[] | undefined;
|
|
361
|
-
optionsFrom?: string | undefined;
|
|
358
|
+
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;
|
|
359
|
+
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;
|
|
362
360
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
363
361
|
default: boolean;
|
|
364
362
|
title: string;
|
|
@@ -370,6 +368,7 @@ export interface IobRoleTemplate {
|
|
|
370
368
|
value: "others" | (string | undefined)[];
|
|
371
369
|
otherValue: string | string[];
|
|
372
370
|
} | undefined)[];
|
|
371
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
373
372
|
})[] | undefined;
|
|
374
373
|
educationLevel?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").EducationLevel[] | undefined;
|
|
375
374
|
}
|
|
@@ -393,15 +392,8 @@ export interface IJobApplicationSchema {
|
|
|
393
392
|
isOptional?: boolean | undefined;
|
|
394
393
|
readonly?: boolean | undefined;
|
|
395
394
|
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;
|
|
396
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (
|
|
397
|
-
|
|
398
|
-
name: string;
|
|
399
|
-
id: string;
|
|
400
|
-
} | {
|
|
401
|
-
value: "others" | (string | undefined)[];
|
|
402
|
-
otherValue: string | string[];
|
|
403
|
-
} | undefined)[] | undefined;
|
|
404
|
-
optionsFrom?: string | undefined;
|
|
395
|
+
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;
|
|
396
|
+
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;
|
|
405
397
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
406
398
|
default: boolean;
|
|
407
399
|
title: string;
|
|
@@ -413,7 +405,19 @@ export interface IJobApplicationSchema {
|
|
|
413
405
|
value: "others" | (string | undefined)[];
|
|
414
406
|
otherValue: string | string[];
|
|
415
407
|
} | undefined)[];
|
|
416
|
-
|
|
408
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
409
|
+
} | {
|
|
410
|
+
label?: string | undefined;
|
|
411
|
+
isNew?: boolean | undefined;
|
|
412
|
+
isOptional?: boolean | undefined;
|
|
413
|
+
readonly?: boolean | undefined;
|
|
414
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
415
|
+
description: string;
|
|
416
|
+
default: boolean;
|
|
417
|
+
title: string;
|
|
418
|
+
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>;
|
|
419
|
+
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>;
|
|
420
|
+
})[] | undefined;
|
|
417
421
|
applicationSummary?: string | undefined;
|
|
418
422
|
name: {
|
|
419
423
|
first: string;
|
|
@@ -689,15 +693,8 @@ export interface IJobRoleTemplateSchema {
|
|
|
689
693
|
isOptional?: boolean | undefined;
|
|
690
694
|
readonly?: boolean | undefined;
|
|
691
695
|
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;
|
|
692
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (
|
|
693
|
-
|
|
694
|
-
name: string;
|
|
695
|
-
id: string;
|
|
696
|
-
} | {
|
|
697
|
-
value: "others" | (string | undefined)[];
|
|
698
|
-
otherValue: string | string[];
|
|
699
|
-
} | undefined)[] | undefined;
|
|
700
|
-
optionsFrom?: string | undefined;
|
|
696
|
+
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;
|
|
697
|
+
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;
|
|
701
698
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
702
699
|
default: boolean;
|
|
703
700
|
title: string;
|
|
@@ -709,7 +706,19 @@ export interface IJobRoleTemplateSchema {
|
|
|
709
706
|
value: "others" | (string | undefined)[];
|
|
710
707
|
otherValue: string | string[];
|
|
711
708
|
} | undefined)[];
|
|
712
|
-
|
|
709
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
710
|
+
} | {
|
|
711
|
+
label?: string | undefined;
|
|
712
|
+
isNew?: boolean | undefined;
|
|
713
|
+
isOptional?: boolean | undefined;
|
|
714
|
+
readonly?: boolean | undefined;
|
|
715
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
716
|
+
description: string;
|
|
717
|
+
default: boolean;
|
|
718
|
+
title: string;
|
|
719
|
+
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>;
|
|
720
|
+
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>;
|
|
721
|
+
})[] | undefined;
|
|
713
722
|
description: string;
|
|
714
723
|
headline: string;
|
|
715
724
|
designation: NonNullable<{
|
|
@@ -824,15 +833,8 @@ export interface IChoiceQuestionSchema {
|
|
|
824
833
|
isOptional?: boolean | undefined;
|
|
825
834
|
readonly?: boolean | undefined;
|
|
826
835
|
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;
|
|
827
|
-
answers?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.schema").TMixedValue | (
|
|
828
|
-
|
|
829
|
-
name: string;
|
|
830
|
-
id: string;
|
|
831
|
-
} | {
|
|
832
|
-
value: "others" | (string | undefined)[];
|
|
833
|
-
otherValue: string | string[];
|
|
834
|
-
} | undefined)[] | undefined;
|
|
835
|
-
optionsFrom?: string | undefined;
|
|
836
|
+
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;
|
|
837
|
+
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;
|
|
836
838
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
837
839
|
default: boolean;
|
|
838
840
|
title: string;
|
|
@@ -844,6 +846,7 @@ export interface IChoiceQuestionSchema {
|
|
|
844
846
|
value: "others" | (string | undefined)[];
|
|
845
847
|
otherValue: string | string[];
|
|
846
848
|
} | undefined)[];
|
|
849
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
847
850
|
}
|
|
848
851
|
export interface IInputQuestionSchema {
|
|
849
852
|
label?: string | undefined;
|
|
@@ -878,9 +881,12 @@ export interface IReadAndAcknowledgeQuestionSchema {
|
|
|
878
881
|
isNew?: boolean | undefined;
|
|
879
882
|
isOptional?: boolean | undefined;
|
|
880
883
|
readonly?: boolean | undefined;
|
|
881
|
-
type:
|
|
884
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
885
|
+
description: string;
|
|
882
886
|
default: boolean;
|
|
883
887
|
title: string;
|
|
888
|
+
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>;
|
|
889
|
+
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>;
|
|
884
890
|
}
|
|
885
891
|
export interface IResumeGeneralInfoSchema {
|
|
886
892
|
headline?: string | undefined;
|