@platform-modules/civil-aviation-authority 2.3.9 → 2.3.11
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/dist/data-source.js +0 -10
- package/dist/index.d.ts +0 -12
- package/dist/index.js +1 -21
- package/dist/models/ITApprovalSettings.d.ts +7 -0
- package/dist/models/ITApprovalSettings.js +40 -0
- package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
- package/dist/models/ITServicesTypesMuscatModel.js +34 -0
- package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
- package/dist/models/ITServicesTypesSalalahModel.js +34 -0
- package/dist/models/SecondmentRequestModel.d.ts +3 -2
- package/dist/models/SecondmentRequestModel.js +9 -4
- package/dist/models/TemporaryAssignmentRequestModel.d.ts +3 -2
- package/dist/models/TemporaryAssignmentRequestModel.js +9 -4
- package/dist/models/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +1 -1
- package/src/data-source.ts +0 -10
- package/src/index.ts +0 -12
- package/src/models/HrServiceRequestModel.ts +167 -167
- package/src/models/ITRequestChatModel.ts +62 -62
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/SecondmentRequestModel.ts +8 -3
- package/src/models/TemporaryAssignmentRequestModel.ts +8 -3
- package/dist/models/AnnualTrainingPlanApprovalModel.d.ts +0 -25
- package/dist/models/AnnualTrainingPlanApprovalModel.js +0 -107
- package/dist/models/AnnualTrainingPlanAttachmentModel.d.ts +0 -13
- package/dist/models/AnnualTrainingPlanAttachmentModel.js +0 -69
- package/dist/models/AnnualTrainingPlanChatModel.d.ts +0 -26
- package/dist/models/AnnualTrainingPlanChatModel.js +0 -89
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +0 -36
- package/dist/models/AnnualTrainingPlanRequestModel.js +0 -151
- package/dist/models/AnnualTrainingPlanWorkflowModel.d.ts +0 -19
- package/dist/models/AnnualTrainingPlanWorkflowModel.js +0 -81
- package/src/models/AnnualTrainingPlanApprovalModel.ts +0 -94
- package/src/models/AnnualTrainingPlanAttachmentModel.ts +0 -56
- package/src/models/AnnualTrainingPlanChatModel.ts +0 -76
- package/src/models/AnnualTrainingPlanRequestModel.ts +0 -138
- package/src/models/AnnualTrainingPlanWorkflowModel.ts +0 -68
package/dist/data-source.js
CHANGED
|
@@ -98,11 +98,6 @@ const StudyLeaveWorkflowModel_1 = require("./models/StudyLeaveWorkflowModel");
|
|
|
98
98
|
const StudyLeaveApprovalModel_1 = require("./models/StudyLeaveApprovalModel");
|
|
99
99
|
const StudyLeaveChatModel_1 = require("./models/StudyLeaveChatModel");
|
|
100
100
|
const StudyLeaveAttachmentModel_1 = require("./models/StudyLeaveAttachmentModel");
|
|
101
|
-
const AnnualTrainingPlanRequestModel_1 = require("./models/AnnualTrainingPlanRequestModel");
|
|
102
|
-
const AnnualTrainingPlanWorkflowModel_1 = require("./models/AnnualTrainingPlanWorkflowModel");
|
|
103
|
-
const AnnualTrainingPlanApprovalModel_1 = require("./models/AnnualTrainingPlanApprovalModel");
|
|
104
|
-
const AnnualTrainingPlanChatModel_1 = require("./models/AnnualTrainingPlanChatModel");
|
|
105
|
-
const AnnualTrainingPlanAttachmentModel_1 = require("./models/AnnualTrainingPlanAttachmentModel");
|
|
106
101
|
const SecondmentRequestModel_1 = require("./models/SecondmentRequestModel");
|
|
107
102
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
108
103
|
type: 'postgres',
|
|
@@ -199,11 +194,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
199
194
|
StudyLeaveApprovalModel_1.StudyLeaveApprovalDetails,
|
|
200
195
|
StudyLeaveChatModel_1.StudyLeaveRequestChat,
|
|
201
196
|
StudyLeaveAttachmentModel_1.StudyLeaveRequestAttachment,
|
|
202
|
-
AnnualTrainingPlanRequestModel_1.AnnualTrainingPlanRequest,
|
|
203
|
-
AnnualTrainingPlanWorkflowModel_1.AnnualTrainingPlanWorkFlow,
|
|
204
|
-
AnnualTrainingPlanApprovalModel_1.AnnualTrainingPlanApprovalDetails,
|
|
205
|
-
AnnualTrainingPlanChatModel_1.AnnualTrainingPlanRequestChat,
|
|
206
|
-
AnnualTrainingPlanAttachmentModel_1.AnnualTrainingPlanRequestAttachment,
|
|
207
197
|
SecondmentRequestModel_1.SecondmentRequest,
|
|
208
198
|
DutyMissionRequestModel_1.DutyMissionRequests,
|
|
209
199
|
DutyMissionApprovalModel_1.DutyMissionApprovalDetails,
|
package/dist/index.d.ts
CHANGED
|
@@ -100,18 +100,6 @@ 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
103
|
export * from './models/SecondmentRequestModel';
|
|
116
104
|
export { SecondmentRequestStatus } from './models/SecondmentRequestModel';
|
|
117
105
|
export * from './models/TemporaryAssignmentRequestModel';
|
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.SalaryPaymentSource = exports.TemporaryAssignmentRequestStatus = exports.SecondmentRequestStatus = exports.
|
|
17
|
+
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;
|
|
18
18
|
__exportStar(require("./models/user"), exports);
|
|
19
19
|
__exportStar(require("./models/role"), exports);
|
|
20
20
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -141,26 +141,6 @@ 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
144
|
__exportStar(require("./models/SecondmentRequestModel"), exports);
|
|
165
145
|
var SecondmentRequestModel_1 = require("./models/SecondmentRequestModel");
|
|
166
146
|
Object.defineProperty(exports, "SecondmentRequestStatus", { enumerable: true, get: function () { return SecondmentRequestModel_1.SecondmentRequestStatus; } });
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ITApprovalSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(level, approval_role_id, workflow_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.level = level;
|
|
19
|
+
this.approval_role_id = approval_role_id;
|
|
20
|
+
this.workflow_id = workflow_id;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.ITApprovalSettings = ITApprovalSettings;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ITApprovalSettings.prototype, "level", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ITApprovalSettings.prototype, "approval_role_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ITApprovalSettings.prototype, "workflow_id", void 0);
|
|
36
|
+
exports.ITApprovalSettings = ITApprovalSettings = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
|
|
38
|
+
(0, typeorm_1.Unique)(['workflow_id', 'level']),
|
|
39
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
40
|
+
], ITApprovalSettings);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesMuscat = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesMuscat.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesMuscat);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ITServicesTypesSalalah = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, name_in_arabic) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.name_in_arabic = name_in_arabic;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ITServicesTypesSalalah.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
|
|
31
|
+
exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
|
|
33
|
+
__metadata("design:paramtypes", [String, String])
|
|
34
|
+
], ITServicesTypesSalalah);
|
|
@@ -27,7 +27,8 @@ export declare class SecondmentRequest extends BaseModel {
|
|
|
27
27
|
assigned_job_position: string;
|
|
28
28
|
original_department_id: number;
|
|
29
29
|
assigned_department_id: number;
|
|
30
|
-
|
|
30
|
+
from_entity: string | null;
|
|
31
|
+
to_entity: string | null;
|
|
31
32
|
start_date: Date;
|
|
32
33
|
end_date: Date;
|
|
33
34
|
phone_number: string;
|
|
@@ -39,5 +40,5 @@ export declare class SecondmentRequest extends BaseModel {
|
|
|
39
40
|
replacement_reason: string | null;
|
|
40
41
|
replaced_by_user_id: number | null;
|
|
41
42
|
replaced_at: Date | null;
|
|
42
|
-
constructor(user_id: number, status?: SecondmentRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, original_department_id?: number, assigned_department_id?: number,
|
|
43
|
+
constructor(user_id: number, status?: SecondmentRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, original_department_id?: number, assigned_department_id?: number, from_entity?: string | null, to_entity?: string | null, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, is_replaced?: boolean, replacement_employee_name?: string | null, replacement_employee_id?: string | null, replacement_civil_id_card_number?: string | null, replacement_reason?: string | null, replaced_by_user_id?: number | null, replaced_at?: Date | null);
|
|
43
44
|
}
|
|
@@ -22,7 +22,7 @@ var SecondmentRequestStatus;
|
|
|
22
22
|
SecondmentRequestStatus["REJECTED"] = "Rejected";
|
|
23
23
|
})(SecondmentRequestStatus || (exports.SecondmentRequestStatus = SecondmentRequestStatus = {}));
|
|
24
24
|
let SecondmentRequest = class SecondmentRequest extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(user_id, status = SecondmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, original_department_id, assigned_department_id,
|
|
25
|
+
constructor(user_id, status = SecondmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, original_department_id, assigned_department_id, from_entity, to_entity, start_date, end_date, phone_number, reason_for_request, is_replaced, replacement_employee_name, replacement_employee_id, replacement_civil_id_card_number, replacement_reason, replaced_by_user_id, replaced_at) {
|
|
26
26
|
super();
|
|
27
27
|
this.user_id = user_id;
|
|
28
28
|
this.status = status;
|
|
@@ -43,7 +43,8 @@ let SecondmentRequest = class SecondmentRequest extends BaseModel_1.BaseModel {
|
|
|
43
43
|
this.assigned_job_position = assigned_job_position || "";
|
|
44
44
|
this.original_department_id = original_department_id || 0;
|
|
45
45
|
this.assigned_department_id = assigned_department_id || 0;
|
|
46
|
-
this.
|
|
46
|
+
this.from_entity = from_entity || null;
|
|
47
|
+
this.to_entity = to_entity || null;
|
|
47
48
|
this.start_date = start_date || new Date();
|
|
48
49
|
this.end_date = end_date || new Date();
|
|
49
50
|
this.phone_number = phone_number || "";
|
|
@@ -137,7 +138,11 @@ __decorate([
|
|
|
137
138
|
__decorate([
|
|
138
139
|
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
139
140
|
__metadata("design:type", Object)
|
|
140
|
-
], SecondmentRequest.prototype, "
|
|
141
|
+
], SecondmentRequest.prototype, "from_entity", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
144
|
+
__metadata("design:type", Object)
|
|
145
|
+
], SecondmentRequest.prototype, "to_entity", void 0);
|
|
141
146
|
__decorate([
|
|
142
147
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
143
148
|
__metadata("design:type", Date)
|
|
@@ -184,6 +189,6 @@ __decorate([
|
|
|
184
189
|
], SecondmentRequest.prototype, "replaced_at", void 0);
|
|
185
190
|
exports.SecondmentRequest = SecondmentRequest = __decorate([
|
|
186
191
|
(0, typeorm_1.Entity)({ name: "secondment_requests" }),
|
|
187
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Date,
|
|
192
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Object, Date,
|
|
188
193
|
Date, String, String, Boolean, Object, Object, Object, Object, Object, Object])
|
|
189
194
|
], SecondmentRequest);
|
|
@@ -31,7 +31,8 @@ export declare class TemporaryAssignmentRequest extends BaseModel {
|
|
|
31
31
|
assigned_job_position: string;
|
|
32
32
|
original_department_id: number;
|
|
33
33
|
assigned_department_id: number;
|
|
34
|
-
|
|
34
|
+
from_entity: string | null;
|
|
35
|
+
to_entity: string | null;
|
|
35
36
|
start_date: Date;
|
|
36
37
|
end_date: Date;
|
|
37
38
|
phone_number: string;
|
|
@@ -45,5 +46,5 @@ export declare class TemporaryAssignmentRequest extends BaseModel {
|
|
|
45
46
|
replacement_reason: string | null;
|
|
46
47
|
replaced_by_user_id: number | null;
|
|
47
48
|
replaced_at: Date | null;
|
|
48
|
-
constructor(user_id: number, status?: TemporaryAssignmentRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, original_department_id?: number, assigned_department_id?: number,
|
|
49
|
+
constructor(user_id: number, status?: TemporaryAssignmentRequestStatus, 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, assigned_employee_name?: string, civil_id_card_number?: string | null, employee_id?: string, current_job_position?: string, assigned_job_position?: string, original_department_id?: number, assigned_department_id?: number, from_entity?: string | null, to_entity?: string | null, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, salary_payment_source?: SalaryPaymentSource, social_service_fund_contribution?: string | null, is_replaced?: boolean, replacement_employee_name?: string | null, replacement_employee_id?: string | null, replacement_civil_id_card_number?: string | null, replacement_reason?: string | null, replaced_by_user_id?: number | null, replaced_at?: Date | null);
|
|
49
50
|
}
|
|
@@ -27,7 +27,7 @@ var SalaryPaymentSource;
|
|
|
27
27
|
SalaryPaymentSource["OTHER_ENTITY"] = "Other Entity";
|
|
28
28
|
})(SalaryPaymentSource || (exports.SalaryPaymentSource = SalaryPaymentSource = {}));
|
|
29
29
|
let TemporaryAssignmentRequest = class TemporaryAssignmentRequest extends BaseModel_1.BaseModel {
|
|
30
|
-
constructor(user_id, status = TemporaryAssignmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, original_department_id, assigned_department_id,
|
|
30
|
+
constructor(user_id, status = TemporaryAssignmentRequestStatus.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, assigned_employee_name, civil_id_card_number, employee_id, current_job_position, assigned_job_position, original_department_id, assigned_department_id, from_entity, to_entity, start_date, end_date, phone_number, reason_for_request, salary_payment_source, social_service_fund_contribution, is_replaced, replacement_employee_name, replacement_employee_id, replacement_civil_id_card_number, replacement_reason, replaced_by_user_id, replaced_at) {
|
|
31
31
|
super();
|
|
32
32
|
this.user_id = user_id;
|
|
33
33
|
this.status = status;
|
|
@@ -48,7 +48,8 @@ let TemporaryAssignmentRequest = class TemporaryAssignmentRequest extends BaseMo
|
|
|
48
48
|
this.assigned_job_position = assigned_job_position || "";
|
|
49
49
|
this.original_department_id = original_department_id || 0;
|
|
50
50
|
this.assigned_department_id = assigned_department_id || 0;
|
|
51
|
-
this.
|
|
51
|
+
this.from_entity = from_entity || null;
|
|
52
|
+
this.to_entity = to_entity || null;
|
|
52
53
|
this.start_date = start_date || new Date();
|
|
53
54
|
this.end_date = end_date || new Date();
|
|
54
55
|
this.phone_number = phone_number || "";
|
|
@@ -144,7 +145,11 @@ __decorate([
|
|
|
144
145
|
__decorate([
|
|
145
146
|
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
146
147
|
__metadata("design:type", Object)
|
|
147
|
-
], TemporaryAssignmentRequest.prototype, "
|
|
148
|
+
], TemporaryAssignmentRequest.prototype, "from_entity", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
151
|
+
__metadata("design:type", Object)
|
|
152
|
+
], TemporaryAssignmentRequest.prototype, "to_entity", void 0);
|
|
148
153
|
__decorate([
|
|
149
154
|
(0, typeorm_1.Column)({ type: "date", nullable: false }),
|
|
150
155
|
__metadata("design:type", Date)
|
|
@@ -199,6 +204,6 @@ __decorate([
|
|
|
199
204
|
], TemporaryAssignmentRequest.prototype, "replaced_at", void 0);
|
|
200
205
|
exports.TemporaryAssignmentRequest = TemporaryAssignmentRequest = __decorate([
|
|
201
206
|
(0, typeorm_1.Entity)({ name: "temporary_assignment_requests" }),
|
|
202
|
-
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Date,
|
|
207
|
+
__metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, Number, Number, Object, Object, Date,
|
|
203
208
|
Date, String, String, String, Object, Boolean, Object, Object, Object, Object, Object, Object])
|
|
204
209
|
], TemporaryAssignmentRequest);
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { Column, Entity, Unique } from "typeorm";
|
|
3
|
+
// import { BaseModel } from './BaseModel';
|
|
4
|
+
// @Entity({ name: 'workflows' })
|
|
5
|
+
// @Unique(['service_id', 'sub_service_id', 'request_for'])
|
|
6
|
+
// export class Workflows extends BaseModel {
|
|
7
|
+
// @Column({ type: 'varchar', length: 100, nullable: false })
|
|
8
|
+
// name: string;
|
|
9
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
10
|
+
// service_id: number;
|
|
11
|
+
// @Column({ type: 'bigint', nullable: false })
|
|
12
|
+
// sub_service_id: number;
|
|
13
|
+
// @Column({ type: 'varchar', length: 20, nullable: false })
|
|
14
|
+
// request_for: string; // 'Self' | 'Behalf of' | 'Internal'
|
|
15
|
+
// @Column({ type: 'int', nullable: false })
|
|
16
|
+
// levels: number;
|
|
17
|
+
// constructor(
|
|
18
|
+
// name: string,
|
|
19
|
+
// service_id: number,
|
|
20
|
+
// sub_service_id: number,
|
|
21
|
+
// request_for: string,
|
|
22
|
+
// levels: number,
|
|
23
|
+
// ) {
|
|
24
|
+
// super();
|
|
25
|
+
// this.name = name;
|
|
26
|
+
// this.service_id = service_id;
|
|
27
|
+
// this.sub_service_id = sub_service_id;
|
|
28
|
+
// this.request_for = request_for;
|
|
29
|
+
// this.levels = levels;
|
|
30
|
+
// }
|
|
31
|
+
// }
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -96,11 +96,6 @@ import { StudyLeaveWorkFlow } from './models/StudyLeaveWorkflowModel';
|
|
|
96
96
|
import { StudyLeaveApprovalDetails } from './models/StudyLeaveApprovalModel';
|
|
97
97
|
import { StudyLeaveRequestChat } from './models/StudyLeaveChatModel';
|
|
98
98
|
import { StudyLeaveRequestAttachment } from './models/StudyLeaveAttachmentModel';
|
|
99
|
-
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
100
|
-
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
101
|
-
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
102
|
-
import { AnnualTrainingPlanRequestChat } from './models/AnnualTrainingPlanChatModel';
|
|
103
|
-
import { AnnualTrainingPlanRequestAttachment } from './models/AnnualTrainingPlanAttachmentModel';
|
|
104
99
|
import { SecondmentRequest } from './models/SecondmentRequestModel';
|
|
105
100
|
|
|
106
101
|
export const AppDataSource = new DataSource({
|
|
@@ -198,11 +193,6 @@ export const AppDataSource = new DataSource({
|
|
|
198
193
|
StudyLeaveApprovalDetails,
|
|
199
194
|
StudyLeaveRequestChat,
|
|
200
195
|
StudyLeaveRequestAttachment,
|
|
201
|
-
AnnualTrainingPlanRequest,
|
|
202
|
-
AnnualTrainingPlanWorkFlow,
|
|
203
|
-
AnnualTrainingPlanApprovalDetails,
|
|
204
|
-
AnnualTrainingPlanRequestChat,
|
|
205
|
-
AnnualTrainingPlanRequestAttachment,
|
|
206
196
|
SecondmentRequest,
|
|
207
197
|
DutyMissionRequests,
|
|
208
198
|
DutyMissionApprovalDetails,
|
package/src/index.ts
CHANGED
|
@@ -104,18 +104,6 @@ export {StudyLeaveRequestAttachment} from './models/StudyLeaveAttachmentModel';
|
|
|
104
104
|
export {StudyLeaveRequestChat} from './models/StudyLeaveChatModel';
|
|
105
105
|
export {StudyLeaveMessageType} from './models/StudyLeaveChatModel';
|
|
106
106
|
export {StudyLeaveChatStatus} from './models/StudyLeaveChatModel';
|
|
107
|
-
export * from './models/AnnualTrainingPlanRequestModel';
|
|
108
|
-
export * from './models/AnnualTrainingPlanWorkflowModel';
|
|
109
|
-
export * from './models/AnnualTrainingPlanApprovalModel';
|
|
110
|
-
export * from './models/AnnualTrainingPlanChatModel';
|
|
111
|
-
export * from './models/AnnualTrainingPlanAttachmentModel';
|
|
112
|
-
export {AnnualTrainingPlanRequestStatus, AnnualTrainingPlanPlace} from './models/AnnualTrainingPlanRequestModel';
|
|
113
|
-
export {AnnualTrainingPlanApprovalStatus} from './models/AnnualTrainingPlanApprovalModel';
|
|
114
|
-
export {AnnualTrainingPlanWorkFlowStatus} from './models/AnnualTrainingPlanWorkflowModel';
|
|
115
|
-
export {AnnualTrainingPlanRequestAttachment} from './models/AnnualTrainingPlanAttachmentModel';
|
|
116
|
-
export {AnnualTrainingPlanRequestChat} from './models/AnnualTrainingPlanChatModel';
|
|
117
|
-
export {AnnualTrainingPlanMessageType} from './models/AnnualTrainingPlanChatModel';
|
|
118
|
-
export {AnnualTrainingPlanChatStatus} from './models/AnnualTrainingPlanChatModel';
|
|
119
107
|
export * from './models/SecondmentRequestModel';
|
|
120
108
|
export {SecondmentRequestStatus} from './models/SecondmentRequestModel';
|
|
121
109
|
export * from './models/TemporaryAssignmentRequestModel';
|