@platform-modules/foreign-ministry 1.3.144 → 1.3.146
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/.env +15 -6
- package/dist/data-source.js +12 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +23 -1
- package/dist/models/AppointmentApprovalModel.d.ts +22 -0
- package/dist/models/AppointmentApprovalModel.js +84 -0
- package/dist/models/AppointmentAttachmentModel.d.ts +11 -0
- package/dist/models/AppointmentAttachmentModel.js +52 -0
- package/dist/models/AppointmentAttendeeModel.d.ts +14 -0
- package/dist/models/AppointmentAttendeeModel.js +47 -0
- package/dist/models/AppointmentChatModel.d.ts +19 -0
- package/dist/models/AppointmentChatModel.js +77 -0
- package/dist/models/AppointmentRequestModel.d.ts +47 -0
- package/dist/models/AppointmentRequestModel.js +126 -0
- package/dist/models/AppointmentWorkflowModel.d.ts +17 -0
- package/dist/models/AppointmentWorkflowModel.js +62 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/LMSExternalCourseParticipationRequestModel.d.ts +1 -0
- package/dist/models/LMSExternalCourseParticipationRequestModel.js +4 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +12 -0
- package/src/index.ts +12 -0
- package/src/models/AppointmentApprovalModel.ts +57 -0
- package/src/models/AppointmentAttachmentModel.ts +30 -0
- package/src/models/AppointmentAttendeeModel.ts +28 -0
- package/src/models/AppointmentChatModel.ts +64 -0
- package/src/models/AppointmentRequestModel.ts +93 -0
- package/src/models/AppointmentWorkflowModel.ts +39 -0
- package/src/models/DocumentTranslationRequestModel.ts +54 -54
- package/src/models/LMSExternalCourseParticipationRequestModel.ts +3 -0
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/RegisterCandidateRequestModel.ts +177 -177
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/dist/models/MissionTravelClassConfigModel.d.ts +0 -10
- package/dist/models/MissionTravelClassConfigModel.js +0 -50
- package/dist/models/MissionTravelPerdiemModel.d.ts +0 -10
- package/dist/models/MissionTravelPerdiemModel.js +0 -54
- /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
package/.env
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
# DB_HOST=localhost
|
|
2
|
-
# DB_PORT=
|
|
2
|
+
# DB_PORT=5433
|
|
3
3
|
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=
|
|
4
|
+
# DB_PASS=123
|
|
5
5
|
# DB_NAME=FM
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DB_HOST=164.52.222.169
|
|
10
|
+
DB_PORT=5432
|
|
11
|
+
DB_USER=postgres_admin_user
|
|
12
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
13
|
+
DB_NAME=FM
|
|
14
|
+
|
|
15
|
+
# DB_HOST=216.48.187.46
|
|
16
|
+
# DB_PORT=5432
|
|
17
|
+
# DB_USER=adminuser
|
|
18
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
19
|
+
# DB_NAME=FM_QA
|
package/dist/data-source.js
CHANGED
|
@@ -170,6 +170,12 @@ const MeetingAttachmentModel_1 = require("./models/MeetingAttachmentModel");
|
|
|
170
170
|
const MeetingChatModel_1 = require("./models/MeetingChatModel");
|
|
171
171
|
const MeetingWorkflowModel_1 = require("./models/MeetingWorkflowModel");
|
|
172
172
|
const MeetingAttendeeModel_1 = require("./models/MeetingAttendeeModel");
|
|
173
|
+
const AppointmentRequestModel_1 = require("./models/AppointmentRequestModel");
|
|
174
|
+
const AppointmentApprovalModel_1 = require("./models/AppointmentApprovalModel");
|
|
175
|
+
const AppointmentAttachmentModel_1 = require("./models/AppointmentAttachmentModel");
|
|
176
|
+
const AppointmentChatModel_1 = require("./models/AppointmentChatModel");
|
|
177
|
+
const AppointmentWorkflowModel_1 = require("./models/AppointmentWorkflowModel");
|
|
178
|
+
const AppointmentAttendeeModel_1 = require("./models/AppointmentAttendeeModel");
|
|
173
179
|
const HallRequestModel_1 = require("./models/HallRequestModel");
|
|
174
180
|
const HallApprovalModel_1 = require("./models/HallApprovalModel");
|
|
175
181
|
const HallAttachmentModel_1 = require("./models/HallAttachmentModel");
|
|
@@ -356,6 +362,12 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
356
362
|
MeetingChatModel_1.MeetingRequestChat,
|
|
357
363
|
MeetingWorkflowModel_1.MeetingWorkFlow,
|
|
358
364
|
MeetingAttendeeModel_1.MeetingAttendees,
|
|
365
|
+
AppointmentRequestModel_1.AppointmentRequests,
|
|
366
|
+
AppointmentApprovalModel_1.AppointmentApprovalDetails,
|
|
367
|
+
AppointmentAttachmentModel_1.AppointmentRequestAttachment,
|
|
368
|
+
AppointmentChatModel_1.AppointmentRequestChat,
|
|
369
|
+
AppointmentWorkflowModel_1.AppointmentWorkFlow,
|
|
370
|
+
AppointmentAttendeeModel_1.AppointmentAttendees,
|
|
359
371
|
HallRequestModel_1.HallRequests,
|
|
360
372
|
HallApprovalModel_1.HallApprovalDetails,
|
|
361
373
|
HallAttachmentModel_1.HallRequestAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -260,6 +260,16 @@ export * from './models/MeetingAttachmentModel';
|
|
|
260
260
|
export * from './models/MeetingChatModel';
|
|
261
261
|
export * from './models/MeetingWorkflowModel';
|
|
262
262
|
export * from './models/MeetingAttendeeModel';
|
|
263
|
+
export { AppointmentRequests } from './models/AppointmentRequestModel';
|
|
264
|
+
export { AppointmentApprovalDetails } from './models/AppointmentApprovalModel';
|
|
265
|
+
export { AppointmentRequestAttachment } from './models/AppointmentAttachmentModel';
|
|
266
|
+
export { AppointmentRequestChat } from './models/AppointmentChatModel';
|
|
267
|
+
export { AppointmentWorkFlow } from './models/AppointmentWorkflowModel';
|
|
268
|
+
export { AppointmentAttendees } from './models/AppointmentAttendeeModel';
|
|
269
|
+
export { AppointmentApprovalStatus } from './models/AppointmentApprovalModel';
|
|
270
|
+
export { AppointmentAttendeeStatus } from './models/AppointmentAttendeeModel';
|
|
271
|
+
export { AppointmentMessageType } from './models/AppointmentChatModel';
|
|
272
|
+
export { AppointmentWorkFlowStatus } from './models/AppointmentWorkflowModel';
|
|
263
273
|
export * from './models/HallRequestModel';
|
|
264
274
|
export * from './models/HallApprovalModel';
|
|
265
275
|
export * from './models/HallAttachmentModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ServicesNotificationTriggerType = exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.SecurityDeptMessageType = exports.SecurityDeptAccessType = exports.SecurityDeptRequestStatus = exports.RetiredCardMessageType = exports.RetiredCardWorkFlowStatus = exports.RetiredCardApprovalStatus = exports.RetiredCardAccessType = exports.RetiredCardRequestStatus = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = exports.ParcelDepartmentCategory = exports.RegisterCandidateExperienceActivity = void 0;
|
|
17
|
+
exports.ServicesNotificationTriggerType = exports.AppointmentWorkFlowStatus = exports.AppointmentMessageType = exports.AppointmentAttendeeStatus = exports.AppointmentApprovalStatus = exports.AppointmentAttendees = exports.AppointmentWorkFlow = exports.AppointmentRequestChat = exports.AppointmentRequestAttachment = exports.AppointmentApprovalDetails = exports.AppointmentRequests = exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.SecurityDeptMessageType = exports.SecurityDeptAccessType = exports.SecurityDeptRequestStatus = exports.RetiredCardMessageType = exports.RetiredCardWorkFlowStatus = exports.RetiredCardApprovalStatus = exports.RetiredCardAccessType = exports.RetiredCardRequestStatus = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = exports.ParcelDepartmentCategory = exports.RegisterCandidateExperienceActivity = void 0;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -320,6 +320,28 @@ __exportStar(require("./models/MeetingAttachmentModel"), exports);
|
|
|
320
320
|
__exportStar(require("./models/MeetingChatModel"), exports);
|
|
321
321
|
__exportStar(require("./models/MeetingWorkflowModel"), exports);
|
|
322
322
|
__exportStar(require("./models/MeetingAttendeeModel"), exports);
|
|
323
|
+
// Appointment Models (export entities only to avoid name collisions)
|
|
324
|
+
var AppointmentRequestModel_1 = require("./models/AppointmentRequestModel");
|
|
325
|
+
Object.defineProperty(exports, "AppointmentRequests", { enumerable: true, get: function () { return AppointmentRequestModel_1.AppointmentRequests; } });
|
|
326
|
+
var AppointmentApprovalModel_1 = require("./models/AppointmentApprovalModel");
|
|
327
|
+
Object.defineProperty(exports, "AppointmentApprovalDetails", { enumerable: true, get: function () { return AppointmentApprovalModel_1.AppointmentApprovalDetails; } });
|
|
328
|
+
var AppointmentAttachmentModel_1 = require("./models/AppointmentAttachmentModel");
|
|
329
|
+
Object.defineProperty(exports, "AppointmentRequestAttachment", { enumerable: true, get: function () { return AppointmentAttachmentModel_1.AppointmentRequestAttachment; } });
|
|
330
|
+
var AppointmentChatModel_1 = require("./models/AppointmentChatModel");
|
|
331
|
+
Object.defineProperty(exports, "AppointmentRequestChat", { enumerable: true, get: function () { return AppointmentChatModel_1.AppointmentRequestChat; } });
|
|
332
|
+
var AppointmentWorkflowModel_1 = require("./models/AppointmentWorkflowModel");
|
|
333
|
+
Object.defineProperty(exports, "AppointmentWorkFlow", { enumerable: true, get: function () { return AppointmentWorkflowModel_1.AppointmentWorkFlow; } });
|
|
334
|
+
var AppointmentAttendeeModel_1 = require("./models/AppointmentAttendeeModel");
|
|
335
|
+
Object.defineProperty(exports, "AppointmentAttendees", { enumerable: true, get: function () { return AppointmentAttendeeModel_1.AppointmentAttendees; } });
|
|
336
|
+
// Appointment enums / types
|
|
337
|
+
var AppointmentApprovalModel_2 = require("./models/AppointmentApprovalModel");
|
|
338
|
+
Object.defineProperty(exports, "AppointmentApprovalStatus", { enumerable: true, get: function () { return AppointmentApprovalModel_2.AppointmentApprovalStatus; } });
|
|
339
|
+
var AppointmentAttendeeModel_2 = require("./models/AppointmentAttendeeModel");
|
|
340
|
+
Object.defineProperty(exports, "AppointmentAttendeeStatus", { enumerable: true, get: function () { return AppointmentAttendeeModel_2.AppointmentAttendeeStatus; } });
|
|
341
|
+
var AppointmentChatModel_2 = require("./models/AppointmentChatModel");
|
|
342
|
+
Object.defineProperty(exports, "AppointmentMessageType", { enumerable: true, get: function () { return AppointmentChatModel_2.AppointmentMessageType; } });
|
|
343
|
+
var AppointmentWorkflowModel_2 = require("./models/AppointmentWorkflowModel");
|
|
344
|
+
Object.defineProperty(exports, "AppointmentWorkFlowStatus", { enumerable: true, get: function () { return AppointmentWorkflowModel_2.AppointmentWorkFlowStatus; } });
|
|
323
345
|
// Hall Models
|
|
324
346
|
__exportStar(require("./models/HallRequestModel"), exports);
|
|
325
347
|
__exportStar(require("./models/HallApprovalModel"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AppointmentApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected"
|
|
7
|
+
}
|
|
8
|
+
export declare class AppointmentApprovalDetails extends BaseModel {
|
|
9
|
+
appointment_id: number;
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
sub_service_id: number | null;
|
|
12
|
+
level: number;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
approver_user_id: number | null;
|
|
17
|
+
delegate_user_id: number | null;
|
|
18
|
+
approved_by: number | null;
|
|
19
|
+
comment: string;
|
|
20
|
+
approval_status: AppointmentApprovalStatus;
|
|
21
|
+
is_allowed: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppointmentApprovalDetails = exports.AppointmentApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AppointmentApprovalStatus;
|
|
16
|
+
(function (AppointmentApprovalStatus) {
|
|
17
|
+
AppointmentApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
AppointmentApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AppointmentApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
AppointmentApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
})(AppointmentApprovalStatus || (exports.AppointmentApprovalStatus = AppointmentApprovalStatus = {}));
|
|
22
|
+
let AppointmentApprovalDetails = class AppointmentApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.AppointmentApprovalDetails = AppointmentApprovalDetails;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], AppointmentApprovalDetails.prototype, "appointment_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], AppointmentApprovalDetails.prototype, "service_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], AppointmentApprovalDetails.prototype, "sub_service_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AppointmentApprovalDetails.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], AppointmentApprovalDetails.prototype, "approver_role_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], AppointmentApprovalDetails.prototype, "department_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], AppointmentApprovalDetails.prototype, "section_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], AppointmentApprovalDetails.prototype, "approver_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AppointmentApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AppointmentApprovalDetails.prototype, "approved_by", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AppointmentApprovalDetails.prototype, "comment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: 'enum',
|
|
72
|
+
enum: AppointmentApprovalStatus,
|
|
73
|
+
default: AppointmentApprovalStatus.PENDING,
|
|
74
|
+
nullable: false,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], AppointmentApprovalDetails.prototype, "approval_status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], AppointmentApprovalDetails.prototype, "is_allowed", void 0);
|
|
82
|
+
exports.AppointmentApprovalDetails = AppointmentApprovalDetails = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'appointment_approvals' })
|
|
84
|
+
], AppointmentApprovalDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class AppointmentRequestAttachment extends BaseModel {
|
|
3
|
+
appointment_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
file_url: string;
|
|
7
|
+
file_name: string;
|
|
8
|
+
file_type: string;
|
|
9
|
+
file_size: number | null;
|
|
10
|
+
chat_id: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppointmentRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let AppointmentRequestAttachment = class AppointmentRequestAttachment extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.AppointmentRequestAttachment = AppointmentRequestAttachment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], AppointmentRequestAttachment.prototype, "appointment_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], AppointmentRequestAttachment.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], AppointmentRequestAttachment.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AppointmentRequestAttachment.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AppointmentRequestAttachment.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AppointmentRequestAttachment.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AppointmentRequestAttachment.prototype, "file_size", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], AppointmentRequestAttachment.prototype, "chat_id", void 0);
|
|
50
|
+
exports.AppointmentRequestAttachment = AppointmentRequestAttachment = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)({ name: 'appointment_attachments' })
|
|
52
|
+
], AppointmentRequestAttachment);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AppointmentAttendeeStatus {
|
|
3
|
+
INVITED = "Invited",
|
|
4
|
+
ACCEPTED = "Accepted",
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
NO_SHOW = "No-Show"
|
|
7
|
+
}
|
|
8
|
+
export declare class AppointmentAttendees extends BaseModel {
|
|
9
|
+
attendee_id: number;
|
|
10
|
+
appointment_id: number;
|
|
11
|
+
status: AppointmentAttendeeStatus;
|
|
12
|
+
attendee_email: string | null;
|
|
13
|
+
attendee_name: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppointmentAttendees = exports.AppointmentAttendeeStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AppointmentAttendeeStatus;
|
|
16
|
+
(function (AppointmentAttendeeStatus) {
|
|
17
|
+
AppointmentAttendeeStatus["INVITED"] = "Invited";
|
|
18
|
+
AppointmentAttendeeStatus["ACCEPTED"] = "Accepted";
|
|
19
|
+
AppointmentAttendeeStatus["REJECTED"] = "Rejected";
|
|
20
|
+
AppointmentAttendeeStatus["NO_SHOW"] = "No-Show";
|
|
21
|
+
})(AppointmentAttendeeStatus || (exports.AppointmentAttendeeStatus = AppointmentAttendeeStatus = {}));
|
|
22
|
+
let AppointmentAttendees = class AppointmentAttendees extends BaseModel_1.BaseModel {
|
|
23
|
+
};
|
|
24
|
+
exports.AppointmentAttendees = AppointmentAttendees;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], AppointmentAttendees.prototype, "attendee_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], AppointmentAttendees.prototype, "appointment_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AppointmentAttendeeStatus, default: AppointmentAttendeeStatus.INVITED, nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AppointmentAttendees.prototype, "status", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], AppointmentAttendees.prototype, "attendee_email", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], AppointmentAttendees.prototype, "attendee_name", void 0);
|
|
45
|
+
exports.AppointmentAttendees = AppointmentAttendees = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)({ name: 'appointment_attendees' })
|
|
47
|
+
], AppointmentAttendees);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AppointmentMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare class AppointmentRequestChat extends BaseModel {
|
|
10
|
+
appointment_id: number;
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
sub_service_id: number | null;
|
|
13
|
+
user_id: number;
|
|
14
|
+
role_id: number;
|
|
15
|
+
message: string;
|
|
16
|
+
messageType: AppointmentMessageType;
|
|
17
|
+
status: string;
|
|
18
|
+
constructor(appointment_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AppointmentMessageType, status?: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppointmentRequestChat = exports.AppointmentMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AppointmentMessageType;
|
|
16
|
+
(function (AppointmentMessageType) {
|
|
17
|
+
AppointmentMessageType["TEXT"] = "text";
|
|
18
|
+
AppointmentMessageType["IMAGE"] = "image";
|
|
19
|
+
AppointmentMessageType["VIDEO"] = "video";
|
|
20
|
+
AppointmentMessageType["FILE"] = "file";
|
|
21
|
+
AppointmentMessageType["LINK"] = "link";
|
|
22
|
+
})(AppointmentMessageType || (exports.AppointmentMessageType = AppointmentMessageType = {}));
|
|
23
|
+
let AppointmentRequestChat = class AppointmentRequestChat extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(appointment_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
|
|
25
|
+
super();
|
|
26
|
+
this.appointment_id = appointment_id;
|
|
27
|
+
this.service_id = service_id ?? null;
|
|
28
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
29
|
+
this.user_id = user_id;
|
|
30
|
+
this.role_id = role_id;
|
|
31
|
+
this.message = message;
|
|
32
|
+
this.messageType = messageType ?? AppointmentMessageType.TEXT;
|
|
33
|
+
this.status = status ?? 'Pending';
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.AppointmentRequestChat = AppointmentRequestChat;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AppointmentRequestChat.prototype, "appointment_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], AppointmentRequestChat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], AppointmentRequestChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], AppointmentRequestChat.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], AppointmentRequestChat.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], AppointmentRequestChat.prototype, "message", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
type: 'enum',
|
|
64
|
+
enum: AppointmentMessageType,
|
|
65
|
+
default: AppointmentMessageType.TEXT,
|
|
66
|
+
nullable: false,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], AppointmentRequestChat.prototype, "messageType", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], AppointmentRequestChat.prototype, "status", void 0);
|
|
74
|
+
exports.AppointmentRequestChat = AppointmentRequestChat = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)({ name: 'appointment_chats' }),
|
|
76
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
|
|
77
|
+
], AppointmentRequestChat);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AppointmentRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
ASSIGNED = "Assigned",
|
|
5
|
+
IN_PROGRESS = "In Progress",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AppointmentRequestType {
|
|
10
|
+
INTERNAL = "Internal",
|
|
11
|
+
EXTERNAL = "External",
|
|
12
|
+
OTHER_MINISTERS = "Other Ministers"
|
|
13
|
+
}
|
|
14
|
+
export declare enum AppointmentType {
|
|
15
|
+
PHYSICAL = "Physical",
|
|
16
|
+
ONLINE = "Online"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AppointmentYesNo {
|
|
19
|
+
YES = "Yes",
|
|
20
|
+
NO = "No"
|
|
21
|
+
}
|
|
22
|
+
export declare enum AppointmentLocation {
|
|
23
|
+
EMBASSY = "Embassy",
|
|
24
|
+
MINISTRY = "Ministry",
|
|
25
|
+
EXTERNAL_VENUE = "External Venue"
|
|
26
|
+
}
|
|
27
|
+
export declare class AppointmentRequests extends BaseModel {
|
|
28
|
+
req_user_department_id: number | null;
|
|
29
|
+
req_user_section_id: number | null;
|
|
30
|
+
service_id: number | null;
|
|
31
|
+
sub_service_id: number | null;
|
|
32
|
+
user_id: number;
|
|
33
|
+
department_id: number | null;
|
|
34
|
+
receiving_department_id: number | null;
|
|
35
|
+
request_type: AppointmentRequestType | null;
|
|
36
|
+
appointment_type: AppointmentType | null;
|
|
37
|
+
appointment_date: string | null;
|
|
38
|
+
from_time: string | null;
|
|
39
|
+
to_time: string | null;
|
|
40
|
+
description: string | null;
|
|
41
|
+
person_name: string | null;
|
|
42
|
+
contact_number: string | null;
|
|
43
|
+
agenda: string | null;
|
|
44
|
+
appointment_location: AppointmentLocation | null;
|
|
45
|
+
status: AppointmentRequestStatus;
|
|
46
|
+
workflow_execution_id: string | null;
|
|
47
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AppointmentRequests = exports.AppointmentLocation = exports.AppointmentYesNo = exports.AppointmentType = exports.AppointmentRequestType = exports.AppointmentRequestStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AppointmentRequestStatus;
|
|
16
|
+
(function (AppointmentRequestStatus) {
|
|
17
|
+
AppointmentRequestStatus["PENDING"] = "Pending";
|
|
18
|
+
AppointmentRequestStatus["ASSIGNED"] = "Assigned";
|
|
19
|
+
AppointmentRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
+
AppointmentRequestStatus["APPROVED"] = "Approved";
|
|
21
|
+
AppointmentRequestStatus["REJECTED"] = "Rejected";
|
|
22
|
+
})(AppointmentRequestStatus || (exports.AppointmentRequestStatus = AppointmentRequestStatus = {}));
|
|
23
|
+
var AppointmentRequestType;
|
|
24
|
+
(function (AppointmentRequestType) {
|
|
25
|
+
AppointmentRequestType["INTERNAL"] = "Internal";
|
|
26
|
+
AppointmentRequestType["EXTERNAL"] = "External";
|
|
27
|
+
AppointmentRequestType["OTHER_MINISTERS"] = "Other Ministers";
|
|
28
|
+
})(AppointmentRequestType || (exports.AppointmentRequestType = AppointmentRequestType = {}));
|
|
29
|
+
var AppointmentType;
|
|
30
|
+
(function (AppointmentType) {
|
|
31
|
+
AppointmentType["PHYSICAL"] = "Physical";
|
|
32
|
+
AppointmentType["ONLINE"] = "Online";
|
|
33
|
+
})(AppointmentType || (exports.AppointmentType = AppointmentType = {}));
|
|
34
|
+
var AppointmentYesNo;
|
|
35
|
+
(function (AppointmentYesNo) {
|
|
36
|
+
AppointmentYesNo["YES"] = "Yes";
|
|
37
|
+
AppointmentYesNo["NO"] = "No";
|
|
38
|
+
})(AppointmentYesNo || (exports.AppointmentYesNo = AppointmentYesNo = {}));
|
|
39
|
+
var AppointmentLocation;
|
|
40
|
+
(function (AppointmentLocation) {
|
|
41
|
+
AppointmentLocation["EMBASSY"] = "Embassy";
|
|
42
|
+
AppointmentLocation["MINISTRY"] = "Ministry";
|
|
43
|
+
AppointmentLocation["EXTERNAL_VENUE"] = "External Venue";
|
|
44
|
+
})(AppointmentLocation || (exports.AppointmentLocation = AppointmentLocation = {}));
|
|
45
|
+
let AppointmentRequests = class AppointmentRequests extends BaseModel_1.BaseModel {
|
|
46
|
+
};
|
|
47
|
+
exports.AppointmentRequests = AppointmentRequests;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], AppointmentRequests.prototype, "req_user_department_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], AppointmentRequests.prototype, "req_user_section_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], AppointmentRequests.prototype, "service_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], AppointmentRequests.prototype, "sub_service_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], AppointmentRequests.prototype, "user_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], AppointmentRequests.prototype, "department_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], AppointmentRequests.prototype, "receiving_department_id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AppointmentRequestType, nullable: true }),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], AppointmentRequests.prototype, "request_type", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AppointmentType, nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], AppointmentRequests.prototype, "appointment_type", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], AppointmentRequests.prototype, "appointment_date", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], AppointmentRequests.prototype, "from_time", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], AppointmentRequests.prototype, "to_time", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], AppointmentRequests.prototype, "description", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], AppointmentRequests.prototype, "person_name", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
106
|
+
__metadata("design:type", Object)
|
|
107
|
+
], AppointmentRequests.prototype, "contact_number", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], AppointmentRequests.prototype, "agenda", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AppointmentLocation, nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], AppointmentRequests.prototype, "appointment_location", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AppointmentRequestStatus, default: AppointmentRequestStatus.PENDING, nullable: false }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], AppointmentRequests.prototype, "status", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], AppointmentRequests.prototype, "workflow_execution_id", void 0);
|
|
124
|
+
exports.AppointmentRequests = AppointmentRequests = __decorate([
|
|
125
|
+
(0, typeorm_1.Entity)({ name: 'appointment_requests' })
|
|
126
|
+
], AppointmentRequests);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AppointmentWorkFlowStatus {
|
|
3
|
+
COMPLETED = "Completed",
|
|
4
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
+
PENDING = "Pending"
|
|
6
|
+
}
|
|
7
|
+
export declare class AppointmentWorkFlow extends BaseModel {
|
|
8
|
+
appointment_id: number;
|
|
9
|
+
service_id: number | null;
|
|
10
|
+
sub_service_id: number | null;
|
|
11
|
+
content: string;
|
|
12
|
+
status: AppointmentWorkFlowStatus;
|
|
13
|
+
user_id: number | null;
|
|
14
|
+
role_id: number | null;
|
|
15
|
+
department_id: number | null;
|
|
16
|
+
section_id: number | null;
|
|
17
|
+
}
|