@tudopz/model 3.0.0-dev.2 → 3.0.0-dev.21
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/README.md +4 -0
- package/package.json +1 -1
- package/src/constant/audience-list.d.ts +2 -0
- package/src/constant/audience-list.js +6 -0
- package/src/constant/audience-list.js.map +1 -0
- package/src/constant/campaign.d.ts +2 -0
- package/src/constant/campaign.js +6 -0
- package/src/constant/campaign.js.map +1 -0
- package/src/constant/event.d.ts +155 -0
- package/src/constant/event.js +203 -5
- package/src/constant/event.js.map +1 -1
- package/src/constant/lead-form.d.ts +4 -0
- package/src/constant/lead-form.js +14 -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/neo-test.d.ts +6 -1
- package/src/constant/neo-test.js +7 -2
- package/src/constant/neo-test.js.map +1 -1
- package/src/constant/sale.d.ts +1 -0
- package/src/constant/sale.js +2 -1
- package/src/constant/sale.js.map +1 -1
- package/src/constant/service-course.d.ts +1 -0
- package/src/constant/service-course.js +5 -0
- package/src/constant/service-course.js.map +1 -0
- package/src/constant/student-assignment.d.ts +1 -0
- package/src/constant/student-assignment.js +5 -0
- package/src/constant/student-assignment.js.map +1 -0
- package/src/constant/student-service.js +4 -2
- package/src/constant/student-service.js.map +1 -1
- package/src/constant/subject.d.ts +2 -0
- package/src/constant/subject.js +4 -6
- package/src/constant/subject.js.map +1 -1
- package/src/constants.d.ts +21 -17
- package/src/constants.js +22 -66
- package/src/constants.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/audience-list.d.ts +24 -0
- package/src/model/audience-list.js +69 -0
- package/src/model/audience-list.js.map +1 -0
- 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/campaign-signature.d.ts +9 -0
- package/src/model/campaign-signature.js +37 -0
- package/src/model/campaign-signature.js.map +1 -0
- package/src/model/campaign.d.ts +29 -0
- package/src/model/campaign.js +94 -0
- package/src/model/campaign.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 +19 -1
- package/src/model/event.js +41 -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/high-school-record.d.ts +9 -7
- package/src/model/high-school-record.js +13 -5
- package/src/model/high-school-record.js.map +1 -1
- package/src/model/holiday.d.ts +9 -0
- package/src/model/holiday.js +38 -0
- package/src/model/holiday.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-ip-ban.d.ts +6 -0
- package/src/model/lead-ip-ban.js +28 -0
- package/src/model/lead-ip-ban.js.map +1 -0
- 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/{neo-skill.d.ts → neo-tag.d.ts} +6 -1
- package/src/model/neo-tag.js +38 -0
- package/src/model/neo-tag.js.map +1 -0
- package/src/model/neo-test-flow.d.ts +28 -0
- package/src/model/neo-test-flow.js +17 -0
- package/src/model/neo-test-flow.js.map +1 -0
- package/src/model/neo-test-question-answer.d.ts +2 -1
- package/src/model/neo-test-question-answer.js +6 -2
- package/src/model/neo-test-question-answer.js.map +1 -1
- package/src/model/neo-test-question.d.ts +4 -4
- package/src/model/neo-test-question.js +10 -21
- package/src/model/neo-test-question.js.map +1 -1
- package/src/model/neo-test-section-to-question.d.ts +9 -0
- package/src/model/neo-test-section-to-question.js +36 -0
- package/src/model/neo-test-section-to-question.js.map +1 -0
- package/src/model/neo-test-section.d.ts +10 -0
- package/src/model/neo-test-section.js +39 -0
- package/src/model/neo-test-section.js.map +1 -0
- package/src/model/neo-test.d.ts +19 -0
- package/src/model/neo-test.js +59 -0
- package/src/model/neo-test.js.map +1 -0
- package/src/model/profile.d.ts +1 -0
- package/src/model/profile.js +4 -0
- package/src/model/profile.js.map +1 -1
- package/src/model/pup-lead.d.ts +35 -5
- package/src/model/pup-lead.js +97 -6
- package/src/model/pup-lead.js.map +1 -1
- package/src/model/sale.d.ts +4 -0
- package/src/model/sale.js +16 -0
- package/src/model/sale.js.map +1 -1
- package/src/model/service-course-session.d.ts +21 -0
- package/src/model/service-course-session.js +69 -0
- package/src/model/service-course-session.js.map +1 -0
- package/src/model/service-course.d.ts +12 -0
- package/src/model/service-course.js +49 -0
- package/src/model/service-course.js.map +1 -0
- package/src/model/service-rate.d.ts +8 -0
- package/src/model/service-rate.js +36 -0
- package/src/model/service-rate.js.map +1 -0
- package/src/model/staff-availability.d.ts +15 -0
- package/src/model/staff-availability.js +45 -0
- package/src/model/staff-availability.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/staff-hour.d.ts +10 -0
- package/src/model/staff-hour.js +50 -0
- package/src/model/staff-hour.js.map +1 -1
- package/src/model/student-assignment.d.ts +15 -0
- package/src/model/student-assignment.js +46 -0
- package/src/model/student-assignment.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-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 +4 -1
- package/src/model/student-service.js +6 -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 +9 -2
- package/src/model/user.js +22 -3
- 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 +84 -63
- package/src/models.js +85 -138
- package/src/models.js.map +1 -1
- package/src/enums.d.ts +0 -20
- package/src/enums.js +0 -57
- package/src/enums.js.map +0 -1
- package/src/model/neo-domain.d.ts +0 -7
- package/src/model/neo-domain.js +0 -29
- package/src/model/neo-domain.js.map +0 -1
- package/src/model/neo-skill.js +0 -29
- package/src/model/neo-skill.js.map +0 -1
- package/src/model/part-time-assignment.d.ts +0 -7
- package/src/model/part-time-assignment.js +0 -29
- package/src/model/part-time-assignment.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-registration.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/event-registration.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,2CAAuC;AAGhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAqB7B,CAAA;AApBC;IAAC,IAAA,gCAAsB,GAAE;;6CACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;+CAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDACT;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCAClB,IAAI;oDAAC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACpB,IAAI;kDAAC;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDAC1B;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC;sCACvD,oBAAQ;+CAAC;AApBJ,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;GAC3B,iBAAiB,CAqB7B;AArBY,8CAAiB"}
|
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,
|
|
@@ -21,7 +24,15 @@ export declare enum EVENT_CATEGORY {
|
|
|
21
24
|
ESSAY_MARKING = 15,
|
|
22
25
|
ACADEMIC_PREPARATION = 16,
|
|
23
26
|
STUDY_PLAN = 17,
|
|
24
|
-
COLLEGE_INTERVIEW_PREP = 18
|
|
27
|
+
COLLEGE_INTERVIEW_PREP = 18,
|
|
28
|
+
MEDICAL_INTERVIEW_PREP = 19,
|
|
29
|
+
MMI = 20,
|
|
30
|
+
MEETING_INDIVIDUAL_UNPAID = 21,
|
|
31
|
+
MEETING_PROSPECT = 22,
|
|
32
|
+
MEETING_COLLEGE_ADMISSIONS = 23,
|
|
33
|
+
MEETING_MEDICAL_ADMISSIONS = 24,
|
|
34
|
+
MEETING_COLLEGE_HOURLY = 25,
|
|
35
|
+
MEETING_MEDICAL_HOURLY = 26
|
|
25
36
|
}
|
|
26
37
|
export declare enum EVENT_VISIBILITY {
|
|
27
38
|
ATTENDEES_ONLY = 1,
|
|
@@ -60,11 +71,18 @@ export declare class Event {
|
|
|
60
71
|
hoursTallied: number;
|
|
61
72
|
hoursTalliedTrainer: number;
|
|
62
73
|
notified: boolean;
|
|
74
|
+
meetingLink: string;
|
|
63
75
|
createdAt: Date;
|
|
64
76
|
updatedAt: Date;
|
|
77
|
+
deletedAt: Date;
|
|
65
78
|
attendees: EventToUser[];
|
|
66
79
|
creatorId: number;
|
|
67
80
|
creator: User;
|
|
68
81
|
eventLogs: EventLog[];
|
|
69
82
|
studentNotes: StudentNote[];
|
|
83
|
+
sessionAttendances: StudentSessionAttendance[];
|
|
84
|
+
courseId?: number;
|
|
85
|
+
course: ServiceCourse;
|
|
86
|
+
sessionId?: number;
|
|
87
|
+
session: ServiceCourseSession;
|
|
70
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";
|
|
@@ -28,6 +31,14 @@ var EVENT_CATEGORY;
|
|
|
28
31
|
EVENT_CATEGORY[EVENT_CATEGORY["ACADEMIC_PREPARATION"] = 16] = "ACADEMIC_PREPARATION";
|
|
29
32
|
EVENT_CATEGORY[EVENT_CATEGORY["STUDY_PLAN"] = 17] = "STUDY_PLAN";
|
|
30
33
|
EVENT_CATEGORY[EVENT_CATEGORY["COLLEGE_INTERVIEW_PREP"] = 18] = "COLLEGE_INTERVIEW_PREP";
|
|
34
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEDICAL_INTERVIEW_PREP"] = 19] = "MEDICAL_INTERVIEW_PREP";
|
|
35
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MMI"] = 20] = "MMI";
|
|
36
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEETING_INDIVIDUAL_UNPAID"] = 21] = "MEETING_INDIVIDUAL_UNPAID";
|
|
37
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEETING_PROSPECT"] = 22] = "MEETING_PROSPECT";
|
|
38
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEETING_COLLEGE_ADMISSIONS"] = 23] = "MEETING_COLLEGE_ADMISSIONS";
|
|
39
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEETING_MEDICAL_ADMISSIONS"] = 24] = "MEETING_MEDICAL_ADMISSIONS";
|
|
40
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEETING_COLLEGE_HOURLY"] = 25] = "MEETING_COLLEGE_HOURLY";
|
|
41
|
+
EVENT_CATEGORY[EVENT_CATEGORY["MEETING_MEDICAL_HOURLY"] = 26] = "MEETING_MEDICAL_HOURLY";
|
|
31
42
|
})(EVENT_CATEGORY = exports.EVENT_CATEGORY || (exports.EVENT_CATEGORY = {}));
|
|
32
43
|
var EVENT_VISIBILITY;
|
|
33
44
|
(function (EVENT_VISIBILITY) {
|
|
@@ -115,6 +126,10 @@ tslib_1.__decorate([
|
|
|
115
126
|
(0, typeorm_1.Column)({ type: 'boolean' }),
|
|
116
127
|
tslib_1.__metadata("design:type", Boolean)
|
|
117
128
|
], Event.prototype, "notified", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
131
|
+
tslib_1.__metadata("design:type", String)
|
|
132
|
+
], Event.prototype, "meetingLink", void 0);
|
|
118
133
|
tslib_1.__decorate([
|
|
119
134
|
(0, typeorm_1.CreateDateColumn)(),
|
|
120
135
|
tslib_1.__metadata("design:type", Date)
|
|
@@ -123,6 +138,10 @@ tslib_1.__decorate([
|
|
|
123
138
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
124
139
|
tslib_1.__metadata("design:type", Date)
|
|
125
140
|
], Event.prototype, "updatedAt", void 0);
|
|
141
|
+
tslib_1.__decorate([
|
|
142
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
143
|
+
tslib_1.__metadata("design:type", Date)
|
|
144
|
+
], Event.prototype, "deletedAt", void 0);
|
|
126
145
|
tslib_1.__decorate([
|
|
127
146
|
(0, typeorm_1.OneToMany)(() => event_to_user_1.EventToUser, (eventToUser) => eventToUser.event),
|
|
128
147
|
tslib_1.__metadata("design:type", Array)
|
|
@@ -144,6 +163,28 @@ tslib_1.__decorate([
|
|
|
144
163
|
(0, typeorm_1.OneToMany)(() => student_note_1.StudentNote, (note) => note.event),
|
|
145
164
|
tslib_1.__metadata("design:type", Array)
|
|
146
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);
|
|
147
188
|
Event = tslib_1.__decorate([
|
|
148
189
|
(0, typeorm_1.Entity)({ name: 'events' })
|
|
149
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,
|
|
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,wFAAsB,C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+
}
|
|
7
|
+
export declare class GmailMessageEmailIndex {
|
|
8
|
+
id: number;
|
|
9
|
+
email: string;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
type: GMAIL_MESSAGE_EMAIL_TYPE;
|
|
12
|
+
date?: string;
|
|
13
|
+
gmailMessageId: number;
|
|
14
|
+
gmailMessage: GmailMessage;
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GmailMessageEmailIndex = exports.GMAIL_MESSAGE_EMAIL_TYPE = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const gmail_message_1 = require("./gmail-message");
|
|
7
|
+
var GMAIL_MESSAGE_EMAIL_TYPE;
|
|
8
|
+
(function (GMAIL_MESSAGE_EMAIL_TYPE) {
|
|
9
|
+
GMAIL_MESSAGE_EMAIL_TYPE["FROM"] = "FROM";
|
|
10
|
+
GMAIL_MESSAGE_EMAIL_TYPE["TO"] = "TO";
|
|
11
|
+
GMAIL_MESSAGE_EMAIL_TYPE["CC"] = "CC";
|
|
12
|
+
})(GMAIL_MESSAGE_EMAIL_TYPE = exports.GMAIL_MESSAGE_EMAIL_TYPE || (exports.GMAIL_MESSAGE_EMAIL_TYPE = {}));
|
|
13
|
+
let GmailMessageEmailIndex = class GmailMessageEmailIndex {
|
|
14
|
+
};
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
|
18
|
+
], GmailMessageEmailIndex.prototype, "id", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
|
+
], GmailMessageEmailIndex.prototype, "email", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], GmailMessageEmailIndex.prototype, "timestamp", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: ['FROM', 'TO', 'CC'] }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], GmailMessageEmailIndex.prototype, "type", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], GmailMessageEmailIndex.prototype, "date", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
37
|
+
tslib_1.__metadata("design:type", Number)
|
|
38
|
+
], GmailMessageEmailIndex.prototype, "gmailMessageId", void 0);
|
|
39
|
+
tslib_1.__decorate([
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => gmail_message_1.GmailMessage),
|
|
41
|
+
tslib_1.__metadata("design:type", gmail_message_1.GmailMessage)
|
|
42
|
+
], GmailMessageEmailIndex.prototype, "gmailMessage", void 0);
|
|
43
|
+
GmailMessageEmailIndex = tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Entity)({ name: 'gmail_message_email_index' })
|
|
45
|
+
], GmailMessageEmailIndex);
|
|
46
|
+
exports.GmailMessageEmailIndex = GmailMessageEmailIndex;
|
|
47
|
+
//# sourceMappingURL=gmail-message-email-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmail-message-email-index.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/gmail-message-email-index.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,mDAA+C;AAE/C,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,yCAAa,CAAA;IACb,qCAAS,CAAA;IACT,qCAAS,CAAA;AACX,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAqBlC,CAAA;AApBC;IAAC,IAAA,gCAAsB,GAAE;;kDACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qDAC3B;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;yDACtB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;;oDACtB;AAE/B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC1C;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8DACD;AAEvB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;sCAChB,4BAAY;4DAAC;AApBhB,sBAAsB;IADlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;GACjC,sBAAsB,CAqBlC;AArBY,wDAAsB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GoogleUser } from './google-user';
|
|
2
|
+
export declare class GmailMessage {
|
|
3
|
+
id: number;
|
|
4
|
+
messageId: string;
|
|
5
|
+
threadId: string;
|
|
6
|
+
historyId: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
snippet: string;
|
|
9
|
+
subject: string;
|
|
10
|
+
from: string;
|
|
11
|
+
to: string;
|
|
12
|
+
cc: string;
|
|
13
|
+
date: string;
|
|
14
|
+
trashed: boolean;
|
|
15
|
+
googleUserId: number;
|
|
16
|
+
googleUser: GoogleUser;
|
|
17
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GmailMessage = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const google_user_1 = require("./google-user");
|
|
7
|
+
let GmailMessage = class GmailMessage {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], GmailMessage.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], GmailMessage.prototype, "messageId", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], GmailMessage.prototype, "threadId", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], GmailMessage.prototype, "historyId", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
28
|
+
], GmailMessage.prototype, "timestamp", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
31
|
+
tslib_1.__metadata("design:type", String)
|
|
32
|
+
], GmailMessage.prototype, "snippet", void 0);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], GmailMessage.prototype, "subject", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], GmailMessage.prototype, "from", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], GmailMessage.prototype, "to", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
48
|
+
], GmailMessage.prototype, "cc", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
|
+
], GmailMessage.prototype, "date", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
55
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
56
|
+
], GmailMessage.prototype, "trashed", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
59
|
+
tslib_1.__metadata("design:type", Number)
|
|
60
|
+
], GmailMessage.prototype, "googleUserId", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => google_user_1.GoogleUser),
|
|
63
|
+
tslib_1.__metadata("design:type", google_user_1.GoogleUser)
|
|
64
|
+
], GmailMessage.prototype, "googleUser", void 0);
|
|
65
|
+
GmailMessage = tslib_1.__decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'gmail_messages' })
|
|
67
|
+
], GmailMessage);
|
|
68
|
+
exports.GmailMessage = GmailMessage;
|
|
69
|
+
//# sourceMappingURL=gmail-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmail-message.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/gmail-message.ts"],"names":[],"mappings":";;;;AAAA,qCAA4E;AAE5E,+CAA2C;AAGpC,IAAM,YAAY,GAAlB,MAAM,YAAY;CA0CxB,CAAA;AAzCC;IAAC,IAAA,gCAAsB,GAAE;;wCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACtB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8CACvB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtC;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACtC;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACzC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACzC;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC5C;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC9B;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC9B;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC5C;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CAC3B;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;kDACH;AAErB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;sCAChB,wBAAU;gDAAC;AAzCZ,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;GACtB,YAAY,CA0CxB;AA1CY,oCAAY"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoogleUser = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
let GoogleUser = class GoogleUser {
|
|
7
|
+
};
|
|
8
|
+
tslib_1.__decorate([
|
|
9
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
10
|
+
tslib_1.__metadata("design:type", Number)
|
|
11
|
+
], GoogleUser.prototype, "id", void 0);
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], GoogleUser.prototype, "userId", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], GoogleUser.prototype, "primaryEmail", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], GoogleUser.prototype, "fullName", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], GoogleUser.prototype, "familyName", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 256 }),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], GoogleUser.prototype, "givenName", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
35
|
+
], GoogleUser.prototype, "lastHistoryId", void 0);
|
|
36
|
+
GoogleUser = tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'google_users' })
|
|
38
|
+
], GoogleUser);
|
|
39
|
+
exports.GoogleUser = GoogleUser;
|
|
40
|
+
//# sourceMappingURL=google-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-user.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/google-user.ts"],"names":[],"mappings":";;;;AAAA,qCAAiE;AAG1D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAqBtB,CAAA;AApBC;IAAC,IAAA,gCAAsB,GAAE;;sCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;0CACzB;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;gDACnB;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CACxB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;8CACtB;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6CACvB;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACjC;AApBZ,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;GACpB,UAAU,CAqBtB;AArBY,gCAAU"}
|
|
@@ -3,14 +3,16 @@ import { School } from './school';
|
|
|
3
3
|
import { User } from './user';
|
|
4
4
|
export declare class HighSchoolRecord {
|
|
5
5
|
id: number;
|
|
6
|
-
currentGrade
|
|
7
|
-
yearEnterCollege
|
|
8
|
-
areaOfStudy
|
|
6
|
+
currentGrade?: string;
|
|
7
|
+
yearEnterCollege?: number;
|
|
8
|
+
areaOfStudy?: string;
|
|
9
9
|
courseGrades: string;
|
|
10
|
-
educationSystemId
|
|
11
|
-
schoolId
|
|
10
|
+
educationSystemId?: number;
|
|
11
|
+
schoolId?: number;
|
|
12
12
|
userId: number;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
yearFinalExam?: number;
|
|
14
|
+
monthFinalExam?: number;
|
|
15
|
+
school?: School;
|
|
16
|
+
educationSystem?: EducationSystem;
|
|
15
17
|
user: User;
|
|
16
18
|
}
|
|
@@ -13,15 +13,15 @@ tslib_1.__decorate([
|
|
|
13
13
|
tslib_1.__metadata("design:type", Number)
|
|
14
14
|
], HighSchoolRecord.prototype, "id", void 0);
|
|
15
15
|
tslib_1.__decorate([
|
|
16
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
|
|
16
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
17
17
|
tslib_1.__metadata("design:type", String)
|
|
18
18
|
], HighSchoolRecord.prototype, "currentGrade", void 0);
|
|
19
19
|
tslib_1.__decorate([
|
|
20
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
21
21
|
tslib_1.__metadata("design:type", Number)
|
|
22
22
|
], HighSchoolRecord.prototype, "yearEnterCollege", void 0);
|
|
23
23
|
tslib_1.__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
25
25
|
tslib_1.__metadata("design:type", String)
|
|
26
26
|
], HighSchoolRecord.prototype, "areaOfStudy", void 0);
|
|
27
27
|
tslib_1.__decorate([
|
|
@@ -29,17 +29,25 @@ tslib_1.__decorate([
|
|
|
29
29
|
tslib_1.__metadata("design:type", String)
|
|
30
30
|
], HighSchoolRecord.prototype, "courseGrades", void 0);
|
|
31
31
|
tslib_1.__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
33
33
|
tslib_1.__metadata("design:type", Number)
|
|
34
34
|
], HighSchoolRecord.prototype, "educationSystemId", void 0);
|
|
35
35
|
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
37
|
tslib_1.__metadata("design:type", Number)
|
|
38
38
|
], HighSchoolRecord.prototype, "schoolId", void 0);
|
|
39
39
|
tslib_1.__decorate([
|
|
40
40
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
41
41
|
tslib_1.__metadata("design:type", Number)
|
|
42
42
|
], HighSchoolRecord.prototype, "userId", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
+
tslib_1.__metadata("design:type", Number)
|
|
46
|
+
], HighSchoolRecord.prototype, "yearFinalExam", void 0);
|
|
47
|
+
tslib_1.__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
+
tslib_1.__metadata("design:type", Number)
|
|
50
|
+
], HighSchoolRecord.prototype, "monthFinalExam", void 0);
|
|
43
51
|
tslib_1.__decorate([
|
|
44
52
|
(0, typeorm_1.ManyToOne)(() => school_1.School),
|
|
45
53
|
(0, typeorm_1.JoinColumn)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"high-school-record.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/high-school-record.ts"],"names":[],"mappings":";;;;AAAA,qCAAkG;AAElG,yDAAqD;AACrD,qCAAkC;AAClC,iCAA8B;AAGvB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;
|
|
1
|
+
{"version":3,"file":"high-school-record.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/high-school-record.ts"],"names":[],"mappings":";;;;AAAA,qCAAkG;AAElG,yDAAqD;AACrD,qCAAkC;AAClC,iCAA8B;AAGvB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA0C5B,CAAA;AAzCC;IAAC,IAAA,gCAAsB,GAAE;;4CACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACnC;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,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0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Holiday = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_1 = require("./user");
|
|
7
|
+
let Holiday = class Holiday {
|
|
8
|
+
};
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
11
|
+
tslib_1.__metadata("design:type", Number)
|
|
12
|
+
], Holiday.prototype, "id", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], Holiday.prototype, "title", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], Holiday.prototype, "from", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], Holiday.prototype, "to", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
27
|
+
tslib_1.__metadata("design:type", Number)
|
|
28
|
+
], Holiday.prototype, "staffId", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.ManyToOne)(() => user_1.User),
|
|
31
|
+
(0, typeorm_1.JoinTable)(),
|
|
32
|
+
tslib_1.__metadata("design:type", Array)
|
|
33
|
+
], Holiday.prototype, "staff", void 0);
|
|
34
|
+
Holiday = tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Entity)({ name: 'holidays' })
|
|
36
|
+
], Holiday);
|
|
37
|
+
exports.Holiday = Holiday;
|
|
38
|
+
//# sourceMappingURL=holiday.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holiday.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/holiday.ts"],"names":[],"mappings":";;;;AAAA,qCAAuF;AAEvF,iCAA8B;AAGvB,IAAM,OAAO,GAAb,MAAM,OAAO;CAmBnB,CAAA;AAlBC;IAAC,IAAA,gCAAsB,GAAE;;mCACd;AAEX;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,EAAE,EAAE,CAAC;;qCAC3B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;mCAC7B;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;wCACR;AAEhB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;IACrB,IAAA,mBAAS,GAAE;;sCACE;AAlBH,OAAO;IADnB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,OAAO,CAmBnB;AAnBY,0BAAO"}
|
|
@@ -3,7 +3,8 @@ export declare enum LEAD_FORM_FIELD_TYPE {
|
|
|
3
3
|
SINGLE_LINE = 1,
|
|
4
4
|
RADIO = 2,
|
|
5
5
|
CHECKBOX = 3,
|
|
6
|
-
DROPDOWN = 4
|
|
6
|
+
DROPDOWN = 4,
|
|
7
|
+
HIDDEN = 5
|
|
7
8
|
}
|
|
8
9
|
export declare enum LEAD_FORM_FIELD_VALIDATION {
|
|
9
10
|
ALPHANUMERICAL = 1,
|
|
@@ -20,6 +21,7 @@ export declare class LeadFormField {
|
|
|
20
21
|
validation: LEAD_FORM_FIELD_VALIDATION;
|
|
21
22
|
options: string;
|
|
22
23
|
required: boolean;
|
|
24
|
+
order: number;
|
|
23
25
|
formId: number;
|
|
24
26
|
form: LeadForm;
|
|
25
27
|
}
|
|
@@ -10,6 +10,7 @@ var LEAD_FORM_FIELD_TYPE;
|
|
|
10
10
|
LEAD_FORM_FIELD_TYPE[LEAD_FORM_FIELD_TYPE["RADIO"] = 2] = "RADIO";
|
|
11
11
|
LEAD_FORM_FIELD_TYPE[LEAD_FORM_FIELD_TYPE["CHECKBOX"] = 3] = "CHECKBOX";
|
|
12
12
|
LEAD_FORM_FIELD_TYPE[LEAD_FORM_FIELD_TYPE["DROPDOWN"] = 4] = "DROPDOWN";
|
|
13
|
+
LEAD_FORM_FIELD_TYPE[LEAD_FORM_FIELD_TYPE["HIDDEN"] = 5] = "HIDDEN";
|
|
13
14
|
})(LEAD_FORM_FIELD_TYPE = exports.LEAD_FORM_FIELD_TYPE || (exports.LEAD_FORM_FIELD_TYPE = {}));
|
|
14
15
|
var LEAD_FORM_FIELD_VALIDATION;
|
|
15
16
|
(function (LEAD_FORM_FIELD_VALIDATION) {
|
|
@@ -49,6 +50,10 @@ tslib_1.__decorate([
|
|
|
49
50
|
(0, typeorm_1.Column)({ type: 'boolean' }),
|
|
50
51
|
tslib_1.__metadata("design:type", Boolean)
|
|
51
52
|
], LeadFormField.prototype, "required", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
55
|
+
tslib_1.__metadata("design:type", Number)
|
|
56
|
+
], LeadFormField.prototype, "order", void 0);
|
|
52
57
|
tslib_1.__decorate([
|
|
53
58
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
54
59
|
tslib_1.__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lead-form-field.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/lead-form-field.ts"],"names":[],"mappings":";;;;AAAA,qCAAwF;AAExF,2CAAuC;AAEvC,IAAY,
|
|
1
|
+
{"version":3,"file":"lead-form-field.js","sourceRoot":"","sources":["../../../../../libs/model/src/model/lead-form-field.ts"],"names":[],"mappings":";;;;AAAA,qCAAwF;AAExF,2CAAuC;AAEvC,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,6EAAe,CAAA;IACf,iEAAK,CAAA;IACL,uEAAQ,CAAA;IACR,uEAAQ,CAAA;IACR,mEAAM,CAAA;AACR,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B;AAED,IAAY,0BAMX;AAND,WAAY,0BAA0B;IACpC,+FAAkB,CAAA;IAClB,qFAAS,CAAA;IACT,6EAAK,CAAA;IACL,6EAAK,CAAA;IACL,2EAAI,CAAA;AACN,CAAC,EANW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAMrC;AAGM,IAAM,aAAa,GAAnB,MAAM,aAAa;CA+BzB,CAAA;AA9BC;IAAC,IAAA,gCAAsB,GAAE;;yCACd;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2CAC5B;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4CAC3B;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CACG;AAE3B;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDACe;AAEvC;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACT;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACV;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;4CACV;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6CACT;AAEf;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;IAChD,IAAA,oBAAU,GAAE;sCACP,oBAAQ;2CAAC;AA9BJ,aAAa;IADzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;GACxB,aAAa,CA+BzB;AA/BY,sCAAa"}
|
package/src/model/lead-form.d.ts
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { STUDENT_SERVICE } from './student-service';
|
|
2
2
|
import { User } from './user';
|
|
3
3
|
import { LeadFormField } from './lead-form-field';
|
|
4
|
+
import { EventRegistration } from './event-registration';
|
|
4
5
|
export declare enum LEAD_FORM_ASSIGNMENT {
|
|
5
6
|
DEFAULT = 1,
|
|
6
7
|
FORCED = 2
|
|
7
8
|
}
|
|
9
|
+
export declare enum LEAD_FORM_LOCATION {
|
|
10
|
+
SINGAPORE = 1,
|
|
11
|
+
MUMBAI = 2
|
|
12
|
+
}
|
|
13
|
+
export declare enum LEAD_FORM_CATEGORY {
|
|
14
|
+
WEB_FORM = 1,
|
|
15
|
+
EVENT = 2
|
|
16
|
+
}
|
|
17
|
+
export declare enum LEAD_FORM_PRIORITY {
|
|
18
|
+
NONE = 1,
|
|
19
|
+
PRIORITY_1 = 2,
|
|
20
|
+
PRIORITY_2 = 3,
|
|
21
|
+
PRIORITY_3 = 4
|
|
22
|
+
}
|
|
8
23
|
export declare class LeadForm {
|
|
9
24
|
id: number;
|
|
10
25
|
name: string;
|
|
@@ -14,8 +29,16 @@ export declare class LeadForm {
|
|
|
14
29
|
assignment: LEAD_FORM_ASSIGNMENT;
|
|
15
30
|
assigneeId?: number;
|
|
16
31
|
redirectUrl: string;
|
|
32
|
+
targetPipelineId: number;
|
|
33
|
+
location: number;
|
|
34
|
+
emailSubject: string;
|
|
35
|
+
emailBody?: string;
|
|
36
|
+
sendMail?: boolean;
|
|
37
|
+
category: LEAD_FORM_CATEGORY;
|
|
38
|
+
priority: LEAD_FORM_PRIORITY;
|
|
17
39
|
createdAt: Date;
|
|
18
40
|
updatedAt: Date;
|
|
19
41
|
assignee?: User;
|
|
20
42
|
fields: LeadFormField[];
|
|
43
|
+
eventRegistrations: EventRegistration[];
|
|
21
44
|
}
|