@platform-modules/civil-aviation-authority 2.3.87 → 2.3.90

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 (66) hide show
  1. package/.env +17 -9
  2. package/dist/data-source.js +13 -1
  3. package/dist/index.d.ts +8 -0
  4. package/dist/index.js +17 -1
  5. package/dist/models/DepartmentDocumentOwnerModel.d.ts +10 -0
  6. package/dist/models/DepartmentDocumentOwnerModel.js +44 -0
  7. package/dist/models/DocumentAuditLogModel.d.ts +13 -0
  8. package/dist/models/DocumentAuditLogModel.js +60 -0
  9. package/dist/models/DocumentFolderModel.d.ts +14 -0
  10. package/dist/models/DocumentFolderModel.js +60 -0
  11. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  12. package/dist/models/DocumentMetadataModel.js +171 -0
  13. package/dist/models/DocumentModel.d.ts +25 -0
  14. package/dist/models/DocumentModel.js +96 -0
  15. package/dist/models/DocumentPermissionModel.d.ts +11 -0
  16. package/dist/models/DocumentPermissionModel.js +52 -0
  17. package/dist/models/DocumentTypeModel.d.ts +8 -0
  18. package/dist/models/{ITServicesTypesMuscatModel.js → DocumentTypeModel.js} +19 -16
  19. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  20. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  21. package/dist/models/FolderModel.d.ts +16 -0
  22. package/dist/models/FolderModel.js +85 -0
  23. package/dist/models/HumanResourceAnnualPlanningRequestModel.d.ts +35 -0
  24. package/dist/models/HumanResourceAnnualPlanningRequestModel.js +121 -0
  25. package/dist/models/HumanResourceAnnualPlanningTaskModel.d.ts +25 -0
  26. package/dist/models/HumanResourceAnnualPlanningTaskModel.js +83 -0
  27. package/dist/models/PerformanceCyclePeriodModel.d.ts +7 -0
  28. package/dist/models/PerformanceCyclePeriodModel.js +40 -0
  29. package/dist/models/PerformanceGoalMasterModel.d.ts +8 -0
  30. package/dist/models/PerformanceGoalMasterModel.js +45 -0
  31. package/dist/models/PerformanceManagementRequestModel.d.ts +34 -0
  32. package/dist/models/PerformanceManagementRequestModel.js +128 -0
  33. package/dist/models/PermissionModel.d.ts +18 -0
  34. package/dist/models/PermissionModel.js +68 -0
  35. package/dist/models/UUIDBaseModel.d.ts +14 -0
  36. package/dist/models/UUIDBaseModel.js +66 -0
  37. package/package.json +1 -1
  38. package/src/data-source.ts +13 -1
  39. package/src/index.ts +13 -1
  40. package/src/models/DepartmentDocumentOwnerModel.ts +25 -0
  41. package/src/models/DepartmentsModel.ts +25 -25
  42. package/src/models/DocumentAuditLogModel.ts +38 -0
  43. package/src/models/DocumentFolderModel.ts +37 -0
  44. package/src/models/DocumentModel.ts +65 -0
  45. package/src/models/DocumentPermissionModel.ts +32 -0
  46. package/src/models/DocumentTypeModel.ts +19 -0
  47. package/src/models/HumanResourceAnnualPlanningRequestModel.ts +108 -0
  48. package/src/models/HumanResourceAnnualPlanningTaskModel.ts +70 -0
  49. package/src/models/ITRequestChatModel.ts +62 -62
  50. package/src/models/ItApprovalsModel.ts +84 -84
  51. package/src/models/ItWorkflowModel.ts +55 -55
  52. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  53. package/src/models/PerformanceCyclePeriodModel.ts +23 -0
  54. package/src/models/PerformanceGoalMasterModel.ts +27 -0
  55. package/src/models/PerformanceManagementRequestModel.ts +115 -0
  56. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  57. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  58. package/dist/models/HotelreservationModal.d.ts +0 -30
  59. package/dist/models/HotelreservationModal.js +0 -119
  60. package/dist/models/ITApprovalSettings.d.ts +0 -7
  61. package/dist/models/ITApprovalSettings.js +0 -40
  62. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  63. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  64. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  65. package/dist/models/Workflows.d.ts +0 -0
  66. package/dist/models/Workflows.js +0 -31
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './BaseModel';
2
+ import { Role } from './role';
3
+ import { Document } from './DocumentModel';
4
+ export declare class DocumentPermission extends BaseModel {
5
+ document_id: number;
6
+ role_id: number;
7
+ permission_type: string;
8
+ is_active: boolean;
9
+ document?: Document;
10
+ role?: Role;
11
+ }
@@ -0,0 +1,52 @@
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.DocumentPermission = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const role_1 = require("./role");
16
+ const DocumentModel_1 = require("./DocumentModel");
17
+ let DocumentPermission = class DocumentPermission extends BaseModel_1.BaseModel {
18
+ };
19
+ exports.DocumentPermission = DocumentPermission;
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
22
+ __metadata("design:type", Number)
23
+ ], DocumentPermission.prototype, "document_id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], DocumentPermission.prototype, "role_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({
30
+ type: 'varchar',
31
+ length: 50,
32
+ nullable: false
33
+ }),
34
+ __metadata("design:type", String)
35
+ ], DocumentPermission.prototype, "permission_type", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: true }),
38
+ __metadata("design:type", Boolean)
39
+ ], DocumentPermission.prototype, "is_active", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.ManyToOne)(() => DocumentModel_1.Document),
42
+ (0, typeorm_1.JoinColumn)({ name: 'document_id' }),
43
+ __metadata("design:type", DocumentModel_1.Document)
44
+ ], DocumentPermission.prototype, "document", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.ManyToOne)(() => role_1.Role),
47
+ (0, typeorm_1.JoinColumn)({ name: 'role_id' }),
48
+ __metadata("design:type", role_1.Role)
49
+ ], DocumentPermission.prototype, "role", void 0);
50
+ exports.DocumentPermission = DocumentPermission = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'document_permissions' })
52
+ ], DocumentPermission);
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from './BaseModel';
2
+ import { Document } from './DocumentModel';
3
+ export declare class DocumentType extends BaseModel {
4
+ name: string;
5
+ description?: string;
6
+ is_active: boolean;
7
+ documents?: Document[];
8
+ }
@@ -9,26 +9,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ITServicesTypesMuscat = void 0;
12
+ exports.DocumentType = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
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
- }
15
+ const DocumentModel_1 = require("./DocumentModel");
16
+ let DocumentType = class DocumentType extends BaseModel_1.BaseModel {
21
17
  };
22
- exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
18
+ exports.DocumentType = DocumentType;
23
19
  __decorate([
24
- (0, typeorm_1.Column)({ nullable: false }),
20
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false, unique: true }),
25
21
  __metadata("design:type", String)
26
- ], ITServicesTypesMuscat.prototype, "name", void 0);
22
+ ], DocumentType.prototype, "name", void 0);
27
23
  __decorate([
28
- (0, typeorm_1.Column)({ nullable: false }),
24
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
29
25
  __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);
26
+ ], DocumentType.prototype, "description", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: true }),
29
+ __metadata("design:type", Boolean)
30
+ ], DocumentType.prototype, "is_active", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.OneToMany)(() => DocumentModel_1.Document, document => document.documentType),
33
+ __metadata("design:type", Array)
34
+ ], DocumentType.prototype, "documents", void 0);
35
+ exports.DocumentType = DocumentType = __decorate([
36
+ (0, typeorm_1.Entity)({ name: 'document_types' })
37
+ ], DocumentType);
@@ -0,0 +1,13 @@
1
+ import { BaseModel } from './BaseModel';
2
+ /**
3
+ * Documentation Service specific department configuration
4
+ * Links departments with authorized persons for document management
5
+ */
6
+ export declare class DocumentationDepartments extends BaseModel {
7
+ department_id: number;
8
+ authorized_person_id: string;
9
+ authorized_person_name?: string;
10
+ authorized_person_email?: string;
11
+ is_active: boolean;
12
+ constructor(department_id: number, authorized_person_id: string, authorized_person_name: string, authorized_person_email: string, is_active?: boolean);
13
+ }
@@ -0,0 +1,53 @@
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.DocumentationDepartments = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ /**
16
+ * Documentation Service specific department configuration
17
+ * Links departments with authorized persons for document management
18
+ */
19
+ let DocumentationDepartments = class DocumentationDepartments extends BaseModel_1.BaseModel {
20
+ constructor(department_id, authorized_person_id, authorized_person_name, authorized_person_email, is_active = true) {
21
+ super();
22
+ this.department_id = department_id;
23
+ this.authorized_person_id = authorized_person_id;
24
+ this.authorized_person_name = authorized_person_name;
25
+ this.authorized_person_email = authorized_person_email;
26
+ this.is_active = is_active;
27
+ }
28
+ };
29
+ exports.DocumentationDepartments = DocumentationDepartments;
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer' }),
32
+ __metadata("design:type", Number)
33
+ ], DocumentationDepartments.prototype, "department_id", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
36
+ __metadata("design:type", String)
37
+ ], DocumentationDepartments.prototype, "authorized_person_id", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], DocumentationDepartments.prototype, "authorized_person_name", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], DocumentationDepartments.prototype, "authorized_person_email", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
48
+ __metadata("design:type", Boolean)
49
+ ], DocumentationDepartments.prototype, "is_active", void 0);
50
+ exports.DocumentationDepartments = DocumentationDepartments = __decorate([
51
+ (0, typeorm_1.Entity)({ name: 'documentation_departments' }),
52
+ __metadata("design:paramtypes", [Number, String, String, String, Boolean])
53
+ ], DocumentationDepartments);
@@ -0,0 +1,16 @@
1
+ import { Departments } from './DepartmentsModel';
2
+ import { UUIDBaseModel } from './UUIDBaseModel';
3
+ export declare class Folder extends UUIDBaseModel {
4
+ name: string;
5
+ path: string;
6
+ parent_path?: string;
7
+ department: Departments;
8
+ department_id: number;
9
+ description?: string;
10
+ access_level: 'general' | 'restricted';
11
+ allowed_roles: string[];
12
+ allowed_users: string[];
13
+ created_by_name?: string;
14
+ is_active: boolean;
15
+ constructor(name: string, path: string, department_id: number, created_by: string, access_level?: 'general' | 'restricted', parent_path?: string, description?: string, created_by_name?: string, allowed_roles?: string[], allowed_users?: string[], is_active?: boolean);
16
+ }
@@ -0,0 +1,85 @@
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.Folder = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const DepartmentsModel_1 = require("./DepartmentsModel");
15
+ const UUIDBaseModel_1 = require("./UUIDBaseModel");
16
+ // Note: DocumentMetadata import removed to avoid circular dependency
17
+ // Use lazy loading or query builder when needed
18
+ let Folder = class Folder extends UUIDBaseModel_1.UUIDBaseModel {
19
+ constructor(name, path, department_id, created_by, access_level = 'general', parent_path, description, created_by_name, allowed_roles, allowed_users, is_active = true) {
20
+ super();
21
+ this.name = name;
22
+ this.path = path;
23
+ this.department_id = department_id;
24
+ this.created_by = created_by;
25
+ this.access_level = access_level;
26
+ this.parent_path = parent_path;
27
+ this.description = description;
28
+ this.created_by_name = created_by_name;
29
+ this.allowed_roles = allowed_roles || [];
30
+ this.allowed_users = allowed_users || [];
31
+ this.is_active = is_active;
32
+ }
33
+ };
34
+ exports.Folder = Folder;
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
37
+ __metadata("design:type", String)
38
+ ], Folder.prototype, "name", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'varchar', length: 1000 }),
41
+ __metadata("design:type", String)
42
+ ], Folder.prototype, "path", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'varchar', length: 1000, nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Folder.prototype, "parent_path", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.ManyToOne)('Departments', { eager: true }),
49
+ (0, typeorm_1.JoinColumn)({ name: 'department_id' }),
50
+ __metadata("design:type", DepartmentsModel_1.Departments)
51
+ ], Folder.prototype, "department", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'integer' }),
54
+ __metadata("design:type", Number)
55
+ ], Folder.prototype, "department_id", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
58
+ __metadata("design:type", String)
59
+ ], Folder.prototype, "description", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: 'enum', enum: ['general', 'restricted'], default: 'general' }),
62
+ (0, typeorm_1.Index)(),
63
+ __metadata("design:type", String)
64
+ ], Folder.prototype, "access_level", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
67
+ __metadata("design:type", Array)
68
+ ], Folder.prototype, "allowed_roles", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
71
+ __metadata("design:type", Array)
72
+ ], Folder.prototype, "allowed_users", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], Folder.prototype, "created_by_name", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
79
+ (0, typeorm_1.Index)(),
80
+ __metadata("design:type", Boolean)
81
+ ], Folder.prototype, "is_active", void 0);
82
+ exports.Folder = Folder = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'folders' }),
84
+ __metadata("design:paramtypes", [String, String, Number, String, String, String, String, String, Array, Array, Boolean])
85
+ ], Folder);
@@ -0,0 +1,35 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum HumanResourceAnnualPlanningRequestStatus {
3
+ PENDING = "Pending",
4
+ ASSIGNED = "Assigned",
5
+ IN_PROGRESS = "In Progress",
6
+ COMPLETED = "Completed",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected",
9
+ INFORMATION_REQUESTED = "Information Requested"
10
+ }
11
+ export declare enum Quarter {
12
+ Q1 = "Q1",// Jan-Mar
13
+ Q2 = "Q2",// Apr-Jun
14
+ Q3 = "Q3",// Jul-Sep
15
+ Q4 = "Q4"
16
+ }
17
+ export declare class HumanResourceAnnualPlanningRequest extends BaseModel {
18
+ req_user_department_id: number | null;
19
+ req_user_section_id: number | null;
20
+ req_user_position_id: number | null;
21
+ user_id: number;
22
+ service_id: number | null;
23
+ sub_service_id: number | null;
24
+ status: HumanResourceAnnualPlanningRequestStatus;
25
+ reviewer_user_id: number | null;
26
+ assigned_to_user_id: number | null;
27
+ assigned_at: Date | null;
28
+ workflow_execution_id: string | null;
29
+ description: string | null;
30
+ comment: string | null;
31
+ extension_number: string | null;
32
+ quarter: Quarter | null;
33
+ year: number | null;
34
+ constructor(user_id: number, status?: HumanResourceAnnualPlanningRequestStatus, 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, comment?: string | null, extension_number?: string | null, quarter?: Quarter | null, year?: number | null);
35
+ }
@@ -0,0 +1,121 @@
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.HumanResourceAnnualPlanningRequest = exports.Quarter = exports.HumanResourceAnnualPlanningRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var HumanResourceAnnualPlanningRequestStatus;
16
+ (function (HumanResourceAnnualPlanningRequestStatus) {
17
+ HumanResourceAnnualPlanningRequestStatus["PENDING"] = "Pending";
18
+ HumanResourceAnnualPlanningRequestStatus["ASSIGNED"] = "Assigned";
19
+ HumanResourceAnnualPlanningRequestStatus["IN_PROGRESS"] = "In Progress";
20
+ HumanResourceAnnualPlanningRequestStatus["COMPLETED"] = "Completed";
21
+ HumanResourceAnnualPlanningRequestStatus["APPROVED"] = "Approved";
22
+ HumanResourceAnnualPlanningRequestStatus["REJECTED"] = "Rejected";
23
+ HumanResourceAnnualPlanningRequestStatus["INFORMATION_REQUESTED"] = "Information Requested";
24
+ })(HumanResourceAnnualPlanningRequestStatus || (exports.HumanResourceAnnualPlanningRequestStatus = HumanResourceAnnualPlanningRequestStatus = {}));
25
+ var Quarter;
26
+ (function (Quarter) {
27
+ Quarter["Q1"] = "Q1";
28
+ Quarter["Q2"] = "Q2";
29
+ Quarter["Q3"] = "Q3";
30
+ Quarter["Q4"] = "Q4"; // Oct-Dec
31
+ })(Quarter || (exports.Quarter = Quarter = {}));
32
+ let HumanResourceAnnualPlanningRequest = class HumanResourceAnnualPlanningRequest extends BaseModel_1.BaseModel {
33
+ constructor(user_id, status = HumanResourceAnnualPlanningRequestStatus.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, comment, extension_number, quarter, year) {
34
+ super();
35
+ this.user_id = user_id;
36
+ this.status = status;
37
+ this.service_id = service_id || null;
38
+ this.sub_service_id = sub_service_id || null;
39
+ this.req_user_department_id = req_user_department_id || null;
40
+ this.req_user_section_id = req_user_section_id || null;
41
+ this.req_user_position_id = req_user_position_id || null;
42
+ this.description = description || null;
43
+ this.reviewer_user_id = reviewer_user_id || null;
44
+ this.assigned_to_user_id = assigned_to_user_id || null;
45
+ this.assigned_at = assigned_at || null;
46
+ this.workflow_execution_id = workflow_execution_id || null;
47
+ this.comment = comment || null;
48
+ this.extension_number = extension_number || null;
49
+ this.quarter = quarter || null;
50
+ this.year = year || null;
51
+ }
52
+ };
53
+ exports.HumanResourceAnnualPlanningRequest = HumanResourceAnnualPlanningRequest;
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], HumanResourceAnnualPlanningRequest.prototype, "req_user_department_id", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], HumanResourceAnnualPlanningRequest.prototype, "req_user_section_id", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
64
+ __metadata("design:type", Object)
65
+ ], HumanResourceAnnualPlanningRequest.prototype, "req_user_position_id", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
68
+ __metadata("design:type", Number)
69
+ ], HumanResourceAnnualPlanningRequest.prototype, "user_id", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], HumanResourceAnnualPlanningRequest.prototype, "service_id", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], HumanResourceAnnualPlanningRequest.prototype, "sub_service_id", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: "enum", enum: HumanResourceAnnualPlanningRequestStatus, default: HumanResourceAnnualPlanningRequestStatus.PENDING, nullable: false }),
80
+ __metadata("design:type", String)
81
+ ], HumanResourceAnnualPlanningRequest.prototype, "status", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
84
+ __metadata("design:type", Object)
85
+ ], HumanResourceAnnualPlanningRequest.prototype, "reviewer_user_id", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
88
+ __metadata("design:type", Object)
89
+ ], HumanResourceAnnualPlanningRequest.prototype, "assigned_to_user_id", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
92
+ __metadata("design:type", Object)
93
+ ], HumanResourceAnnualPlanningRequest.prototype, "assigned_at", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
96
+ __metadata("design:type", Object)
97
+ ], HumanResourceAnnualPlanningRequest.prototype, "workflow_execution_id", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
100
+ __metadata("design:type", Object)
101
+ ], HumanResourceAnnualPlanningRequest.prototype, "description", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
104
+ __metadata("design:type", Object)
105
+ ], HumanResourceAnnualPlanningRequest.prototype, "comment", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
108
+ __metadata("design:type", Object)
109
+ ], HumanResourceAnnualPlanningRequest.prototype, "extension_number", void 0);
110
+ __decorate([
111
+ (0, typeorm_1.Column)({ type: "enum", enum: Quarter, nullable: true }),
112
+ __metadata("design:type", Object)
113
+ ], HumanResourceAnnualPlanningRequest.prototype, "quarter", void 0);
114
+ __decorate([
115
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
116
+ __metadata("design:type", Object)
117
+ ], HumanResourceAnnualPlanningRequest.prototype, "year", void 0);
118
+ exports.HumanResourceAnnualPlanningRequest = HumanResourceAnnualPlanningRequest = __decorate([
119
+ (0, typeorm_1.Entity)({ name: "human_resource_annual_planning_requests" }),
120
+ __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
121
+ ], HumanResourceAnnualPlanningRequest);
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ import { HumanResourceAnnualPlanningRequest } from "./HumanResourceAnnualPlanningRequestModel";
3
+ export declare enum RepeatFrequency {
4
+ DAILY = "Daily",
5
+ WEEKLY = "Weekly",
6
+ MONTHLY = "Monthly",
7
+ QUARTERLY = "Quarterly"
8
+ }
9
+ export declare enum DurationUnit {
10
+ MINUTES = "Minutes",
11
+ HOURS = "Hours",
12
+ QUARTER = "Quarter"
13
+ }
14
+ export declare class HumanResourceAnnualPlanningTask extends BaseModel {
15
+ request_id: number;
16
+ task_related_to_projects: string | null;
17
+ extension_number: string;
18
+ daily_responsibilities: string;
19
+ repeat_frequency: RepeatFrequency | null;
20
+ duration: string | null;
21
+ duration_unit: DurationUnit | null;
22
+ deliverables: string | null;
23
+ request: HumanResourceAnnualPlanningRequest;
24
+ constructor(request_id: number, extension_number: string, daily_responsibilities: string, task_related_to_projects?: string | null, repeat_frequency?: RepeatFrequency | null, duration?: string | null, duration_unit?: DurationUnit | null, deliverables?: string | null, created_by?: number | null);
25
+ }
@@ -0,0 +1,83 @@
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.HumanResourceAnnualPlanningTask = exports.DurationUnit = exports.RepeatFrequency = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ const HumanResourceAnnualPlanningRequestModel_1 = require("./HumanResourceAnnualPlanningRequestModel");
16
+ var RepeatFrequency;
17
+ (function (RepeatFrequency) {
18
+ RepeatFrequency["DAILY"] = "Daily";
19
+ RepeatFrequency["WEEKLY"] = "Weekly";
20
+ RepeatFrequency["MONTHLY"] = "Monthly";
21
+ RepeatFrequency["QUARTERLY"] = "Quarterly";
22
+ })(RepeatFrequency || (exports.RepeatFrequency = RepeatFrequency = {}));
23
+ var DurationUnit;
24
+ (function (DurationUnit) {
25
+ DurationUnit["MINUTES"] = "Minutes";
26
+ DurationUnit["HOURS"] = "Hours";
27
+ DurationUnit["QUARTER"] = "Quarter";
28
+ })(DurationUnit || (exports.DurationUnit = DurationUnit = {}));
29
+ let HumanResourceAnnualPlanningTask = class HumanResourceAnnualPlanningTask extends BaseModel_1.BaseModel {
30
+ constructor(request_id, extension_number, daily_responsibilities, task_related_to_projects, repeat_frequency, duration, duration_unit, deliverables, created_by) {
31
+ super();
32
+ this.request_id = request_id;
33
+ this.extension_number = extension_number;
34
+ this.daily_responsibilities = daily_responsibilities;
35
+ this.task_related_to_projects = task_related_to_projects || null;
36
+ this.repeat_frequency = repeat_frequency || null;
37
+ this.duration = duration || null;
38
+ this.duration_unit = duration_unit || null;
39
+ this.deliverables = deliverables || null;
40
+ }
41
+ };
42
+ exports.HumanResourceAnnualPlanningTask = HumanResourceAnnualPlanningTask;
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
45
+ __metadata("design:type", Number)
46
+ ], HumanResourceAnnualPlanningTask.prototype, "request_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], HumanResourceAnnualPlanningTask.prototype, "task_related_to_projects", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
53
+ __metadata("design:type", String)
54
+ ], HumanResourceAnnualPlanningTask.prototype, "extension_number", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: "text", nullable: false }),
57
+ __metadata("design:type", String)
58
+ ], HumanResourceAnnualPlanningTask.prototype, "daily_responsibilities", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: "enum", enum: RepeatFrequency, nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], HumanResourceAnnualPlanningTask.prototype, "repeat_frequency", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], HumanResourceAnnualPlanningTask.prototype, "duration", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: "enum", enum: DurationUnit, nullable: true }),
69
+ __metadata("design:type", Object)
70
+ ], HumanResourceAnnualPlanningTask.prototype, "duration_unit", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
73
+ __metadata("design:type", Object)
74
+ ], HumanResourceAnnualPlanningTask.prototype, "deliverables", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.ManyToOne)(() => HumanResourceAnnualPlanningRequestModel_1.HumanResourceAnnualPlanningRequest, { onDelete: "CASCADE" }),
77
+ (0, typeorm_1.JoinColumn)({ name: "request_id" }),
78
+ __metadata("design:type", HumanResourceAnnualPlanningRequestModel_1.HumanResourceAnnualPlanningRequest)
79
+ ], HumanResourceAnnualPlanningTask.prototype, "request", void 0);
80
+ exports.HumanResourceAnnualPlanningTask = HumanResourceAnnualPlanningTask = __decorate([
81
+ (0, typeorm_1.Entity)({ name: "human_resource_annual_planning_tasks" }),
82
+ __metadata("design:paramtypes", [Number, String, String, Object, Object, Object, Object, Object, Object])
83
+ ], HumanResourceAnnualPlanningTask);
@@ -0,0 +1,7 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class PerformanceCyclePeriod extends BaseModel {
3
+ cycle_period: string;
4
+ cycle_year: number;
5
+ is_active: boolean;
6
+ constructor(cycle_period?: string, cycle_year?: number);
7
+ }
@@ -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.PerformanceCyclePeriod = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let PerformanceCyclePeriod = class PerformanceCyclePeriod extends BaseModel_1.BaseModel {
16
+ constructor(cycle_period, cycle_year) {
17
+ super();
18
+ this.cycle_period = cycle_period || "";
19
+ this.cycle_year = cycle_year || new Date().getFullYear();
20
+ this.is_active = false;
21
+ }
22
+ };
23
+ exports.PerformanceCyclePeriod = PerformanceCyclePeriod;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: false }),
26
+ __metadata("design:type", String)
27
+ ], PerformanceCyclePeriod.prototype, "cycle_period", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
30
+ __metadata("design:type", Number)
31
+ ], PerformanceCyclePeriod.prototype, "cycle_year", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: "boolean", default: false }),
34
+ __metadata("design:type", Boolean)
35
+ ], PerformanceCyclePeriod.prototype, "is_active", void 0);
36
+ exports.PerformanceCyclePeriod = PerformanceCyclePeriod = __decorate([
37
+ (0, typeorm_1.Entity)({ name: "performance_cycle_periods" }),
38
+ (0, typeorm_1.Index)("uq_performance_cycle_period", ["cycle_period", "cycle_year"], { unique: true }),
39
+ __metadata("design:paramtypes", [String, Number])
40
+ ], PerformanceCyclePeriod);
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class PerformanceGoalMaster extends BaseModel {
3
+ goal_title: string;
4
+ goal_description: string | null;
5
+ cycle_period_id: number;
6
+ is_active: boolean;
7
+ constructor(goal_title?: string, goal_description?: string | null, cycle_period_id?: number);
8
+ }