@tudopz/model 2.27.71 → 2.27.73
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 +1 -1
- package/src/model/event.d.ts +8 -0
- package/src/model/event.js +25 -0
- package/src/model/event.js.map +1 -1
- package/src/model/service-course-session.d.ts +13 -0
- package/src/model/service-course-session.js +51 -0
- package/src/model/service-course-session.js.map +1 -0
- package/src/model/service-course.d.ts +14 -0
- package/src/model/service-course.js +54 -0
- package/src/model/service-course.js.map +1 -0
- package/src/model/student-service-deadline.d.ts +8 -0
- package/src/model/student-service-deadline.js +33 -0
- package/src/model/student-service-deadline.js.map +1 -0
- package/src/model/student-service.d.ts +2 -0
- package/src/model/student-service.js +5 -0
- package/src/model/student-service.js.map +1 -1
- package/src/model/student-session-attendance.d.ts +17 -0
- package/src/model/student-session-attendance.js +64 -0
- package/src/model/student-session-attendance.js.map +1 -0
- package/src/model/user.d.ts +2 -0
- package/src/model/user.js +5 -0
- package/src/model/user.js.map +1 -1
- package/src/models.d.ts +4 -0
- package/src/models.js +4 -0
- package/src/models.js.map +1 -1
package/package.json
CHANGED
package/src/model/event.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { User } from './user';
|
|
|
3
3
|
import { StudentNote } from './student-note';
|
|
4
4
|
import { STUDENT_SERVICE } from './student-service';
|
|
5
5
|
import { EventToUser } from './event-to-user';
|
|
6
|
+
import { StudentSessionAttendance } from './student-session-attendance';
|
|
7
|
+
import { ServiceCourse } from './service-course';
|
|
8
|
+
import { ServiceCourseSession } from './service-course-session';
|
|
6
9
|
export declare enum EVENT_CATEGORY {
|
|
7
10
|
LESSON_GROUP = 1,
|
|
8
11
|
LESSON_INDIVIDUAL = 2,
|
|
@@ -77,4 +80,9 @@ export declare class Event {
|
|
|
77
80
|
creator: User;
|
|
78
81
|
eventLogs: EventLog[];
|
|
79
82
|
studentNotes: StudentNote[];
|
|
83
|
+
sessionAttendances: StudentSessionAttendance[];
|
|
84
|
+
courseId?: number;
|
|
85
|
+
course: ServiceCourse;
|
|
86
|
+
sessionId?: number;
|
|
87
|
+
session: ServiceCourseSession;
|
|
80
88
|
}
|
package/src/model/event.js
CHANGED
|
@@ -8,6 +8,9 @@ const user_1 = require("./user");
|
|
|
8
8
|
const student_note_1 = require("./student-note");
|
|
9
9
|
const student_service_1 = require("./student-service");
|
|
10
10
|
const event_to_user_1 = require("./event-to-user");
|
|
11
|
+
const student_session_attendance_1 = require("./student-session-attendance");
|
|
12
|
+
const service_course_1 = require("./service-course");
|
|
13
|
+
const service_course_session_1 = require("./service-course-session");
|
|
11
14
|
var EVENT_CATEGORY;
|
|
12
15
|
(function (EVENT_CATEGORY) {
|
|
13
16
|
EVENT_CATEGORY[EVENT_CATEGORY["LESSON_GROUP"] = 1] = "LESSON_GROUP";
|
|
@@ -160,6 +163,28 @@ tslib_1.__decorate([
|
|
|
160
163
|
(0, typeorm_1.OneToMany)(() => student_note_1.StudentNote, (note) => note.event),
|
|
161
164
|
tslib_1.__metadata("design:type", Array)
|
|
162
165
|
], Event.prototype, "studentNotes", void 0);
|
|
166
|
+
tslib_1.__decorate([
|
|
167
|
+
(0, typeorm_1.OneToMany)(() => student_session_attendance_1.StudentSessionAttendance, (a) => a.event),
|
|
168
|
+
tslib_1.__metadata("design:type", Array)
|
|
169
|
+
], Event.prototype, "sessionAttendances", void 0);
|
|
170
|
+
tslib_1.__decorate([
|
|
171
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
172
|
+
tslib_1.__metadata("design:type", Number)
|
|
173
|
+
], Event.prototype, "courseId", void 0);
|
|
174
|
+
tslib_1.__decorate([
|
|
175
|
+
(0, typeorm_1.ManyToOne)(() => service_course_1.ServiceCourse),
|
|
176
|
+
(0, typeorm_1.JoinColumn)(),
|
|
177
|
+
tslib_1.__metadata("design:type", service_course_1.ServiceCourse)
|
|
178
|
+
], Event.prototype, "course", void 0);
|
|
179
|
+
tslib_1.__decorate([
|
|
180
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
181
|
+
tslib_1.__metadata("design:type", Number)
|
|
182
|
+
], Event.prototype, "sessionId", void 0);
|
|
183
|
+
tslib_1.__decorate([
|
|
184
|
+
(0, typeorm_1.ManyToOne)(() => service_course_session_1.ServiceCourseSession),
|
|
185
|
+
(0, typeorm_1.JoinColumn)(),
|
|
186
|
+
tslib_1.__metadata("design:type", service_course_session_1.ServiceCourseSession)
|
|
187
|
+
], Event.prototype, "session", void 0);
|
|
163
188
|
Event = tslib_1.__decorate([
|
|
164
189
|
(0, typeorm_1.Entity)({ name: 'events' })
|
|
165
190
|
], Event);
|
package/src/model/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/event.ts"],"names":[],"mappings":";;;;AAAA,qCAUiB;AAEjB,2CAAuC;AACvC,iCAA8B;AAC9B,iDAA6C;AAC7C,uDAAoD;AACpD,mDAA8C;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/event.ts"],"names":[],"mappings":";;;;AAAA,qCAUiB;AAEjB,2CAAuC;AACvC,iCAA8B;AAC9B,iDAA6C;AAC7C,uDAAoD;AACpD,mDAA8C;AAC9C,6EAAwE;AACxE,qDAAiD;AACjD,qEAAgE;AAEhE,IAAY,cA2BX;AA3BD,WAAY,cAAc;IACxB,mEAAgB,CAAA;IAChB,6EAAiB,CAAA;IACjB,qEAAa,CAAA;IACb,+EAAkB,CAAA;IAClB,qEAAa,CAAA;IACb,qDAAK,CAAA;IACL,2EAAgB,CAAA;IAChB,qDAAK,CAAA;IACL,qEAAa,CAAA;IACb,8DAAS,CAAA;IACT,0FAAuB,CAAA;IACvB,kEAAW,CAAA;IACX,4EAAgB,CAAA;IAChB,8EAAiB,CAAA;IACjB,sEAAa,CAAA;IACb,oFAAoB,CAAA;IACpB,gEAAU,CAAA;IACV,wFAAsB,CAAA;IACtB,w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,KAAK,EAAE,CAAC;;wCACN;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,oBAAU,GAAE;sCACJ,WAAI;sCAAC;AAEd;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;wCAClC;AAEtB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;;2CACvB;AAE5B;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;;iDACX;AAE/C;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtB;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IAC9B,IAAA,oBAAU,GAAE;sCACL,8BAAa;qCAAC;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACrB;AAEnB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IACrC,IAAA,oBAAU,GAAE;sCACJ,6CAAoB;sCAAC;AAzFnB,KAAK;IADjB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;GACd,KAAK,CA0FjB;AA1FY,sBAAK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceCourse } from './service-course';
|
|
2
|
+
import { StudentSessionAttendance } from './student-session-attendance';
|
|
3
|
+
export declare class ServiceCourseSession {
|
|
4
|
+
id: number;
|
|
5
|
+
order: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
courseId: number;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
course: ServiceCourse;
|
|
12
|
+
sessionAttendances: StudentSessionAttendance[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceCourseSession = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const service_course_1 = require("./service-course");
|
|
7
|
+
const student_session_attendance_1 = require("./student-session-attendance");
|
|
8
|
+
let ServiceCourseSession = class ServiceCourseSession {
|
|
9
|
+
};
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], ServiceCourseSession.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], ServiceCourseSession.prototype, "order", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ServiceCourseSession.prototype, "name", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ServiceCourseSession.prototype, "description", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
tslib_1.__metadata("design:type", Number)
|
|
29
|
+
], ServiceCourseSession.prototype, "courseId", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
32
|
+
tslib_1.__metadata("design:type", Date)
|
|
33
|
+
], ServiceCourseSession.prototype, "createdAt", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
36
|
+
tslib_1.__metadata("design:type", Date)
|
|
37
|
+
], ServiceCourseSession.prototype, "updatedAt", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => service_course_1.ServiceCourse, (c) => c.sessions),
|
|
40
|
+
(0, typeorm_1.JoinColumn)(),
|
|
41
|
+
tslib_1.__metadata("design:type", service_course_1.ServiceCourse)
|
|
42
|
+
], ServiceCourseSession.prototype, "course", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.OneToMany)(() => student_session_attendance_1.StudentSessionAttendance, (a) => a.session),
|
|
45
|
+
tslib_1.__metadata("design:type", Array)
|
|
46
|
+
], ServiceCourseSession.prototype, "sessionAttendances", void 0);
|
|
47
|
+
ServiceCourseSession = tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'service_course_sessions' })
|
|
49
|
+
], ServiceCourseSession);
|
|
50
|
+
exports.ServiceCourseSession = ServiceCourseSession;
|
|
51
|
+
//# sourceMappingURL=service-course-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-course-session.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/service-course-session.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AAEjB,qDAAiD;AACjD,6EAAwE;AAGjE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CA4BhC,CAAA;AA3BC;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;AAEtB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;gEACb;AA3BpC,oBAAoB;IADhC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;GAC/B,oBAAoB,CA4BhC;AA5BY,oDAAoB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceCourseSession } from './service-course-session';
|
|
2
|
+
import { StudentSessionAttendance } from './student-session-attendance';
|
|
3
|
+
export declare class ServiceCourse {
|
|
4
|
+
id: number;
|
|
5
|
+
service: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
isDefault: boolean;
|
|
9
|
+
published: boolean;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
sessions: ServiceCourseSession[];
|
|
13
|
+
sessionAttendances: StudentSessionAttendance[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceCourse = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const service_course_session_1 = require("./service-course-session");
|
|
7
|
+
const student_session_attendance_1 = require("./student-session-attendance");
|
|
8
|
+
let ServiceCourse = class ServiceCourse {
|
|
9
|
+
};
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
12
|
+
tslib_1.__metadata("design:type", Number)
|
|
13
|
+
], ServiceCourse.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], ServiceCourse.prototype, "service", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], ServiceCourse.prototype, "name", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], ServiceCourse.prototype, "description", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'bool' }),
|
|
28
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
29
|
+
], ServiceCourse.prototype, "isDefault", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'bool' }),
|
|
32
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
33
|
+
], ServiceCourse.prototype, "published", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
36
|
+
tslib_1.__metadata("design:type", Date)
|
|
37
|
+
], ServiceCourse.prototype, "createdAt", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
40
|
+
tslib_1.__metadata("design:type", Date)
|
|
41
|
+
], ServiceCourse.prototype, "updatedAt", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.OneToMany)(() => service_course_session_1.ServiceCourseSession, (s) => s.course),
|
|
44
|
+
tslib_1.__metadata("design:type", Array)
|
|
45
|
+
], ServiceCourse.prototype, "sessions", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.OneToMany)(() => student_session_attendance_1.StudentSessionAttendance, (a) => a.course),
|
|
48
|
+
tslib_1.__metadata("design:type", Array)
|
|
49
|
+
], ServiceCourse.prototype, "sessionAttendances", void 0);
|
|
50
|
+
ServiceCourse = tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'service_courses' })
|
|
52
|
+
], ServiceCourse);
|
|
53
|
+
exports.ServiceCourse = ServiceCourse;
|
|
54
|
+
//# sourceMappingURL=service-course.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-course.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/service-course.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,qEAAgE;AAChE,6EAAwE;AAGjE,IAAM,aAAa,GAAnB,MAAM,aAAa;CA8BzB,CAAA;AA7BC;IAAC,IAAA,gCAAsB,GAAE;;yCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACR;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2CAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACL;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACN;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACN;AAEnB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;gDAAC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;gDAAC;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;;+CACtB;AAEjC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;;yDACZ;AA7BpC,aAAa;IADzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GACvB,aAAa,CA8BzB;AA9BY,sCAAa"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StudentServiceDeadline = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const student_service_1 = require("./student-service");
|
|
7
|
+
let StudentServiceDeadline = class StudentServiceDeadline {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], StudentServiceDeadline.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], StudentServiceDeadline.prototype, "date", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], StudentServiceDeadline.prototype, "description", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
23
|
+
tslib_1.__metadata("design:type", Number)
|
|
24
|
+
], StudentServiceDeadline.prototype, "studentServiceId", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => student_service_1.StudentService, (service) => service.studentServiceDeadlines),
|
|
27
|
+
tslib_1.__metadata("design:type", student_service_1.StudentService)
|
|
28
|
+
], StudentServiceDeadline.prototype, "studentService", void 0);
|
|
29
|
+
StudentServiceDeadline = tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.Entity)({ name: 'student_service_deadlines' })
|
|
31
|
+
], StudentServiceDeadline);
|
|
32
|
+
exports.StudentServiceDeadline = StudentServiceDeadline;
|
|
33
|
+
//# sourceMappingURL=student-service-deadline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student-service-deadline.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/student-service-deadline.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,uDAAmD;AAG5C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAelC,CAAA;AAdC;IAAC,IAAA,gCAAsB,GAAE;;kDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;oDAC3B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2DACrB;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;gEACC;AAEzB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC;sCAC9D,gCAAc;8DAAC;AAdpB,sBAAsB;IADlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;GACjC,sBAAsB,CAelC;AAfY,wDAAsB"}
|
|
@@ -2,6 +2,7 @@ import { User } from './user';
|
|
|
2
2
|
import { Sale } from './sale';
|
|
3
3
|
import { StudentServiceMembership } from './student-service-membership';
|
|
4
4
|
import { StudentTarget } from './student-target';
|
|
5
|
+
import { StudentServiceDeadline } from './student-service-deadline';
|
|
5
6
|
export declare class StudentService {
|
|
6
7
|
id: number;
|
|
7
8
|
type: STUDENT_SERVICE;
|
|
@@ -13,6 +14,7 @@ export declare class StudentService {
|
|
|
13
14
|
sales: Sale[];
|
|
14
15
|
studentTarget: StudentTarget;
|
|
15
16
|
studentServiceMembership: StudentServiceMembership;
|
|
17
|
+
studentServiceDeadlines: StudentServiceDeadline[];
|
|
16
18
|
constructor(data?: any);
|
|
17
19
|
}
|
|
18
20
|
export declare enum STUDENT_SERVICE {
|
|
@@ -7,6 +7,7 @@ const user_1 = require("./user");
|
|
|
7
7
|
const sale_1 = require("./sale");
|
|
8
8
|
const student_service_membership_1 = require("./student-service-membership");
|
|
9
9
|
const student_target_1 = require("./student-target");
|
|
10
|
+
const student_service_deadline_1 = require("./student-service-deadline");
|
|
10
11
|
let StudentService = class StudentService {
|
|
11
12
|
constructor(data = {}) {
|
|
12
13
|
Object.assign(this, data);
|
|
@@ -55,6 +56,10 @@ tslib_1.__decorate([
|
|
|
55
56
|
(0, typeorm_1.OneToOne)(() => student_service_membership_1.StudentServiceMembership, (studentServiceMembership) => studentServiceMembership.studentService),
|
|
56
57
|
tslib_1.__metadata("design:type", student_service_membership_1.StudentServiceMembership)
|
|
57
58
|
], StudentService.prototype, "studentServiceMembership", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.OneToMany)(() => student_service_deadline_1.StudentServiceDeadline, (d) => d.studentService),
|
|
61
|
+
tslib_1.__metadata("design:type", Array)
|
|
62
|
+
], StudentService.prototype, "studentServiceDeadlines", void 0);
|
|
58
63
|
StudentService = tslib_1.__decorate([
|
|
59
64
|
(0, typeorm_1.Entity)({ name: 'student_services' }),
|
|
60
65
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-service.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/student-service.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AAEjB,iCAA8B;AAC9B,iCAA8B;AAC9B,6EAAwE;AACxE,qDAAiD;
|
|
1
|
+
{"version":3,"file":"student-service.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/student-service.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AAEjB,iCAA8B;AAC9B,iCAA8B;AAC9B,6EAAwE;AACxE,qDAAiD;AACjD,yEAAoE;AAG7D,IAAM,cAAc,GAApB,MAAM,cAAc;IAqCzB,YAAmB,OAAY,EAAE;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,WAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACjD;IACH,CAAC;CACF,CAAA;AA1CC;IAAC,IAAA,gCAAsB,GAAE;;0CACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;4CACF;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iDACT;AAEnB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;iDAAC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;iDAAC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACT;AAEf;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,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H,wDAAK,CAAA;IACL,8DAAQ,CAAA;IACR,kDAAE,CAAA;IACF,kDAAE,CAAA;IACF,wDAAK,CAAA;IACL,wDAAK,CAAA;IACL,wDAAK,CAAA;IACL,kEAAU,CAAA;IACV,0EAAc,CAAA;IACd,4EAAe,CAAA;IACf,oEAAW,CAAA;IACX,sDAAI,CAAA;IACJ,kEAAU,CAAA;IACV,4DAAO,CAAA;IACP,oDAAG,CAAA;IACH,0EAAc,CAAA;IACd,0FAAsB,CAAA;IACtB,8DAAQ,CAAA;IACR,gEAAS,CAAA;AACX,CAAC,EA5CW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA4C1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
import { ServiceCourseSession } from './service-course-session';
|
|
3
|
+
import { Event } from './event';
|
|
4
|
+
import { ServiceCourse } from './service-course';
|
|
5
|
+
export declare class StudentSessionAttendance {
|
|
6
|
+
id: number;
|
|
7
|
+
sessionId: number;
|
|
8
|
+
courseId: number;
|
|
9
|
+
eventId: number;
|
|
10
|
+
studentId: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
student: User;
|
|
14
|
+
course: ServiceCourse;
|
|
15
|
+
session: ServiceCourseSession;
|
|
16
|
+
event: Event;
|
|
17
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StudentSessionAttendance = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_1 = require("./user");
|
|
7
|
+
const service_course_session_1 = require("./service-course-session");
|
|
8
|
+
const event_1 = require("./event");
|
|
9
|
+
const service_course_1 = require("./service-course");
|
|
10
|
+
let StudentSessionAttendance = class StudentSessionAttendance {
|
|
11
|
+
};
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
14
|
+
tslib_1.__metadata("design:type", Number)
|
|
15
|
+
], StudentSessionAttendance.prototype, "id", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
18
|
+
tslib_1.__metadata("design:type", Number)
|
|
19
|
+
], StudentSessionAttendance.prototype, "sessionId", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
22
|
+
tslib_1.__metadata("design:type", Number)
|
|
23
|
+
], StudentSessionAttendance.prototype, "courseId", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
26
|
+
tslib_1.__metadata("design:type", Number)
|
|
27
|
+
], StudentSessionAttendance.prototype, "eventId", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
30
|
+
tslib_1.__metadata("design:type", Number)
|
|
31
|
+
], StudentSessionAttendance.prototype, "studentId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
34
|
+
tslib_1.__metadata("design:type", Date)
|
|
35
|
+
], StudentSessionAttendance.prototype, "createdAt", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
38
|
+
tslib_1.__metadata("design:type", Date)
|
|
39
|
+
], StudentSessionAttendance.prototype, "updatedAt", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User, (user) => user.sessionAttendances),
|
|
42
|
+
(0, typeorm_1.JoinColumn)(),
|
|
43
|
+
tslib_1.__metadata("design:type", user_1.User)
|
|
44
|
+
], StudentSessionAttendance.prototype, "student", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => service_course_1.ServiceCourse, (c) => c.sessionAttendances),
|
|
47
|
+
(0, typeorm_1.JoinColumn)(),
|
|
48
|
+
tslib_1.__metadata("design:type", service_course_1.ServiceCourse)
|
|
49
|
+
], StudentSessionAttendance.prototype, "course", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => service_course_session_1.ServiceCourseSession),
|
|
52
|
+
(0, typeorm_1.JoinColumn)(),
|
|
53
|
+
tslib_1.__metadata("design:type", service_course_session_1.ServiceCourseSession)
|
|
54
|
+
], StudentSessionAttendance.prototype, "session", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => event_1.Event, (event) => event.sessionAttendances),
|
|
57
|
+
(0, typeorm_1.JoinColumn)(),
|
|
58
|
+
tslib_1.__metadata("design:type", event_1.Event)
|
|
59
|
+
], StudentSessionAttendance.prototype, "event", void 0);
|
|
60
|
+
StudentSessionAttendance = tslib_1.__decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'student_session_attendances' })
|
|
62
|
+
], StudentSessionAttendance);
|
|
63
|
+
exports.StudentSessionAttendance = StudentSessionAttendance;
|
|
64
|
+
//# sourceMappingURL=student-session-attendance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student-session-attendance.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/student-session-attendance.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AAEjB,iCAA8B;AAC9B,qEAAgE;AAChE,mCAAgC;AAChC,qDAAiD;AAG1C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAqCpC,CAAA;AApCC;IAAC,IAAA,gCAAsB,GAAE;;oDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2DACN;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;0DACP;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;yDACR;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2DACN;AAElB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;2DAAC;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;2DAAC;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;IACxD,IAAA,oBAAU,GAAE;sCACJ,WAAI;yDAAC;AAEd;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC;IAC3D,IAAA,oBAAU,GAAE;sCACL,8BAAa;wDAAC;AAEtB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IACrC,IAAA,oBAAU,GAAE;sCACJ,6CAAoB;yDAAC;AAE9B;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC;IAC3D,IAAA,oBAAU,GAAE;sCACN,aAAK;uDAAC;AApCF,wBAAwB;IADpC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;GACnC,wBAAwB,CAqCpC;AArCY,4DAAwB"}
|
package/src/model/user.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { TestScore } from './test-score';
|
|
|
24
24
|
import { PDUser } from './pd-user';
|
|
25
25
|
import { StaffSubjectTag } from './staff-subject-tag';
|
|
26
26
|
import { StaffAvailability } from './staff-availability';
|
|
27
|
+
import { StudentSessionAttendance } from './student-session-attendance';
|
|
27
28
|
export declare enum USER_ROLE {
|
|
28
29
|
SUPER_ADMIN = 1,
|
|
29
30
|
ADMIN = 2,
|
|
@@ -80,6 +81,7 @@ export declare class User {
|
|
|
80
81
|
pdUser: PDUser;
|
|
81
82
|
staffSubjectTags: StaffSubjectTag[];
|
|
82
83
|
staffAvailabilities: StaffAvailability[];
|
|
84
|
+
sessionAttendances: StudentSessionAttendance[];
|
|
83
85
|
constructor(data?: any);
|
|
84
86
|
getCreatedAtString(): string;
|
|
85
87
|
}
|
package/src/model/user.js
CHANGED
|
@@ -30,6 +30,7 @@ const test_score_1 = require("./test-score");
|
|
|
30
30
|
const pd_user_1 = require("./pd-user");
|
|
31
31
|
const staff_subject_tag_1 = require("./staff-subject-tag");
|
|
32
32
|
const staff_availability_1 = require("./staff-availability");
|
|
33
|
+
const student_session_attendance_1 = require("./student-session-attendance");
|
|
33
34
|
var USER_ROLE;
|
|
34
35
|
(function (USER_ROLE) {
|
|
35
36
|
USER_ROLE[USER_ROLE["SUPER_ADMIN"] = 1] = "SUPER_ADMIN";
|
|
@@ -225,6 +226,10 @@ tslib_1.__decorate([
|
|
|
225
226
|
(0, typeorm_1.OneToMany)(() => staff_availability_1.StaffAvailability, (a) => a.staff),
|
|
226
227
|
tslib_1.__metadata("design:type", Array)
|
|
227
228
|
], User.prototype, "staffAvailabilities", void 0);
|
|
229
|
+
tslib_1.__decorate([
|
|
230
|
+
(0, typeorm_1.OneToMany)(() => student_session_attendance_1.StudentSessionAttendance, (a) => a.student),
|
|
231
|
+
tslib_1.__metadata("design:type", Array)
|
|
232
|
+
], User.prototype, "sessionAttendances", void 0);
|
|
228
233
|
User = tslib_1.__decorate([
|
|
229
234
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
230
235
|
tslib_1.__metadata("design:paramtypes", [Object])
|
package/src/model/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/user.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AACjB,4DAA4B;AAE5B,iDAA6C;AAC7C,+CAA2C;AAC3C,yCAAsC;AACtC,6DAAwD;AACxD,uCAAoC;AACpC,6DAAwD;AACxD,6DAAyD;AACzD,uCAAoC;AACpC,6CAAyC;AACzC,mDAA+C;AAC/C,iDAA6C;AAC7C,iDAA6C;AAC7C,uDAAmD;AACnD,qDAAiD;AACjD,iCAA8B;AAC9B,6CAAyC;AACzC,iDAA6C;AAC7C,uDAAmD;AACnD,yDAAoD;AACpD,mDAA8C;AAC9C,mEAA+D;AAC/D,yEAAqE;AACrE,6CAAyC;AACzC,uCAAmC;AACnC,2DAAsD;AACtD,6DAAyD;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/user.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AACjB,4DAA4B;AAE5B,iDAA6C;AAC7C,+CAA2C;AAC3C,yCAAsC;AACtC,6DAAwD;AACxD,uCAAoC;AACpC,6DAAwD;AACxD,6DAAyD;AACzD,uCAAoC;AACpC,6CAAyC;AACzC,mDAA+C;AAC/C,iDAA6C;AAC7C,iDAA6C;AAC7C,uDAAmD;AACnD,qDAAiD;AACjD,iCAA8B;AAC9B,6CAAyC;AACzC,iDAA6C;AAC7C,uDAAmD;AACnD,yDAAoD;AACpD,mDAA8C;AAC9C,mEAA+D;AAC/D,yEAAqE;AACrE,6CAAyC;AACzC,uCAAmC;AACnC,2DAAsD;AACtD,6DAAyD;AACzD,6EAAwE;AAExE,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,uDAAe,CAAA;IACf,2CAAK,CAAA;IACL,+CAAO,CAAA;IACP,2CAAK,CAAA;IACL,+CAAO,CAAA;IACP,iDAAQ,CAAA;IACR,mEAAiB,CAAA;IACjB,qDAAU,CAAA;IACV,yEAAoB,CAAA;AACtB,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,iDAAU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EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;sCAC9B,qCAAgB;8CAAC;AAEnC;IAAC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,4CAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;sCAC9B,4CAAoB;kDAAC;AAE3C;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kDAAuB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;;uDACH;AAErD;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;;wCAClB;AAExB;IAAC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC;sCACxC,gBAAM;oCAAC;AAEf;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAe,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;;8CACjB;AAEpC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAiB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;;iDACV;AAEzC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;gDACb;AAxHpC,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;GACb,IAAI,CA8IhB;AA9IY,oBAAI"}
|
package/src/models.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export * from './model/pup-lead';
|
|
|
36
36
|
export * from './model/sale-split';
|
|
37
37
|
export * from './model/sale';
|
|
38
38
|
export * from './model/school';
|
|
39
|
+
export * from './model/service-course-session';
|
|
40
|
+
export * from './model/service-course';
|
|
39
41
|
export * from './model/staff-availability';
|
|
40
42
|
export * from './model/staff-hour';
|
|
41
43
|
export * from './model/staff-subject-tag';
|
|
@@ -46,9 +48,11 @@ export * from './model/student-extra';
|
|
|
46
48
|
export * from './model/student-goal';
|
|
47
49
|
export * from './model/student-note-checklist-item';
|
|
48
50
|
export * from './model/student-note';
|
|
51
|
+
export * from './model/student-service-deadline';
|
|
49
52
|
export * from './model/student-service-membership-log';
|
|
50
53
|
export * from './model/student-service-membership';
|
|
51
54
|
export * from './model/student-service';
|
|
55
|
+
export * from './model/student-session-attendance';
|
|
52
56
|
export * from './model/student-target';
|
|
53
57
|
export * from './model/test-attempt';
|
|
54
58
|
export * from './model/test-category';
|
package/src/models.js
CHANGED
|
@@ -39,6 +39,8 @@ tslib_1.__exportStar(require("./model/pup-lead"), exports);
|
|
|
39
39
|
tslib_1.__exportStar(require("./model/sale-split"), exports);
|
|
40
40
|
tslib_1.__exportStar(require("./model/sale"), exports);
|
|
41
41
|
tslib_1.__exportStar(require("./model/school"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./model/service-course-session"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./model/service-course"), exports);
|
|
42
44
|
tslib_1.__exportStar(require("./model/staff-availability"), exports);
|
|
43
45
|
tslib_1.__exportStar(require("./model/staff-hour"), exports);
|
|
44
46
|
tslib_1.__exportStar(require("./model/staff-subject-tag"), exports);
|
|
@@ -49,9 +51,11 @@ tslib_1.__exportStar(require("./model/student-extra"), exports);
|
|
|
49
51
|
tslib_1.__exportStar(require("./model/student-goal"), exports);
|
|
50
52
|
tslib_1.__exportStar(require("./model/student-note-checklist-item"), exports);
|
|
51
53
|
tslib_1.__exportStar(require("./model/student-note"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./model/student-service-deadline"), exports);
|
|
52
55
|
tslib_1.__exportStar(require("./model/student-service-membership-log"), exports);
|
|
53
56
|
tslib_1.__exportStar(require("./model/student-service-membership"), exports);
|
|
54
57
|
tslib_1.__exportStar(require("./model/student-service"), exports);
|
|
58
|
+
tslib_1.__exportStar(require("./model/student-session-attendance"), exports);
|
|
55
59
|
tslib_1.__exportStar(require("./model/student-target"), exports);
|
|
56
60
|
tslib_1.__exportStar(require("./model/test-attempt"), exports);
|
|
57
61
|
tslib_1.__exportStar(require("./model/test-category"), exports);
|
package/src/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../libs/model/src/models.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,4DAAkC;AAClC,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,4DAAkC;AAClC,mEAAyC;AACzC,4DAAkC;AAClC,qEAA2C;AAC3C,gEAAsC;AACtC,wDAA8B;AAC9B,2EAAiD;AACjD,8DAAoC;AACpC,gEAAsC;AACtC,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,8DAAoC;AACpC,sDAA4B;AAC5B,2DAAiC;AACjC,qEAA2C;AAC3C,gEAAsC;AACtC,qEAA2C;AAC3C,0DAAgC;AAChC,kEAAwC;AACxC,kEAAwC;AACxC,4DAAkC;AAClC,6DAAmC;AACnC,uDAA6B;AAC7B,8DAAoC;AACpC,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,yDAA+B;AAC/B,qEAA2C;AAC3C,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,iEAAuC;AACvC,qEAA2C;AAC3C,gEAAsC;AACtC,+DAAqC;AACrC,8EAAoD;AACpD,+DAAqC;AACrC,iFAAuD;AACvD,6EAAmD;AACnD,kEAAwC;AACxC,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,uDAA6B;AAC7B,2DAAiC;AACjC,wEAA8C;AAC9C,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,6DAAmC;AACnC,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../libs/model/src/models.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,4DAAkC;AAClC,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,wEAA8C;AAC9C,kEAAwC;AACxC,4DAAkC;AAClC,mEAAyC;AACzC,4DAAkC;AAClC,qEAA2C;AAC3C,gEAAsC;AACtC,wDAA8B;AAC9B,2EAAiD;AACjD,8DAAoC;AACpC,gEAAsC;AACtC,uDAA6B;AAC7B,4EAAkD;AAClD,gEAAsC;AACtC,8DAAoC;AACpC,sDAA4B;AAC5B,2DAAiC;AACjC,qEAA2C;AAC3C,gEAAsC;AACtC,qEAA2C;AAC3C,0DAAgC;AAChC,kEAAwC;AACxC,kEAAwC;AACxC,4DAAkC;AAClC,6DAAmC;AACnC,uDAA6B;AAC7B,8DAAoC;AACpC,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,yDAA+B;AAC/B,yEAA+C;AAC/C,iEAAuC;AACvC,qEAA2C;AAC3C,6DAAmC;AACnC,oEAA0C;AAC1C,iEAAuC;AACvC,iEAAuC;AACvC,qEAA2C;AAC3C,gEAAsC;AACtC,+DAAqC;AACrC,8EAAoD;AACpD,+DAAqC;AACrC,2EAAiD;AACjD,iFAAuD;AACvD,6EAAmD;AACnD,kEAAwC;AACxC,6EAAmD;AACnD,iEAAuC;AACvC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,8DAAoC;AACpC,6DAAmC;AACnC,+DAAqC;AACrC,uDAA6B;AAC7B,2DAAiC;AACjC,wEAA8C;AAC9C,kEAAwC;AACxC,mEAAyC;AACzC,uDAA6B;AAC7B,6DAAmC;AACnC,4DAAkC"}
|