@tudopz/model 3.0.0-dev.1 → 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.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/src/constant/neo-test.d.ts +7 -0
  3. package/src/constant/neo-test.js +11 -0
  4. package/src/constant/neo-test.js.map +1 -0
  5. package/src/constants.d.ts +17 -16
  6. package/src/constants.js +18 -63
  7. package/src/constants.js.map +1 -1
  8. package/src/enums.d.ts +22 -19
  9. package/src/enums.js +23 -51
  10. package/src/enums.js.map +1 -1
  11. package/src/model/{neo-domain.d.ts → neo-tag.d.ts} +6 -1
  12. package/src/model/neo-tag.js +38 -0
  13. package/src/model/neo-tag.js.map +1 -0
  14. package/src/model/neo-test-flow.d.ts +28 -0
  15. package/src/model/neo-test-flow.js +17 -0
  16. package/src/model/neo-test-flow.js.map +1 -0
  17. package/src/model/neo-test-question-answer.d.ts +2 -1
  18. package/src/model/neo-test-question-answer.js +6 -2
  19. package/src/model/neo-test-question-answer.js.map +1 -1
  20. package/src/model/neo-test-question.d.ts +4 -4
  21. package/src/model/neo-test-question.js +10 -21
  22. package/src/model/neo-test-question.js.map +1 -1
  23. package/src/model/neo-test-section-to-question.d.ts +9 -0
  24. package/src/model/neo-test-section-to-question.js +36 -0
  25. package/src/model/neo-test-section-to-question.js.map +1 -0
  26. package/src/model/neo-test-section.d.ts +10 -0
  27. package/src/model/neo-test-section.js +39 -0
  28. package/src/model/neo-test-section.js.map +1 -0
  29. package/src/model/neo-test.d.ts +19 -0
  30. package/src/model/neo-test.js +59 -0
  31. package/src/model/neo-test.js.map +1 -0
  32. package/src/models.d.ts +66 -58
  33. package/src/models.js +67 -128
  34. package/src/models.js.map +1 -1
  35. package/src/model/neo-domain.js +0 -29
  36. package/src/model/neo-domain.js.map +0 -1
  37. package/src/model/neo-skill.d.ts +0 -7
  38. package/src/model/neo-skill.js +0 -29
  39. package/src/model/neo-skill.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tudopz/model",
3
- "version": "3.0.0-dev.1",
3
+ "version": "3.0.0-dev.10",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -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"}
@@ -1,16 +1,17 @@
1
- export { CONVERSION_TABLE_TYPE_VALUES } from './constant/conversion-table';
2
- export { COUNTRY_VALUES } from './constant/country';
3
- export { DIMENSION_TYPE_VALUES, DIMENSION_CATEGORY_VALUES } from './constant/dimension';
4
- export { EVENT_CATEGORY_VALUES, EVENT_VISIBILITY_VALUES, EVENT_STATUS_VALUES, } from './constant/event';
5
- export { EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES } from './constant/extracurricular-activity';
6
- export { GUARDIAN_RELATIONSHIP_VALUES } from './constant/guardian';
7
- export { NATIONALITY_VALUES } from './constant/nationality';
8
- export { LEAD_FORM_ASSIGNMENT_VALUES, LEAD_FORM_FIELD_TYPE_VALUES, LEAD_FORM_FIELD_VALIDATION_VALUES, } from './constant/lead-form';
9
- export { LEAD_QUALITY_VALUES } from './constant/lead';
10
- export { OFFICE_VALUES, ROOMS } from './constant/location';
11
- export { SALE_PAYMENT_MODE_VALUES, SALE_PAYMENT_TYPE_VALUES, SALE_TYPE_VALUES, SALE_SUB_TYPE_VALUES, } from './constant/sale';
12
- export { EDUCATION_SYSTEM_VALUES, SCHOOL_VALUES, COURSES, COURSE_SUBJECTS, AREA_OF_STUDIES, } from './constant/school';
13
- export { STUDENT_SERVICE_VALUES, UNDERGRAD_TEST_SERVICES, UNDERGRAD_ADMISSIONS_SERVICES, POSTGRAD_TEST_SERVICES, POSTGRAD_ADMISSIONS_SERVICES, SCHOOL_CURRICULUM_SERVICES, ENGLISH_PROFICIENCY_SERVICES, ENRICHMENT_SERVICES, NO_TARGETS, TEST_PREP_TARGETS, ADMISSIONS_TARGETS, UNDERGRAD_ALL_SERVICES, POSTGRAD_ALL_SERVICES, ALL_ADMISSIONS_SERVICES, ALL_TEST_PREPS_SERVICES, } from './constant/student-service';
14
- export { SUBJECT_VALUES } from './constant/subject';
15
- export { UNI_PREF_SIZES, UNI_PREF_SETTINGS, UNI_PREF_LOCATIONS, } from './constant/university-preference';
16
- export { USER_STATUS_VALUES, USER_ROLE_VALUES } from './constant/user';
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
- exports.USER_ROLE_VALUES = exports.USER_STATUS_VALUES = exports.UNI_PREF_LOCATIONS = exports.UNI_PREF_SETTINGS = exports.UNI_PREF_SIZES = exports.SUBJECT_VALUES = exports.ALL_TEST_PREPS_SERVICES = exports.ALL_ADMISSIONS_SERVICES = exports.POSTGRAD_ALL_SERVICES = exports.UNDERGRAD_ALL_SERVICES = exports.ADMISSIONS_TARGETS = exports.TEST_PREP_TARGETS = exports.NO_TARGETS = exports.ENRICHMENT_SERVICES = exports.ENGLISH_PROFICIENCY_SERVICES = exports.SCHOOL_CURRICULUM_SERVICES = exports.POSTGRAD_ADMISSIONS_SERVICES = exports.POSTGRAD_TEST_SERVICES = exports.UNDERGRAD_ADMISSIONS_SERVICES = exports.UNDERGRAD_TEST_SERVICES = exports.STUDENT_SERVICE_VALUES = exports.AREA_OF_STUDIES = exports.COURSE_SUBJECTS = exports.COURSES = exports.SCHOOL_VALUES = exports.EDUCATION_SYSTEM_VALUES = exports.SALE_SUB_TYPE_VALUES = exports.SALE_TYPE_VALUES = exports.SALE_PAYMENT_TYPE_VALUES = exports.SALE_PAYMENT_MODE_VALUES = exports.ROOMS = exports.OFFICE_VALUES = exports.LEAD_QUALITY_VALUES = exports.LEAD_FORM_FIELD_VALIDATION_VALUES = exports.LEAD_FORM_FIELD_TYPE_VALUES = exports.LEAD_FORM_ASSIGNMENT_VALUES = exports.NATIONALITY_VALUES = exports.GUARDIAN_RELATIONSHIP_VALUES = exports.EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES = exports.EVENT_STATUS_VALUES = exports.EVENT_VISIBILITY_VALUES = exports.EVENT_CATEGORY_VALUES = exports.DIMENSION_CATEGORY_VALUES = exports.DIMENSION_TYPE_VALUES = exports.COUNTRY_VALUES = exports.CONVERSION_TABLE_TYPE_VALUES = void 0;
4
- var conversion_table_1 = require("./constant/conversion-table");
5
- Object.defineProperty(exports, "CONVERSION_TABLE_TYPE_VALUES", { enumerable: true, get: function () { return conversion_table_1.CONVERSION_TABLE_TYPE_VALUES; } });
6
- var country_1 = require("./constant/country");
7
- Object.defineProperty(exports, "COUNTRY_VALUES", { enumerable: true, get: function () { return country_1.COUNTRY_VALUES; } });
8
- var dimension_1 = require("./constant/dimension");
9
- Object.defineProperty(exports, "DIMENSION_TYPE_VALUES", { enumerable: true, get: function () { return dimension_1.DIMENSION_TYPE_VALUES; } });
10
- Object.defineProperty(exports, "DIMENSION_CATEGORY_VALUES", { enumerable: true, get: function () { return dimension_1.DIMENSION_CATEGORY_VALUES; } });
11
- var event_1 = require("./constant/event");
12
- Object.defineProperty(exports, "EVENT_CATEGORY_VALUES", { enumerable: true, get: function () { return event_1.EVENT_CATEGORY_VALUES; } });
13
- Object.defineProperty(exports, "EVENT_VISIBILITY_VALUES", { enumerable: true, get: function () { return event_1.EVENT_VISIBILITY_VALUES; } });
14
- Object.defineProperty(exports, "EVENT_STATUS_VALUES", { enumerable: true, get: function () { return event_1.EVENT_STATUS_VALUES; } });
15
- var extracurricular_activity_1 = require("./constant/extracurricular-activity");
16
- Object.defineProperty(exports, "EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES", { enumerable: true, get: function () { return extracurricular_activity_1.EXTRACURRICULAR_ACTIVITY_CATEGORY_VALUES; } });
17
- var guardian_1 = require("./constant/guardian");
18
- Object.defineProperty(exports, "GUARDIAN_RELATIONSHIP_VALUES", { enumerable: true, get: function () { return guardian_1.GUARDIAN_RELATIONSHIP_VALUES; } });
19
- var nationality_1 = require("./constant/nationality");
20
- Object.defineProperty(exports, "NATIONALITY_VALUES", { enumerable: true, get: function () { return nationality_1.NATIONALITY_VALUES; } });
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
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../libs/model/src/constants.ts"],"names":[],"mappings":";;;AAAA,gEAA2E;AAAlE,gIAAA,4BAA4B,OAAA;AACrC,8CAAoD;AAA3C,yGAAA,cAAc,OAAA;AACvB,kDAAwF;AAA/E,kHAAA,qBAAqB,OAAA;AAAE,sHAAA,yBAAyB,OAAA;AACzD,0CAI0B;AAHxB,8GAAA,qBAAqB,OAAA;AACrB,gHAAA,uBAAuB,OAAA;AACvB,4GAAA,mBAAmB,OAAA;AAErB,gFAA+F;AAAtF,oJAAA,wCAAwC,OAAA;AACjD,gDAAmE;AAA1D,wHAAA,4BAA4B,OAAA;AACrC,sDAA4D;AAAnD,iHAAA,kBAAkB,OAAA;AAC3B,kDAI8B;AAH5B,wHAAA,2BAA2B,OAAA;AAC3B,wHAAA,2BAA2B,OAAA;AAC3B,8HAAA,iCAAiC,OAAA;AAEnC,wCAAsD;AAA7C,2GAAA,mBAAmB,OAAA;AAC5B,gDAA2D;AAAlD,yGAAA,aAAa,OAAA;AAAE,iGAAA,KAAK,OAAA;AAC7B,wCAKyB;AAJvB,gHAAA,wBAAwB,OAAA;AACxB,gHAAA,wBAAwB,OAAA;AACxB,wGAAA,gBAAgB,OAAA;AAChB,4GAAA,oBAAoB,OAAA;AAEtB,4CAM2B;AALzB,iHAAA,uBAAuB,OAAA;AACvB,uGAAA,aAAa,OAAA;AACb,iGAAA,OAAO,OAAA;AACP,yGAAA,eAAe,OAAA;AACf,yGAAA,eAAe,OAAA;AAEjB,8DAgBoC;AAflC,yHAAA,sBAAsB,OAAA;AACtB,0HAAA,uBAAuB,OAAA;AACvB,gIAAA,6BAA6B,OAAA;AAC7B,yHAAA,sBAAsB,OAAA;AACtB,+HAAA,4BAA4B,OAAA;AAC5B,6HAAA,0BAA0B,OAAA;AAC1B,+HAAA,4BAA4B,OAAA;AAC5B,sHAAA,mBAAmB,OAAA;AACnB,6GAAA,UAAU,OAAA;AACV,oHAAA,iBAAiB,OAAA;AACjB,qHAAA,kBAAkB,OAAA;AAClB,yHAAA,sBAAsB,OAAA;AACtB,wHAAA,qBAAqB,OAAA;AACrB,0HAAA,uBAAuB,OAAA;AACvB,0HAAA,uBAAuB,OAAA;AAEzB,8CAAoD;AAA3C,yGAAA,cAAc,OAAA;AACvB,0EAI0C;AAHxC,uHAAA,cAAc,OAAA;AACd,0HAAA,iBAAiB,OAAA;AACjB,2HAAA,kBAAkB,OAAA;AAEpB,wCAAuE;AAA9D,0GAAA,kBAAkB,OAAA;AAAE,wGAAA,gBAAgB,OAAA"}
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 { CONVERSION_TABLE_TYPE } from './model/conversion-table';
2
- export { DIMENSION_TYPE, DIMENSION_CATEGORY } from './model/dimension';
3
- export { EVENT_CATEGORY, EVENT_VISIBILITY, EVENT_STATUS, OFFICE } from './model/event';
4
- export { EXTRACURRICULAR_ACTIVITY_CATEGORY } from './model/extracurricular-activity';
5
- export { LOG_TYPE, LOG_ACTION } from './model/log';
6
- export { LEAD_FORM_FIELD_TYPE, LEAD_FORM_FIELD_VALIDATION } from './model/lead-form-field';
7
- export { LEAD_FORM_ASSIGNMENT } from './model/lead-form';
8
- export { LEAD_QUALITY } from './model/lead';
9
- export { GENDER, NATIONALITY, COUNTRY } from './model/profile';
10
- export { SALE_PAYMENT_MODE, SALE_PAYMENT_TYPE, SALE_TYPE, SALE_SUB_TYPE } from './model/sale';
11
- export { SCHOOL_LEVEL } from './model/school';
12
- export { STAFF_HOUR_LOG_TYPE } from './model/staff-hour-log';
13
- export { STUDENT_NOTE_VISIBILITY } from './model/student-note';
14
- export { MEMBERSHIP_LOG_TYPE } from './model/student-service-membership-log';
15
- export { STUDENT_SERVICE } from './model/student-service';
16
- export { TEST_ATTEMPT_STATUS } from './model/test-attempt';
17
- export { TEST_QUESTION_TYPE } from './model/test-question';
18
- export { GUARDIAN_RELATIONSHIP } from './model/user-to-guardian';
19
- export { USER_ROLE, USER_STATUS } from './model/user';
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
- exports.USER_STATUS = exports.USER_ROLE = exports.GUARDIAN_RELATIONSHIP = exports.TEST_QUESTION_TYPE = exports.TEST_ATTEMPT_STATUS = exports.STUDENT_SERVICE = exports.MEMBERSHIP_LOG_TYPE = exports.STUDENT_NOTE_VISIBILITY = exports.STAFF_HOUR_LOG_TYPE = exports.SCHOOL_LEVEL = exports.SALE_SUB_TYPE = exports.SALE_TYPE = exports.SALE_PAYMENT_TYPE = exports.SALE_PAYMENT_MODE = exports.COUNTRY = exports.NATIONALITY = exports.GENDER = exports.LEAD_QUALITY = exports.LEAD_FORM_ASSIGNMENT = exports.LEAD_FORM_FIELD_VALIDATION = exports.LEAD_FORM_FIELD_TYPE = exports.LOG_ACTION = exports.LOG_TYPE = exports.EXTRACURRICULAR_ACTIVITY_CATEGORY = exports.OFFICE = exports.EVENT_STATUS = exports.EVENT_VISIBILITY = exports.EVENT_CATEGORY = exports.DIMENSION_CATEGORY = exports.DIMENSION_TYPE = exports.CONVERSION_TABLE_TYPE = void 0;
4
- var conversion_table_1 = require("./model/conversion-table");
5
- Object.defineProperty(exports, "CONVERSION_TABLE_TYPE", { enumerable: true, get: function () { return conversion_table_1.CONVERSION_TABLE_TYPE; } });
6
- var dimension_1 = require("./model/dimension");
7
- Object.defineProperty(exports, "DIMENSION_TYPE", { enumerable: true, get: function () { return dimension_1.DIMENSION_TYPE; } });
8
- Object.defineProperty(exports, "DIMENSION_CATEGORY", { enumerable: true, get: function () { return dimension_1.DIMENSION_CATEGORY; } });
9
- var event_1 = require("./model/event");
10
- Object.defineProperty(exports, "EVENT_CATEGORY", { enumerable: true, get: function () { return event_1.EVENT_CATEGORY; } });
11
- Object.defineProperty(exports, "EVENT_VISIBILITY", { enumerable: true, get: function () { return event_1.EVENT_VISIBILITY; } });
12
- Object.defineProperty(exports, "EVENT_STATUS", { enumerable: true, get: function () { return event_1.EVENT_STATUS; } });
13
- Object.defineProperty(exports, "OFFICE", { enumerable: true, get: function () { return event_1.OFFICE; } });
14
- var extracurricular_activity_1 = require("./model/extracurricular-activity");
15
- Object.defineProperty(exports, "EXTRACURRICULAR_ACTIVITY_CATEGORY", { enumerable: true, get: function () { return extracurricular_activity_1.EXTRACURRICULAR_ACTIVITY_CATEGORY; } });
16
- var log_1 = require("./model/log");
17
- Object.defineProperty(exports, "LOG_TYPE", { enumerable: true, get: function () { return log_1.LOG_TYPE; } });
18
- Object.defineProperty(exports, "LOG_ACTION", { enumerable: true, get: function () { return log_1.LOG_ACTION; } });
19
- var lead_form_field_1 = require("./model/lead-form-field");
20
- Object.defineProperty(exports, "LEAD_FORM_FIELD_TYPE", { enumerable: true, get: function () { return lead_form_field_1.LEAD_FORM_FIELD_TYPE; } });
21
- Object.defineProperty(exports, "LEAD_FORM_FIELD_VALIDATION", { enumerable: true, get: function () { return lead_form_field_1.LEAD_FORM_FIELD_VALIDATION; } });
22
- var lead_form_1 = require("./model/lead-form");
23
- Object.defineProperty(exports, "LEAD_FORM_ASSIGNMENT", { enumerable: true, get: function () { return lead_form_1.LEAD_FORM_ASSIGNMENT; } });
24
- var lead_1 = require("./model/lead");
25
- Object.defineProperty(exports, "LEAD_QUALITY", { enumerable: true, get: function () { return lead_1.LEAD_QUALITY; } });
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,6DAAiE;AAAxD,yHAAA,qBAAqB,OAAA;AAC9B,+CAAuE;AAA9D,2GAAA,cAAc,OAAA;AAAE,+GAAA,kBAAkB,OAAA;AAC3C,uCAAuF;AAA9E,uGAAA,cAAc,OAAA;AAAE,yGAAA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ACvC,+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 class NeoDomain {
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"}
@@ -2,6 +2,7 @@ import { NeoTestQuestion } from './neo-test-question';
2
2
  export declare class NeoTestQuestionAnswer {
3
3
  id: number;
4
4
  content: string;
5
- testQuestionId: number;
5
+ order: number;
6
+ questionId: number;
6
7
  question: NeoTestQuestion;
7
8
  }
@@ -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, "testQuestionId", void 0);
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)({ name: 'testQuestionId' }),
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;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"}
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 { NeoDomain } from './neo-domain';
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
- domains: NeoDomain[];
28
- skills: NeoSkill[];
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 neo_domain_1 = require("./neo-domain");
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', length: 100 }),
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)(() => neo_domain_1.NeoDomain, (domain) => domain.questions),
73
+ (0, typeorm_1.ManyToMany)(() => neo_tag_1.NeoTag, (tag) => tag.questions),
74
74
  (0, typeorm_1.JoinTable)({
75
- name: 'neo_test_questions_to_domains',
75
+ name: 'neo_test_questions_to_tags',
76
76
  joinColumn: {
77
- name: 'testQuestionId',
77
+ name: 'questionId',
78
78
  referencedColumnName: 'id',
79
79
  },
80
80
  inverseJoinColumn: {
81
- name: 'domainId',
81
+ name: 'tagId',
82
82
  referencedColumnName: 'id',
83
83
  },
84
84
  }),
85
85
  tslib_1.__metadata("design:type", Array)
86
- ], NeoTestQuestion.prototype, "domains", void 0);
86
+ ], NeoTestQuestion.prototype, "tags", void 0);
87
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
- }),
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, "skills", void 0);
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;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;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;CAoE3B,CAAA;AAnEC;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,MAAM,EAAE,GAAG,EAAE,CAAC;;mDAClB;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,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AE,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