@tudopz/model 3.0.0-dev.1 → 3.0.0-dev.13
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/package.json +5 -5
- 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/constant/student-service.js +2 -0
- package/src/constant/student-service.js.map +1 -1
- 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-domain.d.ts → neo-tag.d.ts} +6 -1
- 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 +2 -1
- package/src/model/neo-test-question-answer.js +6 -2
- package/src/model/neo-test-question-answer.js.map +1 -1
- package/src/model/neo-test-question.d.ts +4 -4
- package/src/model/neo-test-question.js +10 -21
- package/src/model/neo-test-question.js.map +1 -1
- 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/model/student-service.d.ts +2 -1
- package/src/model/student-service.js +1 -0
- package/src/model/student-service.js.map +1 -1
- package/src/models.d.ts +66 -58
- package/src/models.js +67 -128
- package/src/models.js.map +1 -1
- package/src/model/neo-domain.js +0 -29
- package/src/model/neo-domain.js.map +0 -1
- package/src/model/neo-skill.d.ts +0 -7
- package/src/model/neo-skill.js +0 -29
- package/src/model/neo-skill.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tudopz/model",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.13",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"typeorm": "0.2.
|
|
10
|
-
"lodash": "4.17.
|
|
11
|
-
"moment": "2.
|
|
12
|
-
"tslib": "2.4.1"
|
|
9
|
+
"typeorm": "^0.2.18",
|
|
10
|
+
"lodash": "^4.17.15",
|
|
11
|
+
"moment": "^2.24.0",
|
|
12
|
+
"tslib": "^2.4.1"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const NEO_TEST_QUESTION_TYPE_VALUES: {
|
|
2
|
+
mcq: string;
|
|
3
|
+
'key-in': string;
|
|
4
|
+
};
|
|
5
|
+
export declare const NEO_TEST_QUESTION_DIFFICULTY_VALUES: string[];
|
|
6
|
+
export declare const NEO_TAG_TYPE_VALUES: string[];
|
|
7
|
+
export declare const NEO_TEST_STATUS_VALUES: string[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NEO_TEST_STATUS_VALUES = exports.NEO_TAG_TYPE_VALUES = exports.NEO_TEST_QUESTION_DIFFICULTY_VALUES = exports.NEO_TEST_QUESTION_TYPE_VALUES = void 0;
|
|
4
|
+
exports.NEO_TEST_QUESTION_TYPE_VALUES = {
|
|
5
|
+
mcq: 'MCQ',
|
|
6
|
+
'key-in': 'Key-in',
|
|
7
|
+
};
|
|
8
|
+
exports.NEO_TEST_QUESTION_DIFFICULTY_VALUES = ['Easy', 'Medium', 'Hard'];
|
|
9
|
+
exports.NEO_TAG_TYPE_VALUES = ['Domain', 'Skill'];
|
|
10
|
+
exports.NEO_TEST_STATUS_VALUES = ['Draft', 'Published', 'Inactive'];
|
|
11
|
+
//# sourceMappingURL=neo-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test.js","sourceRoot":"","sources":["../../../../../libs/model/src/constant/neo-test.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GAAG;IAC3C,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,QAAQ;CACnB,CAAC;AACW,QAAA,mCAAmC,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AACjE,QAAA,mBAAmB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAA,sBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -45,6 +45,7 @@ exports.STUDENT_SERVICE_VALUES = [
|
|
|
45
45
|
'IB (Specialised)',
|
|
46
46
|
'INSEAD admissions day',
|
|
47
47
|
'Online SAT (practice)',
|
|
48
|
+
'Secondary',
|
|
48
49
|
];
|
|
49
50
|
exports.UNDERGRAD_TEST_SERVICES = [
|
|
50
51
|
student_service_1.STUDENT_SERVICE.SAT,
|
|
@@ -84,6 +85,7 @@ exports.SCHOOL_CURRICULUM_SERVICES = [
|
|
|
84
85
|
student_service_1.STUDENT_SERVICE.IGCSE,
|
|
85
86
|
student_service_1.STUDENT_SERVICE.MYP,
|
|
86
87
|
student_service_1.STUDENT_SERVICE.IB_SPECIALISED,
|
|
88
|
+
student_service_1.STUDENT_SERVICE.SECONDARY,
|
|
87
89
|
];
|
|
88
90
|
exports.ENGLISH_PROFICIENCY_SERVICES = [student_service_1.STUDENT_SERVICE.TOEFL, student_service_1.STUDENT_SERVICE.IELTS];
|
|
89
91
|
exports.ENRICHMENT_SERVICES = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-service.js","sourceRoot":"","sources":["../../../../../libs/model/src/constant/student-service.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAE9C,QAAA,sBAAsB,GAAG;IACpC,KAAK;IACL,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,UAAU;IACV,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,KAAK;IACL,SAAS;IACT,SAAS;IACT,KAAK;IACL,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,UAAU;IACV,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,OAAO;IACP,YAAY;IACZ,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,MAAM;IACN,YAAY;IACZ,SAAS;IACT,KAAK;IACL,kBAAkB;IAClB,uBAAuB;IACvB,uBAAuB;
|
|
1
|
+
{"version":3,"file":"student-service.js","sourceRoot":"","sources":["../../../../../libs/model/src/constant/student-service.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAE9C,QAAA,sBAAsB,GAAG;IACpC,KAAK;IACL,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,UAAU;IACV,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,KAAK;IACL,SAAS;IACT,SAAS;IACT,KAAK;IACL,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,UAAU;IACV,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,OAAO;IACP,OAAO;IACP,YAAY;IACZ,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,MAAM;IACN,YAAY;IACZ,SAAS;IACT,KAAK;IACL,kBAAkB;IAClB,uBAAuB;IACvB,uBAAuB;IACvB,WAAW;CACZ,CAAC;AAEW,QAAA,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CAAC,cAAc;IAC9B,iCAAe,CAAC,eAAe;CAChC,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,GAAG,kCAA0B;IAC7B,GAAG,2BAAmB;IACtB,iCAAe,CAAC,IAAI;IACpB,iCAAe,CAAC,UAAU;IAC1B,iCAAe,CAAC,sBAAsB;CACvC,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAC/B,GAAG,+BAAuB;IAC1B,GAAG,8BAAsB;IACzB,GAAG,oCAA4B;CAChC,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,GAAG,qCAA6B;IAChC,GAAG,oCAA4B;CAChC,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACpC,GAAG,+BAAuB;IAC1B,GAAG,qCAA6B;IAChC,GAAG,kCAA0B;IAC7B,GAAG,oCAA4B;IAC/B,GAAG,2BAAmB;CACvB,CAAC;AAEW,QAAA,qBAAqB,GAAG,CAAC,GAAG,8BAAsB,EAAE,GAAG,oCAA4B,CAAC,CAAC;AAErF,QAAA,uBAAuB,GAAG;IACrC,GAAG,+BAAuB;IAC1B,GAAG,8BAAsB;IACzB,GAAG,oCAA4B;IAC/B,GAAG,kCAA0B;CAC9B,CAAC;AAEW,QAAA,uBAAuB,GAAG;IACrC,GAAG,qCAA6B;IAChC,GAAG,oCAA4B;CAChC,CAAC"}
|
package/src/constants.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
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
|
|
1
|
+
export * from './constant/conversion-table';
|
|
2
|
+
export * from './constant/country';
|
|
3
|
+
export * from './constant/dimension';
|
|
4
|
+
export * from './constant/event';
|
|
5
|
+
export * from './constant/extracurricular-activity';
|
|
6
|
+
export * from './constant/guardian';
|
|
7
|
+
export * from './constant/nationality';
|
|
8
|
+
export * from './constant/lead-form';
|
|
9
|
+
export * from './constant/lead';
|
|
10
|
+
export * from './constant/location';
|
|
11
|
+
export * from './constant/sale';
|
|
12
|
+
export * from './constant/school';
|
|
13
|
+
export * from './constant/student-service';
|
|
14
|
+
export * from './constant/subject';
|
|
15
|
+
export * from './constant/university-preference';
|
|
16
|
+
export * from './constant/user';
|
|
17
|
+
export * from './constant/neo-test';
|
package/src/constants.js
CHANGED
|
@@ -1,66 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var lead_form_1 = require("./constant/lead-form");
|
|
22
|
-
Object.defineProperty(exports, "LEAD_FORM_ASSIGNMENT_VALUES", { enumerable: true, get: function () { return lead_form_1.LEAD_FORM_ASSIGNMENT_VALUES; } });
|
|
23
|
-
Object.defineProperty(exports, "LEAD_FORM_FIELD_TYPE_VALUES", { enumerable: true, get: function () { return lead_form_1.LEAD_FORM_FIELD_TYPE_VALUES; } });
|
|
24
|
-
Object.defineProperty(exports, "LEAD_FORM_FIELD_VALIDATION_VALUES", { enumerable: true, get: function () { return lead_form_1.LEAD_FORM_FIELD_VALIDATION_VALUES; } });
|
|
25
|
-
var lead_1 = require("./constant/lead");
|
|
26
|
-
Object.defineProperty(exports, "LEAD_QUALITY_VALUES", { enumerable: true, get: function () { return lead_1.LEAD_QUALITY_VALUES; } });
|
|
27
|
-
var location_1 = require("./constant/location");
|
|
28
|
-
Object.defineProperty(exports, "OFFICE_VALUES", { enumerable: true, get: function () { return location_1.OFFICE_VALUES; } });
|
|
29
|
-
Object.defineProperty(exports, "ROOMS", { enumerable: true, get: function () { return location_1.ROOMS; } });
|
|
30
|
-
var sale_1 = require("./constant/sale");
|
|
31
|
-
Object.defineProperty(exports, "SALE_PAYMENT_MODE_VALUES", { enumerable: true, get: function () { return sale_1.SALE_PAYMENT_MODE_VALUES; } });
|
|
32
|
-
Object.defineProperty(exports, "SALE_PAYMENT_TYPE_VALUES", { enumerable: true, get: function () { return sale_1.SALE_PAYMENT_TYPE_VALUES; } });
|
|
33
|
-
Object.defineProperty(exports, "SALE_TYPE_VALUES", { enumerable: true, get: function () { return sale_1.SALE_TYPE_VALUES; } });
|
|
34
|
-
Object.defineProperty(exports, "SALE_SUB_TYPE_VALUES", { enumerable: true, get: function () { return sale_1.SALE_SUB_TYPE_VALUES; } });
|
|
35
|
-
var school_1 = require("./constant/school");
|
|
36
|
-
Object.defineProperty(exports, "EDUCATION_SYSTEM_VALUES", { enumerable: true, get: function () { return school_1.EDUCATION_SYSTEM_VALUES; } });
|
|
37
|
-
Object.defineProperty(exports, "SCHOOL_VALUES", { enumerable: true, get: function () { return school_1.SCHOOL_VALUES; } });
|
|
38
|
-
Object.defineProperty(exports, "COURSES", { enumerable: true, get: function () { return school_1.COURSES; } });
|
|
39
|
-
Object.defineProperty(exports, "COURSE_SUBJECTS", { enumerable: true, get: function () { return school_1.COURSE_SUBJECTS; } });
|
|
40
|
-
Object.defineProperty(exports, "AREA_OF_STUDIES", { enumerable: true, get: function () { return school_1.AREA_OF_STUDIES; } });
|
|
41
|
-
var student_service_1 = require("./constant/student-service");
|
|
42
|
-
Object.defineProperty(exports, "STUDENT_SERVICE_VALUES", { enumerable: true, get: function () { return student_service_1.STUDENT_SERVICE_VALUES; } });
|
|
43
|
-
Object.defineProperty(exports, "UNDERGRAD_TEST_SERVICES", { enumerable: true, get: function () { return student_service_1.UNDERGRAD_TEST_SERVICES; } });
|
|
44
|
-
Object.defineProperty(exports, "UNDERGRAD_ADMISSIONS_SERVICES", { enumerable: true, get: function () { return student_service_1.UNDERGRAD_ADMISSIONS_SERVICES; } });
|
|
45
|
-
Object.defineProperty(exports, "POSTGRAD_TEST_SERVICES", { enumerable: true, get: function () { return student_service_1.POSTGRAD_TEST_SERVICES; } });
|
|
46
|
-
Object.defineProperty(exports, "POSTGRAD_ADMISSIONS_SERVICES", { enumerable: true, get: function () { return student_service_1.POSTGRAD_ADMISSIONS_SERVICES; } });
|
|
47
|
-
Object.defineProperty(exports, "SCHOOL_CURRICULUM_SERVICES", { enumerable: true, get: function () { return student_service_1.SCHOOL_CURRICULUM_SERVICES; } });
|
|
48
|
-
Object.defineProperty(exports, "ENGLISH_PROFICIENCY_SERVICES", { enumerable: true, get: function () { return student_service_1.ENGLISH_PROFICIENCY_SERVICES; } });
|
|
49
|
-
Object.defineProperty(exports, "ENRICHMENT_SERVICES", { enumerable: true, get: function () { return student_service_1.ENRICHMENT_SERVICES; } });
|
|
50
|
-
Object.defineProperty(exports, "NO_TARGETS", { enumerable: true, get: function () { return student_service_1.NO_TARGETS; } });
|
|
51
|
-
Object.defineProperty(exports, "TEST_PREP_TARGETS", { enumerable: true, get: function () { return student_service_1.TEST_PREP_TARGETS; } });
|
|
52
|
-
Object.defineProperty(exports, "ADMISSIONS_TARGETS", { enumerable: true, get: function () { return student_service_1.ADMISSIONS_TARGETS; } });
|
|
53
|
-
Object.defineProperty(exports, "UNDERGRAD_ALL_SERVICES", { enumerable: true, get: function () { return student_service_1.UNDERGRAD_ALL_SERVICES; } });
|
|
54
|
-
Object.defineProperty(exports, "POSTGRAD_ALL_SERVICES", { enumerable: true, get: function () { return student_service_1.POSTGRAD_ALL_SERVICES; } });
|
|
55
|
-
Object.defineProperty(exports, "ALL_ADMISSIONS_SERVICES", { enumerable: true, get: function () { return student_service_1.ALL_ADMISSIONS_SERVICES; } });
|
|
56
|
-
Object.defineProperty(exports, "ALL_TEST_PREPS_SERVICES", { enumerable: true, get: function () { return student_service_1.ALL_TEST_PREPS_SERVICES; } });
|
|
57
|
-
var subject_1 = require("./constant/subject");
|
|
58
|
-
Object.defineProperty(exports, "SUBJECT_VALUES", { enumerable: true, get: function () { return subject_1.SUBJECT_VALUES; } });
|
|
59
|
-
var university_preference_1 = require("./constant/university-preference");
|
|
60
|
-
Object.defineProperty(exports, "UNI_PREF_SIZES", { enumerable: true, get: function () { return university_preference_1.UNI_PREF_SIZES; } });
|
|
61
|
-
Object.defineProperty(exports, "UNI_PREF_SETTINGS", { enumerable: true, get: function () { return university_preference_1.UNI_PREF_SETTINGS; } });
|
|
62
|
-
Object.defineProperty(exports, "UNI_PREF_LOCATIONS", { enumerable: true, get: function () { return university_preference_1.UNI_PREF_LOCATIONS; } });
|
|
63
|
-
var user_1 = require("./constant/user");
|
|
64
|
-
Object.defineProperty(exports, "USER_STATUS_VALUES", { enumerable: true, get: function () { return user_1.USER_STATUS_VALUES; } });
|
|
65
|
-
Object.defineProperty(exports, "USER_ROLE_VALUES", { enumerable: true, get: function () { return user_1.USER_ROLE_VALUES; } });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./constant/conversion-table"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./constant/country"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./constant/dimension"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./constant/event"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./constant/extracurricular-activity"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./constant/guardian"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./constant/nationality"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./constant/lead-form"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./constant/lead"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./constant/location"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./constant/sale"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./constant/school"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./constant/student-service"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./constant/subject"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./constant/university-preference"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./constant/user"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./constant/neo-test"), exports);
|
|
66
21
|
//# sourceMappingURL=constants.js.map
|
package/src/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../libs/model/src/constants.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../libs/model/src/constants.ts"],"names":[],"mappings":";;;AAAA,sEAA4C;AAC5C,6DAAmC;AACnC,+DAAqC;AACrC,2DAAiC;AACjC,8EAAoD;AACpD,8DAAoC;AACpC,iEAAuC;AACvC,+DAAqC;AACrC,0DAAgC;AAChC,8DAAoC;AACpC,0DAAgC;AAChC,4DAAkC;AAClC,qEAA2C;AAC3C,6DAAmC;AACnC,2EAAiD;AACjD,0DAAgC;AAChC,8DAAoC"}
|
package/src/enums.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
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
|
|
1
|
+
export * from './model/conversion-table';
|
|
2
|
+
export * from './model/dimension';
|
|
3
|
+
export * from './model/event';
|
|
4
|
+
export * from './model/extracurricular-activity';
|
|
5
|
+
export * from './model/log';
|
|
6
|
+
export * from './model/lead-form-field';
|
|
7
|
+
export * from './model/lead-form';
|
|
8
|
+
export * from './model/lead';
|
|
9
|
+
export * from './model/neo-test';
|
|
10
|
+
export * from './model/profile';
|
|
11
|
+
export * from './model/sale';
|
|
12
|
+
export * from './model/school';
|
|
13
|
+
export * from './model/staff-hour-log';
|
|
14
|
+
export * from './model/student-note';
|
|
15
|
+
export * from './model/student-service-membership-log';
|
|
16
|
+
export * from './model/student-service';
|
|
17
|
+
export * from './model/test-attempt';
|
|
18
|
+
export * from './model/test-question';
|
|
19
|
+
export * from './model/user-to-guardian';
|
|
20
|
+
export * from './model/user';
|
|
21
|
+
export * from './model/neo-tag';
|
|
22
|
+
export * from './model/neo-test-question';
|
package/src/enums.js
CHANGED
|
@@ -1,54 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var profile_1 = require("./model/profile");
|
|
27
|
-
Object.defineProperty(exports, "GENDER", { enumerable: true, get: function () { return profile_1.GENDER; } });
|
|
28
|
-
Object.defineProperty(exports, "NATIONALITY", { enumerable: true, get: function () { return profile_1.NATIONALITY; } });
|
|
29
|
-
Object.defineProperty(exports, "COUNTRY", { enumerable: true, get: function () { return profile_1.COUNTRY; } });
|
|
30
|
-
var sale_1 = require("./model/sale");
|
|
31
|
-
Object.defineProperty(exports, "SALE_PAYMENT_MODE", { enumerable: true, get: function () { return sale_1.SALE_PAYMENT_MODE; } });
|
|
32
|
-
Object.defineProperty(exports, "SALE_PAYMENT_TYPE", { enumerable: true, get: function () { return sale_1.SALE_PAYMENT_TYPE; } });
|
|
33
|
-
Object.defineProperty(exports, "SALE_TYPE", { enumerable: true, get: function () { return sale_1.SALE_TYPE; } });
|
|
34
|
-
Object.defineProperty(exports, "SALE_SUB_TYPE", { enumerable: true, get: function () { return sale_1.SALE_SUB_TYPE; } });
|
|
35
|
-
var school_1 = require("./model/school");
|
|
36
|
-
Object.defineProperty(exports, "SCHOOL_LEVEL", { enumerable: true, get: function () { return school_1.SCHOOL_LEVEL; } });
|
|
37
|
-
var staff_hour_log_1 = require("./model/staff-hour-log");
|
|
38
|
-
Object.defineProperty(exports, "STAFF_HOUR_LOG_TYPE", { enumerable: true, get: function () { return staff_hour_log_1.STAFF_HOUR_LOG_TYPE; } });
|
|
39
|
-
var student_note_1 = require("./model/student-note");
|
|
40
|
-
Object.defineProperty(exports, "STUDENT_NOTE_VISIBILITY", { enumerable: true, get: function () { return student_note_1.STUDENT_NOTE_VISIBILITY; } });
|
|
41
|
-
var student_service_membership_log_1 = require("./model/student-service-membership-log");
|
|
42
|
-
Object.defineProperty(exports, "MEMBERSHIP_LOG_TYPE", { enumerable: true, get: function () { return student_service_membership_log_1.MEMBERSHIP_LOG_TYPE; } });
|
|
43
|
-
var student_service_1 = require("./model/student-service");
|
|
44
|
-
Object.defineProperty(exports, "STUDENT_SERVICE", { enumerable: true, get: function () { return student_service_1.STUDENT_SERVICE; } });
|
|
45
|
-
var test_attempt_1 = require("./model/test-attempt");
|
|
46
|
-
Object.defineProperty(exports, "TEST_ATTEMPT_STATUS", { enumerable: true, get: function () { return test_attempt_1.TEST_ATTEMPT_STATUS; } });
|
|
47
|
-
var test_question_1 = require("./model/test-question");
|
|
48
|
-
Object.defineProperty(exports, "TEST_QUESTION_TYPE", { enumerable: true, get: function () { return test_question_1.TEST_QUESTION_TYPE; } });
|
|
49
|
-
var user_to_guardian_1 = require("./model/user-to-guardian");
|
|
50
|
-
Object.defineProperty(exports, "GUARDIAN_RELATIONSHIP", { enumerable: true, get: function () { return user_to_guardian_1.GUARDIAN_RELATIONSHIP; } });
|
|
51
|
-
var user_1 = require("./model/user");
|
|
52
|
-
Object.defineProperty(exports, "USER_ROLE", { enumerable: true, get: function () { return user_1.USER_ROLE; } });
|
|
53
|
-
Object.defineProperty(exports, "USER_STATUS", { enumerable: true, get: function () { return user_1.USER_STATUS; } });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./model/conversion-table"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./model/dimension"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./model/event"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./model/extracurricular-activity"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./model/log"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./model/lead-form-field"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./model/lead-form"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./model/lead"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./model/neo-test"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./model/profile"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./model/sale"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./model/school"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./model/staff-hour-log"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./model/student-note"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./model/student-service-membership-log"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./model/student-service"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./model/test-attempt"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./model/test-question"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./model/user-to-guardian"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./model/user"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./model/neo-tag"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./model/neo-test-question"), exports);
|
|
54
26
|
//# sourceMappingURL=enums.js.map
|
package/src/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../libs/model/src/enums.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../libs/model/src/enums.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,4DAAkC;AAClC,wDAA8B;AAC9B,2EAAiD;AACjD,sDAA4B;AAC5B,kEAAwC;AACxC,4DAAkC;AAClC,uDAA6B;AAC7B,2DAAiC;AACjC,0DAAgC;AAChC,uDAA6B;AAC7B,yDAA+B;AAC/B,iEAAuC;AACvC,+DAAqC;AACrC,iFAAuD;AACvD,kEAAwC;AACxC,+DAAqC;AACrC,gEAAsC;AACtC,mEAAyC;AACzC,uDAA6B;AAC7B,0DAAgC;AAChC,oEAA0C"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { NeoTestQuestion } from './neo-test-question';
|
|
2
|
-
export declare
|
|
2
|
+
export declare enum NEO_TAG_TYPE {
|
|
3
|
+
DOMAIN = 1,
|
|
4
|
+
SKILL = 2
|
|
5
|
+
}
|
|
6
|
+
export declare class NeoTag {
|
|
3
7
|
id: number;
|
|
4
8
|
name: string;
|
|
5
9
|
description: string;
|
|
10
|
+
type: NEO_TAG_TYPE;
|
|
6
11
|
questions: NeoTestQuestion[];
|
|
7
12
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTag = exports.NEO_TAG_TYPE = 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
|
+
var NEO_TAG_TYPE;
|
|
8
|
+
(function (NEO_TAG_TYPE) {
|
|
9
|
+
NEO_TAG_TYPE[NEO_TAG_TYPE["DOMAIN"] = 1] = "DOMAIN";
|
|
10
|
+
NEO_TAG_TYPE[NEO_TAG_TYPE["SKILL"] = 2] = "SKILL";
|
|
11
|
+
})(NEO_TAG_TYPE = exports.NEO_TAG_TYPE || (exports.NEO_TAG_TYPE = {}));
|
|
12
|
+
let NeoTag = class NeoTag {
|
|
13
|
+
};
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], NeoTag.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], NeoTag.prototype, "name", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], NeoTag.prototype, "description", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
tslib_1.__metadata("design:type", Number)
|
|
29
|
+
], NeoTag.prototype, "type", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.ManyToMany)(() => neo_test_question_1.NeoTestQuestion, (question) => question.tags),
|
|
32
|
+
tslib_1.__metadata("design:type", Array)
|
|
33
|
+
], NeoTag.prototype, "questions", void 0);
|
|
34
|
+
NeoTag = tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Entity)({ name: 'neo_tags' })
|
|
36
|
+
], NeoTag);
|
|
37
|
+
exports.NeoTag = NeoTag;
|
|
38
|
+
//# sourceMappingURL=neo-tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-tag.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-tag.ts"],"names":[],"mappings":";;;;AAAA,qCAA6E;AAE7E,2DAAsD;AAEtD,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,iDAAS,CAAA;AACX,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAGM,IAAM,MAAM,GAAZ,MAAM,MAAM;CAelB,CAAA;AAdC;IAAC,IAAA,gCAAsB,GAAE;;kCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;oCAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACrB;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oCACL;AAEnB;IAAC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;;yCAClC;AAdlB,MAAM;IADlB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,MAAM,CAelB;AAfY,wBAAM"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare type NeoTestFlow = NeoTestFlowNode;
|
|
2
|
+
export interface NeoTestFlowNode {
|
|
3
|
+
order: number;
|
|
4
|
+
sectionId: number;
|
|
5
|
+
next: NeoTestFlowNode | NeoTestFlowCondition | null;
|
|
6
|
+
}
|
|
7
|
+
export interface NeoTestFlowCondition {
|
|
8
|
+
left: NeoTestFlowConditionLeftSide;
|
|
9
|
+
operator: NeoTestFlowOperator;
|
|
10
|
+
right: number;
|
|
11
|
+
truthy: NeoTestFlowNode;
|
|
12
|
+
falsy: NeoTestFlowNode | NeoTestFlowCondition;
|
|
13
|
+
}
|
|
14
|
+
export interface NeoTestFlowConditionLeftSide {
|
|
15
|
+
aggregator: NeoTestFlowAggregator;
|
|
16
|
+
sectionIds: number[];
|
|
17
|
+
}
|
|
18
|
+
export declare enum NeoTestFlowOperator {
|
|
19
|
+
LESS_THAN = "lt",
|
|
20
|
+
LESS_THEN_OR_EQUAL = "lte",
|
|
21
|
+
EQUAL = "e",
|
|
22
|
+
GREATER_THAN = "gt",
|
|
23
|
+
GREATER_THAN_OR_EQUAL = "gte"
|
|
24
|
+
}
|
|
25
|
+
export declare enum NeoTestFlowAggregator {
|
|
26
|
+
SUM = "sum",
|
|
27
|
+
AVERAGE = "avg"
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeoTestFlowAggregator = exports.NeoTestFlowOperator = void 0;
|
|
4
|
+
var NeoTestFlowOperator;
|
|
5
|
+
(function (NeoTestFlowOperator) {
|
|
6
|
+
NeoTestFlowOperator["LESS_THAN"] = "lt";
|
|
7
|
+
NeoTestFlowOperator["LESS_THEN_OR_EQUAL"] = "lte";
|
|
8
|
+
NeoTestFlowOperator["EQUAL"] = "e";
|
|
9
|
+
NeoTestFlowOperator["GREATER_THAN"] = "gt";
|
|
10
|
+
NeoTestFlowOperator["GREATER_THAN_OR_EQUAL"] = "gte";
|
|
11
|
+
})(NeoTestFlowOperator = exports.NeoTestFlowOperator || (exports.NeoTestFlowOperator = {}));
|
|
12
|
+
var NeoTestFlowAggregator;
|
|
13
|
+
(function (NeoTestFlowAggregator) {
|
|
14
|
+
NeoTestFlowAggregator["SUM"] = "sum";
|
|
15
|
+
NeoTestFlowAggregator["AVERAGE"] = "avg";
|
|
16
|
+
})(NeoTestFlowAggregator = exports.NeoTestFlowAggregator || (exports.NeoTestFlowAggregator = {}));
|
|
17
|
+
//# sourceMappingURL=neo-test-flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neo-test-flow.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-flow.ts"],"names":[],"mappings":";;;AAqBA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,uCAAgB,CAAA;IAChB,iDAA0B,CAAA;IAC1B,kCAAW,CAAA;IACX,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;AAC/B,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,oCAAW,CAAA;IACX,wCAAe,CAAA;AACjB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
|
@@ -17,10 +17,14 @@ tslib_1.__decorate([
|
|
|
17
17
|
tslib_1.__decorate([
|
|
18
18
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
19
19
|
tslib_1.__metadata("design:type", Number)
|
|
20
|
-
], NeoTestQuestionAnswer.prototype, "
|
|
20
|
+
], NeoTestQuestionAnswer.prototype, "order", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
23
|
+
tslib_1.__metadata("design:type", Number)
|
|
24
|
+
], NeoTestQuestionAnswer.prototype, "questionId", void 0);
|
|
21
25
|
tslib_1.__decorate([
|
|
22
26
|
(0, typeorm_1.ManyToOne)(() => neo_test_question_1.NeoTestQuestion, (question) => question.answers),
|
|
23
|
-
(0, typeorm_1.JoinColumn)(
|
|
27
|
+
(0, typeorm_1.JoinColumn)(),
|
|
24
28
|
tslib_1.__metadata("design:type", neo_test_question_1.NeoTestQuestion)
|
|
25
29
|
], NeoTestQuestionAnswer.prototype, "question", void 0);
|
|
26
30
|
NeoTestQuestionAnswer = tslib_1.__decorate([
|
|
@@ -1 +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;
|
|
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;CAgBjC,CAAA;AAfC;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;;oDACV;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;yDACL;AAEnB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IAChE,IAAA,oBAAU,GAAE;sCACH,mCAAe;uDAAC;AAff,qBAAqB;IADjC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;GACjC,qBAAqB,CAgBjC;AAhBY,sDAAqB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NeoSkill } from './neo-skill';
|
|
1
|
+
import { NeoTag } from './neo-tag';
|
|
3
2
|
import { NeoTestQuestionAnswer } from './neo-test-question-answer';
|
|
4
3
|
import { NeoTestQuestionCategory } from './neo-test-question-category';
|
|
4
|
+
import { NeoTestSectionToQuestion } from './neo-test-section-to-question';
|
|
5
5
|
export declare enum NEO_TEST_QUESTION_TYPE {
|
|
6
6
|
MCQ = "mcq",
|
|
7
7
|
KEY_IN = "key-in"
|
|
@@ -24,7 +24,7 @@ export declare class NeoTestQuestion {
|
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
26
26
|
category: NeoTestQuestionCategory;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
tags: NeoTag[];
|
|
28
|
+
sections: NeoTestSectionToQuestion[];
|
|
29
29
|
answers: NeoTestQuestionAnswer[];
|
|
30
30
|
}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NeoTestQuestion = exports.NEO_TEST_QUESTION_DIFFICULTY = exports.NEO_TEST_QUESTION_TYPE = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
|
-
const
|
|
7
|
-
const neo_skill_1 = require("./neo-skill");
|
|
6
|
+
const neo_tag_1 = require("./neo-tag");
|
|
8
7
|
const neo_test_question_answer_1 = require("./neo-test-question-answer");
|
|
9
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
10
|
var NEO_TEST_QUESTION_TYPE;
|
|
11
11
|
(function (NEO_TEST_QUESTION_TYPE) {
|
|
12
12
|
NEO_TEST_QUESTION_TYPE["MCQ"] = "mcq";
|
|
@@ -33,7 +33,7 @@ tslib_1.__decorate([
|
|
|
33
33
|
tslib_1.__metadata("design:type", Number)
|
|
34
34
|
], NeoTestQuestion.prototype, "service", void 0);
|
|
35
35
|
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'int'
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
37
37
|
tslib_1.__metadata("design:type", Number)
|
|
38
38
|
], NeoTestQuestion.prototype, "categoryId", void 0);
|
|
39
39
|
tslib_1.__decorate([
|
|
@@ -70,35 +70,24 @@ tslib_1.__decorate([
|
|
|
70
70
|
tslib_1.__metadata("design:type", neo_test_question_category_1.NeoTestQuestionCategory)
|
|
71
71
|
], NeoTestQuestion.prototype, "category", void 0);
|
|
72
72
|
tslib_1.__decorate([
|
|
73
|
-
(0, typeorm_1.ManyToMany)(() =>
|
|
73
|
+
(0, typeorm_1.ManyToMany)(() => neo_tag_1.NeoTag, (tag) => tag.questions),
|
|
74
74
|
(0, typeorm_1.JoinTable)({
|
|
75
|
-
name: '
|
|
75
|
+
name: 'neo_test_questions_to_tags',
|
|
76
76
|
joinColumn: {
|
|
77
|
-
name: '
|
|
77
|
+
name: 'questionId',
|
|
78
78
|
referencedColumnName: 'id',
|
|
79
79
|
},
|
|
80
80
|
inverseJoinColumn: {
|
|
81
|
-
name: '
|
|
81
|
+
name: 'tagId',
|
|
82
82
|
referencedColumnName: 'id',
|
|
83
83
|
},
|
|
84
84
|
}),
|
|
85
85
|
tslib_1.__metadata("design:type", Array)
|
|
86
|
-
], NeoTestQuestion.prototype, "
|
|
86
|
+
], NeoTestQuestion.prototype, "tags", void 0);
|
|
87
87
|
tslib_1.__decorate([
|
|
88
|
-
(0, typeorm_1.
|
|
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
|
-
}),
|
|
88
|
+
(0, typeorm_1.OneToMany)(() => neo_test_section_to_question_1.NeoTestSectionToQuestion, (section) => section.question),
|
|
100
89
|
tslib_1.__metadata("design:type", Array)
|
|
101
|
-
], NeoTestQuestion.prototype, "
|
|
90
|
+
], NeoTestQuestion.prototype, "sections", void 0);
|
|
102
91
|
tslib_1.__decorate([
|
|
103
92
|
(0, typeorm_1.OneToMany)(() => neo_test_question_answer_1.NeoTestQuestionAnswer, (answer) => answer.question),
|
|
104
93
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo-test-question.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/neo-test-question.ts"],"names":[],"mappings":";;;;AAAA,qCAWiB;
|
|
1
|
+
{"version":3,"file":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