@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
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum workFlowStatus {
|
|
5
|
-
COMPLETED = "Completed",
|
|
6
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
-
PENDING = "Pending"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
11
|
-
@Entity({ name: 'it_work_flows' })
|
|
12
|
-
export class ItWorkFlow extends BaseModel {
|
|
13
|
-
@Column({ type: 'int', nullable: false })
|
|
14
|
-
request_id: number;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
sub_service_id: number | null;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'int', nullable: true })
|
|
23
|
-
order: number | null;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
26
|
-
content: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
29
|
-
status: workFlowStatus;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'integer', nullable: true })
|
|
32
|
-
user_id: number | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'integer', nullable: true })
|
|
35
|
-
role_id: number | null;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'integer', nullable: true })
|
|
38
|
-
department_id: number | null;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'integer', nullable: true })
|
|
41
|
-
section_id: number | null;
|
|
42
|
-
|
|
43
|
-
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
44
|
-
super();
|
|
45
|
-
this.request_id = request_id;
|
|
46
|
-
this.content = content;
|
|
47
|
-
this.status = status;
|
|
48
|
-
this.order = order || null;
|
|
49
|
-
this.service_id = service_id ?? null;
|
|
50
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
51
|
-
this.user_id = user_id || null;
|
|
52
|
-
this.role_id = role_id || null;
|
|
53
|
-
this.department_id = department_id || null;
|
|
54
|
-
this.section_id = section_id || null;
|
|
55
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum workFlowStatus {
|
|
5
|
+
COMPLETED = "Completed",
|
|
6
|
+
NOT_YET_STARTED = "Not Yet Started",
|
|
7
|
+
PENDING = "Pending"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
11
|
+
@Entity({ name: 'it_work_flows' })
|
|
12
|
+
export class ItWorkFlow extends BaseModel {
|
|
13
|
+
@Column({ type: 'int', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'int', nullable: true })
|
|
23
|
+
order: number | null;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
26
|
+
content: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false })
|
|
29
|
+
status: workFlowStatus;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
user_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
role_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
department_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
section_id: number | null;
|
|
42
|
+
|
|
43
|
+
constructor(request_id: number, content: string, status: workFlowStatus, order?: number, service_id?: number | null, sub_service_id?: number | null, user_id?: number | null, role_id?: number | null, department_id?: number | null, section_id?: number | null) {
|
|
44
|
+
super();
|
|
45
|
+
this.request_id = request_id;
|
|
46
|
+
this.content = content;
|
|
47
|
+
this.status = status;
|
|
48
|
+
this.order = order || null;
|
|
49
|
+
this.service_id = service_id ?? null;
|
|
50
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
51
|
+
this.user_id = user_id || null;
|
|
52
|
+
this.role_id = role_id || null;
|
|
53
|
+
this.department_id = department_id || null;
|
|
54
|
+
this.section_id = section_id || null;
|
|
55
|
+
}
|
|
56
56
|
}
|
|
@@ -71,7 +71,10 @@ export class SecondmentRequest extends BaseModel {
|
|
|
71
71
|
assigned_department_id: number;
|
|
72
72
|
|
|
73
73
|
@Column({ type: "varchar", length: 500, nullable: true })
|
|
74
|
-
|
|
74
|
+
from_entity: string | null;
|
|
75
|
+
|
|
76
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
77
|
+
to_entity: string | null;
|
|
75
78
|
|
|
76
79
|
@Column({ type: "date", nullable: false })
|
|
77
80
|
start_date: Date;
|
|
@@ -127,7 +130,8 @@ export class SecondmentRequest extends BaseModel {
|
|
|
127
130
|
assigned_job_position?: string,
|
|
128
131
|
original_department_id?: number,
|
|
129
132
|
assigned_department_id?: number,
|
|
130
|
-
|
|
133
|
+
from_entity?: string | null,
|
|
134
|
+
to_entity?: string | null,
|
|
131
135
|
start_date?: Date,
|
|
132
136
|
end_date?: Date,
|
|
133
137
|
phone_number?: string,
|
|
@@ -160,7 +164,8 @@ export class SecondmentRequest extends BaseModel {
|
|
|
160
164
|
this.assigned_job_position = assigned_job_position || "";
|
|
161
165
|
this.original_department_id = original_department_id || 0;
|
|
162
166
|
this.assigned_department_id = assigned_department_id || 0;
|
|
163
|
-
this.
|
|
167
|
+
this.from_entity = from_entity || null;
|
|
168
|
+
this.to_entity = to_entity || null;
|
|
164
169
|
this.start_date = start_date || new Date();
|
|
165
170
|
this.end_date = end_date || new Date();
|
|
166
171
|
this.phone_number = phone_number || "";
|
|
@@ -76,7 +76,10 @@ export class TemporaryAssignmentRequest extends BaseModel {
|
|
|
76
76
|
assigned_department_id: number;
|
|
77
77
|
|
|
78
78
|
@Column({ type: "varchar", length: 500, nullable: true })
|
|
79
|
-
|
|
79
|
+
from_entity: string | null;
|
|
80
|
+
|
|
81
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
82
|
+
to_entity: string | null;
|
|
80
83
|
|
|
81
84
|
@Column({ type: "date", nullable: false })
|
|
82
85
|
start_date: Date;
|
|
@@ -139,7 +142,8 @@ export class TemporaryAssignmentRequest extends BaseModel {
|
|
|
139
142
|
assigned_job_position?: string,
|
|
140
143
|
original_department_id?: number,
|
|
141
144
|
assigned_department_id?: number,
|
|
142
|
-
|
|
145
|
+
from_entity?: string | null,
|
|
146
|
+
to_entity?: string | null,
|
|
143
147
|
start_date?: Date,
|
|
144
148
|
end_date?: Date,
|
|
145
149
|
phone_number?: string,
|
|
@@ -174,7 +178,8 @@ export class TemporaryAssignmentRequest extends BaseModel {
|
|
|
174
178
|
this.assigned_job_position = assigned_job_position || "";
|
|
175
179
|
this.original_department_id = original_department_id || 0;
|
|
176
180
|
this.assigned_department_id = assigned_department_id || 0;
|
|
177
|
-
this.
|
|
181
|
+
this.from_entity = from_entity || null;
|
|
182
|
+
this.to_entity = to_entity || null;
|
|
178
183
|
this.start_date = start_date || new Date();
|
|
179
184
|
this.end_date = end_date || new Date();
|
|
180
185
|
this.phone_number = phone_number || "";
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,107 +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.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);
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,69 +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.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);
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,89 +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.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);
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|