@thejob/schema 1.0.28 → 1.0.29
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 +50 -9
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +14 -2
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.d.ts +15 -3
- 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 +14 -2
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.d.ts +5 -2
- package/dist/cjs/question/choice-question.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.js +10 -3
- 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 +50 -9
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +14 -2
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.d.ts +15 -3
- 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 +14 -2
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/question/choice-question.schema.d.ts +5 -2
- package/dist/esm/question/choice-question.schema.d.ts.map +1 -1
- package/dist/esm/question/choice-question.schema.js +12 -5
- 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
|
@@ -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<{
|
|
@@ -265,7 +265,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
265
265
|
value: "others" | (string | undefined)[];
|
|
266
266
|
otherValue: string | string[];
|
|
267
267
|
} | undefined)[] | undefined;
|
|
268
|
-
optionsFrom?:
|
|
268
|
+
optionsFrom?: import("../common").Common.EducationLevel | import("../common").Common.ExperienceLevel | import("../common").Common.Skill | undefined;
|
|
269
269
|
type: QuestionType.Choice;
|
|
270
270
|
default: boolean;
|
|
271
271
|
title: string;
|
|
@@ -277,7 +277,19 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
277
277
|
value: "others" | (string | undefined)[];
|
|
278
278
|
otherValue: string | string[];
|
|
279
279
|
} | undefined)[];
|
|
280
|
-
|
|
280
|
+
answerChoiceType: NonNullable<AnswerChoiceType | undefined>;
|
|
281
|
+
} | {
|
|
282
|
+
label?: string | undefined;
|
|
283
|
+
isNew?: boolean | undefined;
|
|
284
|
+
isOptional?: boolean | undefined;
|
|
285
|
+
readonly?: boolean | undefined;
|
|
286
|
+
type: QuestionType.ReadAndAcknowledge;
|
|
287
|
+
default: boolean;
|
|
288
|
+
description: string;
|
|
289
|
+
title: string;
|
|
290
|
+
preferredAnswer: NonNullable<import("../common").Common.Yes | import("../common").Common.No | undefined>;
|
|
291
|
+
answers: NonNullable<import("../common").Common.Yes | import("../common").Common.No | undefined>;
|
|
292
|
+
})[] | undefined;
|
|
281
293
|
history: {
|
|
282
294
|
message?: string | undefined;
|
|
283
295
|
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"}
|
|
@@ -44,7 +44,7 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
44
44
|
value: "others" | (string | undefined)[];
|
|
45
45
|
otherValue: string | string[];
|
|
46
46
|
} | undefined)[] | undefined;
|
|
47
|
-
optionsFrom?:
|
|
47
|
+
optionsFrom?: import("..").Common.EducationLevel | import("..").Common.ExperienceLevel | import("..").Common.Skill | undefined;
|
|
48
48
|
type: import("..").QuestionType.Choice;
|
|
49
49
|
default: boolean;
|
|
50
50
|
title: string;
|
|
@@ -56,7 +56,19 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
56
56
|
value: "others" | (string | undefined)[];
|
|
57
57
|
otherValue: string | string[];
|
|
58
58
|
} | undefined)[];
|
|
59
|
-
|
|
59
|
+
answerChoiceType: NonNullable<import("..").AnswerChoiceType | undefined>;
|
|
60
|
+
} | {
|
|
61
|
+
label?: string | undefined;
|
|
62
|
+
isNew?: boolean | undefined;
|
|
63
|
+
isOptional?: boolean | undefined;
|
|
64
|
+
readonly?: boolean | undefined;
|
|
65
|
+
type: import("..").QuestionType.ReadAndAcknowledge;
|
|
66
|
+
default: boolean;
|
|
67
|
+
description: string;
|
|
68
|
+
title: string;
|
|
69
|
+
preferredAnswer: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
|
|
70
|
+
answers: NonNullable<import("..").Common.Yes | import("..").Common.No | undefined>;
|
|
71
|
+
})[] | undefined;
|
|
60
72
|
}, import("yup").AnyObject, {
|
|
61
73
|
headline: undefined;
|
|
62
74
|
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,6 +21,7 @@ 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
26
|
answers: TMixedValue | (string | number | boolean | {
|
|
25
27
|
logo?: string | undefined;
|
|
@@ -39,6 +41,7 @@ export declare const ChoiceQuestionSchema: import("yup").ObjectSchema<{
|
|
|
39
41
|
isNew: undefined;
|
|
40
42
|
optionsFrom: undefined;
|
|
41
43
|
options: "";
|
|
44
|
+
answerChoiceType: AnswerChoiceType.Single;
|
|
42
45
|
preferredAnswer: undefined;
|
|
43
46
|
answers: undefined;
|
|
44
47
|
}, "">;
|
|
@@ -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;AA6HhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkChC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -81,6 +81,7 @@ const ChoicePreferredAnswerSchema = (label = "Preferred answer") => (0, yup_exte
|
|
|
81
81
|
});
|
|
82
82
|
const ChoiceAnswerSchema = (0, yup_extended_1.lazy)((question) => {
|
|
83
83
|
const commonSchema = (0, yup_extended_1.mixed)().oneOfSchema([
|
|
84
|
+
// Note: this can be string, boolean, number, or other complex types
|
|
84
85
|
(0, yup_extended_1.string)().max(500),
|
|
85
86
|
common_1.NameIdLogoSchema,
|
|
86
87
|
common_1.OtherValueSchema,
|
|
@@ -112,7 +113,10 @@ exports.ChoiceQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_e
|
|
|
112
113
|
.oneOf([question_constant_1.QuestionType.Choice])
|
|
113
114
|
.required()
|
|
114
115
|
.label("Question type"),
|
|
115
|
-
optionsFrom: (0, yup_extended_1.string)()
|
|
116
|
+
optionsFrom: (0, yup_extended_1.string)()
|
|
117
|
+
.oneOf([common_1.Common.Skill, common_1.Common.EducationLevel, common_1.Common.ExperienceLevel])
|
|
118
|
+
.optional()
|
|
119
|
+
.label("Option field"),
|
|
116
120
|
options: (0, yup_extended_1.array)()
|
|
117
121
|
.of((0, yup_extended_1.lazy)((option) => {
|
|
118
122
|
if (typeof option === "string") {
|
|
@@ -128,8 +132,11 @@ exports.ChoiceQuestionSchema = question_schema_1.QuestionSchema.concat((0, yup_e
|
|
|
128
132
|
.min(1)
|
|
129
133
|
.required()
|
|
130
134
|
.label("Options"),
|
|
131
|
-
|
|
135
|
+
answerChoiceType: (0, yup_extended_1.string)()
|
|
136
|
+
.oneOf(question_constant_1.SupportedAnswerChoiceTypes)
|
|
137
|
+
.required()
|
|
138
|
+
.default(question_constant_1.AnswerChoiceType.Single)
|
|
139
|
+
.label("Type"),
|
|
132
140
|
preferredAnswer: ChoicePreferredAnswerSchema("Preferred answer"),
|
|
133
|
-
// The answers field now has its own complete validation logic
|
|
134
141
|
answers: ChoiceAnswerSchema,
|
|
135
142
|
}));
|
|
@@ -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';
|
|
@@ -182,7 +182,7 @@ export interface IJobSchema {
|
|
|
182
182
|
value: "others" | (string | undefined)[];
|
|
183
183
|
otherValue: string | string[];
|
|
184
184
|
} | undefined)[] | undefined;
|
|
185
|
-
optionsFrom?:
|
|
185
|
+
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
186
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
187
187
|
default: boolean;
|
|
188
188
|
title: string;
|
|
@@ -194,7 +194,19 @@ export interface IJobSchema {
|
|
|
194
194
|
value: "others" | (string | undefined)[];
|
|
195
195
|
otherValue: string | string[];
|
|
196
196
|
} | undefined)[];
|
|
197
|
-
|
|
197
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
198
|
+
} | {
|
|
199
|
+
label?: string | undefined;
|
|
200
|
+
isNew?: boolean | undefined;
|
|
201
|
+
isOptional?: boolean | undefined;
|
|
202
|
+
readonly?: boolean | undefined;
|
|
203
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
204
|
+
description: string;
|
|
205
|
+
default: boolean;
|
|
206
|
+
title: string;
|
|
207
|
+
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>;
|
|
208
|
+
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>;
|
|
209
|
+
})[] | undefined;
|
|
198
210
|
jdSummary?: string | undefined;
|
|
199
211
|
canCreateAlert?: boolean | undefined;
|
|
200
212
|
canDirectApply?: boolean | undefined;
|
|
@@ -358,7 +370,7 @@ export interface IobRoleTemplate {
|
|
|
358
370
|
value: "others" | (string | undefined)[];
|
|
359
371
|
otherValue: string | string[];
|
|
360
372
|
} | undefined)[] | undefined;
|
|
361
|
-
optionsFrom?:
|
|
373
|
+
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
374
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
363
375
|
default: boolean;
|
|
364
376
|
title: string;
|
|
@@ -370,6 +382,7 @@ export interface IobRoleTemplate {
|
|
|
370
382
|
value: "others" | (string | undefined)[];
|
|
371
383
|
otherValue: string | string[];
|
|
372
384
|
} | undefined)[];
|
|
385
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
373
386
|
})[] | undefined;
|
|
374
387
|
educationLevel?: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/common/constants").EducationLevel[] | undefined;
|
|
375
388
|
}
|
|
@@ -401,7 +414,7 @@ export interface IJobApplicationSchema {
|
|
|
401
414
|
value: "others" | (string | undefined)[];
|
|
402
415
|
otherValue: string | string[];
|
|
403
416
|
} | undefined)[] | undefined;
|
|
404
|
-
optionsFrom?:
|
|
417
|
+
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
418
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
406
419
|
default: boolean;
|
|
407
420
|
title: string;
|
|
@@ -413,7 +426,19 @@ export interface IJobApplicationSchema {
|
|
|
413
426
|
value: "others" | (string | undefined)[];
|
|
414
427
|
otherValue: string | string[];
|
|
415
428
|
} | undefined)[];
|
|
416
|
-
|
|
429
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
430
|
+
} | {
|
|
431
|
+
label?: string | undefined;
|
|
432
|
+
isNew?: boolean | undefined;
|
|
433
|
+
isOptional?: boolean | undefined;
|
|
434
|
+
readonly?: boolean | undefined;
|
|
435
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
436
|
+
description: string;
|
|
437
|
+
default: boolean;
|
|
438
|
+
title: string;
|
|
439
|
+
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>;
|
|
440
|
+
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>;
|
|
441
|
+
})[] | undefined;
|
|
417
442
|
applicationSummary?: string | undefined;
|
|
418
443
|
name: {
|
|
419
444
|
first: string;
|
|
@@ -697,7 +722,7 @@ export interface IJobRoleTemplateSchema {
|
|
|
697
722
|
value: "others" | (string | undefined)[];
|
|
698
723
|
otherValue: string | string[];
|
|
699
724
|
} | undefined)[] | undefined;
|
|
700
|
-
optionsFrom?:
|
|
725
|
+
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
726
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
702
727
|
default: boolean;
|
|
703
728
|
title: string;
|
|
@@ -709,7 +734,19 @@ export interface IJobRoleTemplateSchema {
|
|
|
709
734
|
value: "others" | (string | undefined)[];
|
|
710
735
|
otherValue: string | string[];
|
|
711
736
|
} | undefined)[];
|
|
712
|
-
|
|
737
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
738
|
+
} | {
|
|
739
|
+
label?: string | undefined;
|
|
740
|
+
isNew?: boolean | undefined;
|
|
741
|
+
isOptional?: boolean | undefined;
|
|
742
|
+
readonly?: boolean | undefined;
|
|
743
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
744
|
+
description: string;
|
|
745
|
+
default: boolean;
|
|
746
|
+
title: string;
|
|
747
|
+
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>;
|
|
748
|
+
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>;
|
|
749
|
+
})[] | undefined;
|
|
713
750
|
description: string;
|
|
714
751
|
headline: string;
|
|
715
752
|
designation: NonNullable<{
|
|
@@ -832,7 +869,7 @@ export interface IChoiceQuestionSchema {
|
|
|
832
869
|
value: "others" | (string | undefined)[];
|
|
833
870
|
otherValue: string | string[];
|
|
834
871
|
} | undefined)[] | undefined;
|
|
835
|
-
optionsFrom?:
|
|
872
|
+
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
873
|
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.Choice;
|
|
837
874
|
default: boolean;
|
|
838
875
|
title: string;
|
|
@@ -844,6 +881,7 @@ export interface IChoiceQuestionSchema {
|
|
|
844
881
|
value: "others" | (string | undefined)[];
|
|
845
882
|
otherValue: string | string[];
|
|
846
883
|
} | undefined)[];
|
|
884
|
+
answerChoiceType: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").AnswerChoiceType | undefined>;
|
|
847
885
|
}
|
|
848
886
|
export interface IInputQuestionSchema {
|
|
849
887
|
label?: string | undefined;
|
|
@@ -878,9 +916,12 @@ export interface IReadAndAcknowledgeQuestionSchema {
|
|
|
878
916
|
isNew?: boolean | undefined;
|
|
879
917
|
isOptional?: boolean | undefined;
|
|
880
918
|
readonly?: boolean | undefined;
|
|
881
|
-
type:
|
|
919
|
+
type: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/question/question.constant").QuestionType.ReadAndAcknowledge;
|
|
920
|
+
description: string;
|
|
882
921
|
default: boolean;
|
|
883
922
|
title: string;
|
|
923
|
+
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>;
|
|
924
|
+
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
925
|
}
|
|
885
926
|
export interface IResumeGeneralInfoSchema {
|
|
886
927
|
headline?: string | undefined;
|