@tudopz/model 2.27.77 → 2.27.79

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tudopz/model",
3
- "version": "2.27.77",
3
+ "version": "2.27.79",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -0,0 +1 @@
1
+ export declare const SESSION_TYPE_VALUES: string[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SESSION_TYPE_VALUES = void 0;
4
+ exports.SESSION_TYPE_VALUES = ['Tutorial', 'Concept Class', 'Practice & Review'];
5
+ //# sourceMappingURL=service-course.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-course.js","sourceRoot":"","sources":["../../../../../libs/model/src/constant/service-course.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC"}
@@ -10,6 +10,7 @@ export * from './constant/lead';
10
10
  export * from './constant/location';
11
11
  export * from './constant/sale';
12
12
  export * from './constant/school';
13
+ export * from './constant/service-course';
13
14
  export * from './constant/student-assignment';
14
15
  export * from './constant/student-service';
15
16
  export * from './constant/subject';
package/src/constants.js CHANGED
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./constant/lead"), exports);
13
13
  tslib_1.__exportStar(require("./constant/location"), exports);
14
14
  tslib_1.__exportStar(require("./constant/sale"), exports);
15
15
  tslib_1.__exportStar(require("./constant/school"), exports);
16
+ tslib_1.__exportStar(require("./constant/service-course"), exports);
16
17
  tslib_1.__exportStar(require("./constant/student-assignment"), exports);
17
18
  tslib_1.__exportStar(require("./constant/student-service"), exports);
18
19
  tslib_1.__exportStar(require("./constant/subject"), exports);
@@ -1 +1 @@
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,wEAA8C;AAC9C,qEAA2C;AAC3C,6DAAmC;AACnC,2EAAiD;AACjD,0DAAgC"}
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,oEAA0C;AAC1C,wEAA8C;AAC9C,qEAA2C;AAC3C,6DAAmC;AACnC,2EAAiD;AACjD,0DAAgC"}
@@ -1,9 +1,19 @@
1
+ import { EVENT_CATEGORY, EVENT_VISIBILITY } from './event';
1
2
  import { ServiceCourse } from './service-course';
3
+ export declare enum SESSION_TYPE {
4
+ TUTORIAL = 1,
5
+ CONCEPT_CLASS = 2,
6
+ PRACTICE_REVIEW = 3
7
+ }
2
8
  export declare class ServiceCourseSession {
3
9
  id: number;
4
10
  order: number;
5
11
  name: string;
6
12
  description: string;
13
+ type: SESSION_TYPE;
14
+ duration: number;
15
+ category: EVENT_CATEGORY;
16
+ visibility: EVENT_VISIBILITY;
7
17
  courseId: number;
8
18
  createdAt: Date;
9
19
  updatedAt: Date;
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCourseSession = void 0;
3
+ exports.ServiceCourseSession = exports.SESSION_TYPE = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const typeorm_1 = require("typeorm");
6
+ const event_1 = require("./event");
6
7
  const service_course_1 = require("./service-course");
8
+ var SESSION_TYPE;
9
+ (function (SESSION_TYPE) {
10
+ SESSION_TYPE[SESSION_TYPE["TUTORIAL"] = 1] = "TUTORIAL";
11
+ SESSION_TYPE[SESSION_TYPE["CONCEPT_CLASS"] = 2] = "CONCEPT_CLASS";
12
+ SESSION_TYPE[SESSION_TYPE["PRACTICE_REVIEW"] = 3] = "PRACTICE_REVIEW";
13
+ })(SESSION_TYPE = exports.SESSION_TYPE || (exports.SESSION_TYPE = {}));
7
14
  let ServiceCourseSession = class ServiceCourseSession {
8
15
  };
9
16
  tslib_1.__decorate([
@@ -22,6 +29,22 @@ tslib_1.__decorate([
22
29
  (0, typeorm_1.Column)({ type: 'text' }),
23
30
  tslib_1.__metadata("design:type", String)
24
31
  ], ServiceCourseSession.prototype, "description", void 0);
32
+ tslib_1.__decorate([
33
+ (0, typeorm_1.Column)({ type: 'int', default: SESSION_TYPE.TUTORIAL }),
34
+ tslib_1.__metadata("design:type", Number)
35
+ ], ServiceCourseSession.prototype, "type", void 0);
36
+ tslib_1.__decorate([
37
+ (0, typeorm_1.Column)({ type: 'double' }),
38
+ tslib_1.__metadata("design:type", Number)
39
+ ], ServiceCourseSession.prototype, "duration", void 0);
40
+ tslib_1.__decorate([
41
+ (0, typeorm_1.Column)({ type: 'int' }),
42
+ tslib_1.__metadata("design:type", Number)
43
+ ], ServiceCourseSession.prototype, "category", void 0);
44
+ tslib_1.__decorate([
45
+ (0, typeorm_1.Column)({ type: 'int' }),
46
+ tslib_1.__metadata("design:type", Number)
47
+ ], ServiceCourseSession.prototype, "visibility", void 0);
25
48
  tslib_1.__decorate([
26
49
  (0, typeorm_1.Column)({ type: 'int' }),
27
50
  tslib_1.__metadata("design:type", Number)
@@ -1 +1 @@
1
- {"version":3,"file":"service-course-session.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/service-course-session.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,qDAAiD;AAG1C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAyBhC,CAAA;AAxBC;IAAC,IAAA,gCAAsB,GAAE;;gDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACV;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;kDAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDACL;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;sDACP;AAEjB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uDAAC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uDAAC;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IACjD,IAAA,oBAAU,GAAE;sCACL,8BAAa;oDAAC;AAxBX,oBAAoB;IADhC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;GAC/B,oBAAoB,CAyBhC;AAzBY,oDAAoB"}
1
+ {"version":3,"file":"service-course-session.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/service-course-session.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,mCAA2D;AAC3D,qDAAiD;AAEjD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,uDAAY,CAAA;IACZ,iEAAa,CAAA;IACb,qEAAe,CAAA;AACjB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAqChC,CAAA;AApCC;IAAC,IAAA,gCAAsB,GAAE;;gDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,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