@platform-modules/civil-aviation-authority 2.3.12 → 2.3.14

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.
Files changed (54) hide show
  1. package/.env +14 -9
  2. package/dist/data-source.js +31 -1
  3. package/dist/index.d.ts +35 -8
  4. package/dist/index.js +59 -9
  5. package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
  6. package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
  7. package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
  8. package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
  9. package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
  10. package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
  11. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
  12. package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
  13. package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
  14. package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
  15. package/dist/models/AssignTasksEmpApprovalModel.d.ts +23 -0
  16. package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
  17. package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
  18. package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
  19. package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
  20. package/dist/models/AssignTasksEmpChatModel.js +77 -0
  21. package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
  22. package/dist/models/AssignTasksEmpRequestModel.js +100 -0
  23. package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
  24. package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
  25. package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
  26. package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
  27. package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
  28. package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
  29. package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
  30. package/dist/models/TrainingRoomBookingChatModel.js +89 -0
  31. package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
  32. package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
  33. package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
  34. package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
  35. package/dist/models/Workflows.d.ts +0 -9
  36. package/package.json +1 -1
  37. package/src/data-source.ts +31 -1
  38. package/src/index.ts +35 -8
  39. package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
  40. package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
  41. package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
  42. package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
  43. package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
  44. package/src/models/AssignTasksEmpApprovalModel.ts +84 -0
  45. package/src/models/AssignTasksEmpAttachmentModel.ts +52 -0
  46. package/src/models/AssignTasksEmpChatModel.ts +65 -0
  47. package/src/models/AssignTasksEmpRequestModel.ts +90 -0
  48. package/src/models/AssignTasksEmpWorkflowModel.ts +63 -0
  49. package/src/models/HrServiceRequestModel.ts +167 -167
  50. package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
  51. package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
  52. package/src/models/TrainingRoomBookingChatModel.ts +76 -0
  53. package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
  54. package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
@@ -0,0 +1,100 @@
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.AssignTasksEmpRequests = exports.AssignTasksEmpStatus = exports.AssignTasksEmpPriority = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AssignTasksEmpPriority;
16
+ (function (AssignTasksEmpPriority) {
17
+ AssignTasksEmpPriority["HIGH"] = "High";
18
+ AssignTasksEmpPriority["MEDIUM"] = "Medium";
19
+ AssignTasksEmpPriority["LOW"] = "Low";
20
+ })(AssignTasksEmpPriority || (exports.AssignTasksEmpPriority = AssignTasksEmpPriority = {}));
21
+ var AssignTasksEmpStatus;
22
+ (function (AssignTasksEmpStatus) {
23
+ AssignTasksEmpStatus["ASSIGNED"] = "Assigned";
24
+ AssignTasksEmpStatus["IN_PROGRESS"] = "In Progress";
25
+ AssignTasksEmpStatus["APPROVED"] = "Completed";
26
+ })(AssignTasksEmpStatus || (exports.AssignTasksEmpStatus = AssignTasksEmpStatus = {}));
27
+ let AssignTasksEmpRequests = class AssignTasksEmpRequests extends BaseModel_1.BaseModel {
28
+ constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, task_title, task_description, priority, status, completion_date, workflow_execution_id) {
29
+ super();
30
+ this.req_user_department_id = req_user_department_id ?? null;
31
+ this.req_user_section_id = req_user_section_id ?? null;
32
+ this.service_id = service_id;
33
+ this.sub_service_id = sub_service_id;
34
+ this.user_id = user_id;
35
+ this.task_title = task_title;
36
+ this.task_description = task_description;
37
+ this.priority = priority;
38
+ this.completion_date = completion_date ?? null;
39
+ this.status = status;
40
+ this.workflow_execution_id = workflow_execution_id ?? null;
41
+ }
42
+ };
43
+ exports.AssignTasksEmpRequests = AssignTasksEmpRequests;
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
46
+ __metadata("design:type", Object)
47
+ ], AssignTasksEmpRequests.prototype, "req_user_department_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
50
+ __metadata("design:type", Object)
51
+ ], AssignTasksEmpRequests.prototype, "req_user_section_id", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ nullable: true }),
54
+ __metadata("design:type", Number)
55
+ ], AssignTasksEmpRequests.prototype, "service_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ nullable: true }),
58
+ __metadata("design:type", Number)
59
+ ], AssignTasksEmpRequests.prototype, "sub_service_id", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ nullable: false }),
62
+ __metadata("design:type", Number)
63
+ ], AssignTasksEmpRequests.prototype, "user_id", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
66
+ __metadata("design:type", String)
67
+ ], AssignTasksEmpRequests.prototype, "task_title", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
70
+ __metadata("design:type", String)
71
+ ], AssignTasksEmpRequests.prototype, "task_description", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({
74
+ type: "enum",
75
+ enum: AssignTasksEmpPriority,
76
+ nullable: false,
77
+ }),
78
+ __metadata("design:type", String)
79
+ ], AssignTasksEmpRequests.prototype, "priority", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
82
+ __metadata("design:type", Object)
83
+ ], AssignTasksEmpRequests.prototype, "completion_date", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({
86
+ type: "enum",
87
+ enum: AssignTasksEmpStatus,
88
+ default: AssignTasksEmpStatus.ASSIGNED,
89
+ nullable: false,
90
+ }),
91
+ __metadata("design:type", String)
92
+ ], AssignTasksEmpRequests.prototype, "status", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
95
+ __metadata("design:type", Object)
96
+ ], AssignTasksEmpRequests.prototype, "workflow_execution_id", void 0);
97
+ exports.AssignTasksEmpRequests = AssignTasksEmpRequests = __decorate([
98
+ (0, typeorm_1.Entity)({ name: 'assign_tasks_emp_requests' }),
99
+ __metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, Object, Object])
100
+ ], AssignTasksEmpRequests);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum AssignTasksEmpWorkFlowStatus {
3
+ COMPLETED = "Completed",
4
+ NOT_YET_STARTED = "Not Yet Started",
5
+ PENDING = "Pending"
6
+ }
7
+ export declare class AssignTasksEmpWorkFlow extends BaseModel {
8
+ request_id: number;
9
+ service_id: number | null;
10
+ sub_service_id: number | null;
11
+ content: string;
12
+ status: AssignTasksEmpWorkFlowStatus;
13
+ user_id: number | null;
14
+ role_id: number | null;
15
+ department_id: number | null;
16
+ section_id: number | null;
17
+ constructor(request_id: number, content: string, status: AssignTasksEmpWorkFlowStatus, service_id?: number, sub_service_id?: number, user_id?: number, role_id?: number, department_id?: number, section_id?: number);
18
+ }
@@ -0,0 +1,76 @@
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.AssignTasksEmpWorkFlow = exports.AssignTasksEmpWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AssignTasksEmpWorkFlowStatus;
16
+ (function (AssignTasksEmpWorkFlowStatus) {
17
+ AssignTasksEmpWorkFlowStatus["COMPLETED"] = "Completed";
18
+ AssignTasksEmpWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
+ AssignTasksEmpWorkFlowStatus["PENDING"] = "Pending";
20
+ })(AssignTasksEmpWorkFlowStatus || (exports.AssignTasksEmpWorkFlowStatus = AssignTasksEmpWorkFlowStatus = {}));
21
+ //This model is used to store the assign tasks workflow status and activity logs
22
+ let AssignTasksEmpWorkFlow = class AssignTasksEmpWorkFlow extends BaseModel_1.BaseModel {
23
+ constructor(request_id, content, status, service_id, sub_service_id, user_id, role_id, department_id, section_id) {
24
+ super();
25
+ this.request_id = request_id;
26
+ this.service_id = service_id || null;
27
+ this.sub_service_id = sub_service_id || null;
28
+ this.content = content;
29
+ this.status = status;
30
+ this.user_id = user_id || null;
31
+ this.role_id = role_id || null;
32
+ this.department_id = department_id || null;
33
+ this.section_id = section_id || null;
34
+ }
35
+ };
36
+ exports.AssignTasksEmpWorkFlow = AssignTasksEmpWorkFlow;
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], AssignTasksEmpWorkFlow.prototype, "request_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], AssignTasksEmpWorkFlow.prototype, "service_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], AssignTasksEmpWorkFlow.prototype, "sub_service_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
51
+ __metadata("design:type", String)
52
+ ], AssignTasksEmpWorkFlow.prototype, "content", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'enum', enum: AssignTasksEmpWorkFlowStatus, default: AssignTasksEmpWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], AssignTasksEmpWorkFlow.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], AssignTasksEmpWorkFlow.prototype, "user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], AssignTasksEmpWorkFlow.prototype, "role_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], AssignTasksEmpWorkFlow.prototype, "department_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], AssignTasksEmpWorkFlow.prototype, "section_id", void 0);
73
+ exports.AssignTasksEmpWorkFlow = AssignTasksEmpWorkFlow = __decorate([
74
+ (0, typeorm_1.Entity)({ name: 'assign_tasks_emp_workflows' }),
75
+ __metadata("design:paramtypes", [Number, String, String, Number, Number, Number, Number, Number, Number])
76
+ ], AssignTasksEmpWorkFlow);
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingRoomBookingApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected",
7
+ ASSIGNED = "Assigned"
8
+ }
9
+ export declare class TrainingRoomBookingApprovalDetails extends BaseModel {
10
+ request_id: number;
11
+ service_id: number | null;
12
+ sub_service_id: number | null;
13
+ level: number;
14
+ approver_user_id: number | null;
15
+ approver_role_id: number | null;
16
+ department_id: number | null;
17
+ section_id: number | null;
18
+ delegate_user_id: number | null;
19
+ approved_by: number | null;
20
+ comment: string;
21
+ approval_status: TrainingRoomBookingApprovalStatus;
22
+ is_manager: boolean;
23
+ is_allowed: boolean;
24
+ constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: TrainingRoomBookingApprovalStatus, level: number, service_id?: number | null, sub_service_id?: number | null, department_id?: number | null, section_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_manager?: boolean, is_allowed?: boolean);
25
+ }
@@ -0,0 +1,107 @@
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.TrainingRoomBookingApprovalDetails = exports.TrainingRoomBookingApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TrainingRoomBookingApprovalStatus;
16
+ (function (TrainingRoomBookingApprovalStatus) {
17
+ TrainingRoomBookingApprovalStatus["PENDING"] = "Pending";
18
+ TrainingRoomBookingApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ TrainingRoomBookingApprovalStatus["APPROVED"] = "Approved";
20
+ TrainingRoomBookingApprovalStatus["REJECTED"] = "Rejected";
21
+ TrainingRoomBookingApprovalStatus["ASSIGNED"] = "Assigned";
22
+ })(TrainingRoomBookingApprovalStatus || (exports.TrainingRoomBookingApprovalStatus = TrainingRoomBookingApprovalStatus = {}));
23
+ let TrainingRoomBookingApprovalDetails = class TrainingRoomBookingApprovalDetails extends BaseModel_1.BaseModel {
24
+ constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, service_id, sub_service_id, department_id, section_id, delegate_user_id, approved_by, is_manager, is_allowed) {
25
+ super();
26
+ this.request_id = request_id;
27
+ this.service_id = service_id || null;
28
+ this.sub_service_id = sub_service_id || null;
29
+ this.approver_user_id = approver_user_id;
30
+ this.approver_role_id = approver_role_id;
31
+ this.comment = comment;
32
+ this.approval_status = approval_status;
33
+ this.level = level;
34
+ this.department_id = department_id || null;
35
+ this.section_id = section_id || null;
36
+ this.delegate_user_id = delegate_user_id || null;
37
+ this.approved_by = approved_by || null;
38
+ this.is_manager = is_manager ?? false;
39
+ this.is_allowed = is_allowed !== undefined ? is_allowed : true;
40
+ }
41
+ };
42
+ exports.TrainingRoomBookingApprovalDetails = TrainingRoomBookingApprovalDetails;
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
45
+ __metadata("design:type", Number)
46
+ ], TrainingRoomBookingApprovalDetails.prototype, "request_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], TrainingRoomBookingApprovalDetails.prototype, "service_id", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
53
+ __metadata("design:type", Object)
54
+ ], TrainingRoomBookingApprovalDetails.prototype, "sub_service_id", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
57
+ __metadata("design:type", Number)
58
+ ], TrainingRoomBookingApprovalDetails.prototype, "level", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], TrainingRoomBookingApprovalDetails.prototype, "approver_user_id", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], TrainingRoomBookingApprovalDetails.prototype, "approver_role_id", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
69
+ __metadata("design:type", Object)
70
+ ], TrainingRoomBookingApprovalDetails.prototype, "department_id", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
73
+ __metadata("design:type", Object)
74
+ ], TrainingRoomBookingApprovalDetails.prototype, "section_id", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
77
+ __metadata("design:type", Object)
78
+ ], TrainingRoomBookingApprovalDetails.prototype, "delegate_user_id", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
81
+ __metadata("design:type", Object)
82
+ ], TrainingRoomBookingApprovalDetails.prototype, "approved_by", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
85
+ __metadata("design:type", String)
86
+ ], TrainingRoomBookingApprovalDetails.prototype, "comment", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({
89
+ type: "enum",
90
+ enum: TrainingRoomBookingApprovalStatus,
91
+ default: TrainingRoomBookingApprovalStatus.PENDING,
92
+ nullable: false
93
+ }),
94
+ __metadata("design:type", String)
95
+ ], TrainingRoomBookingApprovalDetails.prototype, "approval_status", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
98
+ __metadata("design:type", Boolean)
99
+ ], TrainingRoomBookingApprovalDetails.prototype, "is_manager", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
102
+ __metadata("design:type", Boolean)
103
+ ], TrainingRoomBookingApprovalDetails.prototype, "is_allowed", void 0);
104
+ exports.TrainingRoomBookingApprovalDetails = TrainingRoomBookingApprovalDetails = __decorate([
105
+ (0, typeorm_1.Entity)({ name: "training_room_booking_approvals" }),
106
+ __metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean, Boolean])
107
+ ], TrainingRoomBookingApprovalDetails);
@@ -0,0 +1,13 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class TrainingRoomBookingRequestAttachment extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ uploaded_by: number;
7
+ file_url: string;
8
+ file_name: string;
9
+ file_type: string;
10
+ file_size: number | null;
11
+ description: string;
12
+ constructor(request_id: number, uploaded_by: number, file_url: string, service_id?: number | null, sub_service_id?: number | null, file_name?: string, file_type?: string, file_size?: number, description?: string);
13
+ }
@@ -0,0 +1,69 @@
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.TrainingRoomBookingRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let TrainingRoomBookingRequestAttachment = class TrainingRoomBookingRequestAttachment extends BaseModel_1.BaseModel {
16
+ constructor(request_id, uploaded_by, file_url, service_id, sub_service_id, file_name, file_type, file_size, description) {
17
+ super();
18
+ this.request_id = request_id;
19
+ this.service_id = service_id || null;
20
+ this.sub_service_id = sub_service_id || null;
21
+ this.uploaded_by = uploaded_by;
22
+ this.file_url = file_url;
23
+ this.file_name = file_name || "";
24
+ this.file_type = file_type || "";
25
+ this.file_size = file_size || null;
26
+ this.description = description || "";
27
+ }
28
+ };
29
+ exports.TrainingRoomBookingRequestAttachment = TrainingRoomBookingRequestAttachment;
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
32
+ __metadata("design:type", Number)
33
+ ], TrainingRoomBookingRequestAttachment.prototype, "request_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], TrainingRoomBookingRequestAttachment.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], TrainingRoomBookingRequestAttachment.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
44
+ __metadata("design:type", Number)
45
+ ], TrainingRoomBookingRequestAttachment.prototype, "uploaded_by", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_url", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
52
+ __metadata("design:type", String)
53
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_name", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
56
+ __metadata("design:type", String)
57
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_type", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "bigint", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], TrainingRoomBookingRequestAttachment.prototype, "file_size", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
64
+ __metadata("design:type", String)
65
+ ], TrainingRoomBookingRequestAttachment.prototype, "description", void 0);
66
+ exports.TrainingRoomBookingRequestAttachment = TrainingRoomBookingRequestAttachment = __decorate([
67
+ (0, typeorm_1.Entity)({ name: "training_room_booking_request_attachments" }),
68
+ __metadata("design:paramtypes", [Number, Number, String, Object, Object, String, String, Number, String])
69
+ ], TrainingRoomBookingRequestAttachment);
@@ -0,0 +1,26 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingRoomBookingMessageType {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare enum TrainingRoomBookingChatStatus {
10
+ PENDING = "Pending",
11
+ APPROVED = "Approved",
12
+ REJECTED = "Rejected",
13
+ IN_PROGRESS = "In Progress"
14
+ }
15
+ export declare class TrainingRoomBookingRequestChat extends BaseModel {
16
+ request_id: number;
17
+ service_id: number | null;
18
+ sub_service_id: number | null;
19
+ user_id: number;
20
+ message: string;
21
+ approver_role_id: number | null;
22
+ messageType: TrainingRoomBookingMessageType;
23
+ is_internal: boolean;
24
+ status: string;
25
+ constructor(request_id: number, user_id: number, message: string, service_id?: number | null, sub_service_id?: number | null, messageType?: TrainingRoomBookingMessageType, is_internal?: boolean, status?: string, approver_role_id?: number);
26
+ }
@@ -0,0 +1,89 @@
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.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var TrainingRoomBookingMessageType;
16
+ (function (TrainingRoomBookingMessageType) {
17
+ TrainingRoomBookingMessageType["TEXT"] = "text";
18
+ TrainingRoomBookingMessageType["IMAGE"] = "image";
19
+ TrainingRoomBookingMessageType["VIDEO"] = "video";
20
+ TrainingRoomBookingMessageType["FILE"] = "file";
21
+ TrainingRoomBookingMessageType["LINK"] = "link";
22
+ })(TrainingRoomBookingMessageType || (exports.TrainingRoomBookingMessageType = TrainingRoomBookingMessageType = {}));
23
+ var TrainingRoomBookingChatStatus;
24
+ (function (TrainingRoomBookingChatStatus) {
25
+ TrainingRoomBookingChatStatus["PENDING"] = "Pending";
26
+ TrainingRoomBookingChatStatus["APPROVED"] = "Approved";
27
+ TrainingRoomBookingChatStatus["REJECTED"] = "Rejected";
28
+ TrainingRoomBookingChatStatus["IN_PROGRESS"] = "In Progress";
29
+ })(TrainingRoomBookingChatStatus || (exports.TrainingRoomBookingChatStatus = TrainingRoomBookingChatStatus = {}));
30
+ let TrainingRoomBookingRequestChat = class TrainingRoomBookingRequestChat extends BaseModel_1.BaseModel {
31
+ constructor(request_id, user_id, message, service_id, sub_service_id, messageType, is_internal, status, approver_role_id) {
32
+ super();
33
+ this.request_id = request_id;
34
+ this.service_id = service_id || null;
35
+ this.sub_service_id = sub_service_id || null;
36
+ this.user_id = user_id;
37
+ this.message = message;
38
+ this.messageType = messageType || TrainingRoomBookingMessageType.TEXT;
39
+ this.is_internal = is_internal || false;
40
+ this.status = status || 'Pending';
41
+ this.approver_role_id = approver_role_id || null;
42
+ }
43
+ };
44
+ exports.TrainingRoomBookingRequestChat = TrainingRoomBookingRequestChat;
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
47
+ __metadata("design:type", Number)
48
+ ], TrainingRoomBookingRequestChat.prototype, "request_id", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], TrainingRoomBookingRequestChat.prototype, "service_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], TrainingRoomBookingRequestChat.prototype, "sub_service_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
59
+ __metadata("design:type", Number)
60
+ ], TrainingRoomBookingRequestChat.prototype, "user_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
63
+ __metadata("design:type", String)
64
+ ], TrainingRoomBookingRequestChat.prototype, "message", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], TrainingRoomBookingRequestChat.prototype, "approver_role_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({
71
+ type: "enum",
72
+ enum: TrainingRoomBookingMessageType,
73
+ default: TrainingRoomBookingMessageType.TEXT,
74
+ nullable: false
75
+ }),
76
+ __metadata("design:type", String)
77
+ ], TrainingRoomBookingRequestChat.prototype, "messageType", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "boolean", default: false }),
80
+ __metadata("design:type", Boolean)
81
+ ], TrainingRoomBookingRequestChat.prototype, "is_internal", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
84
+ __metadata("design:type", String)
85
+ ], TrainingRoomBookingRequestChat.prototype, "status", void 0);
86
+ exports.TrainingRoomBookingRequestChat = TrainingRoomBookingRequestChat = __decorate([
87
+ (0, typeorm_1.Entity)({ name: "training_room_booking_request_chat" }),
88
+ __metadata("design:paramtypes", [Number, Number, String, Object, Object, String, Boolean, String, Number])
89
+ ], TrainingRoomBookingRequestChat);
@@ -0,0 +1,38 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum TrainingRoomBookingRequestStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ COMPLETED = "Completed",
6
+ APPROVED = "Approved",
7
+ REJECTED = "Rejected"
8
+ }
9
+ export declare enum TrainingRoomBookingRoomType {
10
+ CLASSROOM_1 = "Classroom 1",
11
+ CLASSROOM_2 = "Classroom 2",
12
+ CLASSROOM_3 = "Classroom 3",
13
+ CLASSROOM_4 = "Classroom 4",
14
+ TRAINING_CENTRE_HALL = "Training Centre Hall"
15
+ }
16
+ export declare class TrainingRoomBookingRequest extends BaseModel {
17
+ req_user_department_id: number | null;
18
+ req_user_section_id: number | null;
19
+ req_user_position_id: number | null;
20
+ service_id: number | null;
21
+ sub_service_id: number | null;
22
+ user_id: number;
23
+ purpose_of_training: string;
24
+ date_of_event: Date;
25
+ start_time: string;
26
+ end_time: string;
27
+ room_type: TrainingRoomBookingRoomType;
28
+ network_support_required: boolean;
29
+ meals_required: boolean;
30
+ number_of_attendees: number;
31
+ remarks: string | null;
32
+ status: TrainingRoomBookingRequestStatus;
33
+ reviewer_user_id: number | null;
34
+ assigned_to_user_id: number | null;
35
+ assigned_at: Date | null;
36
+ workflow_execution_id: string | null;
37
+ constructor(user_id: number, purpose_of_training: string, date_of_event: Date, start_time: string, end_time: string, room_type: TrainingRoomBookingRoomType, number_of_attendees: number, network_support_required?: boolean, meals_required?: boolean, status?: TrainingRoomBookingRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null);
38
+ }