@platform-modules/civil-aviation-authority 2.2.84 → 2.2.86

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 (47) hide show
  1. package/.env +4 -10
  2. package/dist/data-source.js +10 -10
  3. package/dist/index.d.ts +5 -5
  4. package/dist/index.js +5 -5
  5. package/dist/models/AccessCardChatModel.d.ts +1 -4
  6. package/dist/models/AccessCardChatModel.js +5 -16
  7. package/dist/models/{SecurityAwarenessApprovalModel.d.ts → AirportEntryPermitApprovalModel.d.ts} +4 -4
  8. package/dist/models/{SecurityAwarenessApprovalModel.js → AirportEntryPermitApprovalModel.js} +26 -26
  9. package/dist/models/AirportEntryPermitAttachmentModel.d.ts +14 -0
  10. package/dist/models/{SecurityAwarenessAttachmentModel.js → AirportEntryPermitAttachmentModel.js} +26 -16
  11. package/dist/models/AirportEntryPermitChatModel.d.ts +17 -0
  12. package/dist/models/AirportEntryPermitChatModel.js +67 -0
  13. package/dist/models/AirportEntryPermitModel.d.ts +75 -0
  14. package/dist/models/AirportEntryPermitModel.js +253 -0
  15. package/dist/models/AirportEntryPermitWorkflowModel.d.ts +14 -0
  16. package/dist/models/{SecurityAwarenessWorkflowModel.js → AirportEntryPermitWorkflowModel.js} +18 -19
  17. package/dist/models/HotelreservationModal.d.ts +30 -0
  18. package/dist/models/HotelreservationModal.js +119 -0
  19. package/dist/models/SecurityThreatApprovalModel.js +1 -1
  20. package/dist/models/SecurityThreatChatModel.d.ts +1 -4
  21. package/dist/models/SecurityThreatChatModel.js +2 -13
  22. package/dist/models/VpnRequestChatModel.d.ts +1 -2
  23. package/dist/models/VpnRequestChatModel.js +2 -7
  24. package/dist/models/VpnWorkflowModel.d.ts +1 -4
  25. package/dist/models/VpnWorkflowModel.js +2 -17
  26. package/package.json +1 -1
  27. package/src/data-source.ts +10 -10
  28. package/src/index.ts +5 -5
  29. package/src/models/AccessCardChatModel.ts +4 -15
  30. package/src/models/{SecurityAwarenessApprovalModel.ts → AirportEntryPermitApprovalModel.ts} +9 -10
  31. package/src/models/AirportEntryPermitAttachmentModel.ts +62 -0
  32. package/src/models/AirportEntryPermitChatModel.ts +55 -0
  33. package/src/models/AirportEntryPermitModel.ts +246 -0
  34. package/src/models/{SecurityAwarenessWorkflowModel.ts → AirportEntryPermitWorkflowModel.ts} +11 -12
  35. package/src/models/SecurityThreatApprovalModel.ts +1 -1
  36. package/src/models/SecurityThreatChatModel.ts +1 -12
  37. package/src/models/VpnRequestChatModel.ts +1 -6
  38. package/src/models/VpnWorkflowModel.ts +1 -16
  39. package/dist/models/SecurityAwarenessAttachmentModel.d.ts +0 -12
  40. package/dist/models/SecurityAwarenessChatModel.d.ts +0 -20
  41. package/dist/models/SecurityAwarenessChatModel.js +0 -78
  42. package/dist/models/SecurityAwarenessRequestModel.d.ts +0 -29
  43. package/dist/models/SecurityAwarenessRequestModel.js +0 -117
  44. package/dist/models/SecurityAwarenessWorkflowModel.d.ts +0 -14
  45. package/src/models/SecurityAwarenessAttachmentModel.ts +0 -52
  46. package/src/models/SecurityAwarenessChatModel.ts +0 -66
  47. package/src/models/SecurityAwarenessRequestModel.ts +0 -105
package/.env CHANGED
@@ -1,11 +1,5 @@
1
- # DB_HOST=localhost
2
- # DB_PORT=5433
3
- # DB_USER=postgres
4
- # DB_PASS=123
5
- # DB_NAME=CAA
6
-
7
- DB_HOST=164.52.222.169
8
- DB_PORT=5432
9
- DB_USER=postgres_admin_user
10
- DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
1
+ DB_HOST=localhost
2
+ DB_PORT=5433
3
+ DB_USER=postgres
4
+ DB_PASS=123
11
5
  DB_NAME=CAA
@@ -64,11 +64,11 @@ const SecurityThreatApprovalModel_1 = require("./models/SecurityThreatApprovalMo
64
64
  const SecurityThreatAttachmentModel_1 = require("./models/SecurityThreatAttachmentModel");
65
65
  const SecurityThreatChatModel_1 = require("./models/SecurityThreatChatModel");
66
66
  const SecurityThreatWorkflowModel_1 = require("./models/SecurityThreatWorkflowModel");
67
- const SecurityAwarenessRequestModel_1 = require("./models/SecurityAwarenessRequestModel");
68
- const SecurityAwarenessApprovalModel_1 = require("./models/SecurityAwarenessApprovalModel");
69
- const SecurityAwarenessAttachmentModel_1 = require("./models/SecurityAwarenessAttachmentModel");
70
- const SecurityAwarenessChatModel_1 = require("./models/SecurityAwarenessChatModel");
71
- const SecurityAwarenessWorkflowModel_1 = require("./models/SecurityAwarenessWorkflowModel");
67
+ const AirportEntryPermitModel_1 = require("./models/AirportEntryPermitModel");
68
+ const AirportEntryPermitChatModel_1 = require("./models/AirportEntryPermitChatModel");
69
+ const AirportEntryPermitAttachmentModel_1 = require("./models/AirportEntryPermitAttachmentModel");
70
+ const AirportEntryPermitApprovalModel_1 = require("./models/AirportEntryPermitApprovalModel");
71
+ const AirportEntryPermitWorkflowModel_1 = require("./models/AirportEntryPermitWorkflowModel");
72
72
  exports.AppDataSource = new typeorm_1.DataSource({
73
73
  type: 'postgres',
74
74
  host: process.env.DB_HOST || 'localhost',
@@ -137,10 +137,10 @@ exports.AppDataSource = new typeorm_1.DataSource({
137
137
  SecurityThreatAttachmentModel_1.SecurityThreatAttachment,
138
138
  SecurityThreatChatModel_1.SecurityThreatChat,
139
139
  SecurityThreatWorkflowModel_1.SecurityThreatWorkFlow,
140
- SecurityAwarenessRequestModel_1.SecurityAwarenessRequest,
141
- SecurityAwarenessApprovalModel_1.SecurityAwarenessApproval,
142
- SecurityAwarenessAttachmentModel_1.SecurityAwarenessAttachment,
143
- SecurityAwarenessChatModel_1.SecurityAwarenessChat,
144
- SecurityAwarenessWorkflowModel_1.SecurityAwarenessWorkFlow
140
+ AirportEntryPermitModel_1.AirportEntryPermit,
141
+ AirportEntryPermitChatModel_1.AirportEntryPermitChat,
142
+ AirportEntryPermitAttachmentModel_1.AirportEntryPermitAttachment,
143
+ AirportEntryPermitApprovalModel_1.AirportEntryPermitApproval,
144
+ AirportEntryPermitWorkflowModel_1.AirportEntryPermitWorkFlow
145
145
  ],
146
146
  });
package/dist/index.d.ts CHANGED
@@ -53,8 +53,8 @@ export * from './models/SecurityThreatApprovalModel';
53
53
  export * from './models/SecurityThreatAttachmentModel';
54
54
  export * from './models/SecurityThreatChatModel';
55
55
  export * from './models/SecurityThreatWorkflowModel';
56
- export * from './models/SecurityAwarenessRequestModel';
57
- export * from './models/SecurityAwarenessApprovalModel';
58
- export * from './models/SecurityAwarenessAttachmentModel';
59
- export * from './models/SecurityAwarenessChatModel';
60
- export * from './models/SecurityAwarenessWorkflowModel';
56
+ export * from './models/AirportEntryPermitModel';
57
+ export * from './models/AirportEntryPermitChatModel';
58
+ export * from './models/AirportEntryPermitAttachmentModel';
59
+ export * from './models/AirportEntryPermitApprovalModel';
60
+ export * from './models/AirportEntryPermitWorkflowModel';
package/dist/index.js CHANGED
@@ -73,8 +73,8 @@ __exportStar(require("./models/SecurityThreatApprovalModel"), exports);
73
73
  __exportStar(require("./models/SecurityThreatAttachmentModel"), exports);
74
74
  __exportStar(require("./models/SecurityThreatChatModel"), exports);
75
75
  __exportStar(require("./models/SecurityThreatWorkflowModel"), exports);
76
- __exportStar(require("./models/SecurityAwarenessRequestModel"), exports);
77
- __exportStar(require("./models/SecurityAwarenessApprovalModel"), exports);
78
- __exportStar(require("./models/SecurityAwarenessAttachmentModel"), exports);
79
- __exportStar(require("./models/SecurityAwarenessChatModel"), exports);
80
- __exportStar(require("./models/SecurityAwarenessWorkflowModel"), exports);
76
+ __exportStar(require("./models/AirportEntryPermitModel"), exports);
77
+ __exportStar(require("./models/AirportEntryPermitChatModel"), exports);
78
+ __exportStar(require("./models/AirportEntryPermitAttachmentModel"), exports);
79
+ __exportStar(require("./models/AirportEntryPermitApprovalModel"), exports);
80
+ __exportStar(require("./models/AirportEntryPermitWorkflowModel"), exports);
@@ -1,5 +1,4 @@
1
1
  import { BaseModel } from "./BaseModel";
2
- import { AccessCardApprovalStatus } from "./AccessCardApprovalModel";
3
2
  export declare enum AccessCardMessageType {
4
3
  TEXT = "text",
5
4
  IMAGE = "image",
@@ -12,9 +11,7 @@ export declare class AccessCardRequestChat extends BaseModel {
12
11
  service_id: number | null;
13
12
  sub_service_id: number | null;
14
13
  user_id: number;
15
- role_id: number;
16
14
  message: string;
17
15
  messageType: AccessCardMessageType;
18
- status: AccessCardApprovalStatus;
19
- constructor(request_id: number, user_id: number, role_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AccessCardMessageType, status?: AccessCardApprovalStatus);
16
+ constructor(request_id: number, user_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AccessCardMessageType);
20
17
  }
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccessCardRequestChat = exports.AccessCardMessageType = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- const AccessCardApprovalModel_1 = require("./AccessCardApprovalModel");
16
15
  var AccessCardMessageType;
17
16
  (function (AccessCardMessageType) {
18
17
  AccessCardMessageType["TEXT"] = "text";
@@ -22,16 +21,14 @@ var AccessCardMessageType;
22
21
  AccessCardMessageType["LINK"] = "link";
23
22
  })(AccessCardMessageType || (exports.AccessCardMessageType = AccessCardMessageType = {}));
24
23
  let AccessCardRequestChat = class AccessCardRequestChat extends BaseModel_1.BaseModel {
25
- constructor(request_id, user_id, role_id, message, service_id, sub_service_id, messageType, status) {
24
+ constructor(request_id, user_id, message, service_id, sub_service_id, messageType) {
26
25
  super();
27
26
  this.request_id = request_id;
28
- this.service_id = service_id || null;
29
- this.sub_service_id = sub_service_id || null;
27
+ this.service_id = service_id ?? null;
28
+ this.sub_service_id = sub_service_id ?? null;
30
29
  this.user_id = user_id;
31
- this.role_id = role_id;
32
30
  this.message = message;
33
- this.messageType = messageType || AccessCardMessageType.TEXT;
34
- this.status = status || AccessCardApprovalModel_1.AccessCardApprovalStatus.PENDING;
31
+ this.messageType = messageType ?? AccessCardMessageType.TEXT;
35
32
  }
36
33
  };
37
34
  exports.AccessCardRequestChat = AccessCardRequestChat;
@@ -51,10 +48,6 @@ __decorate([
51
48
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
52
49
  __metadata("design:type", Number)
53
50
  ], AccessCardRequestChat.prototype, "user_id", void 0);
54
- __decorate([
55
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
56
- __metadata("design:type", Number)
57
- ], AccessCardRequestChat.prototype, "role_id", void 0);
58
51
  __decorate([
59
52
  (0, typeorm_1.Column)({ type: "text", nullable: false }),
60
53
  __metadata("design:type", String)
@@ -68,11 +61,7 @@ __decorate([
68
61
  }),
69
62
  __metadata("design:type", String)
70
63
  ], AccessCardRequestChat.prototype, "messageType", void 0);
71
- __decorate([
72
- (0, typeorm_1.Column)({ type: 'enum', enum: AccessCardApprovalModel_1.AccessCardApprovalStatus, default: AccessCardApprovalModel_1.AccessCardApprovalStatus.PENDING, nullable: false }),
73
- __metadata("design:type", String)
74
- ], AccessCardRequestChat.prototype, "status", void 0);
75
64
  exports.AccessCardRequestChat = AccessCardRequestChat = __decorate([
76
65
  (0, typeorm_1.Entity)({ name: "access_card_request_chat" }),
77
- __metadata("design:paramtypes", [Number, Number, Number, String, Number, Number, String, String])
66
+ __metadata("design:paramtypes", [Number, Number, String, Number, Number, String])
78
67
  ], AccessCardRequestChat);
@@ -1,11 +1,11 @@
1
1
  import { BaseModel } from './BaseModel';
2
- export declare enum SecurityAwarenessApprovalStatus {
2
+ export declare enum AirportEntryPermitApprovalStatus {
3
3
  PENDING = "Pending",
4
4
  IN_PROGRESS = "In Progress",
5
5
  APPROVED = "Approved",
6
6
  REJECTED = "Rejected"
7
7
  }
8
- export declare class SecurityAwarenessApproval extends BaseModel {
8
+ export declare class AirportEntryPermitApproval extends BaseModel {
9
9
  request_id: number;
10
10
  service_id: number | null;
11
11
  sub_service_id: number | null;
@@ -17,6 +17,6 @@ export declare class SecurityAwarenessApproval extends BaseModel {
17
17
  delegate_user_id: number | null;
18
18
  approved_by: number | null;
19
19
  comment: string;
20
- approval_status: SecurityAwarenessApprovalStatus;
21
- constructor(request_id: number, approver_role_id: number, comment: string, approval_status: SecurityAwarenessApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number);
20
+ approval_status: AirportEntryPermitApprovalStatus;
21
+ constructor(request_id: number, approver_role_id: number, comment: string, approval_status: AirportEntryPermitApprovalStatus, level: number, department_id?: number | null, section_id?: number | null, approver_user_id?: number | null, delegate_user_id?: number | null, approved_by?: number | null, service_id?: number, sub_service_id?: number);
22
22
  }
@@ -9,17 +9,17 @@ 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.SecurityAwarenessApproval = exports.SecurityAwarenessApprovalStatus = void 0;
12
+ exports.AirportEntryPermitApproval = exports.AirportEntryPermitApprovalStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- var SecurityAwarenessApprovalStatus;
16
- (function (SecurityAwarenessApprovalStatus) {
17
- SecurityAwarenessApprovalStatus["PENDING"] = "Pending";
18
- SecurityAwarenessApprovalStatus["IN_PROGRESS"] = "In Progress";
19
- SecurityAwarenessApprovalStatus["APPROVED"] = "Approved";
20
- SecurityAwarenessApprovalStatus["REJECTED"] = "Rejected";
21
- })(SecurityAwarenessApprovalStatus || (exports.SecurityAwarenessApprovalStatus = SecurityAwarenessApprovalStatus = {}));
22
- let SecurityAwarenessApproval = class SecurityAwarenessApproval extends BaseModel_1.BaseModel {
15
+ var AirportEntryPermitApprovalStatus;
16
+ (function (AirportEntryPermitApprovalStatus) {
17
+ AirportEntryPermitApprovalStatus["PENDING"] = "Pending";
18
+ AirportEntryPermitApprovalStatus["IN_PROGRESS"] = "In Progress";
19
+ AirportEntryPermitApprovalStatus["APPROVED"] = "Approved";
20
+ AirportEntryPermitApprovalStatus["REJECTED"] = "Rejected";
21
+ })(AirportEntryPermitApprovalStatus || (exports.AirportEntryPermitApprovalStatus = AirportEntryPermitApprovalStatus = {}));
22
+ let AirportEntryPermitApproval = class AirportEntryPermitApproval extends BaseModel_1.BaseModel {
23
23
  constructor(request_id, approver_role_id, comment, approval_status, level, department_id, section_id, approver_user_id, delegate_user_id, approved_by, service_id, sub_service_id) {
24
24
  super();
25
25
  this.request_id = request_id;
@@ -36,56 +36,56 @@ let SecurityAwarenessApproval = class SecurityAwarenessApproval extends BaseMode
36
36
  this.approved_by = approved_by || null;
37
37
  }
38
38
  };
39
- exports.SecurityAwarenessApproval = SecurityAwarenessApproval;
39
+ exports.AirportEntryPermitApproval = AirportEntryPermitApproval;
40
40
  __decorate([
41
41
  (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
42
42
  __metadata("design:type", Number)
43
- ], SecurityAwarenessApproval.prototype, "request_id", void 0);
43
+ ], AirportEntryPermitApproval.prototype, "request_id", void 0);
44
44
  __decorate([
45
45
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
46
46
  __metadata("design:type", Object)
47
- ], SecurityAwarenessApproval.prototype, "service_id", void 0);
47
+ ], AirportEntryPermitApproval.prototype, "service_id", void 0);
48
48
  __decorate([
49
49
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
50
50
  __metadata("design:type", Object)
51
- ], SecurityAwarenessApproval.prototype, "sub_service_id", void 0);
51
+ ], AirportEntryPermitApproval.prototype, "sub_service_id", void 0);
52
52
  __decorate([
53
53
  (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
54
54
  __metadata("design:type", Number)
55
- ], SecurityAwarenessApproval.prototype, "level", void 0);
55
+ ], AirportEntryPermitApproval.prototype, "level", void 0);
56
56
  __decorate([
57
57
  (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
58
58
  __metadata("design:type", Number)
59
- ], SecurityAwarenessApproval.prototype, "approver_role_id", void 0);
59
+ ], AirportEntryPermitApproval.prototype, "approver_role_id", void 0);
60
60
  __decorate([
61
61
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
62
62
  __metadata("design:type", Object)
63
- ], SecurityAwarenessApproval.prototype, "department_id", void 0);
63
+ ], AirportEntryPermitApproval.prototype, "department_id", void 0);
64
64
  __decorate([
65
65
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
66
66
  __metadata("design:type", Object)
67
- ], SecurityAwarenessApproval.prototype, "section_id", void 0);
67
+ ], AirportEntryPermitApproval.prototype, "section_id", void 0);
68
68
  __decorate([
69
69
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
70
70
  __metadata("design:type", Object)
71
- ], SecurityAwarenessApproval.prototype, "approver_user_id", void 0);
71
+ ], AirportEntryPermitApproval.prototype, "approver_user_id", void 0);
72
72
  __decorate([
73
73
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
74
74
  __metadata("design:type", Object)
75
- ], SecurityAwarenessApproval.prototype, "delegate_user_id", void 0);
75
+ ], AirportEntryPermitApproval.prototype, "delegate_user_id", void 0);
76
76
  __decorate([
77
77
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
78
78
  __metadata("design:type", Object)
79
- ], SecurityAwarenessApproval.prototype, "approved_by", void 0);
79
+ ], AirportEntryPermitApproval.prototype, "approved_by", void 0);
80
80
  __decorate([
81
81
  (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true, default: '' }),
82
82
  __metadata("design:type", String)
83
- ], SecurityAwarenessApproval.prototype, "comment", void 0);
83
+ ], AirportEntryPermitApproval.prototype, "comment", void 0);
84
84
  __decorate([
85
- (0, typeorm_1.Column)({ type: 'enum', enum: SecurityAwarenessApprovalStatus, default: SecurityAwarenessApprovalStatus.PENDING, nullable: false }),
85
+ (0, typeorm_1.Column)({ type: 'enum', enum: AirportEntryPermitApprovalStatus, default: AirportEntryPermitApprovalStatus.PENDING, nullable: false }),
86
86
  __metadata("design:type", String)
87
- ], SecurityAwarenessApproval.prototype, "approval_status", void 0);
88
- exports.SecurityAwarenessApproval = SecurityAwarenessApproval = __decorate([
89
- (0, typeorm_1.Entity)({ name: 'security_awareness_approvals' }),
87
+ ], AirportEntryPermitApproval.prototype, "approval_status", void 0);
88
+ exports.AirportEntryPermitApproval = AirportEntryPermitApproval = __decorate([
89
+ (0, typeorm_1.Entity)({ name: 'airport_entry_permit_approvals' }),
90
90
  __metadata("design:paramtypes", [Number, Number, String, String, Number, Object, Object, Object, Object, Object, Number, Number])
91
- ], SecurityAwarenessApproval);
91
+ ], AirportEntryPermitApproval);
@@ -0,0 +1,14 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class AirportEntryPermitAttachment extends BaseModel {
3
+ request_id: number;
4
+ service_id: number | null;
5
+ sub_service_id: number | null;
6
+ file_url: string;
7
+ file_name: string;
8
+ file_type: string;
9
+ file_size: number | null;
10
+ chat_id: number | null;
11
+ uploaded_by: number;
12
+ description: string;
13
+ constructor(request_id: number, uploaded_by: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number, description?: string);
14
+ }
@@ -9,11 +9,11 @@ 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.SecurityAwarenessAttachment = void 0;
12
+ exports.AirportEntryPermitAttachment = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let SecurityAwarenessAttachment = class SecurityAwarenessAttachment extends BaseModel_1.BaseModel {
16
- constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id) {
15
+ let AirportEntryPermitAttachment = class AirportEntryPermitAttachment extends BaseModel_1.BaseModel {
16
+ constructor(request_id, uploaded_by, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id, description) {
17
17
  super();
18
18
  this.request_id = request_id;
19
19
  this.service_id = service_id || null;
@@ -23,42 +23,52 @@ let SecurityAwarenessAttachment = class SecurityAwarenessAttachment extends Base
23
23
  this.file_type = file_type || '';
24
24
  this.file_size = file_size || null;
25
25
  this.chat_id = chat_id || null;
26
+ this.uploaded_by = uploaded_by;
27
+ this.description = description || '';
26
28
  }
27
29
  };
28
- exports.SecurityAwarenessAttachment = SecurityAwarenessAttachment;
30
+ exports.AirportEntryPermitAttachment = AirportEntryPermitAttachment;
29
31
  __decorate([
30
32
  (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
31
33
  __metadata("design:type", Number)
32
- ], SecurityAwarenessAttachment.prototype, "request_id", void 0);
34
+ ], AirportEntryPermitAttachment.prototype, "request_id", void 0);
33
35
  __decorate([
34
36
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
35
37
  __metadata("design:type", Object)
36
- ], SecurityAwarenessAttachment.prototype, "service_id", void 0);
38
+ ], AirportEntryPermitAttachment.prototype, "service_id", void 0);
37
39
  __decorate([
38
40
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
39
41
  __metadata("design:type", Object)
40
- ], SecurityAwarenessAttachment.prototype, "sub_service_id", void 0);
42
+ ], AirportEntryPermitAttachment.prototype, "sub_service_id", void 0);
41
43
  __decorate([
42
44
  (0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
43
45
  __metadata("design:type", String)
44
- ], SecurityAwarenessAttachment.prototype, "file_url", void 0);
46
+ ], AirportEntryPermitAttachment.prototype, "file_url", void 0);
45
47
  __decorate([
46
48
  (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
47
49
  __metadata("design:type", String)
48
- ], SecurityAwarenessAttachment.prototype, "file_name", void 0);
50
+ ], AirportEntryPermitAttachment.prototype, "file_name", void 0);
49
51
  __decorate([
50
52
  (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
51
53
  __metadata("design:type", String)
52
- ], SecurityAwarenessAttachment.prototype, "file_type", void 0);
54
+ ], AirportEntryPermitAttachment.prototype, "file_type", void 0);
53
55
  __decorate([
54
56
  (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
55
57
  __metadata("design:type", Object)
56
- ], SecurityAwarenessAttachment.prototype, "file_size", void 0);
58
+ ], AirportEntryPermitAttachment.prototype, "file_size", void 0);
57
59
  __decorate([
58
60
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
61
  __metadata("design:type", Object)
60
- ], SecurityAwarenessAttachment.prototype, "chat_id", void 0);
61
- exports.SecurityAwarenessAttachment = SecurityAwarenessAttachment = __decorate([
62
- (0, typeorm_1.Entity)({ name: 'security_awareness_attachments' }),
63
- __metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
64
- ], SecurityAwarenessAttachment);
62
+ ], AirportEntryPermitAttachment.prototype, "chat_id", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: "integer", nullable: false }),
65
+ __metadata("design:type", Number)
66
+ ], AirportEntryPermitAttachment.prototype, "uploaded_by", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
69
+ __metadata("design:type", String)
70
+ ], AirportEntryPermitAttachment.prototype, "description", void 0);
71
+ exports.AirportEntryPermitAttachment = AirportEntryPermitAttachment = __decorate([
72
+ (0, typeorm_1.Entity)({ name: 'airport_entry_permit_attachments' }),
73
+ __metadata("design:paramtypes", [Number, Number, String, String, String, Number, Number, Number, Number, String])
74
+ ], AirportEntryPermitAttachment);
@@ -0,0 +1,17 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum AirportEntryPermitMessageTypes {
3
+ TEXT = "text",
4
+ IMAGE = "image",
5
+ VIDEO = "video",
6
+ FILE = "file",
7
+ LINK = "link"
8
+ }
9
+ export declare class AirportEntryPermitChat extends BaseModel {
10
+ request_id: number;
11
+ service_id: number | null;
12
+ sub_service_id: number | null;
13
+ user_id: number;
14
+ message: string;
15
+ messageType: AirportEntryPermitMessageTypes;
16
+ constructor(request_id: number, user_id: number, message: string, service_id?: number, sub_service_id?: number, messageType?: AirportEntryPermitMessageTypes);
17
+ }
@@ -0,0 +1,67 @@
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.AirportEntryPermitChat = exports.AirportEntryPermitMessageTypes = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ var AirportEntryPermitMessageTypes;
16
+ (function (AirportEntryPermitMessageTypes) {
17
+ AirportEntryPermitMessageTypes["TEXT"] = "text";
18
+ AirportEntryPermitMessageTypes["IMAGE"] = "image";
19
+ AirportEntryPermitMessageTypes["VIDEO"] = "video";
20
+ AirportEntryPermitMessageTypes["FILE"] = "file";
21
+ AirportEntryPermitMessageTypes["LINK"] = "link";
22
+ })(AirportEntryPermitMessageTypes || (exports.AirportEntryPermitMessageTypes = AirportEntryPermitMessageTypes = {}));
23
+ let AirportEntryPermitChat = class AirportEntryPermitChat extends BaseModel_1.BaseModel {
24
+ constructor(request_id, user_id, message, service_id, sub_service_id, messageType) {
25
+ super();
26
+ this.request_id = request_id;
27
+ this.service_id = service_id || null;
28
+ this.sub_service_id = sub_service_id || null;
29
+ this.user_id = user_id;
30
+ this.message = message;
31
+ this.messageType = messageType || AirportEntryPermitMessageTypes.TEXT;
32
+ }
33
+ };
34
+ exports.AirportEntryPermitChat = AirportEntryPermitChat;
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
37
+ __metadata("design:type", Number)
38
+ ], AirportEntryPermitChat.prototype, "request_id", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], AirportEntryPermitChat.prototype, "service_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], AirportEntryPermitChat.prototype, "sub_service_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
49
+ __metadata("design:type", Number)
50
+ ], AirportEntryPermitChat.prototype, "user_id", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
53
+ __metadata("design:type", String)
54
+ ], AirportEntryPermitChat.prototype, "message", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({
57
+ type: 'enum',
58
+ enum: AirportEntryPermitMessageTypes,
59
+ default: AirportEntryPermitMessageTypes.TEXT,
60
+ nullable: false
61
+ }),
62
+ __metadata("design:type", String)
63
+ ], AirportEntryPermitChat.prototype, "messageType", void 0);
64
+ exports.AirportEntryPermitChat = AirportEntryPermitChat = __decorate([
65
+ (0, typeorm_1.Entity)({ name: 'airport_entry_permit_chat' }),
66
+ __metadata("design:paramtypes", [Number, Number, String, Number, Number, String])
67
+ ], AirportEntryPermitChat);
@@ -0,0 +1,75 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare enum AirportEntryPermitCategory {
3
+ ISSUING_NEW_PERMIT = "Issuing New Permit",
4
+ RENEWAL_OF_PERMIT = "Renewal of Permit",
5
+ AMENDING = "Amending",
6
+ REPLACING_LOST = "Replacing lost",
7
+ CANCELLING_AIRPORT_SECURITY_PERMITS = "Cancelling airport security permits"
8
+ }
9
+ export declare enum AirportEntryPermitType {
10
+ PERMANENT = "Permanent",
11
+ TEMPORARY = "Temporary"
12
+ }
13
+ export declare enum AirportEntryPermitLocation {
14
+ MUSCAT = "Muscat",
15
+ SALALAH = "Salalah",
16
+ MARMUL = "Marmul",
17
+ DURUM = "Durum",
18
+ SOHAR = "Sohar",
19
+ FUHUD = "Fuhud",
20
+ MUKHAZINA = "Mukhazina"
21
+ }
22
+ export declare enum AirportEntryPermitArea {
23
+ PURPLE = "VIP building",
24
+ HEAVENLY = "Cargo Building with import and export sections",
25
+ ORANGE = "[ Arrivals Hall] and Arrivals building",
26
+ GREEN = "[departures Hall ] and departures building",
27
+ YELLOW = "Information centre and control tower building",
28
+ BLUE = "Vehicle, Aircraft building, Aircraft parking area, fire station and fuel filling stations, repair shop",
29
+ PINK = "Baggage sorting area",
30
+ GRAY = "Supply building",
31
+ ALL_CIVIL_AIRPORTS = "All Civil Airports"
32
+ }
33
+ export declare enum AirportEntryPermitStatus {
34
+ PENDING = "Pending",
35
+ APPROVED = "Approved",
36
+ REJECTED = "Rejected",
37
+ IN_PROGRESS = "In Progress"
38
+ }
39
+ export declare class AirportEntryPermit extends BaseModel {
40
+ req_user_department_id: number | null;
41
+ req_user_section_id: number | null;
42
+ service_id: number | null;
43
+ sub_service_id: number | null;
44
+ service_type: string | null;
45
+ workflow_execution_id: string | null;
46
+ status: AirportEntryPermitStatus;
47
+ user_id: number;
48
+ request_id: string | null;
49
+ name_full_family_name: string;
50
+ nationality: string;
51
+ dob: Date;
52
+ place: string;
53
+ passport_id_card_no: string;
54
+ category_of_permit: AirportEntryPermitCategory;
55
+ date_of_submission: Date;
56
+ phone_number: string;
57
+ location: AirportEntryPermitLocation;
58
+ type_of_permit: AirportEntryPermitType;
59
+ temporary_start_time: string | null;
60
+ temporary_duration: string | null;
61
+ permission_to_required_areas: AirportEntryPermitArea[];
62
+ attachment_url: string | null;
63
+ details: string;
64
+ occupation_staff: string;
65
+ visitor_visa_type: string | null;
66
+ visitor_visa_no: string | null;
67
+ visitor_visa_expiry_date: Date | null;
68
+ acknowledge_security_policies: boolean;
69
+ acknowledge_disciplinary_action: boolean;
70
+ consent_approve_to_issue_permit: boolean;
71
+ consent_do_not_approve_to_issue_permit: boolean;
72
+ consent_justification: string | null;
73
+ requested_by: string;
74
+ constructor(name_full_family_name: string, nationality: string, dob: Date, place: string, passport_id_card_no: string, category_of_permit: AirportEntryPermitCategory, date_of_submission: Date, phone_number: string, location: AirportEntryPermitLocation, type_of_permit: AirportEntryPermitType, permission_to_required_areas: AirportEntryPermitArea[], details: string, occupation_staff: string, requested_by: string, user_id: number, status?: AirportEntryPermitStatus, service_id?: number | null, sub_service_id?: number | null, service_type?: string | null, workflow_execution_id?: string | null, req_user_department_id?: number | null, req_user_section_id?: number | null, attachment_url?: string | null, temporary_start_time?: string | null, temporary_duration?: string | null, visitor_visa_type?: string | null, visitor_visa_no?: string | null, visitor_visa_expiry_date?: Date | null, acknowledge_security_policies?: boolean, acknowledge_disciplinary_action?: boolean, consent_approve_to_issue_permit?: boolean, consent_do_not_approve_to_issue_permit?: boolean, consent_justification?: string | null, request_id?: string | null);
75
+ }