@tudopz/model 2.26.4 → 3.0.0-dev.1
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/README.md +4 -0
- package/package.json +1 -1
- package/src/model/neo-domain.d.ts +7 -0
- package/src/model/neo-domain.js +29 -0
- package/src/model/neo-domain.js.map +1 -0
- package/src/model/neo-skill.d.ts +7 -0
- package/src/model/neo-skill.js +29 -0
- package/src/model/neo-skill.js.map +1 -0
- package/src/model/neo-test-question-answer.d.ts +7 -0
- package/src/model/neo-test-question-answer.js +30 -0
- package/src/model/neo-test-question-answer.js.map +1 -0
- package/src/model/neo-test-question-category.d.ts +8 -0
- package/src/model/neo-test-question-category.js +33 -0
- package/src/model/neo-test-question-category.js.map +1 -0
- package/src/model/neo-test-question.d.ts +30 -0
- package/src/model/neo-test-question.js +110 -0
- package/src/model/neo-test-question.js.map +1 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoDomain = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_test_question_1 = require("./neo-test-question");
|
|
7
|
+
let NeoDomain = class NeoDomain {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], NeoDomain.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], NeoDomain.prototype, "name", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], NeoDomain.prototype, "description", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.ManyToMany)(() => neo_test_question_1.NeoTestQuestion, (question) => question.domains),
|
|
23
|
+
tslib_1.__metadata("design:type", Array)
|
|
24
|
+
], NeoDomain.prototype, "questions", void 0);
|
|
25
|
+
NeoDomain = tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Entity)({ name: 'neo_domains' })
|
|
27
|
+
], NeoDomain);
|
|
28
|
+
exports.NeoDomain = NeoDomain;
|
|
29
|
+
//# sourceMappingURL=neo-domain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-domain.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-domain.ts"],"names":[],"mappings":";;;;AAAA,qCAA6E;AAE7E,2DAAsD;AAG/C,IAAM,SAAS,GAAf,MAAM,SAAS;CAYrB,CAAA;AAXC;IAAC,IAAA,gCAAsB,GAAE;;qCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;uCAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACrB;AAEpB;IAAC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;4CACrC;AAXlB,SAAS;IADrB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;GACnB,SAAS,CAYrB;AAZY,8BAAS"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoSkill = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_test_question_1 = require("./neo-test-question");
|
|
7
|
+
let NeoSkill = class NeoSkill {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], NeoSkill.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], NeoSkill.prototype, "name", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], NeoSkill.prototype, "description", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.ManyToMany)(() => neo_test_question_1.NeoTestQuestion, (question) => question.skills),
|
|
23
|
+
tslib_1.__metadata("design:type", Array)
|
|
24
|
+
], NeoSkill.prototype, "questions", void 0);
|
|
25
|
+
NeoSkill = tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Entity)({ name: 'neo_skills' })
|
|
27
|
+
], NeoSkill);
|
|
28
|
+
exports.NeoSkill = NeoSkill;
|
|
29
|
+
//# sourceMappingURL=neo-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-skill.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-skill.ts"],"names":[],"mappings":";;;;AAAA,qCAA6E;AAE7E,2DAAsD;AAG/C,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAYpB,CAAA;AAXC;IAAC,IAAA,gCAAsB,GAAE;;oCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;sCAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACrB;AAEpB;IAAC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;2CACpC;AAXlB,QAAQ;IADpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;GAClB,QAAQ,CAYpB;AAZY,4BAAQ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTestQuestionAnswer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_test_question_1 = require("./neo-test-question");
|
|
7
|
+
let NeoTestQuestionAnswer = class NeoTestQuestionAnswer {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], NeoTestQuestionAnswer.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], NeoTestQuestionAnswer.prototype, "content", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
19
|
+
tslib_1.__metadata("design:type", Number)
|
|
20
|
+
], NeoTestQuestionAnswer.prototype, "testQuestionId", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.ManyToOne)(() => neo_test_question_1.NeoTestQuestion, (question) => question.answers),
|
|
23
|
+
(0, typeorm_1.JoinColumn)({ name: 'testQuestionId' }),
|
|
24
|
+
tslib_1.__metadata("design:type", neo_test_question_1.NeoTestQuestion)
|
|
25
|
+
], NeoTestQuestionAnswer.prototype, "question", void 0);
|
|
26
|
+
NeoTestQuestionAnswer = tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Entity)({ name: 'neo_test_question_answers' })
|
|
28
|
+
], NeoTestQuestionAnswer);
|
|
29
|
+
exports.NeoTestQuestionAnswer = NeoTestQuestionAnswer;
|
|
30
|
+
//# sourceMappingURL=neo-test-question-answer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test-question-answer.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-question-answer.ts"],"names":[],"mappings":";;;;AAAA,qCAAwF;AAExF,2DAAsD;AAG/C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAajC,CAAA;AAZC;IAAC,IAAA,gCAAsB,GAAE;;iDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACT;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6DACD;AAEvB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IAChE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;sCAC7B,mCAAe;uDAAC;AAZf,qBAAqB;IADjC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;GACjC,qBAAqB,CAajC;AAbY,sDAAqB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTestQuestionCategory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_test_question_1 = require("./neo-test-question");
|
|
7
|
+
let NeoTestQuestionCategory = class NeoTestQuestionCategory {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], NeoTestQuestionCategory.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
15
|
+
tslib_1.__metadata("design:type", Number)
|
|
16
|
+
], NeoTestQuestionCategory.prototype, "service", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], NeoTestQuestionCategory.prototype, "name", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], NeoTestQuestionCategory.prototype, "description", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.OneToMany)(() => neo_test_question_1.NeoTestQuestion, (q) => q.category),
|
|
27
|
+
tslib_1.__metadata("design:type", Array)
|
|
28
|
+
], NeoTestQuestionCategory.prototype, "questions", void 0);
|
|
29
|
+
NeoTestQuestionCategory = tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.Entity)({ name: 'neo_test_question_categories' })
|
|
31
|
+
], NeoTestQuestionCategory);
|
|
32
|
+
exports.NeoTestQuestionCategory = NeoTestQuestionCategory;
|
|
33
|
+
//# sourceMappingURL=neo-test-question-category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test-question-category.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-question-category.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,2DAAsD;AAG/C,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAenC,CAAA;AAdC;IAAC,IAAA,gCAAsB,GAAE;;mDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;wDACR;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qDAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACrB;AAEpB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;;0DACvB;AAdlB,uBAAuB;IADnC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;GACpC,uBAAuB,CAenC;AAfY,0DAAuB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NeoDomain } from './neo-domain';
|
|
2
|
+
import { NeoSkill } from './neo-skill';
|
|
3
|
+
import { NeoTestQuestionAnswer } from './neo-test-question-answer';
|
|
4
|
+
import { NeoTestQuestionCategory } from './neo-test-question-category';
|
|
5
|
+
export declare enum NEO_TEST_QUESTION_TYPE {
|
|
6
|
+
MCQ = "mcq",
|
|
7
|
+
KEY_IN = "key-in"
|
|
8
|
+
}
|
|
9
|
+
export declare enum NEO_TEST_QUESTION_DIFFICULTY {
|
|
10
|
+
EASY = 1,
|
|
11
|
+
MEDIUM = 2,
|
|
12
|
+
HARD = 3
|
|
13
|
+
}
|
|
14
|
+
export declare class NeoTestQuestion {
|
|
15
|
+
id: number;
|
|
16
|
+
uuid: string;
|
|
17
|
+
service: number;
|
|
18
|
+
categoryId: number;
|
|
19
|
+
type: NEO_TEST_QUESTION_TYPE;
|
|
20
|
+
content: string;
|
|
21
|
+
isExperimental: boolean;
|
|
22
|
+
answerKey: string;
|
|
23
|
+
difficulty: NEO_TEST_QUESTION_DIFFICULTY;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
category: NeoTestQuestionCategory;
|
|
27
|
+
domains: NeoDomain[];
|
|
28
|
+
skills: NeoSkill[];
|
|
29
|
+
answers: NeoTestQuestionAnswer[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTestQuestion = exports.NEO_TEST_QUESTION_DIFFICULTY = exports.NEO_TEST_QUESTION_TYPE = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_domain_1 = require("./neo-domain");
|
|
7
|
+
const neo_skill_1 = require("./neo-skill");
|
|
8
|
+
const neo_test_question_answer_1 = require("./neo-test-question-answer");
|
|
9
|
+
const neo_test_question_category_1 = require("./neo-test-question-category");
|
|
10
|
+
var NEO_TEST_QUESTION_TYPE;
|
|
11
|
+
(function (NEO_TEST_QUESTION_TYPE) {
|
|
12
|
+
NEO_TEST_QUESTION_TYPE["MCQ"] = "mcq";
|
|
13
|
+
NEO_TEST_QUESTION_TYPE["KEY_IN"] = "key-in";
|
|
14
|
+
})(NEO_TEST_QUESTION_TYPE = exports.NEO_TEST_QUESTION_TYPE || (exports.NEO_TEST_QUESTION_TYPE = {}));
|
|
15
|
+
var NEO_TEST_QUESTION_DIFFICULTY;
|
|
16
|
+
(function (NEO_TEST_QUESTION_DIFFICULTY) {
|
|
17
|
+
NEO_TEST_QUESTION_DIFFICULTY[NEO_TEST_QUESTION_DIFFICULTY["EASY"] = 1] = "EASY";
|
|
18
|
+
NEO_TEST_QUESTION_DIFFICULTY[NEO_TEST_QUESTION_DIFFICULTY["MEDIUM"] = 2] = "MEDIUM";
|
|
19
|
+
NEO_TEST_QUESTION_DIFFICULTY[NEO_TEST_QUESTION_DIFFICULTY["HARD"] = 3] = "HARD";
|
|
20
|
+
})(NEO_TEST_QUESTION_DIFFICULTY = exports.NEO_TEST_QUESTION_DIFFICULTY || (exports.NEO_TEST_QUESTION_DIFFICULTY = {}));
|
|
21
|
+
let NeoTestQuestion = class NeoTestQuestion {
|
|
22
|
+
};
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
25
|
+
tslib_1.__metadata("design:type", Number)
|
|
26
|
+
], NeoTestQuestion.prototype, "id", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], NeoTestQuestion.prototype, "uuid", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
33
|
+
tslib_1.__metadata("design:type", Number)
|
|
34
|
+
], NeoTestQuestion.prototype, "service", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', length: 100 }),
|
|
37
|
+
tslib_1.__metadata("design:type", Number)
|
|
38
|
+
], NeoTestQuestion.prototype, "categoryId", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ['mcq', 'key-in'] }),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], NeoTestQuestion.prototype, "type", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
45
|
+
tslib_1.__metadata("design:type", String)
|
|
46
|
+
], NeoTestQuestion.prototype, "content", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'bool' }),
|
|
49
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
50
|
+
], NeoTestQuestion.prototype, "isExperimental", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
53
|
+
tslib_1.__metadata("design:type", String)
|
|
54
|
+
], NeoTestQuestion.prototype, "answerKey", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
57
|
+
tslib_1.__metadata("design:type", Number)
|
|
58
|
+
], NeoTestQuestion.prototype, "difficulty", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
61
|
+
tslib_1.__metadata("design:type", Date)
|
|
62
|
+
], NeoTestQuestion.prototype, "createdAt", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
65
|
+
tslib_1.__metadata("design:type", Date)
|
|
66
|
+
], NeoTestQuestion.prototype, "updatedAt", void 0);
|
|
67
|
+
tslib_1.__decorate([
|
|
68
|
+
(0, typeorm_1.ManyToOne)(() => neo_test_question_category_1.NeoTestQuestionCategory, (cat) => cat.questions),
|
|
69
|
+
(0, typeorm_1.JoinColumn)(),
|
|
70
|
+
tslib_1.__metadata("design:type", neo_test_question_category_1.NeoTestQuestionCategory)
|
|
71
|
+
], NeoTestQuestion.prototype, "category", void 0);
|
|
72
|
+
tslib_1.__decorate([
|
|
73
|
+
(0, typeorm_1.ManyToMany)(() => neo_domain_1.NeoDomain, (domain) => domain.questions),
|
|
74
|
+
(0, typeorm_1.JoinTable)({
|
|
75
|
+
name: 'neo_test_questions_to_domains',
|
|
76
|
+
joinColumn: {
|
|
77
|
+
name: 'testQuestionId',
|
|
78
|
+
referencedColumnName: 'id',
|
|
79
|
+
},
|
|
80
|
+
inverseJoinColumn: {
|
|
81
|
+
name: 'domainId',
|
|
82
|
+
referencedColumnName: 'id',
|
|
83
|
+
},
|
|
84
|
+
}),
|
|
85
|
+
tslib_1.__metadata("design:type", Array)
|
|
86
|
+
], NeoTestQuestion.prototype, "domains", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
(0, typeorm_1.ManyToMany)(() => neo_skill_1.NeoSkill, (skill) => skill.questions),
|
|
89
|
+
(0, typeorm_1.JoinTable)({
|
|
90
|
+
name: 'neo_test_questions_to_skills',
|
|
91
|
+
joinColumn: {
|
|
92
|
+
name: 'testQuestionId',
|
|
93
|
+
referencedColumnName: 'id',
|
|
94
|
+
},
|
|
95
|
+
inverseJoinColumn: {
|
|
96
|
+
name: 'skillId',
|
|
97
|
+
referencedColumnName: 'id',
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
100
|
+
tslib_1.__metadata("design:type", Array)
|
|
101
|
+
], NeoTestQuestion.prototype, "skills", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, typeorm_1.OneToMany)(() => neo_test_question_answer_1.NeoTestQuestionAnswer, (answer) => answer.question),
|
|
104
|
+
tslib_1.__metadata("design:type", Array)
|
|
105
|
+
], NeoTestQuestion.prototype, "answers", void 0);
|
|
106
|
+
NeoTestQuestion = tslib_1.__decorate([
|
|
107
|
+
(0, typeorm_1.Entity)({ name: 'neo_test_questions' })
|
|
108
|
+
], NeoTestQuestion);
|
|
109
|
+
exports.NeoTestQuestion = NeoTestQuestion;
|
|
110
|
+
//# sourceMappingURL=neo-test-question.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test-question.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-question.ts"],"names":[],"mappings":";;;;AAAA,qCAWiB;AACjB,6CAAyC;AACzC,2CAAuC;AACvC,yEAAmE;AAEnE,6EAAuE;AAEvE,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,qCAAW,CAAA;IACX,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,4BAIX;A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