@platform-modules/civil-aviation-authority 2.3.41 → 2.3.43

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.
Files changed (42) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/dist/index.js +19 -1
  3. package/dist/models/CountryMasterModel.d.ts +11 -0
  4. package/dist/models/CountryMasterModel.js +55 -0
  5. package/dist/models/ITApprovalSettings.d.ts +7 -0
  6. package/dist/models/ITApprovalSettings.js +40 -0
  7. package/dist/models/ITServicesTypesMuscatModel.d.ts +6 -0
  8. package/dist/models/ITServicesTypesMuscatModel.js +34 -0
  9. package/dist/models/ITServicesTypesSalalahModel.d.ts +6 -0
  10. package/dist/models/ITServicesTypesSalalahModel.js +34 -0
  11. package/dist/models/JobTransferRequestModel.d.ts +31 -0
  12. package/dist/models/JobTransferRequestModel.js +128 -0
  13. package/dist/models/LocationModel.d.ts +12 -0
  14. package/dist/models/LocationModel.js +62 -0
  15. package/dist/models/LogisticsForeignVehicleModel.js +1 -0
  16. package/dist/models/LogisticsVehicleMaintenanceRequestModel.js +2 -0
  17. package/dist/models/NationalityMasterModel.d.ts +10 -0
  18. package/dist/models/NationalityMasterModel.js +51 -0
  19. package/dist/models/NewResourceRequestModel.d.ts +32 -0
  20. package/dist/models/NewResourceRequestModel.js +133 -0
  21. package/dist/models/ServiceTransferRequestModel.d.ts +3 -3
  22. package/dist/models/ServiceTransferRequestModel.js +7 -8
  23. package/dist/models/ShiftAllowanceRequestModel.d.ts +37 -0
  24. package/dist/models/ShiftAllowanceRequestModel.js +140 -0
  25. package/dist/models/Workflows.d.ts +9 -0
  26. package/dist/models/Workflows.js +31 -0
  27. package/package.json +1 -1
  28. package/src/index.ts +20 -0
  29. package/src/models/CountryMasterModel.ts +33 -0
  30. package/src/models/HrServiceRequestModel.ts +167 -167
  31. package/src/models/ITRequestChatModel.ts +62 -62
  32. package/src/models/ItApprovalsModel.ts +84 -84
  33. package/src/models/ItWorkflowModel.ts +55 -55
  34. package/src/models/JobTransferRequestModel.ts +115 -0
  35. package/src/models/LocationModel.ts +42 -0
  36. package/src/models/LogisticsForeignVehicleModel.ts +1 -0
  37. package/src/models/LogisticsVehicleMaintenanceRequestModel.ts +2 -0
  38. package/src/models/NationalityMasterModel.ts +30 -0
  39. package/src/models/NewResourceRequestModel.ts +120 -0
  40. package/src/models/RequestForCoverageRequestModel.ts +174 -174
  41. package/src/models/ServiceTransferRequestModel.ts +8 -8
  42. package/src/models/ShiftAllowanceRequestModel.ts +126 -0
@@ -0,0 +1,133 @@
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.NewResourceRequest = exports.NewResourceRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var NewResourceRequestStatus;
16
+ (function (NewResourceRequestStatus) {
17
+ NewResourceRequestStatus["PENDING"] = "Pending";
18
+ NewResourceRequestStatus["ASSIGNED"] = "Assigned";
19
+ NewResourceRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ NewResourceRequestStatus["COMPLETED"] = "Completed";
21
+ NewResourceRequestStatus["APPROVED"] = "Approved";
22
+ NewResourceRequestStatus["REJECTED"] = "Rejected";
23
+ })(NewResourceRequestStatus || (exports.NewResourceRequestStatus = NewResourceRequestStatus = {}));
24
+ let NewResourceRequest = class NewResourceRequest extends BaseModel_1.BaseModel {
25
+ constructor(user_id, status = NewResourceRequestStatus.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, position_to_be_filled, grade, role_title, education_requirement, required_skills, years_of_experience, location, job_description) {
26
+ super();
27
+ this.user_id = user_id;
28
+ this.status = status;
29
+ this.service_id = service_id || null;
30
+ this.sub_service_id = sub_service_id || null;
31
+ this.req_user_department_id = req_user_department_id || null;
32
+ this.req_user_section_id = req_user_section_id || null;
33
+ this.req_user_position_id = req_user_position_id || null;
34
+ this.description = description || null;
35
+ this.reviewer_user_id = reviewer_user_id || null;
36
+ this.assigned_to_user_id = assigned_to_user_id || null;
37
+ this.assigned_at = assigned_at || null;
38
+ this.workflow_execution_id = workflow_execution_id || null;
39
+ this.position_to_be_filled = position_to_be_filled || "";
40
+ this.grade = grade || "";
41
+ this.role_title = role_title || "";
42
+ this.education_requirement = education_requirement || "";
43
+ this.required_skills = required_skills || "";
44
+ this.years_of_experience = years_of_experience || "";
45
+ this.location = location || null;
46
+ this.job_description = job_description || "";
47
+ }
48
+ };
49
+ exports.NewResourceRequest = NewResourceRequest;
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], NewResourceRequest.prototype, "req_user_department_id", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], NewResourceRequest.prototype, "req_user_section_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], NewResourceRequest.prototype, "req_user_position_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], NewResourceRequest.prototype, "service_id", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], NewResourceRequest.prototype, "sub_service_id", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
72
+ __metadata("design:type", Number)
73
+ ], NewResourceRequest.prototype, "user_id", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], NewResourceRequest.prototype, "description", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "enum", enum: NewResourceRequestStatus, default: NewResourceRequestStatus.PENDING, nullable: false }),
80
+ __metadata("design:type", String)
81
+ ], NewResourceRequest.prototype, "status", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], NewResourceRequest.prototype, "reviewer_user_id", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
88
+ __metadata("design:type", Object)
89
+ ], NewResourceRequest.prototype, "assigned_to_user_id", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
92
+ __metadata("design:type", Object)
93
+ ], NewResourceRequest.prototype, "assigned_at", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
96
+ __metadata("design:type", Object)
97
+ ], NewResourceRequest.prototype, "workflow_execution_id", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
100
+ __metadata("design:type", String)
101
+ ], NewResourceRequest.prototype, "position_to_be_filled", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
104
+ __metadata("design:type", String)
105
+ ], NewResourceRequest.prototype, "grade", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
108
+ __metadata("design:type", String)
109
+ ], NewResourceRequest.prototype, "role_title", void 0);
110
+ __decorate([
111
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
112
+ __metadata("design:type", String)
113
+ ], NewResourceRequest.prototype, "education_requirement", void 0);
114
+ __decorate([
115
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
116
+ __metadata("design:type", String)
117
+ ], NewResourceRequest.prototype, "required_skills", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
120
+ __metadata("design:type", String)
121
+ ], NewResourceRequest.prototype, "years_of_experience", void 0);
122
+ __decorate([
123
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
124
+ __metadata("design:type", Object)
125
+ ], NewResourceRequest.prototype, "location", void 0);
126
+ __decorate([
127
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
128
+ __metadata("design:type", String)
129
+ ], NewResourceRequest.prototype, "job_description", void 0);
130
+ exports.NewResourceRequest = NewResourceRequest = __decorate([
131
+ (0, typeorm_1.Entity)({ name: "new_resource_requests" }),
132
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, String, Object, String])
133
+ ], NewResourceRequest);
@@ -35,12 +35,12 @@ export declare class ServiceTransferRequest extends BaseModel {
35
35
  assigned_job_position: string;
36
36
  current_entity: string;
37
37
  transferred_to_entity: string;
38
- start_date: Date;
39
- end_date: Date;
38
+ start_date: Date | null;
39
+ end_date: Date | null;
40
40
  phone_number: string;
41
41
  reason_for_request: string;
42
42
  request_type: ServiceTransferRequestType;
43
43
  salary_details: string;
44
44
  salary_details_description: string | null;
45
- constructor(user_id: number, status?: ServiceTransferRequestStatus, 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, current_entity?: string, transferred_to_entity?: string, start_date?: Date, end_date?: Date, phone_number?: string, reason_for_request?: string, request_type?: ServiceTransferRequestType, salary_details?: string, salary_details_description?: string | null);
45
+ constructor(user_id: number, status?: ServiceTransferRequestStatus, 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, current_entity?: string, transferred_to_entity?: string, start_date?: Date | null, end_date?: Date | null, phone_number?: string, reason_for_request?: string, request_type?: ServiceTransferRequestType, salary_details?: string, salary_details_description?: string | null);
46
46
  }
@@ -53,8 +53,8 @@ let ServiceTransferRequest = class ServiceTransferRequest extends BaseModel_1.Ba
53
53
  this.assigned_job_position = assigned_job_position || "";
54
54
  this.current_entity = current_entity || "";
55
55
  this.transferred_to_entity = transferred_to_entity || "";
56
- this.start_date = start_date || new Date();
57
- this.end_date = end_date || new Date();
56
+ this.start_date = start_date || null;
57
+ this.end_date = end_date || null;
58
58
  this.phone_number = phone_number || "";
59
59
  this.reason_for_request = reason_for_request || "";
60
60
  this.request_type = request_type || ServiceTransferRequestType.INTERNAL;
@@ -140,12 +140,12 @@ __decorate([
140
140
  __metadata("design:type", String)
141
141
  ], ServiceTransferRequest.prototype, "transferred_to_entity", void 0);
142
142
  __decorate([
143
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
144
- __metadata("design:type", Date)
143
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
144
+ __metadata("design:type", Object)
145
145
  ], ServiceTransferRequest.prototype, "start_date", void 0);
146
146
  __decorate([
147
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
148
- __metadata("design:type", Date)
147
+ (0, typeorm_1.Column)({ type: "date", nullable: true }),
148
+ __metadata("design:type", Object)
149
149
  ], ServiceTransferRequest.prototype, "end_date", void 0);
150
150
  __decorate([
151
151
  (0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: false }),
@@ -169,6 +169,5 @@ __decorate([
169
169
  ], ServiceTransferRequest.prototype, "salary_details_description", void 0);
170
170
  exports.ServiceTransferRequest = ServiceTransferRequest = __decorate([
171
171
  (0, typeorm_1.Entity)({ name: "service_transfer_requests" }),
172
- __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, String, String, Date,
173
- Date, String, String, String, String, Object])
172
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, Object, String, String, String, String, String, Object, Object, String, String, String, String, Object])
174
173
  ], ServiceTransferRequest);
@@ -0,0 +1,37 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum ShiftAllowanceRequestStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ COMPLETED = "Completed",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected"
9
+ }
10
+ export declare enum ShiftAllowanceValue {
11
+ TWENTY_TWO_PERCENT = "22%",
12
+ THIRTY_PERCENT = "30%",
13
+ SEVENTY_PERCENT = "70%"
14
+ }
15
+ export declare class ShiftAllowanceRequest extends BaseModel {
16
+ req_user_department_id: number | null;
17
+ req_user_section_id: number | null;
18
+ req_user_position_id: number | null;
19
+ service_id: number | null;
20
+ sub_service_id: number | null;
21
+ user_id: number;
22
+ description: string | null;
23
+ status: ShiftAllowanceRequestStatus;
24
+ reviewer_user_id: number | null;
25
+ assigned_to_user_id: number | null;
26
+ assigned_at: Date | null;
27
+ workflow_execution_id: string | null;
28
+ employee_name: string;
29
+ employee_id: string;
30
+ job_title: string;
31
+ financial_grade: string;
32
+ allowance_value: ShiftAllowanceValue;
33
+ shift_start_date: Date;
34
+ shift_end_date: Date;
35
+ reason_for_request: string | null;
36
+ constructor(user_id: number, status?: ShiftAllowanceRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, employee_name?: string, employee_id?: string, job_title?: string, financial_grade?: string, allowance_value?: ShiftAllowanceValue, shift_start_date?: Date, shift_end_date?: Date, reason_for_request?: string | null);
37
+ }
@@ -0,0 +1,140 @@
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.ShiftAllowanceRequest = exports.ShiftAllowanceValue = exports.ShiftAllowanceRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var ShiftAllowanceRequestStatus;
16
+ (function (ShiftAllowanceRequestStatus) {
17
+ ShiftAllowanceRequestStatus["PENDING"] = "Pending";
18
+ ShiftAllowanceRequestStatus["ASSIGNED"] = "Assigned";
19
+ ShiftAllowanceRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ ShiftAllowanceRequestStatus["COMPLETED"] = "Completed";
21
+ ShiftAllowanceRequestStatus["APPROVED"] = "Approved";
22
+ ShiftAllowanceRequestStatus["REJECTED"] = "Rejected";
23
+ })(ShiftAllowanceRequestStatus || (exports.ShiftAllowanceRequestStatus = ShiftAllowanceRequestStatus = {}));
24
+ var ShiftAllowanceValue;
25
+ (function (ShiftAllowanceValue) {
26
+ ShiftAllowanceValue["TWENTY_TWO_PERCENT"] = "22%";
27
+ ShiftAllowanceValue["THIRTY_PERCENT"] = "30%";
28
+ ShiftAllowanceValue["SEVENTY_PERCENT"] = "70%";
29
+ })(ShiftAllowanceValue || (exports.ShiftAllowanceValue = ShiftAllowanceValue = {}));
30
+ let ShiftAllowanceRequest = class ShiftAllowanceRequest extends BaseModel_1.BaseModel {
31
+ constructor(user_id, status = ShiftAllowanceRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, employee_name, employee_id, job_title, financial_grade, allowance_value, shift_start_date, shift_end_date, reason_for_request) {
32
+ super();
33
+ this.user_id = user_id;
34
+ this.status = status;
35
+ this.service_id = service_id || null;
36
+ this.sub_service_id = sub_service_id || null;
37
+ this.req_user_department_id = req_user_department_id || null;
38
+ this.req_user_section_id = req_user_section_id || null;
39
+ this.req_user_position_id = req_user_position_id || null;
40
+ this.description = description || null;
41
+ this.reviewer_user_id = reviewer_user_id || null;
42
+ this.assigned_to_user_id = assigned_to_user_id || null;
43
+ this.assigned_at = assigned_at || null;
44
+ this.workflow_execution_id = workflow_execution_id || null;
45
+ this.employee_name = employee_name || "";
46
+ this.employee_id = employee_id || "";
47
+ this.job_title = job_title || "";
48
+ this.financial_grade = financial_grade || "";
49
+ this.allowance_value = allowance_value || ShiftAllowanceValue.TWENTY_TWO_PERCENT;
50
+ this.shift_start_date = shift_start_date || new Date();
51
+ this.shift_end_date = shift_end_date || new Date();
52
+ this.reason_for_request = reason_for_request || null;
53
+ }
54
+ };
55
+ exports.ShiftAllowanceRequest = ShiftAllowanceRequest;
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], ShiftAllowanceRequest.prototype, "req_user_department_id", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
62
+ __metadata("design:type", Object)
63
+ ], ShiftAllowanceRequest.prototype, "req_user_section_id", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
66
+ __metadata("design:type", Object)
67
+ ], ShiftAllowanceRequest.prototype, "req_user_position_id", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
70
+ __metadata("design:type", Object)
71
+ ], ShiftAllowanceRequest.prototype, "service_id", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
74
+ __metadata("design:type", Object)
75
+ ], ShiftAllowanceRequest.prototype, "sub_service_id", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
78
+ __metadata("design:type", Number)
79
+ ], ShiftAllowanceRequest.prototype, "user_id", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
82
+ __metadata("design:type", Object)
83
+ ], ShiftAllowanceRequest.prototype, "description", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceRequestStatus, default: ShiftAllowanceRequestStatus.PENDING, nullable: false }),
86
+ __metadata("design:type", String)
87
+ ], ShiftAllowanceRequest.prototype, "status", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
90
+ __metadata("design:type", Object)
91
+ ], ShiftAllowanceRequest.prototype, "reviewer_user_id", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
94
+ __metadata("design:type", Object)
95
+ ], ShiftAllowanceRequest.prototype, "assigned_to_user_id", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
98
+ __metadata("design:type", Object)
99
+ ], ShiftAllowanceRequest.prototype, "assigned_at", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
102
+ __metadata("design:type", Object)
103
+ ], ShiftAllowanceRequest.prototype, "workflow_execution_id", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
106
+ __metadata("design:type", String)
107
+ ], ShiftAllowanceRequest.prototype, "employee_name", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
110
+ __metadata("design:type", String)
111
+ ], ShiftAllowanceRequest.prototype, "employee_id", void 0);
112
+ __decorate([
113
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
114
+ __metadata("design:type", String)
115
+ ], ShiftAllowanceRequest.prototype, "job_title", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
118
+ __metadata("design:type", String)
119
+ ], ShiftAllowanceRequest.prototype, "financial_grade", void 0);
120
+ __decorate([
121
+ (0, typeorm_1.Column)({ type: "enum", enum: ShiftAllowanceValue, nullable: false }),
122
+ __metadata("design:type", String)
123
+ ], ShiftAllowanceRequest.prototype, "allowance_value", void 0);
124
+ __decorate([
125
+ (0, typeorm_1.Column)({ type: "date", nullable: false }),
126
+ __metadata("design:type", Date)
127
+ ], ShiftAllowanceRequest.prototype, "shift_start_date", void 0);
128
+ __decorate([
129
+ (0, typeorm_1.Column)({ type: "date", nullable: false }),
130
+ __metadata("design:type", Date)
131
+ ], ShiftAllowanceRequest.prototype, "shift_end_date", void 0);
132
+ __decorate([
133
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
134
+ __metadata("design:type", Object)
135
+ ], ShiftAllowanceRequest.prototype, "reason_for_request", void 0);
136
+ exports.ShiftAllowanceRequest = ShiftAllowanceRequest = __decorate([
137
+ (0, typeorm_1.Entity)({ name: "shift_allowance_requests" }),
138
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, String, String, Date,
139
+ Date, Object])
140
+ ], ShiftAllowanceRequest);
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class Workflows extends BaseModel {
3
+ name: string;
4
+ service_id: number;
5
+ sub_service_id: number;
6
+ request_for: string;
7
+ levels: number;
8
+ constructor(name: string, service_id: number, sub_service_id: number, request_for: string, levels: number);
9
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.41",
3
+ "version": "2.3.43",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -185,3 +185,23 @@ export {AssignTasksEmpWorkFlowStatus} from './models/AssignTasksEmpWorkflowModel
185
185
  export {AssignTasksEmpRequestAttachment} from './models/AssignTasksEmpAttachmentModel';
186
186
  export {AssignTasksEmpRequestChat} from './models/AssignTasksEmpChatModel';
187
187
  export {AssignTasksEmpMessageType} from './models/AssignTasksEmpChatModel';
188
+
189
+ export * from './models/ShiftAllowanceRequestModel';
190
+ export {ShiftAllowanceRequestStatus, ShiftAllowanceValue} from './models/ShiftAllowanceRequestModel';
191
+
192
+ // Job Transfer (Transfer from One Job to Another Job Nature) Service
193
+ export * from './models/JobTransferRequestModel';
194
+ export {JobTransferRequestStatus} from './models/JobTransferRequestModel';
195
+
196
+ // New Resource (Request for New Resource) Service
197
+ export * from './models/NewResourceRequestModel';
198
+ export {NewResourceRequestStatus} from './models/NewResourceRequestModel';
199
+
200
+ // Country Master
201
+ export * from './models/CountryMasterModel';
202
+
203
+ // Location Master
204
+ export * from './models/LocationModel';
205
+
206
+ // Nationality Master
207
+ export * from './models/NationalityMasterModel';
@@ -0,0 +1,33 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'country_master' })
5
+ export class CountryMaster extends BaseModel {
6
+ @Column({ type: 'varchar', length: 255, nullable: false })
7
+ country_name: string; // Country name
8
+
9
+ @Column({ type: 'varchar', length: 255, nullable: true })
10
+ country_name_arabic: string | null; // Arabic translation
11
+
12
+ @Column({ type: 'varchar', length: 10, nullable: true })
13
+ country_code: string | null; // ISO country code (e.g., "OM", "US")
14
+
15
+ @Column({ type: 'varchar', length: 10, nullable: true })
16
+ phone_code: string | null; // Phone country code (e.g., "+968")
17
+
18
+ @Column({ type: 'text', nullable: true })
19
+ description: string | null; // Description of the country
20
+
21
+ @Column({ type: 'boolean', default: true })
22
+ is_active: boolean; // Whether the country is active
23
+
24
+ @Column({ type: 'int', default: 0 })
25
+ display_order: number; // Order for display in dropdowns
26
+
27
+ constructor(country_name: string) {
28
+ super();
29
+ this.country_name = country_name;
30
+ this.is_active = true;
31
+ this.display_order = 0;
32
+ }
33
+ }