@platform-modules/civil-aviation-authority 2.3.62 → 2.3.65

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.
@@ -126,6 +126,7 @@ const RequestForCoverageChatModel_1 = require("./models/RequestForCoverageChatMo
126
126
  const RequestForCoverageAttachmentModel_1 = require("./models/RequestForCoverageAttachmentModel");
127
127
  const CashAllowanceLeaveRequestModel_1 = require("./models/CashAllowanceLeaveRequestModel");
128
128
  const PromotionRequestModel_1 = require("./models/PromotionRequestModel");
129
+ const AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
129
130
  exports.AppDataSource = new typeorm_1.DataSource({
130
131
  type: 'postgres',
131
132
  host: process.env.DB_HOST || 'localhost',
@@ -255,6 +256,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
255
256
  AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment,
256
257
  AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat,
257
258
  CashAllowanceLeaveRequestModel_1.CashAllowanceLeaveRequest,
258
- PromotionRequestModel_1.PromotionRequest
259
+ PromotionRequestModel_1.PromotionRequest,
260
+ AnnualIncrementRequestModel_1.AnnualIncrementRequest
259
261
  ],
260
262
  });
package/dist/index.d.ts CHANGED
@@ -199,3 +199,5 @@ export * from './models/CashAllowanceLeaveRequestModel';
199
199
  export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveRequestModel';
200
200
  export * from './models/PromotionRequestModel';
201
201
  export { PromotionRequestStatus } from './models/PromotionRequestModel';
202
+ export * from './models/AnnualIncrementRequestModel';
203
+ export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestModel';
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.RequestForCoverageWorkFlowStatus = exports.RequestForCoverageNewsSize = exports.RequestForCoverageRequestStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.TemporaryAssignmentRequestType = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.TrainingRoomBookingChatStatus = exports.TrainingRoomBookingMessageType = exports.TrainingRoomBookingRequestChat = exports.TrainingRoomBookingRequestAttachment = exports.TrainingRoomBookingWorkFlowStatus = exports.TrainingRoomBookingApprovalStatus = exports.TrainingRoomBookingRoomType = exports.TrainingRoomBookingRequestStatus = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = exports.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanRequestAttachment = exports.AnnualTrainingPlanWorkFlowStatus = exports.AnnualTrainingPlanApprovalStatus = exports.AnnualTrainingPlanPlace = exports.AnnualTrainingPlanRequestStatus = exports.StudyLeaveChatStatus = exports.StudyLeaveMessageType = exports.StudyLeaveRequestChat = exports.StudyLeaveRequestAttachment = exports.StudyLeaveWorkFlowStatus = exports.StudyLeaveApprovalStatus = exports.StudyLeaveRequestStatus = exports.TrainingMessageType = exports.TrainingRequestChat = exports.TrainingRequestAttachment = exports.TrainingWorkFlowStatus = exports.TrainingApprovalStatus = exports.TrainingRequestStatus = exports.HrServiceChatStatus = exports.HrServiceMessageType = exports.HrServiceRequestChat = exports.HrServiceRequestAttachment = exports.HrServiceWorkFlowStatus = exports.HrServiceApprovalStatus = exports.HrServiceRequestStatus = exports.LogisticsVehicleMaintenanceWorkFlowStatus = exports.LogisticsVehicleMaintenanceMessageType = exports.LogisticsVehicleMaintenanceApprovalStatus = exports.VehicleMaintenanceStatus = exports.VehicleMaintenanceType = void 0;
18
- exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
18
+ exports.AnnualIncrementRequestStatus = exports.PromotionRequestStatus = exports.CashAllowanceLeaveRequestStatus = exports.NotificationFrequency = exports.ServicesNotificationTriggerType = exports.NewResourceRequestStatus = exports.JobTransferRequestStatus = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.RequestForCoverageRequestAttachment = exports.RequestForCoverageChatStatus = exports.RequestForCoverageMessageType = exports.RequestForCoverageRequestChat = exports.RequestForCoverageApprovalStatus = void 0;
19
19
  __exportStar(require("./models/user"), exports);
20
20
  __exportStar(require("./models/role"), exports);
21
21
  __exportStar(require("./models/user-sessions"), exports);
@@ -300,3 +300,7 @@ Object.defineProperty(exports, "CashAllowanceLeaveRequestStatus", { enumerable:
300
300
  __exportStar(require("./models/PromotionRequestModel"), exports);
301
301
  var PromotionRequestModel_1 = require("./models/PromotionRequestModel");
302
302
  Object.defineProperty(exports, "PromotionRequestStatus", { enumerable: true, get: function () { return PromotionRequestModel_1.PromotionRequestStatus; } });
303
+ // Annual Increment (Periodic Allowance) Request Service
304
+ __exportStar(require("./models/AnnualIncrementRequestModel"), exports);
305
+ var AnnualIncrementRequestModel_1 = require("./models/AnnualIncrementRequestModel");
306
+ Object.defineProperty(exports, "AnnualIncrementRequestStatus", { enumerable: true, get: function () { return AnnualIncrementRequestModel_1.AnnualIncrementRequestStatus; } });
@@ -0,0 +1,31 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum AnnualIncrementRequestStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ COMPLETED = "Completed",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected"
9
+ }
10
+ export declare class AnnualIncrementRequest extends BaseModel {
11
+ req_user_department_id: number | null;
12
+ req_user_section_id: number | null;
13
+ req_user_position_id: number | null;
14
+ service_id: number | null;
15
+ sub_service_id: number | null;
16
+ user_id: number;
17
+ description: string | null;
18
+ status: AnnualIncrementRequestStatus;
19
+ reviewer_user_id: number | null;
20
+ assigned_to_user_id: number | null;
21
+ assigned_at: Date | null;
22
+ workflow_execution_id: string | null;
23
+ employee_name: string;
24
+ employee_id: string;
25
+ allowance_year: number;
26
+ effective_date: Date;
27
+ current_basic_salary: number | null;
28
+ increment_percentage: number | null;
29
+ new_basic_salary: number | null;
30
+ constructor(user_id: number, status?: AnnualIncrementRequestStatus, 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, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, allowance_year?: number, effective_date?: Date, current_basic_salary?: number | null, increment_percentage?: number | null, new_basic_salary?: number | null);
31
+ }
@@ -0,0 +1,128 @@
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.AnnualIncrementRequest = exports.AnnualIncrementRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AnnualIncrementRequestStatus;
16
+ (function (AnnualIncrementRequestStatus) {
17
+ AnnualIncrementRequestStatus["PENDING"] = "Pending";
18
+ AnnualIncrementRequestStatus["ASSIGNED"] = "Assigned";
19
+ AnnualIncrementRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ AnnualIncrementRequestStatus["COMPLETED"] = "Completed";
21
+ AnnualIncrementRequestStatus["APPROVED"] = "Approved";
22
+ AnnualIncrementRequestStatus["REJECTED"] = "Rejected";
23
+ })(AnnualIncrementRequestStatus || (exports.AnnualIncrementRequestStatus = AnnualIncrementRequestStatus = {}));
24
+ let AnnualIncrementRequest = class AnnualIncrementRequest extends BaseModel_1.BaseModel {
25
+ constructor(user_id, status = AnnualIncrementRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, allowance_year, effective_date, current_basic_salary, increment_percentage, new_basic_salary) {
26
+ super();
27
+ this.user_id = user_id;
28
+ this.status = status;
29
+ this.service_id = service_id || null;
30
+ this.sub_service_id = sub_service_id || null;
31
+ this.req_user_department_id = req_user_department_id || null;
32
+ this.req_user_section_id = req_user_section_id || null;
33
+ this.req_user_position_id = req_user_position_id || null;
34
+ this.description = description || null;
35
+ this.reviewer_user_id = reviewer_user_id || null;
36
+ this.assigned_to_user_id = assigned_to_user_id || null;
37
+ this.assigned_at = assigned_at || null;
38
+ this.workflow_execution_id = workflow_execution_id || null;
39
+ this.employee_name = employee_name || "";
40
+ this.employee_id = employee_id || "";
41
+ this.allowance_year = allowance_year || new Date().getFullYear();
42
+ this.effective_date = effective_date || new Date();
43
+ this.current_basic_salary = current_basic_salary || null;
44
+ this.increment_percentage = increment_percentage || null;
45
+ this.new_basic_salary = new_basic_salary || null;
46
+ }
47
+ };
48
+ exports.AnnualIncrementRequest = AnnualIncrementRequest;
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], AnnualIncrementRequest.prototype, "req_user_department_id", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], AnnualIncrementRequest.prototype, "req_user_section_id", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], AnnualIncrementRequest.prototype, "req_user_position_id", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], AnnualIncrementRequest.prototype, "service_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
67
+ __metadata("design:type", Object)
68
+ ], AnnualIncrementRequest.prototype, "sub_service_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
71
+ __metadata("design:type", Number)
72
+ ], AnnualIncrementRequest.prototype, "user_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], AnnualIncrementRequest.prototype, "description", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: "enum", enum: AnnualIncrementRequestStatus, default: AnnualIncrementRequestStatus.PENDING, nullable: false }),
79
+ __metadata("design:type", String)
80
+ ], AnnualIncrementRequest.prototype, "status", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
83
+ __metadata("design:type", Object)
84
+ ], AnnualIncrementRequest.prototype, "reviewer_user_id", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
87
+ __metadata("design:type", Object)
88
+ ], AnnualIncrementRequest.prototype, "assigned_to_user_id", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
91
+ __metadata("design:type", Object)
92
+ ], AnnualIncrementRequest.prototype, "assigned_at", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
95
+ __metadata("design:type", Object)
96
+ ], AnnualIncrementRequest.prototype, "workflow_execution_id", void 0);
97
+ __decorate([
98
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
99
+ __metadata("design:type", String)
100
+ ], AnnualIncrementRequest.prototype, "employee_name", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
103
+ __metadata("design:type", String)
104
+ ], AnnualIncrementRequest.prototype, "employee_id", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
107
+ __metadata("design:type", Number)
108
+ ], AnnualIncrementRequest.prototype, "allowance_year", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.Column)({ type: "date", nullable: false }),
111
+ __metadata("design:type", Date)
112
+ ], AnnualIncrementRequest.prototype, "effective_date", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: true }),
115
+ __metadata("design:type", Object)
116
+ ], AnnualIncrementRequest.prototype, "current_basic_salary", void 0);
117
+ __decorate([
118
+ (0, typeorm_1.Column)({ type: "decimal", precision: 5, scale: 2, nullable: true }),
119
+ __metadata("design:type", Object)
120
+ ], AnnualIncrementRequest.prototype, "increment_percentage", void 0);
121
+ __decorate([
122
+ (0, typeorm_1.Column)({ type: "decimal", precision: 10, scale: 3, nullable: true }),
123
+ __metadata("design:type", Object)
124
+ ], AnnualIncrementRequest.prototype, "new_basic_salary", void 0);
125
+ exports.AnnualIncrementRequest = AnnualIncrementRequest = __decorate([
126
+ (0, typeorm_1.Entity)({ name: "annual_increment_requests" }),
127
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, Number, Date, Object, Object, Object])
128
+ ], AnnualIncrementRequest);
@@ -32,6 +32,8 @@ export declare class ShiftAllowanceRequest extends BaseModel {
32
32
  allowance_value: ShiftAllowanceValue;
33
33
  shift_start_date: Date;
34
34
  shift_end_date: Date;
35
+ start_time: string | null;
36
+ end_time: string | null;
35
37
  reason_for_request: string | null;
36
- constructor(user_id: number, status?: ShiftAllowanceRequestStatus, 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, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, reason_for_request?: string | null);
38
+ constructor(user_id: number, status?: ShiftAllowanceRequestStatus, 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, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, start_time?: string | null, end_time?: string | null, reason_for_request?: string | null);
37
39
  }
@@ -28,7 +28,7 @@ var ShiftAllowanceValue;
28
28
  ShiftAllowanceValue["SEVENTY_PERCENT"] = "70%";
29
29
  })(ShiftAllowanceValue || (exports.ShiftAllowanceValue = ShiftAllowanceValue = {}));
30
30
  let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.BaseModel {
31
- constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, reason_for_request) {
31
+ constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, start_time, end_time, reason_for_request) {
32
32
  super();
33
33
  this.user_id = user_id;
34
34
  this.status = status;
@@ -49,6 +49,8 @@ let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.Base
49
49
  this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
50
50
  this.shift_start_date = shift_start_date || new Date();
51
51
  this.shift_end_date = shift_end_date || new Date();
52
+ this.start_time = start_time || null;
53
+ this.end_time = end_time || null;
52
54
  this.reason_for_request = reason_for_request || null;
53
55
  }
54
56
  };
@@ -129,6 +131,14 @@ __decorate([
129
131
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
130
132
  __metadata("design:type", Date)
131
133
  ], ShiftAllowanceRequest.prototype, "shift_end_date", void 0);
134
+ __decorate([
135
+ (0, typeorm_1.Column)({ type: "time", nullable: true }),
136
+ __metadata("design:type", Object)
137
+ ], ShiftAllowanceRequest.prototype, "start_time", void 0);
138
+ __decorate([
139
+ (0, typeorm_1.Column)({ type: "time", nullable: true }),
140
+ __metadata("design:type", Object)
141
+ ], ShiftAllowanceRequest.prototype, "end_time", void 0);
132
142
  __decorate([
133
143
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
134
144
  __metadata("design:type", Object)
@@ -136,5 +146,5 @@ __decorate([
136
146
  exports.ShiftAllowanceRequest = ShiftAllowanceRequest = __decorate([
137
147
  (0, typeorm_1.Entity)({ name: "shift_allowance_requests" }),
138
148
  __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date,
139
- Date, Object])
149
+ Date, Object, Object, Object])
140
150
  ], ShiftAllowanceRequest);
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class Workflows extends BaseModel {
3
+ name: string;
4
+ service_id: number;
5
+ sub_service_id: number;
6
+ request_for: string;
7
+ levels: number;
8
+ constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.62",
3
+ "version": "2.3.65",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -124,6 +124,7 @@ import { RequestForCoverageRequestChat } from './models/RequestForCoverageChatMo
124
124
  import { RequestForCoverageRequestAttachment } from './models/RequestForCoverageAttachmentModel';
125
125
  import { CashAllowanceLeaveRequest } from './models/CashAllowanceLeaveRequestModel';
126
126
  import { PromotionRequest } from './models/PromotionRequestModel';
127
+ import { AnnualIncrementRequest } from './models/AnnualIncrementRequestModel';
127
128
 
128
129
  export const AppDataSource = new DataSource({
129
130
  type: 'postgres',
@@ -254,6 +255,7 @@ export const AppDataSource = new DataSource({
254
255
  AssignTasksEmpRequestAttachment,
255
256
  AssignTasksEmpRequestChat,
256
257
  CashAllowanceLeaveRequest,
257
- PromotionRequest
258
+ PromotionRequest,
259
+ AnnualIncrementRequest
258
260
  ],
259
261
  });
package/src/index.ts CHANGED
@@ -224,4 +224,8 @@ export { CashAllowanceLeaveRequestStatus } from './models/CashAllowanceLeaveReq
224
224
 
225
225
  // Promotion Request Service
226
226
  export * from './models/PromotionRequestModel';
227
- export { PromotionRequestStatus } from './models/PromotionRequestModel';
227
+ export { PromotionRequestStatus } from './models/PromotionRequestModel';
228
+
229
+ // Annual Increment (Periodic Allowance) Request Service
230
+ export * from './models/AnnualIncrementRequestModel';
231
+ export { AnnualIncrementRequestStatus } from './models/AnnualIncrementRequestModel';
@@ -0,0 +1,115 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum AnnualIncrementRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "annual_increment_requests" })
14
+ export class AnnualIncrementRequest extends BaseModel {
15
+ @Column({ type: "integer", nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: "integer", nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: "integer", nullable: true })
22
+ req_user_position_id: number | null;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: true })
34
+ description: string | null;
35
+
36
+ @Column({ type: "enum", enum: AnnualIncrementRequestStatus, default: AnnualIncrementRequestStatus.PENDING, nullable: false })
37
+ status: AnnualIncrementRequestStatus;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ reviewer_user_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ assigned_to_user_id: number | null;
44
+
45
+ @Column({ type: "timestamp", nullable: true })
46
+ assigned_at: Date | null;
47
+
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ // Annual Increment specific fields
52
+ @Column({ type: "varchar", length: 255, nullable: false })
53
+ employee_name: string;
54
+
55
+ @Column({ type: "varchar", length: 100, nullable: false })
56
+ employee_id: string;
57
+
58
+ @Column({ type: "integer", nullable: false })
59
+ allowance_year: number;
60
+
61
+ @Column({ type: "date", nullable: false })
62
+ effective_date: Date;
63
+
64
+ @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
65
+ current_basic_salary: number | null;
66
+
67
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
68
+ increment_percentage: number | null;
69
+
70
+ @Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
71
+ new_basic_salary: number | null;
72
+
73
+ constructor(
74
+ user_id: number,
75
+ status: AnnualIncrementRequestStatus = AnnualIncrementRequestStatus.PENDING,
76
+ service_id?: number | null,
77
+ sub_service_id?: number | null,
78
+ req_user_department_id?: number | null,
79
+ req_user_section_id?: number | null,
80
+ req_user_position_id?: number | null,
81
+ description?: string | null,
82
+ reviewer_user_id?: number | null,
83
+ assigned_to_user_id?: number | null,
84
+ assigned_at?: Date | null,
85
+ workflow_execution_id?: string | null,
86
+ employee_name?: string,
87
+ employee_id?: string,
88
+ allowance_year?: number,
89
+ effective_date?: Date,
90
+ current_basic_salary?: number | null,
91
+ increment_percentage?: number | null,
92
+ new_basic_salary?: number | null
93
+ ) {
94
+ super();
95
+ this.user_id = user_id;
96
+ this.status = status;
97
+ this.service_id = service_id || null;
98
+ this.sub_service_id = sub_service_id || null;
99
+ this.req_user_department_id = req_user_department_id || null;
100
+ this.req_user_section_id = req_user_section_id || null;
101
+ this.req_user_position_id = req_user_position_id || null;
102
+ this.description = description || null;
103
+ this.reviewer_user_id = reviewer_user_id || null;
104
+ this.assigned_to_user_id = assigned_to_user_id || null;
105
+ this.assigned_at = assigned_at || null;
106
+ this.workflow_execution_id = workflow_execution_id || null;
107
+ this.employee_name = employee_name || "";
108
+ this.employee_id = employee_id || "";
109
+ this.allowance_year = allowance_year || new Date().getFullYear();
110
+ this.effective_date = effective_date || new Date();
111
+ this.current_basic_salary = current_basic_salary || null;
112
+ this.increment_percentage = increment_percentage || null;
113
+ this.new_basic_salary = new_basic_salary || null;
114
+ }
115
+ }
@@ -1,167 +1,167 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from "./BaseModel";
3
-
4
- export enum HrServiceRequestStatus {
5
- PENDING = "Pending",
6
- ASSIGNED = "Assigned",
7
- IN_PROGRESS = "In Progress",
8
- COMPLETED = "Completed",
9
- APPROVED = "Approved",
10
- REJECTED = "Rejected"
11
- }
12
-
13
- @Entity({ name: "hr_service_requests" })
14
- export class HrServiceRequest extends BaseModel {
15
- @Column({ type: "integer", nullable: true })
16
- req_user_department_id: number | null;
17
-
18
- @Column({ type: "integer", nullable: true })
19
- req_user_section_id: number | null;
20
-
21
- @Column({ type: "integer", nullable: true })
22
- req_user_position_id: number | null;
23
-
24
- @Column({ type: "integer", nullable: true })
25
- service_id: number | null;
26
-
27
- @Column({ type: "integer", nullable: true })
28
- sub_service_id: number | null;
29
-
30
- @Column({ type: "integer", nullable: false })
31
- user_id: number;
32
-
33
- @Column({ type: "text", nullable: true })
34
- description: string | null;
35
-
36
- @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
- status: HrServiceRequestStatus;
38
-
39
- @Column({ type: "integer", nullable: true })
40
- reviewer_user_id: number | null;
41
-
42
- @Column({ type: "integer", nullable: true })
43
- assigned_to_user_id: number | null;
44
-
45
- @Column({ type: "timestamp", nullable: true })
46
- assigned_at: Date | null;
47
-
48
- @Column({ type: "varchar", length: 255, nullable: true })
49
- workflow_execution_id: string | null;
50
-
51
- // Assignment Decision specific fields
52
- @Column({ type: "varchar", length: 255, nullable: false })
53
- assigned_employee_name: string;
54
-
55
- @Column({ type: "varchar", length: 50, nullable: true })
56
- civil_id_card_number: string | null;
57
-
58
- @Column({ type: "varchar", length: 100, nullable: false })
59
- employee_id: string;
60
-
61
- @Column({ type: "varchar", length: 255, nullable: false })
62
- current_job_position: string;
63
-
64
- @Column({ type: "varchar", length: 255, nullable: false })
65
- assigned_job_position: string;
66
-
67
- @Column({ type: "date", nullable: false })
68
- start_date: Date;
69
-
70
- @Column({ type: "date", nullable: false })
71
- end_date: Date;
72
-
73
- @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
- assignment_allowance: number | null; // 0-100 percentage
75
-
76
- @Column({ type: "varchar", length: 20, nullable: false })
77
- phone_number: string;
78
-
79
- @Column({ type: "text", nullable: false })
80
- reason_for_request: string;
81
-
82
- // Replacement tracking fields
83
- @Column({ type: "boolean", default: false, nullable: false })
84
- is_replaced: boolean;
85
-
86
- @Column({ type: "varchar", length: 255, nullable: true })
87
- replacement_employee_name: string | null;
88
-
89
- @Column({ type: "varchar", length: 100, nullable: true })
90
- replacement_employee_id: string | null;
91
-
92
- @Column({ type: "varchar", length: 50, nullable: true })
93
- replacement_civil_id_card_number: string | null;
94
-
95
- @Column({ type: "text", nullable: true })
96
- replacement_reason: string | null;
97
-
98
- @Column({ type: "integer", nullable: true })
99
- replaced_by_user_id: number | null;
100
-
101
- @Column({ type: "timestamp", nullable: true })
102
- replaced_at: Date | null;
103
-
104
- constructor(
105
- user_id: number,
106
- status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
107
- service_id?: number | null,
108
- sub_service_id?: number | null,
109
- req_user_department_id?: number | null,
110
- req_user_section_id?: number | null,
111
- req_user_position_id?: number | null,
112
- description?: string | null,
113
- reviewer_user_id?: number | null,
114
- assigned_to_user_id?: number | null,
115
- assigned_at?: Date | null,
116
- workflow_execution_id?: string | null,
117
- assigned_employee_name?: string,
118
- civil_id_card_number?: string | null,
119
- employee_id?: string,
120
- current_job_position?: string,
121
- assigned_job_position?: string,
122
- start_date?: Date,
123
- end_date?: Date,
124
- assignment_allowance?: number | null,
125
- phone_number?: string,
126
- reason_for_request?: string,
127
- is_replaced?: boolean,
128
- replacement_employee_name?: string | null,
129
- replacement_employee_id?: string | null,
130
- replacement_civil_id_card_number?: string | null,
131
- replacement_reason?: string | null,
132
- replaced_by_user_id?: number | null,
133
- replaced_at?: Date | null
134
- ) {
135
- super();
136
- this.user_id = user_id;
137
- this.status = status;
138
- this.service_id = service_id || null;
139
- this.sub_service_id = sub_service_id || null;
140
- this.req_user_department_id = req_user_department_id || null;
141
- this.req_user_section_id = req_user_section_id || null;
142
- this.req_user_position_id = req_user_position_id || null;
143
- this.description = description || null;
144
- this.reviewer_user_id = reviewer_user_id || null;
145
- this.assigned_to_user_id = assigned_to_user_id || null;
146
- this.assigned_at = assigned_at || null;
147
- this.workflow_execution_id = workflow_execution_id || null;
148
- this.assigned_employee_name = assigned_employee_name || "";
149
- this.civil_id_card_number = civil_id_card_number || null;
150
- this.employee_id = employee_id || "";
151
- this.current_job_position = current_job_position || "";
152
- this.assigned_job_position = assigned_job_position || "";
153
- this.start_date = start_date || new Date();
154
- this.end_date = end_date || new Date();
155
- this.assignment_allowance = assignment_allowance || null;
156
- this.phone_number = phone_number || "";
157
- this.reason_for_request = reason_for_request || "";
158
- this.is_replaced = is_replaced || false;
159
- this.replacement_employee_name = replacement_employee_name || null;
160
- this.replacement_employee_id = replacement_employee_id || null;
161
- this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
162
- this.replacement_reason = replacement_reason || null;
163
- this.replaced_by_user_id = replaced_by_user_id || null;
164
- this.replaced_at = replaced_at || null;
165
- }
166
- }
167
-
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum HrServiceRequestStatus {
5
+ PENDING = "Pending",
6
+ ASSIGNED = "Assigned",
7
+ IN_PROGRESS = "In Progress",
8
+ COMPLETED = "Completed",
9
+ APPROVED = "Approved",
10
+ REJECTED = "Rejected"
11
+ }
12
+
13
+ @Entity({ name: "hr_service_requests" })
14
+ export class HrServiceRequest extends BaseModel {
15
+ @Column({ type: "integer", nullable: true })
16
+ req_user_department_id: number | null;
17
+
18
+ @Column({ type: "integer", nullable: true })
19
+ req_user_section_id: number | null;
20
+
21
+ @Column({ type: "integer", nullable: true })
22
+ req_user_position_id: number | null;
23
+
24
+ @Column({ type: "integer", nullable: true })
25
+ service_id: number | null;
26
+
27
+ @Column({ type: "integer", nullable: true })
28
+ sub_service_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: false })
31
+ user_id: number;
32
+
33
+ @Column({ type: "text", nullable: true })
34
+ description: string | null;
35
+
36
+ @Column({ type: "enum", enum: HrServiceRequestStatus, default: HrServiceRequestStatus.PENDING, nullable: false })
37
+ status: HrServiceRequestStatus;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ reviewer_user_id: number | null;
41
+
42
+ @Column({ type: "integer", nullable: true })
43
+ assigned_to_user_id: number | null;
44
+
45
+ @Column({ type: "timestamp", nullable: true })
46
+ assigned_at: Date | null;
47
+
48
+ @Column({ type: "varchar", length: 255, nullable: true })
49
+ workflow_execution_id: string | null;
50
+
51
+ // Assignment Decision specific fields
52
+ @Column({ type: "varchar", length: 255, nullable: false })
53
+ assigned_employee_name: string;
54
+
55
+ @Column({ type: "varchar", length: 50, nullable: true })
56
+ civil_id_card_number: string | null;
57
+
58
+ @Column({ type: "varchar", length: 100, nullable: false })
59
+ employee_id: string;
60
+
61
+ @Column({ type: "varchar", length: 255, nullable: false })
62
+ current_job_position: string;
63
+
64
+ @Column({ type: "varchar", length: 255, nullable: false })
65
+ assigned_job_position: string;
66
+
67
+ @Column({ type: "date", nullable: false })
68
+ start_date: Date;
69
+
70
+ @Column({ type: "date", nullable: false })
71
+ end_date: Date;
72
+
73
+ @Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
74
+ assignment_allowance: number | null; // 0-100 percentage
75
+
76
+ @Column({ type: "varchar", length: 20, nullable: false })
77
+ phone_number: string;
78
+
79
+ @Column({ type: "text", nullable: false })
80
+ reason_for_request: string;
81
+
82
+ // Replacement tracking fields
83
+ @Column({ type: "boolean", default: false, nullable: false })
84
+ is_replaced: boolean;
85
+
86
+ @Column({ type: "varchar", length: 255, nullable: true })
87
+ replacement_employee_name: string | null;
88
+
89
+ @Column({ type: "varchar", length: 100, nullable: true })
90
+ replacement_employee_id: string | null;
91
+
92
+ @Column({ type: "varchar", length: 50, nullable: true })
93
+ replacement_civil_id_card_number: string | null;
94
+
95
+ @Column({ type: "text", nullable: true })
96
+ replacement_reason: string | null;
97
+
98
+ @Column({ type: "integer", nullable: true })
99
+ replaced_by_user_id: number | null;
100
+
101
+ @Column({ type: "timestamp", nullable: true })
102
+ replaced_at: Date | null;
103
+
104
+ constructor(
105
+ user_id: number,
106
+ status: HrServiceRequestStatus = HrServiceRequestStatus.PENDING,
107
+ service_id?: number | null,
108
+ sub_service_id?: number | null,
109
+ req_user_department_id?: number | null,
110
+ req_user_section_id?: number | null,
111
+ req_user_position_id?: number | null,
112
+ description?: string | null,
113
+ reviewer_user_id?: number | null,
114
+ assigned_to_user_id?: number | null,
115
+ assigned_at?: Date | null,
116
+ workflow_execution_id?: string | null,
117
+ assigned_employee_name?: string,
118
+ civil_id_card_number?: string | null,
119
+ employee_id?: string,
120
+ current_job_position?: string,
121
+ assigned_job_position?: string,
122
+ start_date?: Date,
123
+ end_date?: Date,
124
+ assignment_allowance?: number | null,
125
+ phone_number?: string,
126
+ reason_for_request?: string,
127
+ is_replaced?: boolean,
128
+ replacement_employee_name?: string | null,
129
+ replacement_employee_id?: string | null,
130
+ replacement_civil_id_card_number?: string | null,
131
+ replacement_reason?: string | null,
132
+ replaced_by_user_id?: number | null,
133
+ replaced_at?: Date | null
134
+ ) {
135
+ super();
136
+ this.user_id = user_id;
137
+ this.status = status;
138
+ this.service_id = service_id || null;
139
+ this.sub_service_id = sub_service_id || null;
140
+ this.req_user_department_id = req_user_department_id || null;
141
+ this.req_user_section_id = req_user_section_id || null;
142
+ this.req_user_position_id = req_user_position_id || null;
143
+ this.description = description || null;
144
+ this.reviewer_user_id = reviewer_user_id || null;
145
+ this.assigned_to_user_id = assigned_to_user_id || null;
146
+ this.assigned_at = assigned_at || null;
147
+ this.workflow_execution_id = workflow_execution_id || null;
148
+ this.assigned_employee_name = assigned_employee_name || "";
149
+ this.civil_id_card_number = civil_id_card_number || null;
150
+ this.employee_id = employee_id || "";
151
+ this.current_job_position = current_job_position || "";
152
+ this.assigned_job_position = assigned_job_position || "";
153
+ this.start_date = start_date || new Date();
154
+ this.end_date = end_date || new Date();
155
+ this.assignment_allowance = assignment_allowance || null;
156
+ this.phone_number = phone_number || "";
157
+ this.reason_for_request = reason_for_request || "";
158
+ this.is_replaced = is_replaced || false;
159
+ this.replacement_employee_name = replacement_employee_name || null;
160
+ this.replacement_employee_id = replacement_employee_id || null;
161
+ this.replacement_civil_id_card_number = replacement_civil_id_card_number || null;
162
+ this.replacement_reason = replacement_reason || null;
163
+ this.replaced_by_user_id = replaced_by_user_id || null;
164
+ this.replaced_at = replaced_at || null;
165
+ }
166
+ }
167
+
@@ -76,6 +76,12 @@ export class ShiftAllowanceRequest extends BaseModel {
76
76
  @Column({ type: "date", nullable: false })
77
77
  shift_end_date: Date;
78
78
 
79
+ @Column({ type: "time", nullable: true })
80
+ start_time: string | null;
81
+
82
+ @Column({ type: "time", nullable: true })
83
+ end_time: string | null;
84
+
79
85
  @Column({ type: "text", nullable: true })
80
86
  reason_for_request: string | null;
81
87
 
@@ -99,6 +105,8 @@ export class ShiftAllowanceRequest extends BaseModel {
99
105
  allowance_value?: ShiftAllowanceValue,
100
106
  shift_start_date?: Date,
101
107
  shift_end_date?: Date,
108
+ start_time?: string | null,
109
+ end_time?: string | null,
102
110
  reason_for_request?: string | null
103
111
  ) {
104
112
  super();
@@ -121,6 +129,8 @@ export class ShiftAllowanceRequest extends BaseModel {
121
129
  this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
122
130
  this.shift_start_date = shift_start_date || new Date();
123
131
  this.shift_end_date = shift_end_date || new Date();
132
+ this.start_time = start_time || null;
133
+ this.end_time = end_time || null;
124
134
  this.reason_for_request = reason_for_request || null;
125
135
  }
126
136
  }
@@ -1,30 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare enum MealType {
3
- BREAKFAST = "Breakfast",
4
- LUNCH = "Lunch",
5
- DINNER = "Dinner"
6
- }
7
- export declare enum ServiceTypes {
8
- LAUNDRY = "Laundry",
9
- TELEPHONE = "Telephone Service"
10
- }
11
- export declare class HotelReservation extends BaseModel {
12
- type_of_accommodation: string;
13
- price: number;
14
- meal: MealType;
15
- service: ServiceTypes;
16
- date_of_request: Date;
17
- hotel_name: string;
18
- check_in_date: Date;
19
- check_in_time: string;
20
- check_out_date: Date;
21
- check_out_time: string;
22
- number_of_guests: number;
23
- description: string;
24
- attachment_url: string;
25
- requested_by: string;
26
- visitor_name: string;
27
- hr_approval: boolean;
28
- pr_approval: boolean;
29
- constructor(type_of_accommodation: string, price: number, meal: MealType, service: ServiceTypes, date_of_request: Date, hotel_name: string, check_in_date: Date, check_in_time: string, check_out_date: Date, check_out_time: string, number_of_guests: number, description: string, requested_by: string, visitor_name: string, hr_approval: boolean, pr_approval: boolean);
30
- }
@@ -1,119 +0,0 @@
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.HotelReservation = exports.ServiceTypes = exports.MealType = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var MealType;
16
- (function (MealType) {
17
- MealType["BREAKFAST"] = "Breakfast";
18
- MealType["LUNCH"] = "Lunch";
19
- MealType["DINNER"] = "Dinner";
20
- })(MealType || (exports.MealType = MealType = {}));
21
- var ServiceTypes;
22
- (function (ServiceTypes) {
23
- ServiceTypes["LAUNDRY"] = "Laundry";
24
- ServiceTypes["TELEPHONE"] = "Telephone Service";
25
- })(ServiceTypes || (exports.ServiceTypes = ServiceTypes = {}));
26
- let HotelReservation = class HotelReservation extends BaseModel_1.BaseModel {
27
- constructor(type_of_accommodation, price, meal, service, date_of_request, hotel_name, check_in_date, check_in_time, check_out_date, check_out_time, number_of_guests, description, requested_by, visitor_name, hr_approval, pr_approval) {
28
- super();
29
- this.type_of_accommodation = type_of_accommodation;
30
- this.price = price;
31
- this.meal = meal;
32
- this.service = service;
33
- this.date_of_request = date_of_request;
34
- this.hotel_name = hotel_name;
35
- this.check_in_date = check_in_date;
36
- this.check_in_time = check_in_time;
37
- this.check_out_date = check_out_date;
38
- this.check_out_time = check_out_time;
39
- this.number_of_guests = number_of_guests;
40
- this.description = description;
41
- this.requested_by = requested_by;
42
- this.visitor_name = visitor_name;
43
- this.hr_approval = hr_approval;
44
- this.pr_approval = pr_approval;
45
- }
46
- };
47
- exports.HotelReservation = HotelReservation;
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
50
- __metadata("design:type", String)
51
- ], HotelReservation.prototype, "type_of_accommodation", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: false }),
54
- __metadata("design:type", Number)
55
- ], HotelReservation.prototype, "price", void 0);
56
- __decorate([
57
- (0, typeorm_1.Column)({ type: 'enum', enum: MealType, nullable: false, }),
58
- __metadata("design:type", String)
59
- ], HotelReservation.prototype, "meal", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ type: 'enum', enum: ServiceTypes, nullable: false, }),
62
- __metadata("design:type", String)
63
- ], HotelReservation.prototype, "service", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({ type: 'timestamptz', nullable: false }),
66
- __metadata("design:type", Date)
67
- ], HotelReservation.prototype, "date_of_request", void 0);
68
- __decorate([
69
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
70
- __metadata("design:type", String)
71
- ], HotelReservation.prototype, "hotel_name", void 0);
72
- __decorate([
73
- (0, typeorm_1.Column)({ type: 'date', nullable: false }),
74
- __metadata("design:type", Date)
75
- ], HotelReservation.prototype, "check_in_date", void 0);
76
- __decorate([
77
- (0, typeorm_1.Column)({ type: 'time', nullable: false }),
78
- __metadata("design:type", String)
79
- ], HotelReservation.prototype, "check_in_time", void 0);
80
- __decorate([
81
- (0, typeorm_1.Column)({ type: 'date', nullable: false }),
82
- __metadata("design:type", Date)
83
- ], HotelReservation.prototype, "check_out_date", void 0);
84
- __decorate([
85
- (0, typeorm_1.Column)({ type: 'time', nullable: false }),
86
- __metadata("design:type", String)
87
- ], HotelReservation.prototype, "check_out_time", void 0);
88
- __decorate([
89
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
90
- __metadata("design:type", Number)
91
- ], HotelReservation.prototype, "number_of_guests", void 0);
92
- __decorate([
93
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
94
- __metadata("design:type", String)
95
- ], HotelReservation.prototype, "description", void 0);
96
- __decorate([
97
- (0, typeorm_1.Column)({ type: 'text', nullable: false }),
98
- __metadata("design:type", String)
99
- ], HotelReservation.prototype, "attachment_url", void 0);
100
- __decorate([
101
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
102
- __metadata("design:type", String)
103
- ], HotelReservation.prototype, "requested_by", void 0);
104
- __decorate([
105
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
106
- __metadata("design:type", String)
107
- ], HotelReservation.prototype, "visitor_name", void 0);
108
- __decorate([
109
- (0, typeorm_1.Column)({ type: 'boolean', default: false }),
110
- __metadata("design:type", Boolean)
111
- ], HotelReservation.prototype, "hr_approval", void 0);
112
- __decorate([
113
- (0, typeorm_1.Column)({ type: 'boolean', default: false }),
114
- __metadata("design:type", Boolean)
115
- ], HotelReservation.prototype, "pr_approval", void 0);
116
- exports.HotelReservation = HotelReservation = __decorate([
117
- (0, typeorm_1.Entity)({ name: 'hotel_reservations' }),
118
- __metadata("design:paramtypes", [String, Number, String, String, Date, String, Date, String, Date, String, Number, String, String, String, Boolean, Boolean])
119
- ], HotelReservation);