@platform-modules/civil-aviation-authority 2.3.249 → 2.3.250
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 +7 -22
- package/dist/index.d.ts +8 -0
- package/dist/index.js +9 -0
- package/dist/models/EmployeeSecurityDriveMasterModel.d.ts +13 -0
- package/dist/models/EmployeeSecurityDriveMasterModel.js +52 -0
- package/dist/models/EmployeeSecurityDriveModel.d.ts +8 -0
- package/dist/models/EmployeeSecurityDriveModel.js +37 -0
- package/dist/models/EmployeeSecurityFileAccessModel.d.ts +18 -0
- package/dist/models/EmployeeSecurityFileAccessModel.js +68 -0
- package/dist/models/EmployeeSecurityFileAuditLogModel.d.ts +9 -0
- package/dist/models/EmployeeSecurityFileAuditLogModel.js +44 -0
- package/dist/models/EmployeeSecurityFileModel.d.ts +18 -0
- package/dist/models/EmployeeSecurityFileModel.js +80 -0
- package/dist/models/EmployeeSecurityFileTypeModel.d.ts +6 -0
- package/dist/models/EmployeeSecurityFileTypeModel.js +32 -0
- package/dist/models/EmployeeSecurityFileVersionModel.d.ts +10 -0
- package/dist/models/EmployeeSecurityFileVersionModel.js +48 -0
- package/dist/models/EmployeeSecurityFolderModel.d.ts +11 -0
- package/dist/models/{SecurityAccessChatModel.js → EmployeeSecurityFolderModel.js} +23 -27
- 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/Workflows.d.ts +9 -0
- package/dist/models/Workflows.js +31 -0
- package/package.json +2 -2
- package/src/index.ts +10 -0
- package/src/models/AccessCardRequestModel.ts +135 -135
- package/src/models/AccommodationApprovalModel.ts +8 -8
- package/src/models/AccommodationRequestModel.ts +8 -8
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
- package/src/models/AnnualIncrementRequestModel.ts +25 -25
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- 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/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/EmployeeSecurityDriveMasterModel.ts +31 -0
- package/src/models/EmployeeSecurityDriveModel.ts +18 -0
- package/src/models/EmployeeSecurityFileAccessModel.ts +42 -0
- package/src/models/EmployeeSecurityFileAuditLogModel.ts +23 -0
- package/src/models/EmployeeSecurityFileModel.ts +50 -0
- package/src/models/EmployeeSecurityFileTypeModel.ts +14 -0
- package/src/models/EmployeeSecurityFileVersionModel.ts +26 -0
- package/src/models/EmployeeSecurityFolderModel.ts +29 -0
- package/src/models/HotelApprovalModel.ts +83 -83
- package/src/models/HousingContractCancelApprovalModel.ts +64 -64
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalApprovalModel.ts +64 -64
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/HrServiceRequestModel.ts +193 -193
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/LegalConsultationApprovalModel.ts +65 -65
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/NotificationModel.ts +89 -89
- 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/ResidentialUnitRentalApprovalModel.ts +143 -143
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/RespondToEnquiriesRequestModel.ts +31 -31
- package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -87
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/SkillsEnhancementRequestModel.ts +17 -17
- package/src/models/SlaRequestModel.ts +65 -65
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -164
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/src/models/UserSkillModel.ts +56 -56
- package/src/models/role.ts +34 -34
- package/src/models/user.ts +233 -233
- package/dist/models/DocumentMetadataModel.d.ts +0 -45
- package/dist/models/DocumentMetadataModel.js +0 -171
- package/dist/models/DocumentationDepartmentsModel.d.ts +0 -13
- package/dist/models/DocumentationDepartmentsModel.js +0 -53
- package/dist/models/FolderModel.d.ts +0 -16
- package/dist/models/FolderModel.js +0 -85
- package/dist/models/ImportExportMaterialModels.d.ts +0 -92
- package/dist/models/ImportExportMaterialModels.js +0 -307
- package/dist/models/PermissionModel.d.ts +0 -18
- package/dist/models/PermissionModel.js +0 -68
- package/dist/models/SecurityAccessApprovalModel.d.ts +0 -23
- package/dist/models/SecurityAccessApprovalModel.js +0 -82
- package/dist/models/SecurityAccessAttachmentModel.d.ts +0 -12
- package/dist/models/SecurityAccessAttachmentModel.js +0 -56
- package/dist/models/SecurityAccessChatModel.d.ts +0 -12
- package/dist/models/SecurityAccessRequestModel.d.ts +0 -25
- package/dist/models/SecurityAccessRequestModel.js +0 -80
- package/dist/models/SecurityAccessWorkflowModel.d.ts +0 -24
- package/dist/models/SecurityAccessWorkflowModel.js +0 -84
- package/dist/models/ServiceExtensionAfterAge60Models.d.ts +0 -93
- package/dist/models/ServiceExtensionAfterAge60Models.js +0 -312
- package/dist/models/UUIDBaseModel.d.ts +0 -14
- package/dist/models/UUIDBaseModel.js +0 -66
- package/dist/models/WorkingHoursExtensionModels.d.ts +0 -88
- package/dist/models/WorkingHoursExtensionModels.js +0 -295
|
@@ -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);
|
|
@@ -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.
|
|
3
|
+
"version": "2.3.250",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@platform-modules/civil-aviation-authority": "^2.3.
|
|
14
|
+
"@platform-modules/civil-aviation-authority": "^2.3.249",
|
|
15
15
|
"moment-timezone": "^0.6.0",
|
|
16
16
|
"pg": "^8.16.0",
|
|
17
17
|
"typeorm": "^0.3.17"
|
package/src/index.ts
CHANGED
|
@@ -365,6 +365,16 @@ export * from './models/DocumentVersionModel';
|
|
|
365
365
|
export * from './models/DocumentAccessModel';
|
|
366
366
|
export * from './models/DepartmentDocumentOwnerModel';
|
|
367
367
|
|
|
368
|
+
// Employee Security Files Service
|
|
369
|
+
export * from './models/EmployeeSecurityDriveMasterModel';
|
|
370
|
+
export * from './models/EmployeeSecurityFileModel';
|
|
371
|
+
export * from './models/EmployeeSecurityFileTypeModel';
|
|
372
|
+
export * from './models/EmployeeSecurityFolderModel';
|
|
373
|
+
export * from './models/EmployeeSecurityDriveModel';
|
|
374
|
+
export * from './models/EmployeeSecurityFileAuditLogModel';
|
|
375
|
+
export * from './models/EmployeeSecurityFileVersionModel';
|
|
376
|
+
export * from './models/EmployeeSecurityFileAccessModel';
|
|
377
|
+
|
|
368
378
|
// Residential Unit Rental Service
|
|
369
379
|
export * from './models/ResidentialUnitRentalRequestModel';
|
|
370
380
|
export * from './models/ResidentialUnitRentalWorkflowModel';
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum AccessCardRequestFor {
|
|
5
|
-
SELF = "Self",
|
|
6
|
-
BEHALF = "Behalf"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum AccessCardRequestType {
|
|
10
|
-
NEW = "New",
|
|
11
|
-
RENEWAL = "Renewal"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum AccessCardCategory {
|
|
15
|
-
TRAINEE = "Trainee",
|
|
16
|
-
WORKER = "Workers",
|
|
17
|
-
EMPLOYEE = "Employees",
|
|
18
|
-
CONTRACTOR = "Contractors"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum AccessCardRequestStatus {
|
|
22
|
-
PENDING = "Pending",
|
|
23
|
-
IN_PROGRESS = "In Progress",
|
|
24
|
-
APPROVED = "Approved",
|
|
25
|
-
REJECTED = "Rejected"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Entity({ name: "access_card_requests" })
|
|
29
|
-
export class AccessCardRequest extends BaseModel {
|
|
30
|
-
@Column({ type: "int", nullable: true })
|
|
31
|
-
req_user_department_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "int", nullable: true })
|
|
34
|
-
req_user_section_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "int", nullable: true })
|
|
37
|
-
service_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "int", nullable: true })
|
|
40
|
-
sub_service_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "int", nullable: false })
|
|
43
|
-
user_id: number;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "enum", enum: AccessCardRequestFor, nullable: false })
|
|
46
|
-
request_for: AccessCardRequestFor;
|
|
47
|
-
|
|
48
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
49
|
-
name: string;
|
|
50
|
-
|
|
51
|
-
@Column({ type: "varchar", length: 100, nullable: false })
|
|
52
|
-
id_number: string;
|
|
53
|
-
|
|
54
|
-
@Column({ type: "varchar", length: 50, nullable: false })
|
|
55
|
-
phone_number: string;
|
|
56
|
-
|
|
57
|
-
@Column({ type: "varchar", length: 255, nullable: false })
|
|
58
|
-
email_id: string;
|
|
59
|
-
|
|
60
|
-
@Column({ type: "enum", enum: AccessCardRequestType, nullable: false })
|
|
61
|
-
request_type: AccessCardRequestType;
|
|
62
|
-
|
|
63
|
-
@Column({ type: "enum", enum: AccessCardCategory, nullable: false })
|
|
64
|
-
category: AccessCardCategory;
|
|
65
|
-
|
|
66
|
-
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
|
-
approval_route: string | null;
|
|
68
|
-
|
|
69
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
-
organization: string | null;
|
|
71
|
-
|
|
72
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
|
-
access_card_no: string | null;
|
|
74
|
-
|
|
75
|
-
@Column({ type: "text", nullable: false })
|
|
76
|
-
reason: string;
|
|
77
|
-
|
|
78
|
-
@Column({ type: "date", nullable: true })
|
|
79
|
-
request_date: Date;
|
|
80
|
-
|
|
81
|
-
@Column({
|
|
82
|
-
type: "enum",
|
|
83
|
-
enum: AccessCardRequestStatus,
|
|
84
|
-
default: AccessCardRequestStatus.PENDING,
|
|
85
|
-
nullable: false
|
|
86
|
-
})
|
|
87
|
-
status: AccessCardRequestStatus;
|
|
88
|
-
|
|
89
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
90
|
-
workflow_execution_id: string | null;
|
|
91
|
-
|
|
92
|
-
constructor(
|
|
93
|
-
request_for: AccessCardRequestFor,
|
|
94
|
-
name: string,
|
|
95
|
-
id_number: string,
|
|
96
|
-
phone_number: string,
|
|
97
|
-
email_id: string,
|
|
98
|
-
request_type: AccessCardRequestType,
|
|
99
|
-
category: AccessCardCategory,
|
|
100
|
-
organization: string | null,
|
|
101
|
-
reason: string,
|
|
102
|
-
request_date: Date,
|
|
103
|
-
user_id: number,
|
|
104
|
-
status: AccessCardRequestStatus = AccessCardRequestStatus.PENDING,
|
|
105
|
-
approval_route?: string | null,
|
|
106
|
-
service_id?: number,
|
|
107
|
-
sub_service_id?: number,
|
|
108
|
-
req_user_department_id?: number,
|
|
109
|
-
req_user_section_id?: number,
|
|
110
|
-
access_card_no?: string | null,
|
|
111
|
-
workflow_execution_id?: string | null
|
|
112
|
-
) {
|
|
113
|
-
super();
|
|
114
|
-
this.request_for = request_for;
|
|
115
|
-
this.name = name;
|
|
116
|
-
this.id_number = id_number;
|
|
117
|
-
this.phone_number = phone_number;
|
|
118
|
-
this.email_id = email_id;
|
|
119
|
-
this.request_type = request_type;
|
|
120
|
-
this.category = category;
|
|
121
|
-
this.organization = organization ?? null;
|
|
122
|
-
this.reason = reason;
|
|
123
|
-
this.request_date = request_date;
|
|
124
|
-
this.user_id = user_id;
|
|
125
|
-
this.status = status;
|
|
126
|
-
this.approval_route = approval_route ?? null;
|
|
127
|
-
this.service_id = service_id ?? null;
|
|
128
|
-
this.sub_service_id = sub_service_id ?? null;
|
|
129
|
-
this.req_user_department_id = req_user_department_id ?? null;
|
|
130
|
-
this.req_user_section_id = req_user_section_id ?? null;
|
|
131
|
-
this.access_card_no = access_card_no ?? null;
|
|
132
|
-
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum AccessCardRequestFor {
|
|
5
|
+
SELF = "Self",
|
|
6
|
+
BEHALF = "Behalf"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum AccessCardRequestType {
|
|
10
|
+
NEW = "New",
|
|
11
|
+
RENEWAL = "Renewal"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum AccessCardCategory {
|
|
15
|
+
TRAINEE = "Trainee",
|
|
16
|
+
WORKER = "Workers",
|
|
17
|
+
EMPLOYEE = "Employees",
|
|
18
|
+
CONTRACTOR = "Contractors"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum AccessCardRequestStatus {
|
|
22
|
+
PENDING = "Pending",
|
|
23
|
+
IN_PROGRESS = "In Progress",
|
|
24
|
+
APPROVED = "Approved",
|
|
25
|
+
REJECTED = "Rejected"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@Entity({ name: "access_card_requests" })
|
|
29
|
+
export class AccessCardRequest extends BaseModel {
|
|
30
|
+
@Column({ type: "int", nullable: true })
|
|
31
|
+
req_user_department_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "int", nullable: true })
|
|
34
|
+
req_user_section_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "int", nullable: true })
|
|
37
|
+
service_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "int", nullable: true })
|
|
40
|
+
sub_service_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "int", nullable: false })
|
|
43
|
+
user_id: number;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "enum", enum: AccessCardRequestFor, nullable: false })
|
|
46
|
+
request_for: AccessCardRequestFor;
|
|
47
|
+
|
|
48
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
49
|
+
name: string;
|
|
50
|
+
|
|
51
|
+
@Column({ type: "varchar", length: 100, nullable: false })
|
|
52
|
+
id_number: string;
|
|
53
|
+
|
|
54
|
+
@Column({ type: "varchar", length: 50, nullable: false })
|
|
55
|
+
phone_number: string;
|
|
56
|
+
|
|
57
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
58
|
+
email_id: string;
|
|
59
|
+
|
|
60
|
+
@Column({ type: "enum", enum: AccessCardRequestType, nullable: false })
|
|
61
|
+
request_type: AccessCardRequestType;
|
|
62
|
+
|
|
63
|
+
@Column({ type: "enum", enum: AccessCardCategory, nullable: false })
|
|
64
|
+
category: AccessCardCategory;
|
|
65
|
+
|
|
66
|
+
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
|
+
approval_route: string | null;
|
|
68
|
+
|
|
69
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
+
organization: string | null;
|
|
71
|
+
|
|
72
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
|
+
access_card_no: string | null;
|
|
74
|
+
|
|
75
|
+
@Column({ type: "text", nullable: false })
|
|
76
|
+
reason: string;
|
|
77
|
+
|
|
78
|
+
@Column({ type: "date", nullable: true })
|
|
79
|
+
request_date: Date;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
type: "enum",
|
|
83
|
+
enum: AccessCardRequestStatus,
|
|
84
|
+
default: AccessCardRequestStatus.PENDING,
|
|
85
|
+
nullable: false
|
|
86
|
+
})
|
|
87
|
+
status: AccessCardRequestStatus;
|
|
88
|
+
|
|
89
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
90
|
+
workflow_execution_id: string | null;
|
|
91
|
+
|
|
92
|
+
constructor(
|
|
93
|
+
request_for: AccessCardRequestFor,
|
|
94
|
+
name: string,
|
|
95
|
+
id_number: string,
|
|
96
|
+
phone_number: string,
|
|
97
|
+
email_id: string,
|
|
98
|
+
request_type: AccessCardRequestType,
|
|
99
|
+
category: AccessCardCategory,
|
|
100
|
+
organization: string | null,
|
|
101
|
+
reason: string,
|
|
102
|
+
request_date: Date,
|
|
103
|
+
user_id: number,
|
|
104
|
+
status: AccessCardRequestStatus = AccessCardRequestStatus.PENDING,
|
|
105
|
+
approval_route?: string | null,
|
|
106
|
+
service_id?: number,
|
|
107
|
+
sub_service_id?: number,
|
|
108
|
+
req_user_department_id?: number,
|
|
109
|
+
req_user_section_id?: number,
|
|
110
|
+
access_card_no?: string | null,
|
|
111
|
+
workflow_execution_id?: string | null
|
|
112
|
+
) {
|
|
113
|
+
super();
|
|
114
|
+
this.request_for = request_for;
|
|
115
|
+
this.name = name;
|
|
116
|
+
this.id_number = id_number;
|
|
117
|
+
this.phone_number = phone_number;
|
|
118
|
+
this.email_id = email_id;
|
|
119
|
+
this.request_type = request_type;
|
|
120
|
+
this.category = category;
|
|
121
|
+
this.organization = organization ?? null;
|
|
122
|
+
this.reason = reason;
|
|
123
|
+
this.request_date = request_date;
|
|
124
|
+
this.user_id = user_id;
|
|
125
|
+
this.status = status;
|
|
126
|
+
this.approval_route = approval_route ?? null;
|
|
127
|
+
this.service_id = service_id ?? null;
|
|
128
|
+
this.sub_service_id = sub_service_id ?? null;
|
|
129
|
+
this.req_user_department_id = req_user_department_id ?? null;
|
|
130
|
+
this.req_user_section_id = req_user_section_id ?? null;
|
|
131
|
+
this.access_card_no = access_card_no ?? null;
|
|
132
|
+
this.workflow_execution_id = workflow_execution_id ?? null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -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',
|
|
@@ -134,14 +134,14 @@ export class AccommodationRequest extends BaseModel {
|
|
|
134
134
|
@Column({ type: 'int', nullable: true })
|
|
135
135
|
assigned_to_user_id: number | null;
|
|
136
136
|
|
|
137
|
-
@Column({ type: 'text', nullable: true })
|
|
138
|
-
approver_comment: string | null;
|
|
139
|
-
|
|
140
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
-
accommodation_allocated: string | null;
|
|
142
|
-
|
|
143
|
-
@Column({ type: 'int', nullable: true })
|
|
144
|
-
approved_by: number | null;
|
|
137
|
+
@Column({ type: 'text', nullable: true })
|
|
138
|
+
approver_comment: string | null;
|
|
139
|
+
|
|
140
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
+
accommodation_allocated: string | null;
|
|
142
|
+
|
|
143
|
+
@Column({ type: 'int', nullable: true })
|
|
144
|
+
approved_by: number | null;
|
|
145
145
|
|
|
146
146
|
@Column({ type: 'date', nullable: true })
|
|
147
147
|
approved_at: Date | null;
|