@tudopz/model 2.26.4 → 3.0.0-dev.10
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/constant/neo-test.d.ts +7 -0
- package/src/constant/neo-test.js +11 -0
- package/src/constant/neo-test.js.map +1 -0
- package/src/constants.d.ts +17 -16
- package/src/constants.js +18 -63
- package/src/constants.js.map +1 -1
- package/src/enums.d.ts +22 -19
- package/src/enums.js +23 -51
- package/src/enums.js.map +1 -1
- package/src/model/neo-tag.d.ts +12 -0
- package/src/model/neo-tag.js +38 -0
- package/src/model/neo-tag.js.map +1 -0
- package/src/model/neo-test-flow.d.ts +28 -0
- package/src/model/neo-test-flow.js +17 -0
- package/src/model/neo-test-flow.js.map +1 -0
- package/src/model/neo-test-question-answer.d.ts +8 -0
- package/src/model/neo-test-question-answer.js +34 -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 +99 -0
- package/src/model/neo-test-question.js.map +1 -0
- package/src/model/neo-test-section-to-question.d.ts +9 -0
- package/src/model/neo-test-section-to-question.js +36 -0
- package/src/model/neo-test-section-to-question.js.map +1 -0
- package/src/model/neo-test-section.d.ts +10 -0
- package/src/model/neo-test-section.js +39 -0
- package/src/model/neo-test-section.js.map +1 -0
- package/src/model/neo-test.d.ts +19 -0
- package/src/model/neo-test.js +59 -0
- package/src/model/neo-test.js.map +1 -0
- package/src/models.d.ts +66 -58
- package/src/models.js +67 -128
- package/src/models.js.map +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
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_tag_1 = require("./neo-tag");
|
|
7
|
+
const neo_test_question_answer_1 = require("./neo-test-question-answer");
|
|
8
|
+
const neo_test_question_category_1 = require("./neo-test-question-category");
|
|
9
|
+
const neo_test_section_to_question_1 = require("./neo-test-section-to-question");
|
|
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' }),
|
|
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_tag_1.NeoTag, (tag) => tag.questions),
|
|
74
|
+
(0, typeorm_1.JoinTable)({
|
|
75
|
+
name: 'neo_test_questions_to_tags',
|
|
76
|
+
joinColumn: {
|
|
77
|
+
name: 'questionId',
|
|
78
|
+
referencedColumnName: 'id',
|
|
79
|
+
},
|
|
80
|
+
inverseJoinColumn: {
|
|
81
|
+
name: 'tagId',
|
|
82
|
+
referencedColumnName: 'id',
|
|
83
|
+
},
|
|
84
|
+
}),
|
|
85
|
+
tslib_1.__metadata("design:type", Array)
|
|
86
|
+
], NeoTestQuestion.prototype, "tags", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
(0, typeorm_1.OneToMany)(() => neo_test_section_to_question_1.NeoTestSectionToQuestion, (section) => section.question),
|
|
89
|
+
tslib_1.__metadata("design:type", Array)
|
|
90
|
+
], NeoTestQuestion.prototype, "sections", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, typeorm_1.OneToMany)(() => neo_test_question_answer_1.NeoTestQuestionAnswer, (answer) => answer.question),
|
|
93
|
+
tslib_1.__metadata("design:type", Array)
|
|
94
|
+
], NeoTestQuestion.prototype, "answers", void 0);
|
|
95
|
+
NeoTestQuestion = tslib_1.__decorate([
|
|
96
|
+
(0, typeorm_1.Entity)({ name: 'neo_test_questions' })
|
|
97
|
+
], NeoTestQuestion);
|
|
98
|
+
exports.NeoTestQuestion = NeoTestQuestion;
|
|
99
|
+
//# 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;AAEjB,uCAAmC;AACnC,yEAAmE;AACnE,6EAAuE;AACvE,iFAA0E;AAE1E,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,qCAAW,CAAA;IACX,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACtC,+EAAQ,CAAA;IACR,mFAAU,CAAA;IACV,+EAAQ,CAAA;AACV,CAAC,EAJW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAIvC;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAyD3B,CAAA;AAxDC;IAAC,IAAA,gCAAsB,GAAE;;2CACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;6CAC1C;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;gDACR;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACL;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;;6CACrB;AAE7B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACT;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACD;AAExB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kDACvB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACiB;AAEzC;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;kDAAC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;kDAAC;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oDAAuB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;IAChE,IAAA,oBAAU,GAAE;sCACH,oDAAuB;iDAAC;AAElC;IAAC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,gBAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC;IAChD,IAAA,mBAAS,EAAC;QACT,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,OAAO;YACb,oBAAoB,EAAE,IAAI;SAC3B;KACF,CAAC;;6CACa;AAEf;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uDAAwB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;;iDACpC;AAErC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gDAAqB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;;gDACnC;AAxDtB,eAAe;IAD3B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;GAC1B,eAAe,CAyD3B;AAzDY,0CAAe"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NeoTestQuestion } from './neo-test-question';
|
|
2
|
+
import { NeoTestSection } from './neo-test-section';
|
|
3
|
+
export declare class NeoTestSectionToQuestion {
|
|
4
|
+
sectionId: number;
|
|
5
|
+
questionId: number;
|
|
6
|
+
order: number;
|
|
7
|
+
section: NeoTestSection;
|
|
8
|
+
question: NeoTestQuestion;
|
|
9
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTestSectionToQuestion = 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
|
+
const neo_test_section_1 = require("./neo-test-section");
|
|
8
|
+
let NeoTestSectionToQuestion = class NeoTestSectionToQuestion {
|
|
9
|
+
};
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'int', nullable: false }),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], NeoTestSectionToQuestion.prototype, "sectionId", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'int', nullable: false }),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], NeoTestSectionToQuestion.prototype, "questionId", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
20
|
+
tslib_1.__metadata("design:type", Number)
|
|
21
|
+
], NeoTestSectionToQuestion.prototype, "order", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.ManyToOne)(() => neo_test_section_1.NeoTestSection, (section) => section.questions),
|
|
24
|
+
(0, typeorm_1.JoinColumn)(),
|
|
25
|
+
tslib_1.__metadata("design:type", neo_test_section_1.NeoTestSection)
|
|
26
|
+
], NeoTestSectionToQuestion.prototype, "section", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => neo_test_question_1.NeoTestQuestion, (question) => question.sections),
|
|
29
|
+
(0, typeorm_1.JoinColumn)(),
|
|
30
|
+
tslib_1.__metadata("design:type", neo_test_question_1.NeoTestQuestion)
|
|
31
|
+
], NeoTestSectionToQuestion.prototype, "question", void 0);
|
|
32
|
+
NeoTestSectionToQuestion = tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Entity)({ name: 'neo_test_sections_to_questions' })
|
|
34
|
+
], NeoTestSectionToQuestion);
|
|
35
|
+
exports.NeoTestSectionToQuestion = NeoTestSectionToQuestion;
|
|
36
|
+
//# sourceMappingURL=neo-test-section-to-question.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test-section-to-question.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-section-to-question.ts"],"names":[],"mappings":";;;;AAAA,qCAA+E;AAE/E,2DAAsD;AACtD,yDAAoD;AAG7C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAiBpC,CAAA;AAhBC;IAAC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DAC9B;AAElB;IAAC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4DAC7B;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDAC3B;AAEd;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;IAC/D,IAAA,oBAAU,GAAE;sCACJ,iCAAc;yDAAC;AAExB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC;IACjE,IAAA,oBAAU,GAAE;sCACH,mCAAe;0DAAC;AAhBf,wBAAwB;IADpC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC;GACtC,wBAAwB,CAiBpC;AAjBY,4DAAwB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NeoTest } from './neo-test';
|
|
2
|
+
import { NeoTestSectionToQuestion } from './neo-test-section-to-question';
|
|
3
|
+
export declare class NeoTestSection {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
testId: number;
|
|
8
|
+
test: NeoTest;
|
|
9
|
+
questions: NeoTestSectionToQuestion[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTestSection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_test_1 = require("./neo-test");
|
|
7
|
+
const neo_test_section_to_question_1 = require("./neo-test-section-to-question");
|
|
8
|
+
let NeoTestSection = class NeoTestSection {
|
|
9
|
+
};
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], NeoTestSection.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], NeoTestSection.prototype, "name", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
20
|
+
tslib_1.__metadata("design:type", Number)
|
|
21
|
+
], NeoTestSection.prototype, "duration", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
24
|
+
tslib_1.__metadata("design:type", Number)
|
|
25
|
+
], NeoTestSection.prototype, "testId", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => neo_test_1.NeoTest, (test) => test.sections),
|
|
28
|
+
(0, typeorm_1.JoinColumn)(),
|
|
29
|
+
tslib_1.__metadata("design:type", neo_test_1.NeoTest)
|
|
30
|
+
], NeoTestSection.prototype, "test", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.OneToMany)(() => neo_test_section_to_question_1.NeoTestSectionToQuestion, (question) => question.section),
|
|
33
|
+
tslib_1.__metadata("design:type", Array)
|
|
34
|
+
], NeoTestSection.prototype, "questions", void 0);
|
|
35
|
+
NeoTestSection = tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Entity)({ name: 'neo_test_sections' })
|
|
37
|
+
], NeoTestSection);
|
|
38
|
+
exports.NeoTestSection = NeoTestSection;
|
|
39
|
+
//# sourceMappingURL=neo-test-section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test-section.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-section.ts"],"names":[],"mappings":";;;;AAAA,qCAAmG;AAEnG,yCAAqC;AACrC,iFAA0E;AAGnE,IAAM,cAAc,GAApB,MAAM,cAAc;CAmB1B,CAAA;AAlBC;IAAC,IAAA,gCAAsB,GAAE;;0CACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;gDACP;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACT;AAEf;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjD,IAAA,oBAAU,GAAE;sCACP,kBAAO;4CAAC;AAEd;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uDAAwB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;;iDACpC;AAlB3B,cAAc;IAD1B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;GACzB,cAAc,CAmB1B;AAnBY,wCAAc"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NeoTestFlow } from './neo-test-flow';
|
|
2
|
+
import { NeoTestSection } from './neo-test-section';
|
|
3
|
+
export declare enum NEO_TEST_STATUS {
|
|
4
|
+
DRAFT = 1,
|
|
5
|
+
PUBLISHED = 2,
|
|
6
|
+
INACTIVE = 3
|
|
7
|
+
}
|
|
8
|
+
export declare class NeoTest {
|
|
9
|
+
id: number;
|
|
10
|
+
service: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
isDiagnostic: boolean;
|
|
14
|
+
flow?: NeoTestFlow;
|
|
15
|
+
status: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
sections: NeoTestSection[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTest = exports.NEO_TEST_STATUS = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const neo_test_section_1 = require("./neo-test-section");
|
|
7
|
+
var NEO_TEST_STATUS;
|
|
8
|
+
(function (NEO_TEST_STATUS) {
|
|
9
|
+
NEO_TEST_STATUS[NEO_TEST_STATUS["DRAFT"] = 1] = "DRAFT";
|
|
10
|
+
NEO_TEST_STATUS[NEO_TEST_STATUS["PUBLISHED"] = 2] = "PUBLISHED";
|
|
11
|
+
NEO_TEST_STATUS[NEO_TEST_STATUS["INACTIVE"] = 3] = "INACTIVE";
|
|
12
|
+
})(NEO_TEST_STATUS = exports.NEO_TEST_STATUS || (exports.NEO_TEST_STATUS = {}));
|
|
13
|
+
let NeoTest = class NeoTest {
|
|
14
|
+
};
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
|
18
|
+
], NeoTest.prototype, "id", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
21
|
+
tslib_1.__metadata("design:type", Number)
|
|
22
|
+
], NeoTest.prototype, "service", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], NeoTest.prototype, "name", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], NeoTest.prototype, "description", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
33
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
34
|
+
], NeoTest.prototype, "isDiagnostic", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
37
|
+
tslib_1.__metadata("design:type", Object)
|
|
38
|
+
], NeoTest.prototype, "flow", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', default: NEO_TEST_STATUS.DRAFT }),
|
|
41
|
+
tslib_1.__metadata("design:type", Number)
|
|
42
|
+
], NeoTest.prototype, "status", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
45
|
+
tslib_1.__metadata("design:type", Date)
|
|
46
|
+
], NeoTest.prototype, "createdAt", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
49
|
+
tslib_1.__metadata("design:type", Date)
|
|
50
|
+
], NeoTest.prototype, "updatedAt", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.OneToMany)(() => neo_test_section_1.NeoTestSection, (section) => section.test),
|
|
53
|
+
tslib_1.__metadata("design:type", Array)
|
|
54
|
+
], NeoTest.prototype, "sections", void 0);
|
|
55
|
+
NeoTest = tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.Entity)({ name: 'neo_tests' })
|
|
57
|
+
], NeoTest);
|
|
58
|
+
exports.NeoTest = NeoTest;
|
|
59
|
+
//# sourceMappingURL=neo-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAGjB,yDAAoD;AAEpD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,uDAAS,CAAA;IACT,+DAAa,CAAA;IACb,6DAAY,CAAA;AACd,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAGM,IAAM,OAAO,GAAb,MAAM,OAAO;CA8BnB,CAAA;AA7BC;IAAC,IAAA,gCAAsB,GAAE;;mCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;wCACR;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qCAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACrB;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACtB;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACtB;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;;uCACzC;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;0CAAC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;0CAAC;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;;yCAChC;AA7BhB,OAAO;IADnB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;GACjB,OAAO,CA8BnB;AA9BY,0BAAO"}
|
package/src/models.d.ts
CHANGED
|
@@ -1,58 +1,66 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
1
|
+
export * from './model/access-token';
|
|
2
|
+
export * from './model/answer-key';
|
|
3
|
+
export * from './model/case-study';
|
|
4
|
+
export * from './model/conversion-table';
|
|
5
|
+
export * from './model/course-template-event';
|
|
6
|
+
export * from './model/course-template';
|
|
7
|
+
export * from './model/dimension';
|
|
8
|
+
export * from './model/education-system';
|
|
9
|
+
export * from './model/event-log';
|
|
10
|
+
export * from './model/event-to-user';
|
|
11
|
+
export * from './model/event';
|
|
12
|
+
export * from './model/extracurricular-activity';
|
|
13
|
+
export * from './model/file-access';
|
|
14
|
+
export * from './model/file-category';
|
|
15
|
+
export * from './model/file';
|
|
16
|
+
export * from './model/log';
|
|
17
|
+
export * from './model/neo-tag';
|
|
18
|
+
export * from './model/neo-test-flow';
|
|
19
|
+
export * from './model/neo-test-question-answer';
|
|
20
|
+
export * from './model/neo-test-question-category';
|
|
21
|
+
export * from './model/neo-test-question';
|
|
22
|
+
export * from './model/neo-test-section-to-question';
|
|
23
|
+
export * from './model/neo-test-section';
|
|
24
|
+
export * from './model/neo-test';
|
|
25
|
+
export * from './model/guardian';
|
|
26
|
+
export * from './model/high-school-record';
|
|
27
|
+
export * from './model/journey-stage';
|
|
28
|
+
export * from './model/journey-to-student';
|
|
29
|
+
export * from './model/journey';
|
|
30
|
+
export * from './model/lead-assignment';
|
|
31
|
+
export * from './model/lead-form-field';
|
|
32
|
+
export * from './model/lead-form';
|
|
33
|
+
export * from './model/lead-queue';
|
|
34
|
+
export * from './model/lead';
|
|
35
|
+
export * from './model/part-time-assignment';
|
|
36
|
+
export * from './model/pd-pipeline';
|
|
37
|
+
export * from './model/pd-user';
|
|
38
|
+
export * from './model/profile';
|
|
39
|
+
export * from './model/pup-lead';
|
|
40
|
+
export * from './model/sale-split';
|
|
41
|
+
export * from './model/sale';
|
|
42
|
+
export * from './model/school';
|
|
43
|
+
export * from './model/staff-hour';
|
|
44
|
+
export * from './model/staff-subject-tag';
|
|
45
|
+
export * from './model/staff-hour-log';
|
|
46
|
+
export * from './model/student-answer';
|
|
47
|
+
export * from './model/student-extra';
|
|
48
|
+
export * from './model/student-goal';
|
|
49
|
+
export * from './model/student-note-checklist-item';
|
|
50
|
+
export * from './model/student-note';
|
|
51
|
+
export * from './model/student-service-membership-log';
|
|
52
|
+
export * from './model/student-service-membership';
|
|
53
|
+
export * from './model/student-service';
|
|
54
|
+
export * from './model/student-target';
|
|
55
|
+
export * from './model/test-attempt';
|
|
56
|
+
export * from './model/test-category';
|
|
57
|
+
export * from './model/test-question';
|
|
58
|
+
export * from './model/test-report';
|
|
59
|
+
export * from './model/test-score';
|
|
60
|
+
export * from './model/test-section';
|
|
61
|
+
export * from './model/test';
|
|
62
|
+
export * from './model/university-preference';
|
|
63
|
+
export * from './model/user-preference';
|
|
64
|
+
export * from './model/user-to-guardian';
|
|
65
|
+
export * from './model/user';
|
|
66
|
+
export * from './model/zoom-info';
|