@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.
- package/.env +14 -9
- package/dist/data-source.js +31 -1
- package/dist/index.d.ts +35 -8
- package/dist/index.js +59 -9
- package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +25 -0
- package/dist/models/AnnualTrainingPlanApprovalModel.js +107 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +13 -0
- package/dist/models/AnnualTrainingPlanAttachmentModel.js +69 -0
- package/dist/models/AnnualTrainingPlanChatModel.d.ts +26 -0
- package/dist/models/AnnualTrainingPlanChatModel.js +89 -0
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +36 -0
- package/dist/models/AnnualTrainingPlanRequestModel.js +151 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +19 -0
- package/dist/models/AnnualTrainingPlanWorkflowModel.js +81 -0
- package/dist/models/AssignTasksEmpApprovalModel.d.ts +23 -0
- package/dist/models/AssignTasksEmpApprovalModel.js +96 -0
- package/dist/models/AssignTasksEmpAttachmentModel.d.ts +12 -0
- package/dist/models/AssignTasksEmpAttachmentModel.js +64 -0
- package/dist/models/AssignTasksEmpChatModel.d.ts +19 -0
- package/dist/models/AssignTasksEmpChatModel.js +77 -0
- package/dist/models/AssignTasksEmpRequestModel.d.ts +25 -0
- package/dist/models/AssignTasksEmpRequestModel.js +100 -0
- package/dist/models/AssignTasksEmpWorkflowModel.d.ts +18 -0
- package/dist/models/AssignTasksEmpWorkflowModel.js +76 -0
- package/dist/models/TrainingRoomBookingApprovalModel.d.ts +25 -0
- package/dist/models/TrainingRoomBookingApprovalModel.js +107 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.d.ts +13 -0
- package/dist/models/TrainingRoomBookingAttachmentModel.js +69 -0
- package/dist/models/TrainingRoomBookingChatModel.d.ts +26 -0
- package/dist/models/TrainingRoomBookingChatModel.js +89 -0
- package/dist/models/TrainingRoomBookingRequestModel.d.ts +38 -0
- package/dist/models/TrainingRoomBookingRequestModel.js +149 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.d.ts +19 -0
- package/dist/models/TrainingRoomBookingWorkflowModel.js +81 -0
- package/dist/models/Workflows.d.ts +0 -9
- package/package.json +1 -1
- package/src/data-source.ts +31 -1
- package/src/index.ts +35 -8
- package/src/models/AnnualTrainingPlanApprovalModel.ts +94 -0
- package/src/models/AnnualTrainingPlanAttachmentModel.ts +56 -0
- package/src/models/AnnualTrainingPlanChatModel.ts +76 -0
- package/src/models/AnnualTrainingPlanRequestModel.ts +138 -0
- package/src/models/AnnualTrainingPlanWorkflowModel.ts +68 -0
- package/src/models/AssignTasksEmpApprovalModel.ts +84 -0
- package/src/models/AssignTasksEmpAttachmentModel.ts +52 -0
- package/src/models/AssignTasksEmpChatModel.ts +65 -0
- package/src/models/AssignTasksEmpRequestModel.ts +90 -0
- package/src/models/AssignTasksEmpWorkflowModel.ts +63 -0
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/TrainingRoomBookingApprovalModel.ts +94 -0
- package/src/models/TrainingRoomBookingAttachmentModel.ts +56 -0
- package/src/models/TrainingRoomBookingChatModel.ts +76 -0
- package/src/models/TrainingRoomBookingRequestModel.ts +136 -0
- package/src/models/TrainingRoomBookingWorkflowModel.ts +68 -0
package/.env
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
# DB_HOST=
|
|
2
|
-
# DB_PORT=
|
|
3
|
-
# DB_USER=
|
|
4
|
-
# DB_PASS=
|
|
1
|
+
# DB_HOST=localhost
|
|
2
|
+
# DB_PORT=5433
|
|
3
|
+
# DB_USER=postgres
|
|
4
|
+
# DB_PASS=123
|
|
5
5
|
# DB_NAME=CAA
|
|
6
6
|
|
|
7
|
+
DB_HOST=164.52.222.169
|
|
8
|
+
DB_PORT=5432
|
|
9
|
+
DB_USER=postgres_admin_user
|
|
10
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
+
DB_NAME=CAA
|
|
7
12
|
|
|
8
|
-
DB_HOST=
|
|
9
|
-
DB_PORT=5432
|
|
10
|
-
DB_USER=
|
|
11
|
-
DB_PASS=
|
|
12
|
-
DB_NAME=
|
|
13
|
+
# DB_HOST=216.48.187.46
|
|
14
|
+
# DB_PORT=5432
|
|
15
|
+
# DB_USER=adminuser
|
|
16
|
+
# DB_PASS=postgres_caa_fm_qa_34567
|
|
17
|
+
# DB_NAME=CAA_QA
|
package/dist/data-source.js
CHANGED
|
@@ -89,6 +89,11 @@ const DutyMissionAttachmentModel_1 = require("./models/DutyMissionAttachmentMode
|
|
|
89
89
|
const DutyMissionChatModel_1 = require("./models/DutyMissionChatModel");
|
|
90
90
|
const DutyMissionEmployeeDetailsModel_1 = require("./models/DutyMissionEmployeeDetailsModel");
|
|
91
91
|
const DutyMissionAirTicketDetailsModel_1 = require("./models/DutyMissionAirTicketDetailsModel");
|
|
92
|
+
const AssignTasksEmpRequestModel_1 = require("./models/AssignTasksEmpRequestModel");
|
|
93
|
+
const AssignTasksEmpApprovalModel_1 = require("./models/AssignTasksEmpApprovalModel");
|
|
94
|
+
const AssignTasksEmpWorkflowModel_1 = require("./models/AssignTasksEmpWorkflowModel");
|
|
95
|
+
const AssignTasksEmpAttachmentModel_1 = require("./models/AssignTasksEmpAttachmentModel");
|
|
96
|
+
const AssignTasksEmpChatModel_1 = require("./models/AssignTasksEmpChatModel");
|
|
92
97
|
const TrainingWorkflowModel_1 = require("./models/TrainingWorkflowModel");
|
|
93
98
|
const TrainingApprovalModel_1 = require("./models/TrainingApprovalModel");
|
|
94
99
|
const TrainingChatModel_1 = require("./models/TrainingChatModel");
|
|
@@ -98,6 +103,16 @@ const StudyLeaveWorkflowModel_1 = require("./models/StudyLeaveWorkflowModel");
|
|
|
98
103
|
const StudyLeaveApprovalModel_1 = require("./models/StudyLeaveApprovalModel");
|
|
99
104
|
const StudyLeaveChatModel_1 = require("./models/StudyLeaveChatModel");
|
|
100
105
|
const StudyLeaveAttachmentModel_1 = require("./models/StudyLeaveAttachmentModel");
|
|
106
|
+
const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
107
|
+
const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
108
|
+
const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
109
|
+
const AnnualTrainingPlanChatModel_1 = require("./models/AnnualTrainingPlanChatModel");
|
|
110
|
+
const AnnualTrainingPlanAttachmentModel_1 = require("./models/AnnualTrainingPlanAttachmentModel");
|
|
111
|
+
const TrainingRoomBookingRequestModel_1 = require("./models/TrainingRoomBookingRequestModel");
|
|
112
|
+
const TrainingRoomBookingWorkflowModel_1 = require("./models/TrainingRoomBookingWorkflowModel");
|
|
113
|
+
const TrainingRoomBookingApprovalModel_1 = require("./models/TrainingRoomBookingApprovalModel");
|
|
114
|
+
const TrainingRoomBookingChatModel_1 = require("./models/TrainingRoomBookingChatModel");
|
|
115
|
+
const TrainingRoomBookingAttachmentModel_1 = require("./models/TrainingRoomBookingAttachmentModel");
|
|
101
116
|
const SecondmentRequestModel_1 = require("./models/SecondmentRequestModel");
|
|
102
117
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
103
118
|
type: 'postgres',
|
|
@@ -194,6 +209,16 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
194
209
|
StudyLeaveApprovalModel_1.StudyLeaveApprovalDetails,
|
|
195
210
|
StudyLeaveChatModel_1.StudyLeaveRequestChat,
|
|
196
211
|
StudyLeaveAttachmentModel_1.StudyLeaveRequestAttachment,
|
|
212
|
+
AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
|
|
213
|
+
AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
|
|
214
|
+
AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
|
|
215
|
+
AnnualTrainingPlanChatModel_1.AnnualTrainingPlanRequestChat,
|
|
216
|
+
AnnualTrainingPlanAttachmentModel_1.AnnualTrainingPlanRequestAttachment,
|
|
217
|
+
TrainingRoomBookingRequestModel_1.TrainingRoomBookingRequest,
|
|
218
|
+
TrainingRoomBookingWorkflowModel_1.TrainingRoomBookingWorkFlow,
|
|
219
|
+
TrainingRoomBookingApprovalModel_1.TrainingRoomBookingApprovalDetails,
|
|
220
|
+
TrainingRoomBookingChatModel_1.TrainingRoomBookingRequestChat,
|
|
221
|
+
TrainingRoomBookingAttachmentModel_1.TrainingRoomBookingRequestAttachment,
|
|
197
222
|
SecondmentRequestModel_1.SecondmentRequest,
|
|
198
223
|
DutyMissionRequestModel_1.DutyMissionRequests,
|
|
199
224
|
DutyMissionApprovalModel_1.DutyMissionApprovalDetails,
|
|
@@ -201,6 +226,11 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
201
226
|
DutyMissionAttachmentModel_1.DutyMissionRequestAttachment,
|
|
202
227
|
DutyMissionChatModel_1.DutyMissionRequestChat,
|
|
203
228
|
DutyMissionEmployeeDetailsModel_1.DutyMissionEmployeeDetails,
|
|
204
|
-
DutyMissionAirTicketDetailsModel_1.DutyMissionAirTicketDetails
|
|
229
|
+
DutyMissionAirTicketDetailsModel_1.DutyMissionAirTicketDetails,
|
|
230
|
+
AssignTasksEmpRequestModel_1.AssignTasksEmpRequests,
|
|
231
|
+
AssignTasksEmpApprovalModel_1.AssignTasksEmpApprovalDetails,
|
|
232
|
+
AssignTasksEmpWorkflowModel_1.AssignTasksEmpWorkFlow,
|
|
233
|
+
AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment,
|
|
234
|
+
AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat
|
|
205
235
|
],
|
|
206
236
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,30 @@ export { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel'
|
|
|
100
100
|
export { StudyLeaveRequestChat } from './models/StudyLeaveChatModel';
|
|
101
101
|
export { StudyLeaveMessageType } from './models/StudyLeaveChatModel';
|
|
102
102
|
export { StudyLeaveChatStatus } from './models/StudyLeaveChatModel';
|
|
103
|
+
export * from './models/AnnualTrainingPlanRequestModel';
|
|
104
|
+
export * from './models/AnnualTrainingPlanWorkflowModel';
|
|
105
|
+
export * from './models/AnnualTrainingPlanApprovalModel';
|
|
106
|
+
export * from './models/AnnualTrainingPlanChatModel';
|
|
107
|
+
export * from './models/AnnualTrainingPlanAttachmentModel';
|
|
108
|
+
export { AnnualTrainingPlanRequestStatus, AnnualTrainingPlanPlace } from './models/AnnualTrainingPlanRequestModel';
|
|
109
|
+
export { AnnualTrainingPlanApprovalStatus } from './models/AnnualTrainingPlanApprovalModel';
|
|
110
|
+
export { AnnualTrainingPlanWorkFlowStatus } from './models/AnnualTrainingPlanWorkflowModel';
|
|
111
|
+
export { AnnualTrainingPlanRequestAttachment } from './models/AnnualTrainingPlanAttachmentModel';
|
|
112
|
+
export { AnnualTrainingPlanRequestChat } from './models/AnnualTrainingPlanChatModel';
|
|
113
|
+
export { AnnualTrainingPlanMessageType } from './models/AnnualTrainingPlanChatModel';
|
|
114
|
+
export { AnnualTrainingPlanChatStatus } from './models/AnnualTrainingPlanChatModel';
|
|
115
|
+
export * from './models/TrainingRoomBookingRequestModel';
|
|
116
|
+
export * from './models/TrainingRoomBookingWorkflowModel';
|
|
117
|
+
export * from './models/TrainingRoomBookingApprovalModel';
|
|
118
|
+
export * from './models/TrainingRoomBookingChatModel';
|
|
119
|
+
export * from './models/TrainingRoomBookingAttachmentModel';
|
|
120
|
+
export { TrainingRoomBookingRequestStatus, TrainingRoomBookingRoomType } from './models/TrainingRoomBookingRequestModel';
|
|
121
|
+
export { TrainingRoomBookingApprovalStatus } from './models/TrainingRoomBookingApprovalModel';
|
|
122
|
+
export { TrainingRoomBookingWorkFlowStatus } from './models/TrainingRoomBookingWorkflowModel';
|
|
123
|
+
export { TrainingRoomBookingRequestAttachment } from './models/TrainingRoomBookingAttachmentModel';
|
|
124
|
+
export { TrainingRoomBookingRequestChat } from './models/TrainingRoomBookingChatModel';
|
|
125
|
+
export { TrainingRoomBookingMessageType } from './models/TrainingRoomBookingChatModel';
|
|
126
|
+
export { TrainingRoomBookingChatStatus } from './models/TrainingRoomBookingChatModel';
|
|
103
127
|
export * from './models/SecondmentRequestModel';
|
|
104
128
|
export { SecondmentRequestStatus } from './models/SecondmentRequestModel';
|
|
105
129
|
export * from './models/TemporaryAssignmentRequestModel';
|
|
@@ -113,11 +137,14 @@ export * from './models/DutyMissionAttachmentModel';
|
|
|
113
137
|
export * from './models/DutyMissionChatModel';
|
|
114
138
|
export * from './models/DutyMissionEmployeeDetailsModel';
|
|
115
139
|
export * from './models/DutyMissionAirTicketDetailsModel';
|
|
116
|
-
export * from './models/
|
|
117
|
-
export * from './models/
|
|
118
|
-
export * from './models/
|
|
119
|
-
export * from './models/
|
|
120
|
-
export * from './models/
|
|
121
|
-
export
|
|
122
|
-
export
|
|
123
|
-
export
|
|
140
|
+
export * from './models/AssignTasksEmpRequestModel';
|
|
141
|
+
export * from './models/AssignTasksEmpApprovalModel';
|
|
142
|
+
export * from './models/AssignTasksEmpWorkflowModel';
|
|
143
|
+
export * from './models/AssignTasksEmpAttachmentModel';
|
|
144
|
+
export * from './models/AssignTasksEmpChatModel';
|
|
145
|
+
export { AssignTasksEmpStatus, AssignTasksEmpPriority } from './models/AssignTasksEmpRequestModel';
|
|
146
|
+
export { AssignTasksEmpApprovalStatus } from './models/AssignTasksEmpApprovalModel';
|
|
147
|
+
export { AssignTasksEmpWorkFlowStatus } from './models/AssignTasksEmpWorkflowModel';
|
|
148
|
+
export { AssignTasksEmpRequestAttachment } from './models/AssignTasksEmpAttachmentModel';
|
|
149
|
+
export { AssignTasksEmpRequestChat } from './models/AssignTasksEmpChatModel';
|
|
150
|
+
export { AssignTasksEmpMessageType } from './models/AssignTasksEmpChatModel';
|
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.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.SalaryPaymentSource = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = 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 = void 0;
|
|
17
|
+
exports.AssignTasksEmpMessageType = exports.AssignTasksEmpRequestChat = exports.AssignTasksEmpRequestAttachment = exports.AssignTasksEmpWorkFlowStatus = exports.AssignTasksEmpApprovalStatus = exports.AssignTasksEmpPriority = exports.AssignTasksEmpStatus = exports.ServiceTransferRequestType = exports.SalaryDetailsType = exports.ServiceTransferRequestStatus = exports.SalaryPaymentSource = 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 = void 0;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -141,6 +141,46 @@ var StudyLeaveChatModel_2 = require("./models/StudyLeaveChatModel");
|
|
|
141
141
|
Object.defineProperty(exports, "StudyLeaveMessageType", { enumerable: true, get: function () { return StudyLeaveChatModel_2.StudyLeaveMessageType; } });
|
|
142
142
|
var StudyLeaveChatModel_3 = require("./models/StudyLeaveChatModel");
|
|
143
143
|
Object.defineProperty(exports, "StudyLeaveChatStatus", { enumerable: true, get: function () { return StudyLeaveChatModel_3.StudyLeaveChatStatus; } });
|
|
144
|
+
__exportStar(require("./models/AnnualTrainingPlanRequestModel"), exports);
|
|
145
|
+
__exportStar(require("./models/AnnualTrainingPlanWorkflowModel"), exports);
|
|
146
|
+
__exportStar(require("./models/AnnualTrainingPlanApprovalModel"), exports);
|
|
147
|
+
__exportStar(require("./models/AnnualTrainingPlanChatModel"), exports);
|
|
148
|
+
__exportStar(require("./models/AnnualTrainingPlanAttachmentModel"), exports);
|
|
149
|
+
var AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
150
|
+
Object.defineProperty(exports, "AnnualTrainingPlanRequestStatus", { enumerable: true, get: function () { return AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequestStatus; } });
|
|
151
|
+
Object.defineProperty(exports, "AnnualTrainingPlanPlace", { enumerable: true, get: function () { return AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanPlace; } });
|
|
152
|
+
var AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
153
|
+
Object.defineProperty(exports, "AnnualTrainingPlanApprovalStatus", { enumerable: true, get: function () { return AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalStatus; } });
|
|
154
|
+
var AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
155
|
+
Object.defineProperty(exports, "AnnualTrainingPlanWorkFlowStatus", { enumerable: true, get: function () { return AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlowStatus; } });
|
|
156
|
+
var AnnualTrainingPlanAttachmentModel_1 = require("./models/AnnualTrainingPlanAttachmentModel");
|
|
157
|
+
Object.defineProperty(exports, "AnnualTrainingPlanRequestAttachment", { enumerable: true, get: function () { return AnnualTrainingPlanAttachmentModel_1.AnnualTrainingPlanRequestAttachment; } });
|
|
158
|
+
var AnnualTrainingPlanChatModel_1 = require("./models/AnnualTrainingPlanChatModel");
|
|
159
|
+
Object.defineProperty(exports, "AnnualTrainingPlanRequestChat", { enumerable: true, get: function () { return AnnualTrainingPlanChatModel_1.AnnualTrainingPlanRequestChat; } });
|
|
160
|
+
var AnnualTrainingPlanChatModel_2 = require("./models/AnnualTrainingPlanChatModel");
|
|
161
|
+
Object.defineProperty(exports, "AnnualTrainingPlanMessageType", { enumerable: true, get: function () { return AnnualTrainingPlanChatModel_2.AnnualTrainingPlanMessageType; } });
|
|
162
|
+
var AnnualTrainingPlanChatModel_3 = require("./models/AnnualTrainingPlanChatModel");
|
|
163
|
+
Object.defineProperty(exports, "AnnualTrainingPlanChatStatus", { enumerable: true, get: function () { return AnnualTrainingPlanChatModel_3.AnnualTrainingPlanChatStatus; } });
|
|
164
|
+
__exportStar(require("./models/TrainingRoomBookingRequestModel"), exports);
|
|
165
|
+
__exportStar(require("./models/TrainingRoomBookingWorkflowModel"), exports);
|
|
166
|
+
__exportStar(require("./models/TrainingRoomBookingApprovalModel"), exports);
|
|
167
|
+
__exportStar(require("./models/TrainingRoomBookingChatModel"), exports);
|
|
168
|
+
__exportStar(require("./models/TrainingRoomBookingAttachmentModel"), exports);
|
|
169
|
+
var TrainingRoomBookingRequestModel_1 = require("./models/TrainingRoomBookingRequestModel");
|
|
170
|
+
Object.defineProperty(exports, "TrainingRoomBookingRequestStatus", { enumerable: true, get: function () { return TrainingRoomBookingRequestModel_1.TrainingRoomBookingRequestStatus; } });
|
|
171
|
+
Object.defineProperty(exports, "TrainingRoomBookingRoomType", { enumerable: true, get: function () { return TrainingRoomBookingRequestModel_1.TrainingRoomBookingRoomType; } });
|
|
172
|
+
var TrainingRoomBookingApprovalModel_1 = require("./models/TrainingRoomBookingApprovalModel");
|
|
173
|
+
Object.defineProperty(exports, "TrainingRoomBookingApprovalStatus", { enumerable: true, get: function () { return TrainingRoomBookingApprovalModel_1.TrainingRoomBookingApprovalStatus; } });
|
|
174
|
+
var TrainingRoomBookingWorkflowModel_1 = require("./models/TrainingRoomBookingWorkflowModel");
|
|
175
|
+
Object.defineProperty(exports, "TrainingRoomBookingWorkFlowStatus", { enumerable: true, get: function () { return TrainingRoomBookingWorkflowModel_1.TrainingRoomBookingWorkFlowStatus; } });
|
|
176
|
+
var TrainingRoomBookingAttachmentModel_1 = require("./models/TrainingRoomBookingAttachmentModel");
|
|
177
|
+
Object.defineProperty(exports, "TrainingRoomBookingRequestAttachment", { enumerable: true, get: function () { return TrainingRoomBookingAttachmentModel_1.TrainingRoomBookingRequestAttachment; } });
|
|
178
|
+
var TrainingRoomBookingChatModel_1 = require("./models/TrainingRoomBookingChatModel");
|
|
179
|
+
Object.defineProperty(exports, "TrainingRoomBookingRequestChat", { enumerable: true, get: function () { return TrainingRoomBookingChatModel_1.TrainingRoomBookingRequestChat; } });
|
|
180
|
+
var TrainingRoomBookingChatModel_2 = require("./models/TrainingRoomBookingChatModel");
|
|
181
|
+
Object.defineProperty(exports, "TrainingRoomBookingMessageType", { enumerable: true, get: function () { return TrainingRoomBookingChatModel_2.TrainingRoomBookingMessageType; } });
|
|
182
|
+
var TrainingRoomBookingChatModel_3 = require("./models/TrainingRoomBookingChatModel");
|
|
183
|
+
Object.defineProperty(exports, "TrainingRoomBookingChatStatus", { enumerable: true, get: function () { return TrainingRoomBookingChatModel_3.TrainingRoomBookingChatStatus; } });
|
|
144
184
|
__exportStar(require("./models/SecondmentRequestModel"), exports);
|
|
145
185
|
var SecondmentRequestModel_1 = require("./models/SecondmentRequestModel");
|
|
146
186
|
Object.defineProperty(exports, "SecondmentRequestStatus", { enumerable: true, get: function () { return SecondmentRequestModel_1.SecondmentRequestStatus; } });
|
|
@@ -160,11 +200,21 @@ __exportStar(require("./models/DutyMissionAttachmentModel"), exports);
|
|
|
160
200
|
__exportStar(require("./models/DutyMissionChatModel"), exports);
|
|
161
201
|
__exportStar(require("./models/DutyMissionEmployeeDetailsModel"), exports);
|
|
162
202
|
__exportStar(require("./models/DutyMissionAirTicketDetailsModel"), exports);
|
|
163
|
-
__exportStar(require("./models/
|
|
164
|
-
__exportStar(require("./models/
|
|
165
|
-
__exportStar(require("./models/
|
|
166
|
-
__exportStar(require("./models/
|
|
167
|
-
__exportStar(require("./models/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
203
|
+
__exportStar(require("./models/AssignTasksEmpRequestModel"), exports);
|
|
204
|
+
__exportStar(require("./models/AssignTasksEmpApprovalModel"), exports);
|
|
205
|
+
__exportStar(require("./models/AssignTasksEmpWorkflowModel"), exports);
|
|
206
|
+
__exportStar(require("./models/AssignTasksEmpAttachmentModel"), exports);
|
|
207
|
+
__exportStar(require("./models/AssignTasksEmpChatModel"), exports);
|
|
208
|
+
var AssignTasksEmpRequestModel_1 = require("./models/AssignTasksEmpRequestModel");
|
|
209
|
+
Object.defineProperty(exports, "AssignTasksEmpStatus", { enumerable: true, get: function () { return AssignTasksEmpRequestModel_1.AssignTasksEmpStatus; } });
|
|
210
|
+
Object.defineProperty(exports, "AssignTasksEmpPriority", { enumerable: true, get: function () { return AssignTasksEmpRequestModel_1.AssignTasksEmpPriority; } });
|
|
211
|
+
var AssignTasksEmpApprovalModel_1 = require("./models/AssignTasksEmpApprovalModel");
|
|
212
|
+
Object.defineProperty(exports, "AssignTasksEmpApprovalStatus", { enumerable: true, get: function () { return AssignTasksEmpApprovalModel_1.AssignTasksEmpApprovalStatus; } });
|
|
213
|
+
var AssignTasksEmpWorkflowModel_1 = require("./models/AssignTasksEmpWorkflowModel");
|
|
214
|
+
Object.defineProperty(exports, "AssignTasksEmpWorkFlowStatus", { enumerable: true, get: function () { return AssignTasksEmpWorkflowModel_1.AssignTasksEmpWorkFlowStatus; } });
|
|
215
|
+
var AssignTasksEmpAttachmentModel_1 = require("./models/AssignTasksEmpAttachmentModel");
|
|
216
|
+
Object.defineProperty(exports, "AssignTasksEmpRequestAttachment", { enumerable: true, get: function () { return AssignTasksEmpAttachmentModel_1.AssignTasksEmpRequestAttachment; } });
|
|
217
|
+
var AssignTasksEmpChatModel_1 = require("./models/AssignTasksEmpChatModel");
|
|
218
|
+
Object.defineProperty(exports, "AssignTasksEmpRequestChat", { enumerable: true, get: function () { return AssignTasksEmpChatModel_1.AssignTasksEmpRequestChat; } });
|
|
219
|
+
var AssignTasksEmpChatModel_2 = require("./models/AssignTasksEmpChatModel");
|
|
220
|
+
Object.defineProperty(exports, "AssignTasksEmpMessageType", { enumerable: true, get: function () { return AssignTasksEmpChatModel_2.AssignTasksEmpMessageType; } });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AnnualTrainingPlanApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
ASSIGNED = "Assigned"
|
|
8
|
+
}
|
|
9
|
+
export declare class AnnualTrainingPlanApprovalDetails 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: AnnualTrainingPlanApprovalStatus;
|
|
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: AnnualTrainingPlanApprovalStatus, 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.AnnualTrainingPlanApprovalDetails = exports.AnnualTrainingPlanApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AnnualTrainingPlanApprovalStatus;
|
|
16
|
+
(function (AnnualTrainingPlanApprovalStatus) {
|
|
17
|
+
AnnualTrainingPlanApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
AnnualTrainingPlanApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
19
|
+
AnnualTrainingPlanApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
AnnualTrainingPlanApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
AnnualTrainingPlanApprovalStatus["ASSIGNED"] = "Assigned";
|
|
22
|
+
})(AnnualTrainingPlanApprovalStatus || (exports.AnnualTrainingPlanApprovalStatus = AnnualTrainingPlanApprovalStatus = {}));
|
|
23
|
+
let AnnualTrainingPlanApprovalDetails = class AnnualTrainingPlanApprovalDetails 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.AnnualTrainingPlanApprovalDetails = AnnualTrainingPlanApprovalDetails;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "request_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "service_id", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "sub_service_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "level", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "approver_user_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "approver_role_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "department_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "section_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], AnnualTrainingPlanApprovalDetails.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
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "comment", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({
|
|
89
|
+
type: "enum",
|
|
90
|
+
enum: AnnualTrainingPlanApprovalStatus,
|
|
91
|
+
default: AnnualTrainingPlanApprovalStatus.PENDING,
|
|
92
|
+
nullable: false
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "approval_status", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false, nullable: false }),
|
|
98
|
+
__metadata("design:type", Boolean)
|
|
99
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "is_manager", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true, nullable: false }),
|
|
102
|
+
__metadata("design:type", Boolean)
|
|
103
|
+
], AnnualTrainingPlanApprovalDetails.prototype, "is_allowed", void 0);
|
|
104
|
+
exports.AnnualTrainingPlanApprovalDetails = AnnualTrainingPlanApprovalDetails = __decorate([
|
|
105
|
+
(0, typeorm_1.Entity)({ name: "annual_training_plan_approvals" }),
|
|
106
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object, Object, Object, Object, Boolean, Boolean])
|
|
107
|
+
], AnnualTrainingPlanApprovalDetails);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare class AnnualTrainingPlanRequestAttachment 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.AnnualTrainingPlanRequestAttachment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let AnnualTrainingPlanRequestAttachment = class AnnualTrainingPlanRequestAttachment 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.AnnualTrainingPlanRequestAttachment = AnnualTrainingPlanRequestAttachment;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "request_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "sub_service_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "uploaded_by", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "file_url", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "file_name", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "file_type", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "bigint", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "file_size", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AnnualTrainingPlanRequestAttachment.prototype, "description", void 0);
|
|
66
|
+
exports.AnnualTrainingPlanRequestAttachment = AnnualTrainingPlanRequestAttachment = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)({ name: "annual_training_plan_request_attachments" }),
|
|
68
|
+
__metadata("design:paramtypes", [Number, Number, String, Object, Object, String, String, Number, String])
|
|
69
|
+
], AnnualTrainingPlanRequestAttachment);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AnnualTrainingPlanMessageType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
IMAGE = "image",
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
LINK = "link"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AnnualTrainingPlanChatStatus {
|
|
10
|
+
PENDING = "Pending",
|
|
11
|
+
APPROVED = "Approved",
|
|
12
|
+
REJECTED = "Rejected",
|
|
13
|
+
IN_PROGRESS = "In Progress"
|
|
14
|
+
}
|
|
15
|
+
export declare class AnnualTrainingPlanRequestChat 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: AnnualTrainingPlanMessageType;
|
|
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?: AnnualTrainingPlanMessageType, 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.AnnualTrainingPlanRequestChat = exports.AnnualTrainingPlanChatStatus = exports.AnnualTrainingPlanMessageType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var AnnualTrainingPlanMessageType;
|
|
16
|
+
(function (AnnualTrainingPlanMessageType) {
|
|
17
|
+
AnnualTrainingPlanMessageType["TEXT"] = "text";
|
|
18
|
+
AnnualTrainingPlanMessageType["IMAGE"] = "image";
|
|
19
|
+
AnnualTrainingPlanMessageType["VIDEO"] = "video";
|
|
20
|
+
AnnualTrainingPlanMessageType["FILE"] = "file";
|
|
21
|
+
AnnualTrainingPlanMessageType["LINK"] = "link";
|
|
22
|
+
})(AnnualTrainingPlanMessageType || (exports.AnnualTrainingPlanMessageType = AnnualTrainingPlanMessageType = {}));
|
|
23
|
+
var AnnualTrainingPlanChatStatus;
|
|
24
|
+
(function (AnnualTrainingPlanChatStatus) {
|
|
25
|
+
AnnualTrainingPlanChatStatus["PENDING"] = "Pending";
|
|
26
|
+
AnnualTrainingPlanChatStatus["APPROVED"] = "Approved";
|
|
27
|
+
AnnualTrainingPlanChatStatus["REJECTED"] = "Rejected";
|
|
28
|
+
AnnualTrainingPlanChatStatus["IN_PROGRESS"] = "In Progress";
|
|
29
|
+
})(AnnualTrainingPlanChatStatus || (exports.AnnualTrainingPlanChatStatus = AnnualTrainingPlanChatStatus = {}));
|
|
30
|
+
let AnnualTrainingPlanRequestChat = class AnnualTrainingPlanRequestChat 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 || AnnualTrainingPlanMessageType.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.AnnualTrainingPlanRequestChat = AnnualTrainingPlanRequestChat;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], AnnualTrainingPlanRequestChat.prototype, "request_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], AnnualTrainingPlanRequestChat.prototype, "service_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], AnnualTrainingPlanRequestChat.prototype, "sub_service_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], AnnualTrainingPlanRequestChat.prototype, "user_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], AnnualTrainingPlanRequestChat.prototype, "message", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], AnnualTrainingPlanRequestChat.prototype, "approver_role_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({
|
|
71
|
+
type: "enum",
|
|
72
|
+
enum: AnnualTrainingPlanMessageType,
|
|
73
|
+
default: AnnualTrainingPlanMessageType.TEXT,
|
|
74
|
+
nullable: false
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], AnnualTrainingPlanRequestChat.prototype, "messageType", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], AnnualTrainingPlanRequestChat.prototype, "is_internal", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], AnnualTrainingPlanRequestChat.prototype, "status", void 0);
|
|
86
|
+
exports.AnnualTrainingPlanRequestChat = AnnualTrainingPlanRequestChat = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)({ name: "annual_training_plan_request_chat" }),
|
|
88
|
+
__metadata("design:paramtypes", [Number, Number, String, Object, Object, String, Boolean, String, Number])
|
|
89
|
+
], AnnualTrainingPlanRequestChat);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseModel } from "./BaseModel";
|
|
2
|
+
export declare enum AnnualTrainingPlanRequestStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
IN_PROGRESS = "In Progress",
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AnnualTrainingPlanPlace {
|
|
10
|
+
INSIDE = "Inside",
|
|
11
|
+
OUTSIDE = "Outside"
|
|
12
|
+
}
|
|
13
|
+
export declare class AnnualTrainingPlanRequest extends BaseModel {
|
|
14
|
+
req_user_department_id: number | null;
|
|
15
|
+
req_user_section_id: number | null;
|
|
16
|
+
req_user_position_id: number | null;
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
sub_service_id: number | null;
|
|
19
|
+
user_id: number;
|
|
20
|
+
course_name: string;
|
|
21
|
+
no_of_participants: number;
|
|
22
|
+
course_cost: number;
|
|
23
|
+
total_cost: number;
|
|
24
|
+
proposed_implementation_date: Date;
|
|
25
|
+
description: string;
|
|
26
|
+
place: AnnualTrainingPlanPlace;
|
|
27
|
+
location: string | null;
|
|
28
|
+
reason: string;
|
|
29
|
+
employee_list: any[] | null;
|
|
30
|
+
status: AnnualTrainingPlanRequestStatus;
|
|
31
|
+
reviewer_user_id: number | null;
|
|
32
|
+
assigned_to_user_id: number | null;
|
|
33
|
+
assigned_at: Date | null;
|
|
34
|
+
workflow_execution_id: string | null;
|
|
35
|
+
constructor(user_id: number, course_name: string, no_of_participants: number, course_cost: number, total_cost: number, proposed_implementation_date: Date, description: string, place: AnnualTrainingPlanPlace, reason: string, status?: AnnualTrainingPlanRequestStatus, 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, location?: string | null, employee_list?: any[] | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null);
|
|
36
|
+
}
|