@platform-modules/civil-aviation-authority 2.3.97 → 2.3.99

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 (68) hide show
  1. package/.env +17 -9
  2. package/dist/index.d.ts +10 -0
  3. package/dist/index.js +12 -0
  4. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  5. package/dist/models/DocumentMetadataModel.js +171 -0
  6. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  7. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  8. package/dist/models/FolderModel.d.ts +16 -0
  9. package/dist/models/FolderModel.js +85 -0
  10. package/dist/models/HousingContractCancelApprovalModel.d.ts +23 -0
  11. package/dist/models/HousingContractCancelApprovalModel.js +88 -0
  12. package/dist/models/HousingContractCancelAttachmentModel.d.ts +12 -0
  13. package/dist/models/HousingContractCancelAttachmentModel.js +56 -0
  14. package/dist/models/HousingContractCancelChatModel.d.ts +18 -0
  15. package/dist/models/HousingContractCancelChatModel.js +60 -0
  16. package/dist/models/HousingContractCancelRequestModel.d.ts +31 -0
  17. package/dist/models/HousingContractCancelRequestModel.js +107 -0
  18. package/dist/models/HousingContractCancelWorkflowModel.d.ts +25 -0
  19. package/dist/models/HousingContractCancelWorkflowModel.js +88 -0
  20. package/dist/models/HousingContractRenewalApprovalModel.d.ts +23 -0
  21. package/dist/models/HousingContractRenewalApprovalModel.js +88 -0
  22. package/dist/models/HousingContractRenewalAttachmentModel.d.ts +12 -0
  23. package/dist/models/HousingContractRenewalAttachmentModel.js +56 -0
  24. package/dist/models/HousingContractRenewalChatModel.d.ts +18 -0
  25. package/dist/models/HousingContractRenewalChatModel.js +60 -0
  26. package/dist/models/HousingContractRenewalRequestModel.d.ts +32 -0
  27. package/dist/models/HousingContractRenewalRequestModel.js +107 -0
  28. package/dist/models/HousingContractRenewalWorkflowModel.d.ts +25 -0
  29. package/dist/models/HousingContractRenewalWorkflowModel.js +88 -0
  30. package/dist/models/PermissionModel.d.ts +18 -0
  31. package/dist/models/PermissionModel.js +68 -0
  32. package/dist/models/UUIDBaseModel.d.ts +14 -0
  33. package/dist/models/UUIDBaseModel.js +66 -0
  34. package/package.json +1 -1
  35. package/src/data-source.ts +10 -10
  36. package/src/index.ts +15 -1
  37. package/src/models/AnnualIncrementRequestEmployeeModel.ts +65 -65
  38. package/src/models/AnnualIncrementRequestModel.ts +25 -25
  39. package/src/models/CashAllowanceLeaveRequestModel.ts +11 -11
  40. package/src/models/DepartmentsModel.ts +25 -25
  41. package/src/models/HousingContractCancelApprovalModel.ts +61 -0
  42. package/src/models/HousingContractCancelAttachmentModel.ts +34 -0
  43. package/src/models/HousingContractCancelChatModel.ts +39 -0
  44. package/src/models/HousingContractCancelRequestModel.ts +76 -0
  45. package/src/models/HousingContractCancelWorkflowModel.ts +60 -0
  46. package/src/models/HousingContractRenewalApprovalModel.ts +61 -0
  47. package/src/models/HousingContractRenewalAttachmentModel.ts +34 -0
  48. package/src/models/HousingContractRenewalChatModel.ts +39 -0
  49. package/src/models/HousingContractRenewalRequestModel.ts +77 -0
  50. package/src/models/HousingContractRenewalWorkflowModel.ts +60 -0
  51. package/src/models/HrServiceRequestModel.ts +193 -193
  52. package/src/models/ITRequestChatModel.ts +62 -62
  53. package/src/models/ItApprovalsModel.ts +84 -84
  54. package/src/models/ItWorkflowModel.ts +55 -55
  55. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  56. package/src/models/PerformanceCyclePeriodModel.ts +23 -23
  57. package/src/models/PerformanceGoalMasterModel.ts +27 -27
  58. package/src/models/PromotionRequestModel.ts +11 -11
  59. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  60. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  61. package/dist/models/ITApprovalSettings.d.ts +0 -7
  62. package/dist/models/ITApprovalSettings.js +0 -40
  63. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  64. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  65. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  66. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  67. package/dist/models/Workflows.d.ts +0 -9
  68. package/dist/models/Workflows.js +0 -31
@@ -0,0 +1,60 @@
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.HousingContractCancelChat = exports.HousingContractCancelMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var HousingContractCancelMessageType;
16
+ (function (HousingContractCancelMessageType) {
17
+ HousingContractCancelMessageType["text"] = "text";
18
+ HousingContractCancelMessageType["image"] = "image";
19
+ HousingContractCancelMessageType["video"] = "video";
20
+ HousingContractCancelMessageType["file"] = "file";
21
+ HousingContractCancelMessageType["link"] = "link";
22
+ })(HousingContractCancelMessageType || (exports.HousingContractCancelMessageType = HousingContractCancelMessageType = {}));
23
+ let HousingContractCancelChat = class HousingContractCancelChat extends BaseModel_1.BaseModel {
24
+ constructor() {
25
+ super();
26
+ }
27
+ };
28
+ exports.HousingContractCancelChat = HousingContractCancelChat;
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], HousingContractCancelChat.prototype, "request_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
35
+ __metadata("design:type", Number)
36
+ ], HousingContractCancelChat.prototype, "service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], HousingContractCancelChat.prototype, "sub_service_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
43
+ __metadata("design:type", String)
44
+ ], HousingContractCancelChat.prototype, "message", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
47
+ __metadata("design:type", String)
48
+ ], HousingContractCancelChat.prototype, "message_type", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: false }),
51
+ __metadata("design:type", Boolean)
52
+ ], HousingContractCancelChat.prototype, "is_internal", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
55
+ __metadata("design:type", Number)
56
+ ], HousingContractCancelChat.prototype, "created_by", void 0);
57
+ exports.HousingContractCancelChat = HousingContractCancelChat = __decorate([
58
+ (0, typeorm_1.Entity)({ name: 'housing_contract_cancel_chat' }),
59
+ __metadata("design:paramtypes", [])
60
+ ], HousingContractCancelChat);
@@ -0,0 +1,31 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum HousingContractCancelRequestStatus {
3
+ Pending = "Pending",
4
+ Approved = "Approved",
5
+ Rejected = "Rejected",
6
+ RFC = "RFC"
7
+ }
8
+ export declare class HousingContractCancelRequest extends BaseModel {
9
+ request_id: string;
10
+ service_id: number;
11
+ sub_service_id: number;
12
+ /** Current Unit Type: Apartment, Villa */
13
+ current_unit_type: string;
14
+ location_of_unit: string;
15
+ current_contract_start_date: Date;
16
+ current_contract_end_date: Date;
17
+ requested_cancellation_date: Date;
18
+ reason_for_cancellation: string;
19
+ /** yes / No */
20
+ pending_bills_clearance_status: string;
21
+ handover_date: Date;
22
+ comment: string;
23
+ status: string;
24
+ user_id: number;
25
+ workflow_execution_id: string;
26
+ created_by: number;
27
+ approved_by: number;
28
+ approved_at: Date;
29
+ approver_comment: string;
30
+ constructor();
31
+ }
@@ -0,0 +1,107 @@
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.HousingContractCancelRequest = exports.HousingContractCancelRequestStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var HousingContractCancelRequestStatus;
16
+ (function (HousingContractCancelRequestStatus) {
17
+ HousingContractCancelRequestStatus["Pending"] = "Pending";
18
+ HousingContractCancelRequestStatus["Approved"] = "Approved";
19
+ HousingContractCancelRequestStatus["Rejected"] = "Rejected";
20
+ HousingContractCancelRequestStatus["RFC"] = "RFC";
21
+ })(HousingContractCancelRequestStatus || (exports.HousingContractCancelRequestStatus = HousingContractCancelRequestStatus = {}));
22
+ let HousingContractCancelRequest = class HousingContractCancelRequest extends BaseModel_1.BaseModel {
23
+ constructor() {
24
+ super();
25
+ }
26
+ };
27
+ exports.HousingContractCancelRequest = HousingContractCancelRequest;
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
30
+ __metadata("design:type", String)
31
+ ], HousingContractCancelRequest.prototype, "request_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
34
+ __metadata("design:type", Number)
35
+ ], HousingContractCancelRequest.prototype, "service_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
38
+ __metadata("design:type", Number)
39
+ ], HousingContractCancelRequest.prototype, "sub_service_id", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
42
+ __metadata("design:type", String)
43
+ ], HousingContractCancelRequest.prototype, "current_unit_type", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
46
+ __metadata("design:type", String)
47
+ ], HousingContractCancelRequest.prototype, "location_of_unit", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
50
+ __metadata("design:type", Date)
51
+ ], HousingContractCancelRequest.prototype, "current_contract_start_date", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
54
+ __metadata("design:type", Date)
55
+ ], HousingContractCancelRequest.prototype, "current_contract_end_date", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
58
+ __metadata("design:type", Date)
59
+ ], HousingContractCancelRequest.prototype, "requested_cancellation_date", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
62
+ __metadata("design:type", String)
63
+ ], HousingContractCancelRequest.prototype, "reason_for_cancellation", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: false }),
66
+ __metadata("design:type", String)
67
+ ], HousingContractCancelRequest.prototype, "pending_bills_clearance_status", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ type: 'date', nullable: false }),
70
+ __metadata("design:type", Date)
71
+ ], HousingContractCancelRequest.prototype, "handover_date", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
74
+ __metadata("design:type", String)
75
+ ], HousingContractCancelRequest.prototype, "comment", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false, default: 'Pending' }),
78
+ __metadata("design:type", String)
79
+ ], HousingContractCancelRequest.prototype, "status", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
82
+ __metadata("design:type", Number)
83
+ ], HousingContractCancelRequest.prototype, "user_id", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
86
+ __metadata("design:type", String)
87
+ ], HousingContractCancelRequest.prototype, "workflow_execution_id", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
90
+ __metadata("design:type", Number)
91
+ ], HousingContractCancelRequest.prototype, "created_by", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
94
+ __metadata("design:type", Number)
95
+ ], HousingContractCancelRequest.prototype, "approved_by", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ type: 'date', nullable: true }),
98
+ __metadata("design:type", Date)
99
+ ], HousingContractCancelRequest.prototype, "approved_at", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
102
+ __metadata("design:type", String)
103
+ ], HousingContractCancelRequest.prototype, "approver_comment", void 0);
104
+ exports.HousingContractCancelRequest = HousingContractCancelRequest = __decorate([
105
+ (0, typeorm_1.Entity)({ name: 'housing_contract_cancel_requests' }),
106
+ __metadata("design:paramtypes", [])
107
+ ], HousingContractCancelRequest);
@@ -0,0 +1,25 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum HousingContractCancelWorkFlowStatus {
3
+ Pending = "Pending",
4
+ InProgress = "In Progress",
5
+ Approved = "Approved",
6
+ Rejected = "Rejected",
7
+ RFC = "RFC"
8
+ }
9
+ export declare class HousingContractCancelWorkflow extends BaseModel {
10
+ request_id: number;
11
+ service_id: number;
12
+ sub_service_id: number;
13
+ workflow_definition_id: number;
14
+ current_level: number;
15
+ content: string;
16
+ status: string;
17
+ step_order: number;
18
+ user_id: number;
19
+ role_id: number;
20
+ department_id: number;
21
+ section_id: number;
22
+ workflow_data: string;
23
+ created_by: number;
24
+ constructor();
25
+ }
@@ -0,0 +1,88 @@
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.HousingContractCancelWorkflow = exports.HousingContractCancelWorkFlowStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var HousingContractCancelWorkFlowStatus;
16
+ (function (HousingContractCancelWorkFlowStatus) {
17
+ HousingContractCancelWorkFlowStatus["Pending"] = "Pending";
18
+ HousingContractCancelWorkFlowStatus["InProgress"] = "In Progress";
19
+ HousingContractCancelWorkFlowStatus["Approved"] = "Approved";
20
+ HousingContractCancelWorkFlowStatus["Rejected"] = "Rejected";
21
+ HousingContractCancelWorkFlowStatus["RFC"] = "RFC";
22
+ })(HousingContractCancelWorkFlowStatus || (exports.HousingContractCancelWorkFlowStatus = HousingContractCancelWorkFlowStatus = {}));
23
+ let HousingContractCancelWorkflow = class HousingContractCancelWorkflow extends BaseModel_1.BaseModel {
24
+ constructor() {
25
+ super();
26
+ }
27
+ };
28
+ exports.HousingContractCancelWorkflow = HousingContractCancelWorkflow;
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], HousingContractCancelWorkflow.prototype, "request_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
35
+ __metadata("design:type", Number)
36
+ ], HousingContractCancelWorkflow.prototype, "service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
39
+ __metadata("design:type", Number)
40
+ ], HousingContractCancelWorkflow.prototype, "sub_service_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], HousingContractCancelWorkflow.prototype, "workflow_definition_id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], HousingContractCancelWorkflow.prototype, "current_level", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], HousingContractCancelWorkflow.prototype, "content", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], HousingContractCancelWorkflow.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], HousingContractCancelWorkflow.prototype, "step_order", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
63
+ __metadata("design:type", Number)
64
+ ], HousingContractCancelWorkflow.prototype, "user_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
67
+ __metadata("design:type", Number)
68
+ ], HousingContractCancelWorkflow.prototype, "role_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
71
+ __metadata("design:type", Number)
72
+ ], HousingContractCancelWorkflow.prototype, "department_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
75
+ __metadata("design:type", Number)
76
+ ], HousingContractCancelWorkflow.prototype, "section_id", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
79
+ __metadata("design:type", String)
80
+ ], HousingContractCancelWorkflow.prototype, "workflow_data", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
83
+ __metadata("design:type", Number)
84
+ ], HousingContractCancelWorkflow.prototype, "created_by", void 0);
85
+ exports.HousingContractCancelWorkflow = HousingContractCancelWorkflow = __decorate([
86
+ (0, typeorm_1.Entity)({ name: 'housing_contract_cancel_workflow' }),
87
+ __metadata("design:paramtypes", [])
88
+ ], HousingContractCancelWorkflow);
@@ -0,0 +1,23 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum HousingContractRenewalApprovalStatus {
3
+ PENDING = "Pending",
4
+ IN_PROGRESS = "In Progress",
5
+ APPROVED = "Approved",
6
+ REJECTED = "Rejected"
7
+ }
8
+ export declare class HousingContractRenewalApproval extends BaseModel {
9
+ request_id: number;
10
+ service_id: number;
11
+ sub_service_id: number;
12
+ approver_role_id: number;
13
+ approver_user_id: number;
14
+ delegate_user_id: number;
15
+ approved_by: number;
16
+ department_id: number;
17
+ section_id: number;
18
+ level: number;
19
+ approval_status: HousingContractRenewalApprovalStatus;
20
+ comment: string;
21
+ created_by: number;
22
+ constructor();
23
+ }
@@ -0,0 +1,88 @@
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.HousingContractRenewalApproval = exports.HousingContractRenewalApprovalStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var HousingContractRenewalApprovalStatus;
16
+ (function (HousingContractRenewalApprovalStatus) {
17
+ HousingContractRenewalApprovalStatus["PENDING"] = "Pending";
18
+ HousingContractRenewalApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ HousingContractRenewalApprovalStatus["APPROVED"] = "Approved";
20
+ HousingContractRenewalApprovalStatus["REJECTED"] = "Rejected";
21
+ })(HousingContractRenewalApprovalStatus || (exports.HousingContractRenewalApprovalStatus = HousingContractRenewalApprovalStatus = {}));
22
+ let HousingContractRenewalApproval = class HousingContractRenewalApproval extends BaseModel_1.BaseModel {
23
+ constructor() {
24
+ super();
25
+ }
26
+ };
27
+ exports.HousingContractRenewalApproval = HousingContractRenewalApproval;
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
30
+ __metadata("design:type", Number)
31
+ ], HousingContractRenewalApproval.prototype, "request_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
34
+ __metadata("design:type", Number)
35
+ ], HousingContractRenewalApproval.prototype, "service_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
38
+ __metadata("design:type", Number)
39
+ ], HousingContractRenewalApproval.prototype, "sub_service_id", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
42
+ __metadata("design:type", Number)
43
+ ], HousingContractRenewalApproval.prototype, "approver_role_id", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
46
+ __metadata("design:type", Number)
47
+ ], HousingContractRenewalApproval.prototype, "approver_user_id", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
50
+ __metadata("design:type", Number)
51
+ ], HousingContractRenewalApproval.prototype, "delegate_user_id", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
54
+ __metadata("design:type", Number)
55
+ ], HousingContractRenewalApproval.prototype, "approved_by", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
58
+ __metadata("design:type", Number)
59
+ ], HousingContractRenewalApproval.prototype, "department_id", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
62
+ __metadata("design:type", Number)
63
+ ], HousingContractRenewalApproval.prototype, "section_id", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
66
+ __metadata("design:type", Number)
67
+ ], HousingContractRenewalApproval.prototype, "level", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({
70
+ type: 'enum',
71
+ enum: HousingContractRenewalApprovalStatus,
72
+ default: HousingContractRenewalApprovalStatus.PENDING,
73
+ nullable: false
74
+ }),
75
+ __metadata("design:type", String)
76
+ ], HousingContractRenewalApproval.prototype, "approval_status", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
79
+ __metadata("design:type", String)
80
+ ], HousingContractRenewalApproval.prototype, "comment", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
83
+ __metadata("design:type", Number)
84
+ ], HousingContractRenewalApproval.prototype, "created_by", void 0);
85
+ exports.HousingContractRenewalApproval = HousingContractRenewalApproval = __decorate([
86
+ (0, typeorm_1.Entity)({ name: 'housing_contract_renewal_approvals' }),
87
+ __metadata("design:paramtypes", [])
88
+ ], HousingContractRenewalApproval);
@@ -0,0 +1,12 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class HousingContractRenewalAttachment extends BaseModel {
3
+ request_id: number;
4
+ service_id: number;
5
+ sub_service_id: number;
6
+ file_name: string;
7
+ file_url: string;
8
+ file_type: string;
9
+ file_size: number;
10
+ created_by: number;
11
+ constructor();
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.HousingContractRenewalAttachment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let HousingContractRenewalAttachment = class HousingContractRenewalAttachment extends BaseModel_1.BaseModel {
16
+ constructor() {
17
+ super();
18
+ }
19
+ };
20
+ exports.HousingContractRenewalAttachment = HousingContractRenewalAttachment;
21
+ __decorate([
22
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
23
+ __metadata("design:type", Number)
24
+ ], HousingContractRenewalAttachment.prototype, "request_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], HousingContractRenewalAttachment.prototype, "service_id", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], HousingContractRenewalAttachment.prototype, "sub_service_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
35
+ __metadata("design:type", String)
36
+ ], HousingContractRenewalAttachment.prototype, "file_name", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
39
+ __metadata("design:type", String)
40
+ ], HousingContractRenewalAttachment.prototype, "file_url", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: false }),
43
+ __metadata("design:type", String)
44
+ ], HousingContractRenewalAttachment.prototype, "file_type", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
47
+ __metadata("design:type", Number)
48
+ ], HousingContractRenewalAttachment.prototype, "file_size", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
51
+ __metadata("design:type", Number)
52
+ ], HousingContractRenewalAttachment.prototype, "created_by", void 0);
53
+ exports.HousingContractRenewalAttachment = HousingContractRenewalAttachment = __decorate([
54
+ (0, typeorm_1.Entity)({ name: 'housing_contract_renewal_attachments' }),
55
+ __metadata("design:paramtypes", [])
56
+ ], HousingContractRenewalAttachment);
@@ -0,0 +1,18 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum HousingContractRenewalMessageType {
3
+ text = "text",
4
+ image = "image",
5
+ video = "video",
6
+ file = "file",
7
+ link = "link"
8
+ }
9
+ export declare class HousingContractRenewalChat extends BaseModel {
10
+ request_id: number;
11
+ service_id: number;
12
+ sub_service_id: number;
13
+ message: string;
14
+ message_type: string;
15
+ is_internal: boolean;
16
+ created_by: number;
17
+ constructor();
18
+ }
@@ -0,0 +1,60 @@
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.HousingContractRenewalChat = exports.HousingContractRenewalMessageType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var HousingContractRenewalMessageType;
16
+ (function (HousingContractRenewalMessageType) {
17
+ HousingContractRenewalMessageType["text"] = "text";
18
+ HousingContractRenewalMessageType["image"] = "image";
19
+ HousingContractRenewalMessageType["video"] = "video";
20
+ HousingContractRenewalMessageType["file"] = "file";
21
+ HousingContractRenewalMessageType["link"] = "link";
22
+ })(HousingContractRenewalMessageType || (exports.HousingContractRenewalMessageType = HousingContractRenewalMessageType = {}));
23
+ let HousingContractRenewalChat = class HousingContractRenewalChat extends BaseModel_1.BaseModel {
24
+ constructor() {
25
+ super();
26
+ }
27
+ };
28
+ exports.HousingContractRenewalChat = HousingContractRenewalChat;
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], HousingContractRenewalChat.prototype, "request_id", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
35
+ __metadata("design:type", Number)
36
+ ], HousingContractRenewalChat.prototype, "service_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
39
+ __metadata("design:type", Number)
40
+ ], HousingContractRenewalChat.prototype, "sub_service_id", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
43
+ __metadata("design:type", String)
44
+ ], HousingContractRenewalChat.prototype, "message", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: false }),
47
+ __metadata("design:type", String)
48
+ ], HousingContractRenewalChat.prototype, "message_type", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: false }),
51
+ __metadata("design:type", Boolean)
52
+ ], HousingContractRenewalChat.prototype, "is_internal", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
55
+ __metadata("design:type", Number)
56
+ ], HousingContractRenewalChat.prototype, "created_by", void 0);
57
+ exports.HousingContractRenewalChat = HousingContractRenewalChat = __decorate([
58
+ (0, typeorm_1.Entity)({ name: 'housing_contract_renewal_chat' }),
59
+ __metadata("design:paramtypes", [])
60
+ ], HousingContractRenewalChat);
@@ -0,0 +1,32 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare enum HousingContractRenewalRequestStatus {
3
+ Pending = "Pending",
4
+ Approved = "Approved",
5
+ Rejected = "Rejected",
6
+ RFC = "RFC"
7
+ }
8
+ export declare class HousingContractRenewalRequest extends BaseModel {
9
+ request_id: string;
10
+ service_id: number;
11
+ sub_service_id: number;
12
+ /** Requested Unit Type: Apartment, Villa */
13
+ requested_unit_type: string;
14
+ /** Current Unit Type: Apartment, Villa */
15
+ current_unit_type: string;
16
+ location_of_unit: string;
17
+ current_contract_start_date: Date;
18
+ current_contract_end_date: Date;
19
+ /** e.g. 1 year */
20
+ requested_renewal_duration: string;
21
+ family_size: number;
22
+ reason_for_renewal: string;
23
+ comment: string;
24
+ status: string;
25
+ user_id: number;
26
+ workflow_execution_id: string;
27
+ created_by: number;
28
+ approved_by: number;
29
+ approved_at: Date;
30
+ approver_comment: string;
31
+ constructor();
32
+ }