@platform-modules/civil-aviation-authority 2.3.193 → 2.3.200

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 (116) hide show
  1. package/.env +8 -0
  2. package/dist/data-source.js +30 -0
  3. package/dist/index.d.ts +15 -0
  4. package/dist/index.js +16 -0
  5. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  6. package/dist/models/DocumentMetadataModel.js +171 -0
  7. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  8. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  9. package/dist/models/FolderModel.d.ts +16 -0
  10. package/dist/models/FolderModel.js +85 -0
  11. package/dist/models/HousingContractCancelApprovalModel.d.ts +1 -0
  12. package/dist/models/HousingContractCancelApprovalModel.js +4 -0
  13. package/dist/models/HousingContractRenewalApprovalModel.d.ts +1 -0
  14. package/dist/models/HousingContractRenewalApprovalModel.js +4 -0
  15. package/dist/models/ImportExportMaterialApprovalModel.d.ts +23 -0
  16. package/dist/models/ImportExportMaterialApprovalModel.js +101 -0
  17. package/dist/models/ImportExportMaterialAttachmentModel.d.ts +12 -0
  18. package/dist/models/ImportExportMaterialAttachmentModel.js +64 -0
  19. package/dist/models/ImportExportMaterialChatModel.d.ts +28 -0
  20. package/dist/models/ImportExportMaterialChatModel.js +86 -0
  21. package/dist/models/ImportExportMaterialModels.d.ts +92 -0
  22. package/dist/models/ImportExportMaterialModels.js +307 -0
  23. package/dist/models/ImportExportMaterialRequestModel.d.ts +33 -0
  24. package/dist/models/ImportExportMaterialRequestModel.js +118 -0
  25. package/dist/models/ImportExportMaterialWorkflowModel.d.ts +18 -0
  26. package/dist/models/ImportExportMaterialWorkflowModel.js +80 -0
  27. package/dist/models/LegalComplaintApprovalModel.d.ts +1 -0
  28. package/dist/models/LegalComplaintApprovalModel.js +4 -0
  29. package/dist/models/LegalConsultationApprovalModel.d.ts +1 -0
  30. package/dist/models/LegalConsultationApprovalModel.js +4 -0
  31. package/dist/models/PermissionModel.d.ts +18 -0
  32. package/dist/models/PermissionModel.js +68 -0
  33. package/dist/models/ResidentialUnitRentalApprovalModel.d.ts +1 -0
  34. package/dist/models/ResidentialUnitRentalApprovalModel.js +4 -0
  35. package/dist/models/SecurityAccessApprovalModel.d.ts +23 -0
  36. package/dist/models/SecurityAccessApprovalModel.js +82 -0
  37. package/dist/models/SecurityAccessAttachmentModel.d.ts +12 -0
  38. package/dist/models/SecurityAccessAttachmentModel.js +56 -0
  39. package/dist/models/SecurityAccessChatModel.d.ts +12 -0
  40. package/dist/models/SecurityAccessChatModel.js +56 -0
  41. package/dist/models/SecurityAccessRequestModel.d.ts +25 -0
  42. package/dist/models/SecurityAccessRequestModel.js +80 -0
  43. package/dist/models/SecurityAccessWorkflowModel.d.ts +24 -0
  44. package/dist/models/SecurityAccessWorkflowModel.js +84 -0
  45. package/dist/models/ServiceExtensionAfter60ApprovalModel.d.ts +23 -0
  46. package/dist/models/ServiceExtensionAfter60ApprovalModel.js +101 -0
  47. package/dist/models/ServiceExtensionAfter60AttachmentModel.d.ts +12 -0
  48. package/dist/models/ServiceExtensionAfter60AttachmentModel.js +64 -0
  49. package/dist/models/ServiceExtensionAfter60ChatModel.d.ts +28 -0
  50. package/dist/models/ServiceExtensionAfter60ChatModel.js +86 -0
  51. package/dist/models/ServiceExtensionAfter60RequestModel.d.ts +28 -0
  52. package/dist/models/ServiceExtensionAfter60RequestModel.js +108 -0
  53. package/dist/models/ServiceExtensionAfter60WorkflowModel.d.ts +18 -0
  54. package/dist/models/ServiceExtensionAfter60WorkflowModel.js +80 -0
  55. package/dist/models/ServiceExtensionAfterAge60Models.d.ts +93 -0
  56. package/dist/models/ServiceExtensionAfterAge60Models.js +312 -0
  57. package/dist/models/UUIDBaseModel.d.ts +14 -0
  58. package/dist/models/UUIDBaseModel.js +66 -0
  59. package/dist/models/WorkingHoursExtensionApprovalModel.d.ts +23 -0
  60. package/dist/models/WorkingHoursExtensionApprovalModel.js +101 -0
  61. package/dist/models/WorkingHoursExtensionAttachmentModel.d.ts +12 -0
  62. package/dist/models/WorkingHoursExtensionAttachmentModel.js +64 -0
  63. package/dist/models/WorkingHoursExtensionChatModel.d.ts +28 -0
  64. package/dist/models/WorkingHoursExtensionChatModel.js +86 -0
  65. package/dist/models/WorkingHoursExtensionModels.d.ts +88 -0
  66. package/dist/models/WorkingHoursExtensionModels.js +295 -0
  67. package/dist/models/WorkingHoursExtensionRequestModel.d.ts +25 -0
  68. package/dist/models/WorkingHoursExtensionRequestModel.js +96 -0
  69. package/dist/models/WorkingHoursExtensionWorkflowModel.d.ts +18 -0
  70. package/dist/models/WorkingHoursExtensionWorkflowModel.js +80 -0
  71. package/package.json +24 -24
  72. package/src/data-source.ts +419 -389
  73. package/src/index.ts +431 -414
  74. package/src/models/AccessCardRequestModel.ts +135 -135
  75. package/src/models/AirportEntryPermitModel.ts +276 -276
  76. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  77. package/src/models/DepartmentsModel.ts +25 -25
  78. package/src/models/DocumentDriveModel.ts +28 -28
  79. package/src/models/DocumentFolderModel.ts +45 -45
  80. package/src/models/HousingContractCancelApprovalModel.ts +64 -61
  81. package/src/models/HousingContractCancelChatModel.ts +56 -56
  82. package/src/models/HousingContractRenewalApprovalModel.ts +64 -61
  83. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  84. package/src/models/ITRequestAttachmentModel.ts +73 -73
  85. package/src/models/ITRequestChatModel.ts +74 -74
  86. package/src/models/ImportExportMaterialApprovalModel.ts +87 -0
  87. package/src/models/ImportExportMaterialAttachmentModel.ts +50 -0
  88. package/src/models/ImportExportMaterialChatModel.ts +61 -0
  89. package/src/models/ImportExportMaterialRequestModel.ts +85 -0
  90. package/src/models/ImportExportMaterialWorkflowModel.ts +51 -0
  91. package/src/models/ItApprovalsModel.ts +84 -84
  92. package/src/models/ItWorkflowModel.ts +55 -55
  93. package/src/models/LegalComplaintApprovalModel.ts +64 -61
  94. package/src/models/LegalConsultationApprovalModel.ts +65 -62
  95. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  96. package/src/models/ResidentialUnitRentalApprovalModel.ts +143 -140
  97. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  98. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  99. package/src/models/ServiceExtensionAfter60ApprovalModel.ts +87 -0
  100. package/src/models/ServiceExtensionAfter60AttachmentModel.ts +50 -0
  101. package/src/models/ServiceExtensionAfter60ChatModel.ts +61 -0
  102. package/src/models/ServiceExtensionAfter60RequestModel.ts +75 -0
  103. package/src/models/ServiceExtensionAfter60WorkflowModel.ts +51 -0
  104. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  105. package/src/models/StudyLeaveRequestModel.ts +144 -144
  106. package/src/models/TrainingRequestModel.ts +164 -164
  107. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  108. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  109. package/src/models/WorkingHoursExtensionApprovalModel.ts +87 -0
  110. package/src/models/WorkingHoursExtensionAttachmentModel.ts +50 -0
  111. package/src/models/WorkingHoursExtensionChatModel.ts +61 -0
  112. package/src/models/WorkingHoursExtensionRequestModel.ts +66 -0
  113. package/src/models/WorkingHoursExtensionWorkflowModel.ts +51 -0
  114. package/src/models/role.ts +34 -34
  115. package/src/models/user.ts +233 -233
  116. package/platform-modules-civil-aviation-authority-2.3.193.tgz +0 -0
@@ -0,0 +1,68 @@
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.Permission = exports.PermissionType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const role_1 = require("./role");
15
+ const UUIDBaseModel_1 = require("./UUIDBaseModel");
16
+ var PermissionType;
17
+ (function (PermissionType) {
18
+ PermissionType["VIEW"] = "view";
19
+ PermissionType["UPLOAD"] = "upload";
20
+ PermissionType["UPDATE"] = "update";
21
+ PermissionType["DELETE"] = "delete";
22
+ PermissionType["PUBLISH"] = "publish";
23
+ })(PermissionType || (exports.PermissionType = PermissionType = {}));
24
+ let Permission = class Permission extends UUIDBaseModel_1.UUIDBaseModel {
25
+ constructor(name, code, type, created_by, description, is_active = true) {
26
+ super();
27
+ this.name = name;
28
+ this.code = code;
29
+ this.type = type;
30
+ this.created_by = created_by;
31
+ this.description = description;
32
+ this.is_active = is_active;
33
+ }
34
+ };
35
+ exports.Permission = Permission;
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
38
+ __metadata("design:type", String)
39
+ ], Permission.prototype, "name", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true }),
42
+ __metadata("design:type", String)
43
+ ], Permission.prototype, "code", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'enum', enum: PermissionType }),
46
+ __metadata("design:type", String)
47
+ ], Permission.prototype, "type", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], Permission.prototype, "description", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
54
+ __metadata("design:type", Boolean)
55
+ ], Permission.prototype, "is_active", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.ManyToMany)(() => role_1.Role),
58
+ (0, typeorm_1.JoinTable)({
59
+ name: 'role_permissions',
60
+ joinColumn: { name: 'permission_id', referencedColumnName: 'id' },
61
+ inverseJoinColumn: { name: 'role_id', referencedColumnName: 'id' },
62
+ }),
63
+ __metadata("design:type", Array)
64
+ ], Permission.prototype, "roles", void 0);
65
+ exports.Permission = Permission = __decorate([
66
+ (0, typeorm_1.Entity)({ name: 'permissions' }),
67
+ __metadata("design:paramtypes", [String, String, String, String, String, Boolean])
68
+ ], Permission);
@@ -18,6 +18,7 @@ export declare class ResidentialUnitRentalApproval extends BaseModel {
18
18
  level: number;
19
19
  approval_status: ResidentialUnitRentalApprovalStatus;
20
20
  comment: string;
21
+ is_allowed: boolean;
21
22
  created_by: number;
22
23
  constructor();
23
24
  }
@@ -78,6 +78,10 @@ __decorate([
78
78
  (0, typeorm_1.Column)({ type: 'text', nullable: true }),
79
79
  __metadata("design:type", String)
80
80
  ], ResidentialUnitRentalApproval.prototype, "comment", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
83
+ __metadata("design:type", Boolean)
84
+ ], ResidentialUnitRentalApproval.prototype, "is_allowed", void 0);
81
85
  __decorate([
82
86
  (0, typeorm_1.Column)({ type: 'int', nullable: false }),
83
87
  __metadata("design:type", Number)
@@ -0,0 +1,23 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum SecurityAccessApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected",
7
+ RFC = "RFC",
8
+ REASSIGNED = "Reassigned"
9
+ }
10
+ export declare class SecurityAccessApproval extends BaseModel {
11
+ request_id: number;
12
+ service_id: number | null;
13
+ sub_service_id: number | null;
14
+ level: number;
15
+ approver_user_id: number | null;
16
+ approver_role_id: number | null;
17
+ department_id: number | null;
18
+ section_id: number | null;
19
+ delegate_user_id: number | null;
20
+ approved_by: number | null;
21
+ comment: string;
22
+ approval_status: SecurityAccessApprovalStatus;
23
+ }
@@ -0,0 +1,82 @@
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.SecurityAccessApproval = exports.SecurityAccessApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var SecurityAccessApprovalStatus;
16
+ (function (SecurityAccessApprovalStatus) {
17
+ SecurityAccessApprovalStatus["PENDING"] = "Pending";
18
+ SecurityAccessApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ SecurityAccessApprovalStatus["APPROVED"] = "Approved";
20
+ SecurityAccessApprovalStatus["REJECTED"] = "Rejected";
21
+ SecurityAccessApprovalStatus["RFC"] = "RFC";
22
+ SecurityAccessApprovalStatus["REASSIGNED"] = "Reassigned";
23
+ })(SecurityAccessApprovalStatus || (exports.SecurityAccessApprovalStatus = SecurityAccessApprovalStatus = {}));
24
+ let SecurityAccessApproval = class SecurityAccessApproval extends BaseModel_1.BaseModel {
25
+ };
26
+ exports.SecurityAccessApproval = SecurityAccessApproval;
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
29
+ __metadata("design:type", Number)
30
+ ], SecurityAccessApproval.prototype, "request_id", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], SecurityAccessApproval.prototype, "service_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], SecurityAccessApproval.prototype, "sub_service_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
41
+ __metadata("design:type", Number)
42
+ ], SecurityAccessApproval.prototype, "level", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], SecurityAccessApproval.prototype, "approver_user_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], SecurityAccessApproval.prototype, "approver_role_id", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
53
+ __metadata("design:type", Object)
54
+ ], SecurityAccessApproval.prototype, "department_id", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], SecurityAccessApproval.prototype, "section_id", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], SecurityAccessApproval.prototype, "delegate_user_id", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], SecurityAccessApproval.prototype, "approved_by", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true, default: "" }),
69
+ __metadata("design:type", String)
70
+ ], SecurityAccessApproval.prototype, "comment", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({
73
+ type: "enum",
74
+ enum: SecurityAccessApprovalStatus,
75
+ default: SecurityAccessApprovalStatus.PENDING,
76
+ nullable: false,
77
+ }),
78
+ __metadata("design:type", String)
79
+ ], SecurityAccessApproval.prototype, "approval_status", void 0);
80
+ exports.SecurityAccessApproval = SecurityAccessApproval = __decorate([
81
+ (0, typeorm_1.Entity)({ name: "security_access_approvals" })
82
+ ], SecurityAccessApproval);
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class SecurityAccessRequestAttachment extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ file_url: string;
7
+ file_name: string | null;
8
+ file_type: string | null;
9
+ file_size: number | null;
10
+ attachment_kind: string | null;
11
+ uploaded_by: number | null;
12
+ }
@@ -0,0 +1,56 @@
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.SecurityAccessRequestAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let SecurityAccessRequestAttachment = class SecurityAccessRequestAttachment extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.SecurityAccessRequestAttachment = SecurityAccessRequestAttachment;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], SecurityAccessRequestAttachment.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], SecurityAccessRequestAttachment.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], SecurityAccessRequestAttachment.prototype, "sub_service_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "varchar", length: 512, nullable: false }),
32
+ __metadata("design:type", String)
33
+ ], SecurityAccessRequestAttachment.prototype, "file_url", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], SecurityAccessRequestAttachment.prototype, "file_name", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], SecurityAccessRequestAttachment.prototype, "file_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], SecurityAccessRequestAttachment.prototype, "file_size", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 128, nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], SecurityAccessRequestAttachment.prototype, "attachment_kind", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], SecurityAccessRequestAttachment.prototype, "uploaded_by", void 0);
54
+ exports.SecurityAccessRequestAttachment = SecurityAccessRequestAttachment = __decorate([
55
+ (0, typeorm_1.Entity)({ name: "security_access_request_attachments" })
56
+ ], SecurityAccessRequestAttachment);
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class SecurityAccessRequestChat extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ user_id: number;
7
+ message: string;
8
+ message_type: string;
9
+ is_internal: boolean;
10
+ status: string;
11
+ approver_role_id: number | null;
12
+ }
@@ -0,0 +1,56 @@
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.SecurityAccessRequestChat = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let SecurityAccessRequestChat = class SecurityAccessRequestChat extends BaseModel_1.BaseModel {
16
+ };
17
+ exports.SecurityAccessRequestChat = SecurityAccessRequestChat;
18
+ __decorate([
19
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
20
+ __metadata("design:type", Number)
21
+ ], SecurityAccessRequestChat.prototype, "request_id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
24
+ __metadata("design:type", Object)
25
+ ], SecurityAccessRequestChat.prototype, "service_id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], SecurityAccessRequestChat.prototype, "sub_service_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
32
+ __metadata("design:type", Number)
33
+ ], SecurityAccessRequestChat.prototype, "user_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
36
+ __metadata("design:type", String)
37
+ ], SecurityAccessRequestChat.prototype, "message", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "varchar", length: 32, nullable: false, default: "text" }),
40
+ __metadata("design:type", String)
41
+ ], SecurityAccessRequestChat.prototype, "message_type", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "boolean", default: false }),
44
+ __metadata("design:type", Boolean)
45
+ ], SecurityAccessRequestChat.prototype, "is_internal", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: false, default: "Pending" }),
48
+ __metadata("design:type", String)
49
+ ], SecurityAccessRequestChat.prototype, "status", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], SecurityAccessRequestChat.prototype, "approver_role_id", void 0);
54
+ exports.SecurityAccessRequestChat = SecurityAccessRequestChat = __decorate([
55
+ (0, typeorm_1.Entity)({ name: "security_access_request_chat" })
56
+ ], SecurityAccessRequestChat);
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum SecurityAccessRequestStatus {
3
+ Pending = "Pending",
4
+ InProgress = "In Progress",
5
+ Approved = "Approved",
6
+ Rejected = "Rejected",
7
+ RFC = "RFC"
8
+ }
9
+ /** Discriminator for multi-service Security & Access flows (matches requestData.requestKind / workflow). */
10
+ export type SecurityAccessRequestKind = "extension_after_60" | "import_export_material" | "extension_working_hours";
11
+ export declare class SecurityAccessRequest extends BaseModel {
12
+ req_user_department_id: number | null;
13
+ req_user_section_id: number | null;
14
+ service_id: number | null;
15
+ sub_service_id: number | null;
16
+ user_id: number;
17
+ title: string;
18
+ description: string | null;
19
+ request_kind: string | null;
20
+ directorate: string | null;
21
+ form_data: Record<string, unknown> | null;
22
+ status: string;
23
+ workflow_execution_id: string | null;
24
+ assigned_to_user_id: number | null;
25
+ }
@@ -0,0 +1,80 @@
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.SecurityAccessRequest = exports.SecurityAccessRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var SecurityAccessRequestStatus;
16
+ (function (SecurityAccessRequestStatus) {
17
+ SecurityAccessRequestStatus["Pending"] = "Pending";
18
+ SecurityAccessRequestStatus["InProgress"] = "In Progress";
19
+ SecurityAccessRequestStatus["Approved"] = "Approved";
20
+ SecurityAccessRequestStatus["Rejected"] = "Rejected";
21
+ SecurityAccessRequestStatus["RFC"] = "RFC";
22
+ })(SecurityAccessRequestStatus || (exports.SecurityAccessRequestStatus = SecurityAccessRequestStatus = {}));
23
+ let SecurityAccessRequest = class SecurityAccessRequest extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.SecurityAccessRequest = SecurityAccessRequest;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
28
+ __metadata("design:type", Object)
29
+ ], SecurityAccessRequest.prototype, "req_user_department_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], SecurityAccessRequest.prototype, "req_user_section_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], SecurityAccessRequest.prototype, "service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], SecurityAccessRequest.prototype, "sub_service_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
44
+ __metadata("design:type", Number)
45
+ ], SecurityAccessRequest.prototype, "user_id", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
48
+ __metadata("design:type", String)
49
+ ], SecurityAccessRequest.prototype, "title", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
52
+ __metadata("design:type", Object)
53
+ ], SecurityAccessRequest.prototype, "description", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "varchar", length: 64, nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], SecurityAccessRequest.prototype, "request_kind", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], SecurityAccessRequest.prototype, "directorate", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], SecurityAccessRequest.prototype, "form_data", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false, default: SecurityAccessRequestStatus.Pending }),
68
+ __metadata("design:type", String)
69
+ ], SecurityAccessRequest.prototype, "status", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], SecurityAccessRequest.prototype, "workflow_execution_id", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], SecurityAccessRequest.prototype, "assigned_to_user_id", void 0);
78
+ exports.SecurityAccessRequest = SecurityAccessRequest = __decorate([
79
+ (0, typeorm_1.Entity)({ name: "security_access_requests" })
80
+ ], SecurityAccessRequest);
@@ -0,0 +1,24 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum SecurityAccessWorkFlowStatus {
3
+ Pending = "Pending",
4
+ InProgress = "In Progress",
5
+ Approved = "Approved",
6
+ Rejected = "Rejected",
7
+ RFC = "RFC"
8
+ }
9
+ export declare class SecurityAccessWorkflow extends BaseModel {
10
+ request_id: number;
11
+ service_id: number | null;
12
+ sub_service_id: number | null;
13
+ workflow_definition_id: number | null;
14
+ current_level: number | null;
15
+ content: string | null;
16
+ status: string;
17
+ step_order: number | null;
18
+ user_id: number | null;
19
+ role_id: number | null;
20
+ department_id: number | null;
21
+ section_id: number | null;
22
+ workflow_data: string | null;
23
+ created_by: number;
24
+ }
@@ -0,0 +1,84 @@
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.SecurityAccessWorkflow = exports.SecurityAccessWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var SecurityAccessWorkFlowStatus;
16
+ (function (SecurityAccessWorkFlowStatus) {
17
+ SecurityAccessWorkFlowStatus["Pending"] = "Pending";
18
+ SecurityAccessWorkFlowStatus["InProgress"] = "In Progress";
19
+ SecurityAccessWorkFlowStatus["Approved"] = "Approved";
20
+ SecurityAccessWorkFlowStatus["Rejected"] = "Rejected";
21
+ SecurityAccessWorkFlowStatus["RFC"] = "RFC";
22
+ })(SecurityAccessWorkFlowStatus || (exports.SecurityAccessWorkFlowStatus = SecurityAccessWorkFlowStatus = {}));
23
+ let SecurityAccessWorkflow = class SecurityAccessWorkflow extends BaseModel_1.BaseModel {
24
+ };
25
+ exports.SecurityAccessWorkflow = SecurityAccessWorkflow;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "int", nullable: false }),
28
+ __metadata("design:type", Number)
29
+ ], SecurityAccessWorkflow.prototype, "request_id", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], SecurityAccessWorkflow.prototype, "service_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], SecurityAccessWorkflow.prototype, "sub_service_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], SecurityAccessWorkflow.prototype, "workflow_definition_id", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], SecurityAccessWorkflow.prototype, "current_level", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], SecurityAccessWorkflow.prototype, "content", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
52
+ __metadata("design:type", String)
53
+ ], SecurityAccessWorkflow.prototype, "status", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], SecurityAccessWorkflow.prototype, "step_order", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], SecurityAccessWorkflow.prototype, "user_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], SecurityAccessWorkflow.prototype, "role_id", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], SecurityAccessWorkflow.prototype, "department_id", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], SecurityAccessWorkflow.prototype, "section_id", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], SecurityAccessWorkflow.prototype, "workflow_data", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "int", nullable: false }),
80
+ __metadata("design:type", Number)
81
+ ], SecurityAccessWorkflow.prototype, "created_by", void 0);
82
+ exports.SecurityAccessWorkflow = SecurityAccessWorkflow = __decorate([
83
+ (0, typeorm_1.Entity)({ name: "security_access_workflow" })
84
+ ], SecurityAccessWorkflow);
@@ -0,0 +1,23 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum ServiceExtensionAfter60ApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class ServiceExtensionAfter60Approval extends BaseModel {
9
+ request_id: number;
10
+ service_id: number | null;
11
+ sub_service_id: number | null;
12
+ level: number;
13
+ approver_role_id: number;
14
+ department_id: number | null;
15
+ section_id: number | null;
16
+ approver_user_id: number | null;
17
+ delegate_user_id: number | null;
18
+ approved_by: number | null;
19
+ comment: string;
20
+ approval_status: ServiceExtensionAfter60ApprovalStatus;
21
+ is_allowed: boolean;
22
+ constructor(request_id: number, approver_role_id: number, level: number, comment: string, approval_status: ServiceExtensionAfter60ApprovalStatus, service_id?: number, sub_service_id?: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, is_allowed?: boolean);
23
+ }