@platform-modules/civil-aviation-authority 2.3.157 → 2.3.158
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 +10 -10
- package/dist/data-source.js +14 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/models/HallApprovalModel.d.ts +22 -0
- package/dist/models/HallApprovalModel.js +84 -0
- package/dist/models/HallAttachmentModel.d.ts +11 -0
- package/dist/models/HallAttachmentModel.js +52 -0
- package/dist/models/HallChatModel.d.ts +18 -0
- package/dist/models/HallChatModel.js +65 -0
- package/dist/models/HallHistoryModel.d.ts +10 -0
- package/dist/models/HallHistoryModel.js +48 -0
- package/dist/models/HallMasterModel.d.ts +8 -0
- package/dist/models/HallMasterModel.js +40 -0
- package/dist/models/HallRequestModel.d.ts +26 -0
- package/dist/models/HallRequestModel.js +97 -0
- package/dist/models/HallWorkflowModel.d.ts +17 -0
- package/dist/models/HallWorkflowModel.js +67 -0
- package/package.json +1 -1
- package/src/data-source.ts +14 -0
- package/src/index.ts +7 -0
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AppealAgainstAdministrativeDecisionRequestModel.ts +23 -23
- package/src/models/CAAServices.ts +33 -33
- package/src/models/CAASubServices.ts +33 -33
- package/src/models/CAIRatingMasterModel.ts +39 -39
- package/src/models/CSRMBusinessImpactRatingMasterModel.ts +25 -25
- package/src/models/CSRMLikelihoodMasterModel.ts +25 -25
- package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
- package/src/models/CyberSecurityAuditRequestModel.ts +32 -32
- package/src/models/HallApprovalModel.ts +56 -0
- package/src/models/HallAttachmentModel.ts +29 -0
- package/src/models/HallChatModel.ts +42 -0
- package/src/models/HallHistoryModel.ts +26 -0
- package/src/models/HallMasterModel.ts +20 -0
- package/src/models/HallRequestModel.ts +66 -0
- package/src/models/HallWorkflowModel.ts +43 -0
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/PerformanceCyclePeriodModel.ts +26 -26
- package/src/models/PerformanceGoalMasterModel.ts +27 -27
- package/src/models/PerformanceManagementRequestGoalModel.ts +46 -46
- package/src/models/PerformanceManagementRequestModel.ts +14 -14
- package/src/models/PromotionRequestModel.ts +11 -11
- package/src/models/UserSkillModel.ts +56 -56
- package/dist/models/ITApprovalSettings.d.ts +0 -7
- package/dist/models/ITApprovalSettings.js +0 -40
- package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
- package/dist/models/ITServicesTypesMuscatModel.js +0 -34
- package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
- package/dist/models/ITServicesTypesSalalahModel.js +0 -34
- package/dist/models/Workflows.d.ts +0 -9
- package/dist/models/Workflows.js +0 -31
|
@@ -0,0 +1,67 @@
|
|
|
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.HallWorkFlow = exports.HallWorkFlowStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var HallWorkFlowStatus;
|
|
16
|
+
(function (HallWorkFlowStatus) {
|
|
17
|
+
HallWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
+
HallWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
+
HallWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
+
})(HallWorkFlowStatus || (exports.HallWorkFlowStatus = HallWorkFlowStatus = {}));
|
|
21
|
+
let HallWorkFlow = class HallWorkFlow extends BaseModel_1.BaseModel {
|
|
22
|
+
};
|
|
23
|
+
exports.HallWorkFlow = HallWorkFlow;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], HallWorkFlow.prototype, "request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], HallWorkFlow.prototype, "service_id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], HallWorkFlow.prototype, "sub_service_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], HallWorkFlow.prototype, "content", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({
|
|
42
|
+
type: "enum",
|
|
43
|
+
enum: HallWorkFlowStatus,
|
|
44
|
+
default: HallWorkFlowStatus.NOT_YET_STARTED,
|
|
45
|
+
nullable: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], HallWorkFlow.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], HallWorkFlow.prototype, "user_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], HallWorkFlow.prototype, "role_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], HallWorkFlow.prototype, "department_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], HallWorkFlow.prototype, "section_id", void 0);
|
|
65
|
+
exports.HallWorkFlow = HallWorkFlow = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: "hall_workflows" })
|
|
67
|
+
], HallWorkFlow);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -129,6 +129,13 @@ import { EventSupportApprovalDetails } from './models/EventSupportApprovalModel'
|
|
|
129
129
|
import { EventSupportRequestAttachment } from './models/EventSupportAttachmentModel';
|
|
130
130
|
import { EventSupportRequestChat } from './models/EventSupportChatModel';
|
|
131
131
|
import { EventSupportWorkFlow } from './models/EventSupportWorkflowModel';
|
|
132
|
+
import { HallRequests } from './models/HallRequestModel';
|
|
133
|
+
import { HallApprovalDetails } from './models/HallApprovalModel';
|
|
134
|
+
import { HallWorkFlow } from './models/HallWorkflowModel';
|
|
135
|
+
import { HallRequestChat } from './models/HallChatModel';
|
|
136
|
+
import { HallRequestAttachment } from './models/HallAttachmentModel';
|
|
137
|
+
import { HallHistory } from './models/HallHistoryModel';
|
|
138
|
+
import { HallMaster } from './models/HallMasterModel';
|
|
132
139
|
import { AnnualTrainingPlanRequest } from './models/AnnualTrainingPlanRequestModel';
|
|
133
140
|
import { AnnualTrainingPlanWorkFlow } from './models/AnnualTrainingPlanWorkflowModel';
|
|
134
141
|
import { AnnualTrainingPlanApprovalDetails } from './models/AnnualTrainingPlanApprovalModel';
|
|
@@ -289,6 +296,13 @@ export const AppDataSource = new DataSource({
|
|
|
289
296
|
EventSupportRequestAttachment,
|
|
290
297
|
EventSupportRequestChat,
|
|
291
298
|
EventSupportWorkFlow,
|
|
299
|
+
HallRequests,
|
|
300
|
+
HallApprovalDetails,
|
|
301
|
+
HallWorkFlow,
|
|
302
|
+
HallRequestChat,
|
|
303
|
+
HallRequestAttachment,
|
|
304
|
+
HallHistory,
|
|
305
|
+
HallMaster,
|
|
292
306
|
AnnualTrainingPlanRequest,
|
|
293
307
|
AnnualTrainingPlanWorkFlow,
|
|
294
308
|
AnnualTrainingPlanApprovalDetails,
|
package/src/index.ts
CHANGED
|
@@ -110,6 +110,13 @@ export * from './models/EventSupportApprovalModel';
|
|
|
110
110
|
export * from './models/EventSupportAttachmentModel';
|
|
111
111
|
export * from './models/EventSupportChatModel';
|
|
112
112
|
export * from './models/EventSupportWorkflowModel';
|
|
113
|
+
export * from './models/HallRequestModel';
|
|
114
|
+
export * from './models/HallApprovalModel';
|
|
115
|
+
export * from './models/HallWorkflowModel';
|
|
116
|
+
export * from './models/HallChatModel';
|
|
117
|
+
export * from './models/HallAttachmentModel';
|
|
118
|
+
export * from './models/HallHistoryModel';
|
|
119
|
+
export * from './models/HallMasterModel';
|
|
113
120
|
export { CancellationRequestStatus } from './models/CancellationRequestModel';
|
|
114
121
|
export { EventSupportRequestStatus } from './models/EventSupportRequestModel';
|
|
115
122
|
export { EventSupportApprovalStatus } from './models/EventSupportApprovalModel';
|
|
@@ -35,14 +35,14 @@ export class AccommodationApproval extends BaseModel {
|
|
|
35
35
|
@Column({ type: 'int', nullable: true })
|
|
36
36
|
department_id: number;
|
|
37
37
|
|
|
38
|
-
@Column({ type: 'int', nullable: true })
|
|
39
|
-
section_id: number;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
-
is_allowed: boolean;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'int', nullable: false })
|
|
45
|
-
level: number;
|
|
38
|
+
@Column({ type: 'int', nullable: true })
|
|
39
|
+
section_id: number;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'boolean', nullable: false, default: true })
|
|
42
|
+
is_allowed: boolean;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'int', nullable: false })
|
|
45
|
+
level: number;
|
|
46
46
|
|
|
47
47
|
@Column({
|
|
48
48
|
type: 'enum',
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
import { AnnualIncrementRequest } from "./AnnualIncrementRequestModel";
|
|
4
|
-
|
|
5
|
-
@Entity({ name: "annual_increment_request_employees" })
|
|
6
|
-
export class AnnualIncrementRequestEmployee extends BaseModel {
|
|
7
|
-
@Column({ type: "integer", nullable: false })
|
|
8
|
-
request_id: number;
|
|
9
|
-
|
|
10
|
-
@Column({ type: "integer", nullable: true })
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
|
|
13
|
-
@Column({ type: "integer", nullable: true })
|
|
14
|
-
sub_service_id: number | null;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
17
|
-
employee_name: string;
|
|
18
|
-
|
|
19
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
20
|
-
employee_id: string;
|
|
21
|
-
|
|
22
|
-
@Column({ type: "integer", nullable: false })
|
|
23
|
-
allowance_year: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "date", nullable: false })
|
|
26
|
-
effective_date: Date;
|
|
27
|
-
|
|
28
|
-
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
29
|
-
current_basic_salary: number | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
32
|
-
increment_percentage: number | null;
|
|
33
|
-
|
|
34
|
-
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
35
|
-
new_basic_salary: number | null;
|
|
36
|
-
|
|
37
|
-
@ManyToOne(() => AnnualIncrementRequest, { onDelete: "CASCADE" })
|
|
38
|
-
@JoinColumn({ name: "request_id", referencedColumnName: "id" })
|
|
39
|
-
request: AnnualIncrementRequest;
|
|
40
|
-
|
|
41
|
-
constructor(
|
|
42
|
-
request_id: number,
|
|
43
|
-
employee_name: string,
|
|
44
|
-
employee_id: string,
|
|
45
|
-
allowance_year: number,
|
|
46
|
-
effective_date: Date,
|
|
47
|
-
service_id?: number | null,
|
|
48
|
-
sub_service_id?: number | null,
|
|
49
|
-
current_basic_salary?: number | null,
|
|
50
|
-
increment_percentage?: number | null,
|
|
51
|
-
new_basic_salary?: number | null
|
|
52
|
-
) {
|
|
53
|
-
super();
|
|
54
|
-
this.request_id = request_id;
|
|
55
|
-
this.service_id = service_id ?? null;
|
|
56
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
57
|
-
this.employee_name = employee_name;
|
|
58
|
-
this.employee_id = employee_id;
|
|
59
|
-
this.allowance_year = allowance_year;
|
|
60
|
-
this.effective_date = effective_date;
|
|
61
|
-
this.current_basic_salary = current_basic_salary ?? null;
|
|
62
|
-
this.increment_percentage = increment_percentage ?? null;
|
|
63
|
-
this.new_basic_salary = new_basic_salary ?? null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
import { AnnualIncrementRequest } from "./AnnualIncrementRequestModel";
|
|
4
|
+
|
|
5
|
+
@Entity({ name: "annual_increment_request_employees" })
|
|
6
|
+
export class AnnualIncrementRequestEmployee extends BaseModel {
|
|
7
|
+
@Column({ type: "integer", nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: "integer", nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: "integer", nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
17
|
+
employee_name: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
20
|
+
employee_id: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: "integer", nullable: false })
|
|
23
|
+
allowance_year: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: "date", nullable: false })
|
|
26
|
+
effective_date: Date;
|
|
27
|
+
|
|
28
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
29
|
+
current_basic_salary: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
32
|
+
increment_percentage: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
35
|
+
new_basic_salary: number | null;
|
|
36
|
+
|
|
37
|
+
@ManyToOne(() => AnnualIncrementRequest, { onDelete: "CASCADE" })
|
|
38
|
+
@JoinColumn({ name: "request_id", referencedColumnName: "id" })
|
|
39
|
+
request: AnnualIncrementRequest;
|
|
40
|
+
|
|
41
|
+
constructor(
|
|
42
|
+
request_id: number,
|
|
43
|
+
employee_name: string,
|
|
44
|
+
employee_id: string,
|
|
45
|
+
allowance_year: number,
|
|
46
|
+
effective_date: Date,
|
|
47
|
+
service_id?: number | null,
|
|
48
|
+
sub_service_id?: number | null,
|
|
49
|
+
current_basic_salary?: number | null,
|
|
50
|
+
increment_percentage?: number | null,
|
|
51
|
+
new_basic_salary?: number | null
|
|
52
|
+
) {
|
|
53
|
+
super();
|
|
54
|
+
this.request_id = request_id;
|
|
55
|
+
this.service_id = service_id ?? null;
|
|
56
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
57
|
+
this.employee_name = employee_name;
|
|
58
|
+
this.employee_id = employee_id;
|
|
59
|
+
this.allowance_year = allowance_year;
|
|
60
|
+
this.effective_date = effective_date;
|
|
61
|
+
this.current_basic_salary = current_basic_salary ?? null;
|
|
62
|
+
this.increment_percentage = increment_percentage ?? null;
|
|
63
|
+
this.new_basic_salary = new_basic_salary ?? null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -45,24 +45,24 @@ export class AnnualIncrementRequest extends BaseModel {
|
|
|
45
45
|
@Column({ type: "timestamp", nullable: true })
|
|
46
46
|
assigned_at: Date | null;
|
|
47
47
|
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
-
workflow_execution_id: string | null;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
-
reference_number: string | null;
|
|
53
|
-
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
49
|
+
workflow_execution_id: string | null;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
52
|
+
reference_number: string | null;
|
|
53
|
+
|
|
54
54
|
// Annual Increment specific fields
|
|
55
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
56
|
-
employee_name: string | null;
|
|
57
|
-
|
|
58
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
59
|
-
employee_id: string | null;
|
|
60
|
-
|
|
61
|
-
@Column({ type: "integer", nullable: true })
|
|
62
|
-
allowance_year: number | null;
|
|
63
|
-
|
|
64
|
-
@Column({ type: "date", nullable: true })
|
|
65
|
-
effective_date: Date | null;
|
|
55
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
56
|
+
employee_name: string | null;
|
|
57
|
+
|
|
58
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
59
|
+
employee_id: string | null;
|
|
60
|
+
|
|
61
|
+
@Column({ type: "integer", nullable: true })
|
|
62
|
+
allowance_year: number | null;
|
|
63
|
+
|
|
64
|
+
@Column({ type: "date", nullable: true })
|
|
65
|
+
effective_date: Date | null;
|
|
66
66
|
|
|
67
67
|
@Column({ type: "decimal", precision: 10, scale: 3, nullable: true })
|
|
68
68
|
current_basic_salary: number | null;
|
|
@@ -104,14 +104,14 @@ export class AnnualIncrementRequest extends BaseModel {
|
|
|
104
104
|
this.req_user_position_id = req_user_position_id || null;
|
|
105
105
|
this.description = description || null;
|
|
106
106
|
this.reviewer_user_id = reviewer_user_id || null;
|
|
107
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
108
|
-
this.assigned_at = assigned_at || null;
|
|
109
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
110
|
-
this.reference_number = null;
|
|
111
|
-
this.employee_name = employee_name || null;
|
|
112
|
-
this.employee_id = employee_id || null;
|
|
113
|
-
this.allowance_year = allowance_year || null;
|
|
114
|
-
this.effective_date = effective_date || null;
|
|
107
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
108
|
+
this.assigned_at = assigned_at || null;
|
|
109
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
110
|
+
this.reference_number = null;
|
|
111
|
+
this.employee_name = employee_name || null;
|
|
112
|
+
this.employee_id = employee_id || null;
|
|
113
|
+
this.allowance_year = allowance_year || null;
|
|
114
|
+
this.effective_date = effective_date || null;
|
|
115
115
|
this.current_basic_salary = current_basic_salary || null;
|
|
116
116
|
this.increment_percentage = increment_percentage || null;
|
|
117
117
|
this.new_basic_salary = new_basic_salary || null;
|
|
@@ -75,29 +75,29 @@ export class AppealAgainstAdministrativeDecisionRequest extends BaseModel {
|
|
|
75
75
|
@Column({ type: "text", nullable: false })
|
|
76
76
|
decision_subject: string;
|
|
77
77
|
|
|
78
|
-
@Column({ type: "text", nullable: false })
|
|
79
|
-
grievance_details: string;
|
|
80
|
-
|
|
81
|
-
@Column({ type: "jsonb", nullable: true })
|
|
82
|
-
individuals_involved: string[] | null;
|
|
83
|
-
|
|
84
|
-
@Column({ type: "jsonb", nullable: true })
|
|
85
|
-
times: string[] | null;
|
|
86
|
-
|
|
87
|
-
@Column({ type: "date", nullable: true })
|
|
88
|
-
dates: Date | null;
|
|
89
|
-
|
|
90
|
-
@Column({ type: "text", nullable: true })
|
|
91
|
-
location: string | null;
|
|
92
|
-
|
|
93
|
-
@Column({ type: "jsonb", nullable: true })
|
|
94
|
-
requests: string[] | null;
|
|
95
|
-
|
|
96
|
-
@Column({ type: "jsonb", nullable: true })
|
|
97
|
-
events: string[] | null;
|
|
98
|
-
|
|
99
|
-
@Column({ type: "varchar", length: 500, nullable: false })
|
|
100
|
-
grievant_name: string;
|
|
78
|
+
@Column({ type: "text", nullable: false })
|
|
79
|
+
grievance_details: string;
|
|
80
|
+
|
|
81
|
+
@Column({ type: "jsonb", nullable: true })
|
|
82
|
+
individuals_involved: string[] | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: "jsonb", nullable: true })
|
|
85
|
+
times: string[] | null;
|
|
86
|
+
|
|
87
|
+
@Column({ type: "date", nullable: true })
|
|
88
|
+
dates: Date | null;
|
|
89
|
+
|
|
90
|
+
@Column({ type: "text", nullable: true })
|
|
91
|
+
location: string | null;
|
|
92
|
+
|
|
93
|
+
@Column({ type: "jsonb", nullable: true })
|
|
94
|
+
requests: string[] | null;
|
|
95
|
+
|
|
96
|
+
@Column({ type: "jsonb", nullable: true })
|
|
97
|
+
events: string[] | null;
|
|
98
|
+
|
|
99
|
+
@Column({ type: "varchar", length: 500, nullable: false })
|
|
100
|
+
grievant_name: string;
|
|
101
101
|
|
|
102
102
|
@Column({ type: "varchar", length: 100, nullable: false })
|
|
103
103
|
grievant_employee_number: string;
|
|
@@ -8,36 +8,36 @@ export class CAAServices extends BaseModel {
|
|
|
8
8
|
@Column({ type: 'varchar', length: 64, nullable: false, unique: true })
|
|
9
9
|
code: string;
|
|
10
10
|
|
|
11
|
-
@Column({ nullable: false })
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
@Column({ type: "text", nullable: true })
|
|
15
|
-
arabic_name: string | null;
|
|
16
|
-
|
|
17
|
-
@Column({ nullable: false })
|
|
18
|
-
description: string;
|
|
19
|
-
|
|
20
|
-
@Column({ type: "text", nullable: true })
|
|
21
|
-
arabic_description: string | null;
|
|
22
|
-
|
|
23
|
-
@Column({ nullable: true })
|
|
24
|
-
logo_url: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
constructor(
|
|
28
|
-
name: string,
|
|
29
|
-
description: string,
|
|
30
|
-
arabic_name?: string | null,
|
|
31
|
-
arabic_description?: string | null,
|
|
32
|
-
code?: string,
|
|
33
|
-
logo_url?: string
|
|
34
|
-
) {
|
|
35
|
-
super();
|
|
36
|
-
this.name = name;
|
|
37
|
-
this.description = description;
|
|
38
|
-
this.arabic_name = arabic_name || null;
|
|
39
|
-
this.arabic_description = arabic_description || null;
|
|
40
|
-
this.code = code || '';
|
|
41
|
-
this.logo_url = logo_url || '';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
11
|
+
@Column({ nullable: false })
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@Column({ type: "text", nullable: true })
|
|
15
|
+
arabic_name: string | null;
|
|
16
|
+
|
|
17
|
+
@Column({ nullable: false })
|
|
18
|
+
description: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: "text", nullable: true })
|
|
21
|
+
arabic_description: string | null;
|
|
22
|
+
|
|
23
|
+
@Column({ nullable: true })
|
|
24
|
+
logo_url: string;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
constructor(
|
|
28
|
+
name: string,
|
|
29
|
+
description: string,
|
|
30
|
+
arabic_name?: string | null,
|
|
31
|
+
arabic_description?: string | null,
|
|
32
|
+
code?: string,
|
|
33
|
+
logo_url?: string
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
this.name = name;
|
|
37
|
+
this.description = description;
|
|
38
|
+
this.arabic_name = arabic_name || null;
|
|
39
|
+
this.arabic_description = arabic_description || null;
|
|
40
|
+
this.code = code || '';
|
|
41
|
+
this.logo_url = logo_url || '';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -9,20 +9,20 @@ export class CAASubServices extends BaseModel {
|
|
|
9
9
|
@Column({ type: 'varchar', length: 64, nullable: true, unique: true })
|
|
10
10
|
code: string | null;
|
|
11
11
|
|
|
12
|
-
@Column({ nullable: false })
|
|
13
|
-
sub_service_name: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "text", nullable: true })
|
|
16
|
-
arabic_name: string | null;
|
|
17
|
-
|
|
18
|
-
@Column({ nullable: false })
|
|
19
|
-
description: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "text", nullable: true })
|
|
22
|
-
arabic_description: string | null;
|
|
23
|
-
|
|
24
|
-
@Column({ nullable: true })
|
|
25
|
-
service_id: number;
|
|
12
|
+
@Column({ nullable: false })
|
|
13
|
+
sub_service_name: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "text", nullable: true })
|
|
16
|
+
arabic_name: string | null;
|
|
17
|
+
|
|
18
|
+
@Column({ nullable: false })
|
|
19
|
+
description: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "text", nullable: true })
|
|
22
|
+
arabic_description: string | null;
|
|
23
|
+
|
|
24
|
+
@Column({ nullable: true })
|
|
25
|
+
service_id: number;
|
|
26
26
|
|
|
27
27
|
@ManyToOne(() => CAAServices)
|
|
28
28
|
@JoinColumn({ name: 'service_id' })
|
|
@@ -31,22 +31,22 @@ export class CAASubServices extends BaseModel {
|
|
|
31
31
|
@Column({ nullable: true })
|
|
32
32
|
logo_url: string;
|
|
33
33
|
|
|
34
|
-
constructor(
|
|
35
|
-
sub_service_name: string,
|
|
36
|
-
description: string,
|
|
37
|
-
arabic_name: string | null,
|
|
38
|
-
arabic_description: string | null,
|
|
39
|
-
service_id: number,
|
|
40
|
-
logo_url: string,
|
|
41
|
-
code: string | null = null
|
|
42
|
-
) {
|
|
43
|
-
super();
|
|
44
|
-
this.sub_service_name = sub_service_name
|
|
45
|
-
this.arabic_name = arabic_name || null;
|
|
46
|
-
this.description = description
|
|
47
|
-
this.arabic_description = arabic_description || null;
|
|
48
|
-
this.service_id = service_id
|
|
49
|
-
this.logo_url = logo_url
|
|
50
|
-
this.code = code
|
|
51
|
-
}
|
|
52
|
-
}
|
|
34
|
+
constructor(
|
|
35
|
+
sub_service_name: string,
|
|
36
|
+
description: string,
|
|
37
|
+
arabic_name: string | null,
|
|
38
|
+
arabic_description: string | null,
|
|
39
|
+
service_id: number,
|
|
40
|
+
logo_url: string,
|
|
41
|
+
code: string | null = null
|
|
42
|
+
) {
|
|
43
|
+
super();
|
|
44
|
+
this.sub_service_name = sub_service_name
|
|
45
|
+
this.arabic_name = arabic_name || null;
|
|
46
|
+
this.description = description
|
|
47
|
+
this.arabic_description = arabic_description || null;
|
|
48
|
+
this.service_id = service_id
|
|
49
|
+
this.logo_url = logo_url
|
|
50
|
+
this.code = code
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
@Entity({ name: "cai_rating_master" })
|
|
5
|
-
export class CAIRatingMaster extends BaseModel {
|
|
6
|
-
@Column({ type: "text", nullable: false })
|
|
7
|
-
confidentiality: string;
|
|
8
|
-
|
|
9
|
-
@Column({ type: "text", nullable: false })
|
|
10
|
-
integrity: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "text", nullable: false })
|
|
13
|
-
availability: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
16
|
-
rating: string;
|
|
17
|
-
|
|
18
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
19
|
-
value: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "boolean", default: true })
|
|
22
|
-
is_active: boolean;
|
|
23
|
-
|
|
24
|
-
constructor(
|
|
25
|
-
confidentiality: string,
|
|
26
|
-
integrity: string,
|
|
27
|
-
availability: string,
|
|
28
|
-
rating: string,
|
|
29
|
-
value: string
|
|
30
|
-
) {
|
|
31
|
-
super();
|
|
32
|
-
this.confidentiality = confidentiality;
|
|
33
|
-
this.integrity = integrity;
|
|
34
|
-
this.availability = availability;
|
|
35
|
-
this.rating = rating;
|
|
36
|
-
this.value = value;
|
|
37
|
-
this.is_active = true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "cai_rating_master" })
|
|
5
|
+
export class CAIRatingMaster extends BaseModel {
|
|
6
|
+
@Column({ type: "text", nullable: false })
|
|
7
|
+
confidentiality: string;
|
|
8
|
+
|
|
9
|
+
@Column({ type: "text", nullable: false })
|
|
10
|
+
integrity: string;
|
|
11
|
+
|
|
12
|
+
@Column({ type: "text", nullable: false })
|
|
13
|
+
availability: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
16
|
+
rating: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
19
|
+
value: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: "boolean", default: true })
|
|
22
|
+
is_active: boolean;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
confidentiality: string,
|
|
26
|
+
integrity: string,
|
|
27
|
+
availability: string,
|
|
28
|
+
rating: string,
|
|
29
|
+
value: string
|
|
30
|
+
) {
|
|
31
|
+
super();
|
|
32
|
+
this.confidentiality = confidentiality;
|
|
33
|
+
this.integrity = integrity;
|
|
34
|
+
this.availability = availability;
|
|
35
|
+
this.rating = rating;
|
|
36
|
+
this.value = value;
|
|
37
|
+
this.is_active = true;
|
|
38
|
+
}
|
|
39
|
+
}
|