@tudopz/model 3.0.0-dev.15 → 3.0.0-dev.17
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/constant/event.d.ts +126 -1
- package/src/constant/event.js +160 -5
- package/src/constant/event.js.map +1 -1
- package/src/constant/lead-form.d.ts +4 -0
- package/src/constant/lead-form.js +13 -1
- package/src/constant/lead-form.js.map +1 -1
- package/src/constant/lead.js +1 -0
- package/src/constant/lead.js.map +1 -1
- package/src/constant/student-service.js +1 -1
- package/src/constant/student-service.js.map +1 -1
- package/src/constant/subject.js +3 -8
- package/src/constant/subject.js.map +1 -1
- package/src/index.d.ts +0 -1
- package/src/index.js +0 -2
- package/src/index.js.map +1 -1
- package/src/model/audit-log.d.ts +12 -0
- package/src/model/audit-log.js +50 -0
- package/src/model/audit-log.js.map +1 -0
- package/src/model/event-registration.d.ts +10 -0
- package/src/model/event-registration.js +41 -0
- package/src/model/event-registration.js.map +1 -0
- package/src/model/event.d.ts +15 -1
- package/src/model/event.js +34 -0
- package/src/model/event.js.map +1 -1
- package/src/model/gmail-message-email-index.d.ts +15 -0
- package/src/model/gmail-message-email-index.js +47 -0
- package/src/model/gmail-message-email-index.js.map +1 -0
- package/src/model/gmail-message.d.ts +17 -0
- package/src/model/gmail-message.js +69 -0
- package/src/model/gmail-message.js.map +1 -0
- package/src/model/google-user.d.ts +9 -0
- package/src/model/google-user.js +40 -0
- package/src/model/google-user.js.map +1 -0
- package/src/model/lead-form-field.d.ts +3 -1
- package/src/model/lead-form-field.js +5 -0
- package/src/model/lead-form-field.js.map +1 -1
- package/src/model/lead-form.d.ts +23 -0
- package/src/model/lead-form.js +51 -1
- package/src/model/lead-form.js.map +1 -1
- package/src/model/lead.d.ts +2 -1
- package/src/model/lead.js +1 -0
- package/src/model/lead.js.map +1 -1
- package/src/model/pup-lead.d.ts +34 -5
- package/src/model/pup-lead.js +96 -6
- package/src/model/pup-lead.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/staff-hour-log.d.ts +2 -1
- package/src/model/staff-hour-log.js +1 -0
- package/src/model/staff-hour-log.js.map +1 -1
- 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-membership-log.d.ts +2 -1
- package/src/model/student-service-membership-log.js +1 -0
- package/src/model/student-service-membership-log.js.map +1 -1
- 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/timeline.d.ts +24 -0
- package/src/model/timeline.js +10 -0
- package/src/model/timeline.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/model/wa-message.d.ts +21 -0
- package/src/model/wa-message.js +74 -0
- package/src/model/wa-message.js.map +1 -0
- package/src/models.d.ts +11 -0
- package/src/models.js +11 -0
- package/src/models.js.map +1 -1
- package/src/enums.d.ts +0 -23
- package/src/enums.js +0 -27
- package/src/enums.js.map +0 -1
package/src/model/pup-lead.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PupLead = void 0;
|
|
3
|
+
exports.PupLead = exports.PUP_LEAD_MANUAL_SOURCE = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const student_service_1 = require("./student-service");
|
|
7
7
|
const user_1 = require("./user");
|
|
8
8
|
const lead_form_1 = require("./lead-form");
|
|
9
|
+
const lead_1 = require("./lead");
|
|
10
|
+
var PUP_LEAD_MANUAL_SOURCE;
|
|
11
|
+
(function (PUP_LEAD_MANUAL_SOURCE) {
|
|
12
|
+
PUP_LEAD_MANUAL_SOURCE[PUP_LEAD_MANUAL_SOURCE["WHATSAPP"] = 1] = "WHATSAPP";
|
|
13
|
+
PUP_LEAD_MANUAL_SOURCE[PUP_LEAD_MANUAL_SOURCE["CALL_IN"] = 2] = "CALL_IN";
|
|
14
|
+
PUP_LEAD_MANUAL_SOURCE[PUP_LEAD_MANUAL_SOURCE["WALK_IN"] = 3] = "WALK_IN";
|
|
15
|
+
PUP_LEAD_MANUAL_SOURCE[PUP_LEAD_MANUAL_SOURCE["EMAIL_IN"] = 4] = "EMAIL_IN";
|
|
16
|
+
PUP_LEAD_MANUAL_SOURCE[PUP_LEAD_MANUAL_SOURCE["REFERRAL"] = 5] = "REFERRAL";
|
|
17
|
+
PUP_LEAD_MANUAL_SOURCE[PUP_LEAD_MANUAL_SOURCE["SIBLING"] = 6] = "SIBLING";
|
|
18
|
+
})(PUP_LEAD_MANUAL_SOURCE = exports.PUP_LEAD_MANUAL_SOURCE || (exports.PUP_LEAD_MANUAL_SOURCE = {}));
|
|
9
19
|
let PupLead = class PupLead {
|
|
10
20
|
};
|
|
11
21
|
tslib_1.__decorate([
|
|
@@ -25,25 +35,105 @@ tslib_1.__decorate([
|
|
|
25
35
|
tslib_1.__metadata("design:type", String)
|
|
26
36
|
], PupLead.prototype, "time", void 0);
|
|
27
37
|
tslib_1.__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
29
39
|
tslib_1.__metadata("design:type", String)
|
|
30
40
|
], PupLead.prototype, "fullName", void 0);
|
|
31
41
|
tslib_1.__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
33
43
|
tslib_1.__metadata("design:type", String)
|
|
34
44
|
], PupLead.prototype, "email", void 0);
|
|
35
45
|
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
37
47
|
tslib_1.__metadata("design:type", String)
|
|
38
48
|
], PupLead.prototype, "phoneNumber", void 0);
|
|
39
49
|
tslib_1.__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: '
|
|
41
|
-
tslib_1.__metadata("design:type",
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", Object)
|
|
42
52
|
], PupLead.prototype, "extras", void 0);
|
|
43
53
|
tslib_1.__decorate([
|
|
44
54
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
45
55
|
tslib_1.__metadata("design:type", Number)
|
|
46
56
|
], PupLead.prototype, "service", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int', default: 1 }),
|
|
59
|
+
tslib_1.__metadata("design:type", Number)
|
|
60
|
+
], PupLead.prototype, "location", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
63
|
+
tslib_1.__metadata("design:type", String)
|
|
64
|
+
], PupLead.prototype, "source", void 0);
|
|
65
|
+
tslib_1.__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
67
|
+
tslib_1.__metadata("design:type", String)
|
|
68
|
+
], PupLead.prototype, "utmSource", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
72
|
+
], PupLead.prototype, "utmMedium", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], PupLead.prototype, "utmCampaign", void 0);
|
|
77
|
+
tslib_1.__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
79
|
+
tslib_1.__metadata("design:type", String)
|
|
80
|
+
], PupLead.prototype, "utmContent", void 0);
|
|
81
|
+
tslib_1.__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
83
|
+
tslib_1.__metadata("design:type", String)
|
|
84
|
+
], PupLead.prototype, "utmKeyword", void 0);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
87
|
+
tslib_1.__metadata("design:type", String)
|
|
88
|
+
], PupLead.prototype, "matchtype", void 0);
|
|
89
|
+
tslib_1.__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
91
|
+
tslib_1.__metadata("design:type", String)
|
|
92
|
+
], PupLead.prototype, "device", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
95
|
+
tslib_1.__metadata("design:type", String)
|
|
96
|
+
], PupLead.prototype, "adposition", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
99
|
+
tslib_1.__metadata("design:type", String)
|
|
100
|
+
], PupLead.prototype, "adgroupid", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
103
|
+
tslib_1.__metadata("design:type", String)
|
|
104
|
+
], PupLead.prototype, "fbclid", void 0);
|
|
105
|
+
tslib_1.__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
107
|
+
tslib_1.__metadata("design:type", String)
|
|
108
|
+
], PupLead.prototype, "gclid", void 0);
|
|
109
|
+
tslib_1.__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: 'int', default: lead_1.LEAD_QUALITY.UNSORTED }),
|
|
111
|
+
tslib_1.__metadata("design:type", Number)
|
|
112
|
+
], PupLead.prototype, "quality", void 0);
|
|
113
|
+
tslib_1.__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
115
|
+
tslib_1.__metadata("design:type", String)
|
|
116
|
+
], PupLead.prototype, "purpose", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
119
|
+
tslib_1.__metadata("design:type", String)
|
|
120
|
+
], PupLead.prototype, "notes", void 0);
|
|
121
|
+
tslib_1.__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: 'int', default: '1' }),
|
|
123
|
+
tslib_1.__metadata("design:type", Number)
|
|
124
|
+
], PupLead.prototype, "category", void 0);
|
|
125
|
+
tslib_1.__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: 'int', default: '1' }),
|
|
127
|
+
tslib_1.__metadata("design:type", Number)
|
|
128
|
+
], PupLead.prototype, "priority", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
131
|
+
tslib_1.__metadata("design:type", Number)
|
|
132
|
+
], PupLead.prototype, "manualSource", void 0);
|
|
133
|
+
tslib_1.__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
135
|
+
tslib_1.__metadata("design:type", String)
|
|
136
|
+
], PupLead.prototype, "ip", void 0);
|
|
47
137
|
tslib_1.__decorate([
|
|
48
138
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
49
139
|
tslib_1.__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pup-lead.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/pup-lead.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,uDAAoD;AACpD,iCAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"pup-lead.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/pup-lead.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,uDAAoD;AACpD,iCAA8B;AAC9B,2CAA+E;AAC/E,iCAAsC;AAEtC,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,2EAAY,CAAA;IACZ,yEAAO,CAAA;IACP,yEAAO,CAAA;IACP,2EAAQ,CAAA;IACR,2EAAQ,CAAA;IACR,yEAAO,CAAA;AACT,CAAC,EAPW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAOjC;AAGM,IAAM,OAAO,GAAb,MAAM,OAAO;CAqGnB,CAAA;AApGC;IAAC,IAAA,gCAAsB,GAAE;;mCACd;AAEX;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;0CAAC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qCAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qCAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACvC;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC1C;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;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AAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;IAChD,IAAA,oBAAU,GAAE;sCACP,oBAAQ;qCAAC;AAEf;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,oBAAU,GAAE;sCACF,WAAI;yCAAC;AApGL,OAAO;IADnB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;GACjB,OAAO,CAqGnB;AArGY,0BAAO"}
|
|
@@ -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;AACh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
STAFF_HOUR_LOG_TYPE[STAFF_HOUR_LOG_TYPE["AUDIT_HOUR"] = 6] = "AUDIT_HOUR";
|
|
16
|
+
STAFF_HOUR_LOG_TYPE[STAFF_HOUR_LOG_TYPE["EVENT_RESTORED"] = 7] = "EVENT_RESTORED";
|
|
16
17
|
})(STAFF_HOUR_LOG_TYPE = exports.STAFF_HOUR_LOG_TYPE || (exports.STAFF_HOUR_LOG_TYPE = {}));
|
|
17
18
|
let StaffHourLog = class StaffHourLog {
|
|
18
19
|
constructor(data = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staff-hour-log.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/staff-hour-log.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,6CAAyC;AACzC,iCAA8B;AAE9B,IAAY,
|
|
1
|
+
{"version":3,"file":"staff-hour-log.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/staff-hour-log.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,6CAAyC;AACzC,iCAA8B;AAE9B,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,mEAAW,CAAA;IACX,mEAAO,CAAA;IACP,2EAAW,CAAA;IACX,+EAAa,CAAA;IACb,+EAAa,CAAA;IACb,yEAAU,CAAA;IACV,iFAAc,CAAA;AAChB,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;IAiCvB,YAAmB,OAAY,EAAE;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AAnCC;IAAC,IAAA,gCAAsB,GAAE;;wCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;0CACE;AAE1B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACT;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACX;AAEd;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;+CAAC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8CACN;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;IAClD,IAAA,oBAAU,GAAE;sCACF,sBAAS;+CAAC;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDACJ;AAEpB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,oBAAU,GAAE;sCACP,WAAI;0CAAC;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;4CACT;AA/BJ,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;GACvB,YAAY,CAoCxB;AApCY,oCAAY"}
|
|
@@ -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"}
|
|
@@ -16,6 +16,7 @@ var MEMBERSHIP_LOG_TYPE;
|
|
|
16
16
|
MEMBERSHIP_LOG_TYPE[MEMBERSHIP_LOG_TYPE["EVENT_UPDATED"] = 7] = "EVENT_UPDATED";
|
|
17
17
|
MEMBERSHIP_LOG_TYPE[MEMBERSHIP_LOG_TYPE["EVENT_DELETED"] = 8] = "EVENT_DELETED";
|
|
18
18
|
MEMBERSHIP_LOG_TYPE[MEMBERSHIP_LOG_TYPE["AUDIT_SERVICE"] = 9] = "AUDIT_SERVICE";
|
|
19
|
+
MEMBERSHIP_LOG_TYPE[MEMBERSHIP_LOG_TYPE["EVENT_RESTORED"] = 10] = "EVENT_RESTORED";
|
|
19
20
|
})(MEMBERSHIP_LOG_TYPE = exports.MEMBERSHIP_LOG_TYPE || (exports.MEMBERSHIP_LOG_TYPE = {}));
|
|
20
21
|
let StudentServiceMembershipLog = class StudentServiceMembershipLog {
|
|
21
22
|
constructor(data = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"student-service-membership-log.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/student-service-membership-log.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,6EAAwE;AACxE,iCAA8B;AAE9B,IAAY,
|
|
1
|
+
{"version":3,"file":"student-service-membership-log.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/student-service-membership-log.ts"],"names":[],"mappings":";;;;AAAA,qCAOiB;AAEjB,6EAAwE;AACxE,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C,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2DACT;AAlCJ,2BAA2B;IADvC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC;;GACvC,2BAA2B,CAuCvC;AAvCY,kEAA2B"}
|
|
@@ -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,EAA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AAI,CAAA;IACJ,oDAAG,CAAA;IACH,sDAAI,CAAA;IACJ,sDAAI,CAAA;IACJ,oDAAG,CAAA;IACH,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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AuditLog } from './audit-log';
|
|
2
|
+
import { GmailMessage } from './gmail-message';
|
|
3
|
+
import { WAMessage } from './wa-message';
|
|
4
|
+
export declare enum TIMELINE_ITEM_TYPE {
|
|
5
|
+
GMAIL = 0,
|
|
6
|
+
WA_MESSAGE = 1,
|
|
7
|
+
EVENT = 2
|
|
8
|
+
}
|
|
9
|
+
export interface ITimelineItem {
|
|
10
|
+
type: TIMELINE_ITEM_TYPE;
|
|
11
|
+
}
|
|
12
|
+
export interface GmailTimelineItem extends ITimelineItem {
|
|
13
|
+
type: TIMELINE_ITEM_TYPE.GMAIL;
|
|
14
|
+
item: GmailMessage;
|
|
15
|
+
}
|
|
16
|
+
export interface WAMessageTimelineItem extends ITimelineItem {
|
|
17
|
+
type: TIMELINE_ITEM_TYPE.WA_MESSAGE;
|
|
18
|
+
item: WAMessage;
|
|
19
|
+
}
|
|
20
|
+
export interface EventTimelineItem extends ITimelineItem {
|
|
21
|
+
type: TIMELINE_ITEM_TYPE.EVENT;
|
|
22
|
+
item: AuditLog;
|
|
23
|
+
}
|
|
24
|
+
export declare type TimelineItem = GmailTimelineItem | WAMessageTimelineItem | EventTimelineItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMELINE_ITEM_TYPE = void 0;
|
|
4
|
+
var TIMELINE_ITEM_TYPE;
|
|
5
|
+
(function (TIMELINE_ITEM_TYPE) {
|
|
6
|
+
TIMELINE_ITEM_TYPE[TIMELINE_ITEM_TYPE["GMAIL"] = 0] = "GMAIL";
|
|
7
|
+
TIMELINE_ITEM_TYPE[TIMELINE_ITEM_TYPE["WA_MESSAGE"] = 1] = "WA_MESSAGE";
|
|
8
|
+
TIMELINE_ITEM_TYPE[TIMELINE_ITEM_TYPE["EVENT"] = 2] = "EVENT";
|
|
9
|
+
})(TIMELINE_ITEM_TYPE = exports.TIMELINE_ITEM_TYPE || (exports.TIMELINE_ITEM_TYPE = {}));
|
|
10
|
+
//# sourceMappingURL=timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/timeline.ts"],"names":[],"mappings":";;;AAIA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6DAAK,CAAA;IACL,uEAAU,CAAA;IACV,6DAAK,CAAA;AACP,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|
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])
|