@platform-modules/civil-aviation-authority 2.1.3 → 2.1.40

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 (126) hide show
  1. package/package.json +1 -1
  2. package/src/data-source.ts +1 -11
  3. package/src/index.ts +0 -5
  4. package/src/models/ITHelpDeskModel.ts +21 -1
  5. package/src/models/ITRequestAttachmentModel.ts +11 -1
  6. package/src/models/ItApprovalsModel.ts +16 -1
  7. package/src/models/ItWorkflowModel.ts +9 -1
  8. package/src/models/ServiceTypeModel.ts +21 -1
  9. package/src/models/VpnApprovalModel.ts +8 -2
  10. package/src/models/WorkflowTask.ts +16 -1
  11. package/src/models/user.ts +1 -0
  12. package/dist/data-source.d.ts +0 -4
  13. package/dist/data-source.js +0 -116
  14. package/dist/helpers/utils/enum.d.ts +0 -75
  15. package/dist/helpers/utils/enum.js +0 -53
  16. package/dist/index.d.ts +0 -45
  17. package/dist/index.js +0 -65
  18. package/dist/models/BaseModel.d.ts +0 -14
  19. package/dist/models/BaseModel.js +0 -66
  20. package/dist/models/CAAServices.d.ts +0 -8
  21. package/dist/models/CAAServices.js +0 -44
  22. package/dist/models/CAASubServices.d.ts +0 -11
  23. package/dist/models/CAASubServices.js +0 -55
  24. package/dist/models/DelegateSettingsModel.d.ts +0 -9
  25. package/dist/models/DelegateSettingsModel.js +0 -50
  26. package/dist/models/DepartmentsModel.d.ts +0 -7
  27. package/dist/models/DepartmentsModel.js +0 -39
  28. package/dist/models/DirectorateModel.d.ts +0 -7
  29. package/dist/models/DirectorateModel.js +0 -39
  30. package/dist/models/HotelApprovalModel.d.ts +0 -22
  31. package/dist/models/HotelApprovalModel.js +0 -91
  32. package/dist/models/HotelAttachedModel.d.ts +0 -14
  33. package/dist/models/HotelAttachedModel.js +0 -74
  34. package/dist/models/HotelChatModel.d.ts +0 -17
  35. package/dist/models/HotelChatModel.js +0 -67
  36. package/dist/models/HotelWorkFlowModel.d.ts +0 -14
  37. package/dist/models/HotelWorkFlowModel.js +0 -56
  38. package/dist/models/HotelreservationModal.d.ts +0 -30
  39. package/dist/models/HotelreservationModal.js +0 -119
  40. package/dist/models/HotelreservationModel.d.ts +0 -45
  41. package/dist/models/HotelreservationModel.js +0 -177
  42. package/dist/models/ITApprovalSettings.d.ts +0 -7
  43. package/dist/models/ITApprovalSettings.js +0 -40
  44. package/dist/models/ITHelpDeskModel.d.ts +0 -29
  45. package/dist/models/ITHelpDeskModel.js +0 -116
  46. package/dist/models/ITRequestAttachmentModel.d.ts +0 -15
  47. package/dist/models/ITRequestAttachmentModel.js +0 -71
  48. package/dist/models/ITRequestChatModel.d.ts +0 -12
  49. package/dist/models/ITRequestChatModel.js +0 -56
  50. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  51. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  52. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  53. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  54. package/dist/models/ItApprovalsModel.d.ts +0 -18
  55. package/dist/models/ItApprovalsModel.js +0 -75
  56. package/dist/models/ItWorkflowModel.d.ts +0 -13
  57. package/dist/models/ItWorkflowModel.js +0 -51
  58. package/dist/models/LogisticsApprovalModel.d.ts +0 -22
  59. package/dist/models/LogisticsApprovalModel.js +0 -91
  60. package/dist/models/LogisticsAttachmentModel.d.ts +0 -12
  61. package/dist/models/LogisticsAttachmentModel.js +0 -64
  62. package/dist/models/LogisticsChatModel.d.ts +0 -17
  63. package/dist/models/LogisticsChatModel.js +0 -67
  64. package/dist/models/LogisticsForeignVehicleModel.d.ts +0 -42
  65. package/dist/models/LogisticsForeignVehicleModel.js +0 -153
  66. package/dist/models/LogisticsForeignVehiclePassengerModel.d.ts +0 -6
  67. package/dist/models/LogisticsForeignVehiclePassengerModel.js +0 -34
  68. package/dist/models/LogisticsModel.d.ts +0 -57
  69. package/dist/models/LogisticsModel.js +0 -195
  70. package/dist/models/LogisticsWorkflowModel.d.ts +0 -14
  71. package/dist/models/LogisticsWorkflowModel.js +0 -56
  72. package/dist/models/NotificationModel.d.ts +0 -23
  73. package/dist/models/NotificationModel.js +0 -92
  74. package/dist/models/PortalFeedbackModel.d.ts +0 -8
  75. package/dist/models/PortalFeedbackModel.js +0 -44
  76. package/dist/models/PositionModel.d.ts +0 -6
  77. package/dist/models/PositionModel.js +0 -34
  78. package/dist/models/SectionModel.d.ts +0 -8
  79. package/dist/models/SectionModel.js +0 -44
  80. package/dist/models/ServiceTypeModel.d.ts +0 -14
  81. package/dist/models/ServiceTypeModel.js +0 -66
  82. package/dist/models/VpnApprovalModel.d.ts +0 -19
  83. package/dist/models/VpnApprovalModel.js +0 -81
  84. package/dist/models/VpnRequestAttachmentModel.d.ts +0 -11
  85. package/dist/models/VpnRequestAttachmentModel.js +0 -59
  86. package/dist/models/VpnRequestChatModel.d.ts +0 -16
  87. package/dist/models/VpnRequestChatModel.js +0 -62
  88. package/dist/models/VpnRequestModel.d.ts +0 -70
  89. package/dist/models/VpnRequestModel.js +0 -175
  90. package/dist/models/VpnWorkflowModel.d.ts +0 -13
  91. package/dist/models/VpnWorkflowModel.js +0 -55
  92. package/dist/models/WorkflowDefinitions.d.ts +0 -16
  93. package/dist/models/WorkflowDefinitions.js +0 -86
  94. package/dist/models/WorkflowHierarchy.d.ts +0 -17
  95. package/dist/models/WorkflowHierarchy.js +0 -86
  96. package/dist/models/WorkflowTask.d.ts +0 -10
  97. package/dist/models/WorkflowTask.js +0 -63
  98. package/dist/models/WorkflowTaskNames.d.ts +0 -17
  99. package/dist/models/WorkflowTaskNames.js +0 -63
  100. package/dist/models/Workflows.d.ts +0 -0
  101. package/dist/models/Workflows.js +0 -31
  102. package/dist/models/contactInfoModel.d.ts +0 -18
  103. package/dist/models/contactInfoModel.js +0 -80
  104. package/dist/models/feedbackModel.d.ts +0 -16
  105. package/dist/models/feedbackModel.js +0 -61
  106. package/dist/models/importantLinksModel.d.ts +0 -6
  107. package/dist/models/importantLinksModel.js +0 -34
  108. package/dist/models/role.d.ts +0 -16
  109. package/dist/models/role.js +0 -44
  110. package/dist/models/roleRightsModel.d.ts +0 -16
  111. package/dist/models/roleRightsModel.js +0 -44
  112. package/dist/models/serviceBookmarksModel.d.ts +0 -6
  113. package/dist/models/serviceBookmarksModel.js +0 -34
  114. package/dist/models/user-sessions.d.ts +0 -18
  115. package/dist/models/user-sessions.js +0 -54
  116. package/dist/models/user.d.ts +0 -47
  117. package/dist/models/user.js +0 -238
  118. package/dist/models/userRolesModel.d.ts +0 -19
  119. package/dist/models/userRolesModel.js +0 -59
  120. package/dist/scripts.d.ts +0 -1
  121. package/dist/scripts.js +0 -11
  122. package/src/models/HotelApprovalModel.ts +0 -79
  123. package/src/models/HotelAttachedModel.ts +0 -64
  124. package/src/models/HotelChatModel.ts +0 -55
  125. package/src/models/HotelWorkFlowModel.ts +0 -42
  126. package/src/models/HotelreservationModel.ts +0 -166
@@ -1,56 +0,0 @@
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.LogisticsWorkFlow = exports.LogisticsWorkFlowStatus = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var LogisticsWorkFlowStatus;
16
- (function (LogisticsWorkFlowStatus) {
17
- LogisticsWorkFlowStatus["COMPLETED"] = "Completed";
18
- LogisticsWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
19
- LogisticsWorkFlowStatus["PENDING"] = "Pending";
20
- })(LogisticsWorkFlowStatus || (exports.LogisticsWorkFlowStatus = LogisticsWorkFlowStatus = {}));
21
- //This model is used to store the logistics workflow status and activity logs
22
- let LogisticsWorkFlow = class LogisticsWorkFlow extends BaseModel_1.BaseModel {
23
- constructor(request_id, content, status, service_id, sub_service_id) {
24
- super();
25
- this.request_id = request_id;
26
- this.service_id = service_id || null;
27
- this.sub_service_id = sub_service_id || null;
28
- this.content = content;
29
- this.status = status;
30
- }
31
- };
32
- exports.LogisticsWorkFlow = LogisticsWorkFlow;
33
- __decorate([
34
- (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
35
- __metadata("design:type", Number)
36
- ], LogisticsWorkFlow.prototype, "request_id", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
39
- __metadata("design:type", Object)
40
- ], LogisticsWorkFlow.prototype, "service_id", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
43
- __metadata("design:type", Object)
44
- ], LogisticsWorkFlow.prototype, "sub_service_id", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
47
- __metadata("design:type", String)
48
- ], LogisticsWorkFlow.prototype, "content", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ type: 'enum', enum: LogisticsWorkFlowStatus, default: LogisticsWorkFlowStatus.NOT_YET_STARTED, nullable: false }),
51
- __metadata("design:type", String)
52
- ], LogisticsWorkFlow.prototype, "status", void 0);
53
- exports.LogisticsWorkFlow = LogisticsWorkFlow = __decorate([
54
- (0, typeorm_1.Entity)({ name: 'logistics_workflows' }),
55
- __metadata("design:paramtypes", [Number, String, String, Number, Number])
56
- ], LogisticsWorkFlow);
@@ -1,23 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare enum NotificationType {
3
- REQUEST_RAISED = "request raised",
4
- REQUEST_APPROVE = "request approve",
5
- REQUEST_REJECT = "request reject",
6
- REQUEST_WITHDRAW = "request withdraw",
7
- REMINDER = "reminder",
8
- IMPORT = "import"
9
- }
10
- export declare class Notification extends BaseModel {
11
- type: NotificationType;
12
- user_id: number;
13
- role_id: number;
14
- department_id: number;
15
- section_id: number;
16
- content: any;
17
- is_read: boolean;
18
- request_id: number;
19
- service_id: number;
20
- sub_service_id: number;
21
- route_path: string;
22
- constructor(type: NotificationType, user_id: number, role_id: number, department_id: number, section_id: number, content: any, is_read: boolean, request_id: number, service_id: number, sub_service_id: number, route_path: string);
23
- }
@@ -1,92 +0,0 @@
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.Notification = exports.NotificationType = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var NotificationType;
16
- (function (NotificationType) {
17
- NotificationType["REQUEST_RAISED"] = "request raised";
18
- NotificationType["REQUEST_APPROVE"] = "request approve";
19
- NotificationType["REQUEST_REJECT"] = "request reject";
20
- NotificationType["REQUEST_WITHDRAW"] = "request withdraw";
21
- NotificationType["REMINDER"] = "reminder";
22
- NotificationType["IMPORT"] = "import";
23
- })(NotificationType || (exports.NotificationType = NotificationType = {}));
24
- let Notification = class Notification extends BaseModel_1.BaseModel {
25
- constructor(type, user_id, role_id, department_id, section_id, content, is_read, request_id, service_id, sub_service_id, route_path) {
26
- super();
27
- this.type = type;
28
- this.user_id = user_id;
29
- this.role_id = role_id;
30
- this.department_id = department_id;
31
- this.section_id = section_id;
32
- this.content = content;
33
- this.is_read = is_read;
34
- this.request_id = request_id;
35
- this.service_id = service_id;
36
- this.sub_service_id = sub_service_id;
37
- this.route_path = route_path;
38
- }
39
- };
40
- exports.Notification = Notification;
41
- __decorate([
42
- (0, typeorm_1.Column)({
43
- type: "enum",
44
- enum: NotificationType,
45
- nullable: false,
46
- }),
47
- __metadata("design:type", String)
48
- ], Notification.prototype, "type", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
51
- __metadata("design:type", Number)
52
- ], Notification.prototype, "user_id", void 0);
53
- __decorate([
54
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
55
- __metadata("design:type", Number)
56
- ], Notification.prototype, "role_id", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
59
- __metadata("design:type", Number)
60
- ], Notification.prototype, "department_id", void 0);
61
- __decorate([
62
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
63
- __metadata("design:type", Number)
64
- ], Notification.prototype, "section_id", void 0);
65
- __decorate([
66
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
67
- __metadata("design:type", Object)
68
- ], Notification.prototype, "content", void 0);
69
- __decorate([
70
- (0, typeorm_1.Column)({ type: 'boolean', default: false }),
71
- __metadata("design:type", Boolean)
72
- ], Notification.prototype, "is_read", void 0);
73
- __decorate([
74
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
75
- __metadata("design:type", Number)
76
- ], Notification.prototype, "request_id", void 0);
77
- __decorate([
78
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
79
- __metadata("design:type", Number)
80
- ], Notification.prototype, "service_id", void 0);
81
- __decorate([
82
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
83
- __metadata("design:type", Number)
84
- ], Notification.prototype, "sub_service_id", void 0);
85
- __decorate([
86
- (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
87
- __metadata("design:type", String)
88
- ], Notification.prototype, "route_path", void 0);
89
- exports.Notification = Notification = __decorate([
90
- (0, typeorm_1.Entity)({ name: 'notification' }),
91
- __metadata("design:paramtypes", [String, Number, Number, Number, Number, Object, Boolean, Number, Number, Number, String])
92
- ], Notification);
@@ -1,8 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- import { Rating } from './feedbackModel';
3
- export declare class PortalFeedback extends BaseModel {
4
- comment: string;
5
- rating: Rating;
6
- user_Id: number;
7
- constructor(comment: string, rating: Rating, user_Id: number);
8
- }
@@ -1,44 +0,0 @@
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.PortalFeedback = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- const feedbackModel_1 = require("./feedbackModel");
16
- let PortalFeedback = class PortalFeedback extends BaseModel_1.BaseModel {
17
- constructor(comment, rating, user_Id) {
18
- super();
19
- this.comment = comment,
20
- this.rating = rating,
21
- this.user_Id = user_Id;
22
- }
23
- };
24
- exports.PortalFeedback = PortalFeedback;
25
- __decorate([
26
- (0, typeorm_1.Column)({ nullable: true }),
27
- __metadata("design:type", String)
28
- ], PortalFeedback.prototype, "comment", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({
31
- type: "enum",
32
- enum: feedbackModel_1.Rating,
33
- nullable: true,
34
- }),
35
- __metadata("design:type", Number)
36
- ], PortalFeedback.prototype, "rating", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ nullable: true }),
39
- __metadata("design:type", Number)
40
- ], PortalFeedback.prototype, "user_Id", void 0);
41
- exports.PortalFeedback = PortalFeedback = __decorate([
42
- (0, typeorm_1.Entity)({ name: 'portal_feedback' }),
43
- __metadata("design:paramtypes", [String, Number, Number])
44
- ], PortalFeedback);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class Position extends BaseModel {
3
- name: string;
4
- is_deleted?: boolean;
5
- constructor(name: string, is_deleted: boolean);
6
- }
@@ -1,34 +0,0 @@
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.Position = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let Position = class Position extends BaseModel_1.BaseModel {
16
- constructor(name, is_deleted) {
17
- super();
18
- this.name = name;
19
- this.is_deleted = is_deleted;
20
- }
21
- };
22
- exports.Position = Position;
23
- __decorate([
24
- (0, typeorm_1.Column)({ nullable: true }),
25
- __metadata("design:type", String)
26
- ], Position.prototype, "name", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ nullable: true }),
29
- __metadata("design:type", Boolean)
30
- ], Position.prototype, "is_deleted", void 0);
31
- exports.Position = Position = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'position' }),
33
- __metadata("design:paramtypes", [String, Boolean])
34
- ], Position);
@@ -1,8 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class Sections extends BaseModel {
3
- section_name: string;
4
- section_code: string;
5
- section_description: string;
6
- department_id: number;
7
- constructor(section_name: string, section_code: string, section_description: string, department_id: number);
8
- }
@@ -1,44 +0,0 @@
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.Sections = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let Sections = class Sections extends BaseModel_1.BaseModel {
16
- constructor(section_name, section_code, section_description, department_id) {
17
- super();
18
- this.section_name = section_name;
19
- this.section_code = section_code;
20
- this.section_description = section_description;
21
- this.department_id = department_id;
22
- }
23
- };
24
- exports.Sections = Sections;
25
- __decorate([
26
- (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
27
- __metadata("design:type", String)
28
- ], Sections.prototype, "section_name", void 0);
29
- __decorate([
30
- (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: false, unique: true }),
31
- __metadata("design:type", String)
32
- ], Sections.prototype, "section_code", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ nullable: false }),
35
- __metadata("design:type", String)
36
- ], Sections.prototype, "section_description", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
39
- __metadata("design:type", Number)
40
- ], Sections.prototype, "department_id", void 0);
41
- exports.Sections = Sections = __decorate([
42
- (0, typeorm_1.Entity)({ name: 'sections' }),
43
- __metadata("design:paramtypes", [String, String, String, Number])
44
- ], Sections);
@@ -1,14 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- import { CAAServices } from './CAAServices';
3
- import { CAASubServices } from './CAASubServices';
4
- export declare class ServiceType extends BaseModel {
5
- name: string;
6
- name_in_arabic: string;
7
- service_id: number;
8
- service: CAAServices;
9
- sub_service_id: number;
10
- sub_service: CAASubServices;
11
- description: string;
12
- is_active: boolean;
13
- constructor(name: string, name_in_arabic: string, service_id: number, sub_service_id: number, description?: string, is_active?: boolean);
14
- }
@@ -1,66 +0,0 @@
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.ServiceType = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- const CAAServices_1 = require("./CAAServices");
16
- const CAASubServices_1 = require("./CAASubServices");
17
- let ServiceType = class ServiceType extends BaseModel_1.BaseModel {
18
- constructor(name, name_in_arabic, service_id, sub_service_id, description, is_active) {
19
- super();
20
- this.name = name;
21
- this.name_in_arabic = name_in_arabic;
22
- this.service_id = service_id;
23
- this.sub_service_id = sub_service_id;
24
- this.description = description || '';
25
- this.is_active = is_active !== undefined ? is_active : true;
26
- }
27
- };
28
- exports.ServiceType = ServiceType;
29
- __decorate([
30
- (0, typeorm_1.Column)({ nullable: false }),
31
- __metadata("design:type", String)
32
- ], ServiceType.prototype, "name", void 0);
33
- __decorate([
34
- (0, typeorm_1.Column)({ nullable: false }),
35
- __metadata("design:type", String)
36
- ], ServiceType.prototype, "name_in_arabic", void 0);
37
- __decorate([
38
- (0, typeorm_1.Column)({ nullable: false }),
39
- __metadata("design:type", Number)
40
- ], ServiceType.prototype, "service_id", void 0);
41
- __decorate([
42
- (0, typeorm_1.ManyToOne)(() => CAAServices_1.CAAServices),
43
- (0, typeorm_1.JoinColumn)({ name: 'service_id' }),
44
- __metadata("design:type", CAAServices_1.CAAServices)
45
- ], ServiceType.prototype, "service", void 0);
46
- __decorate([
47
- (0, typeorm_1.Column)({ nullable: false }),
48
- __metadata("design:type", Number)
49
- ], ServiceType.prototype, "sub_service_id", void 0);
50
- __decorate([
51
- (0, typeorm_1.ManyToOne)(() => CAASubServices_1.CAASubServices),
52
- (0, typeorm_1.JoinColumn)({ name: 'sub_service_id' }),
53
- __metadata("design:type", CAASubServices_1.CAASubServices)
54
- ], ServiceType.prototype, "sub_service", void 0);
55
- __decorate([
56
- (0, typeorm_1.Column)({ nullable: true }),
57
- __metadata("design:type", String)
58
- ], ServiceType.prototype, "description", void 0);
59
- __decorate([
60
- (0, typeorm_1.Column)({ type: 'boolean', default: true }),
61
- __metadata("design:type", Boolean)
62
- ], ServiceType.prototype, "is_active", void 0);
63
- exports.ServiceType = ServiceType = __decorate([
64
- (0, typeorm_1.Entity)({ name: 'service_types' }),
65
- __metadata("design:paramtypes", [String, String, Number, Number, String, Boolean])
66
- ], ServiceType);
@@ -1,19 +0,0 @@
1
- import { BaseModel } from "./BaseModel";
2
- export declare enum VpnApprovalStatus {
3
- PENDING = "Pending",
4
- IN_PROGRESS = "In Progress",
5
- APPROVED = "Approved",
6
- REJECTED = "Rejected"
7
- }
8
- export declare class VpnApprovalDetails extends BaseModel {
9
- request_id: number;
10
- level: number;
11
- approver_user_id: number | null;
12
- approver_role_id: number | null;
13
- department_id: number | null;
14
- section_id: number | null;
15
- approved_by: number | null;
16
- comment: string;
17
- approval_status: VpnApprovalStatus;
18
- constructor(request_id: number, approver_user_id: number | null, approver_role_id: number | null, comment: string, approval_status: VpnApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approved_by?: number | null);
19
- }
@@ -1,81 +0,0 @@
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.VpnApprovalDetails = exports.VpnApprovalStatus = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var VpnApprovalStatus;
16
- (function (VpnApprovalStatus) {
17
- VpnApprovalStatus["PENDING"] = "Pending";
18
- VpnApprovalStatus["IN_PROGRESS"] = "In Progress";
19
- VpnApprovalStatus["APPROVED"] = "Approved";
20
- VpnApprovalStatus["REJECTED"] = "Rejected";
21
- })(VpnApprovalStatus || (exports.VpnApprovalStatus = VpnApprovalStatus = {}));
22
- let VpnApprovalDetails = class VpnApprovalDetails extends BaseModel_1.BaseModel {
23
- constructor(request_id, approver_user_id, approver_role_id, comment, approval_status, level, department_id, section_id, approved_by) {
24
- super();
25
- this.request_id = request_id;
26
- this.approver_user_id = approver_user_id;
27
- this.approver_role_id = approver_role_id;
28
- this.comment = comment;
29
- this.approval_status = approval_status;
30
- this.level = level;
31
- this.department_id = department_id || null;
32
- this.section_id = section_id || null;
33
- this.approved_by = approved_by || null;
34
- }
35
- };
36
- exports.VpnApprovalDetails = VpnApprovalDetails;
37
- __decorate([
38
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
39
- __metadata("design:type", Number)
40
- ], VpnApprovalDetails.prototype, "request_id", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
43
- __metadata("design:type", Number)
44
- ], VpnApprovalDetails.prototype, "level", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
47
- __metadata("design:type", Object)
48
- ], VpnApprovalDetails.prototype, "approver_user_id", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
51
- __metadata("design:type", Object)
52
- ], VpnApprovalDetails.prototype, "approver_role_id", void 0);
53
- __decorate([
54
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
55
- __metadata("design:type", Object)
56
- ], VpnApprovalDetails.prototype, "department_id", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
59
- __metadata("design:type", Object)
60
- ], VpnApprovalDetails.prototype, "section_id", void 0);
61
- __decorate([
62
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
63
- __metadata("design:type", Object)
64
- ], VpnApprovalDetails.prototype, "approved_by", void 0);
65
- __decorate([
66
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true, default: "" }),
67
- __metadata("design:type", String)
68
- ], VpnApprovalDetails.prototype, "comment", void 0);
69
- __decorate([
70
- (0, typeorm_1.Column)({
71
- type: "enum",
72
- enum: VpnApprovalStatus,
73
- default: VpnApprovalStatus.PENDING,
74
- nullable: false
75
- }),
76
- __metadata("design:type", String)
77
- ], VpnApprovalDetails.prototype, "approval_status", void 0);
78
- exports.VpnApprovalDetails = VpnApprovalDetails = __decorate([
79
- (0, typeorm_1.Entity)({ name: "vpn_approvals" }),
80
- __metadata("design:paramtypes", [Number, Object, Object, String, String, Number, Object, Object, Object])
81
- ], VpnApprovalDetails);
@@ -1,11 +0,0 @@
1
- import { BaseModel } from "./BaseModel";
2
- export declare class VpnRequestAttachment extends BaseModel {
3
- request_id: number;
4
- uploaded_by: number;
5
- file_url: string;
6
- file_name: string;
7
- file_type: string;
8
- file_size: number | null;
9
- description: string;
10
- constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, description?: string);
11
- }
@@ -1,59 +0,0 @@
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.VpnRequestAttachment = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let VpnRequestAttachment = class VpnRequestAttachment extends BaseModel_1.BaseModel {
16
- constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, description) {
17
- super();
18
- this.request_id = request_id;
19
- this.uploaded_by = uploaded_by;
20
- this.file_url = file_url;
21
- this.file_name = file_name || "";
22
- this.file_type = file_type || "";
23
- this.file_size = file_size || null;
24
- this.description = description || "";
25
- }
26
- };
27
- exports.VpnRequestAttachment = VpnRequestAttachment;
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
30
- __metadata("design:type", Number)
31
- ], VpnRequestAttachment.prototype, "request_id", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
34
- __metadata("design:type", Number)
35
- ], VpnRequestAttachment.prototype, "uploaded_by", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
38
- __metadata("design:type", String)
39
- ], VpnRequestAttachment.prototype, "file_url", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
42
- __metadata("design:type", String)
43
- ], VpnRequestAttachment.prototype, "file_name", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
46
- __metadata("design:type", String)
47
- ], VpnRequestAttachment.prototype, "file_type", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: "bigint", nullable: true }),
50
- __metadata("design:type", Object)
51
- ], VpnRequestAttachment.prototype, "file_size", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
54
- __metadata("design:type", String)
55
- ], VpnRequestAttachment.prototype, "description", void 0);
56
- exports.VpnRequestAttachment = VpnRequestAttachment = __decorate([
57
- (0, typeorm_1.Entity)({ name: "vpn_request_attachments" }),
58
- __metadata("design:paramtypes", [Number, Number, String, String, String, Number, String])
59
- ], VpnRequestAttachment);
@@ -1,16 +0,0 @@
1
- import { BaseModel } from "./BaseModel";
2
- export declare enum VpnMessageType {
3
- TEXT = "text",
4
- IMAGE = "image",
5
- VIDEO = "video",
6
- FILE = "file",
7
- LINK = "link"
8
- }
9
- export declare class VpnRequestChat extends BaseModel {
10
- request_id: number;
11
- user_id: number;
12
- message: string;
13
- messageType: VpnMessageType;
14
- is_internal: boolean;
15
- constructor(request_id: number, user_id: number, message: string, messageType?: VpnMessageType, is_internal?: boolean);
16
- }