@platform-modules/civil-aviation-authority 2.3.129 → 2.3.131

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.
@@ -148,6 +148,8 @@ const AccommodationWorkflowModel_1 = require("./models/AccommodationWorkflowMode
148
148
  const AccommodationApprovalModel_1 = require("./models/AccommodationApprovalModel");
149
149
  const AccommodationChatModel_1 = require("./models/AccommodationChatModel");
150
150
  const AccommodationAttachmentModel_1 = require("./models/AccommodationAttachmentModel");
151
+ const AssetApartmentTypeModel_1 = require("./models/AssetApartmentTypeModel");
152
+ const AssetUnitLocationModel_1 = require("./models/AssetUnitLocationModel");
151
153
  exports.AppDataSource = new typeorm_1.DataSource({
152
154
  type: 'postgres',
153
155
  host: process.env.DB_HOST || 'localhost',
@@ -292,6 +294,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
292
294
  AccommodationApprovalModel_1.AccommodationApproval,
293
295
  AccommodationChatModel_1.AccommodationChat,
294
296
  AccommodationAttachmentModel_1.AccommodationAttachment,
297
+ AssetApartmentTypeModel_1.AssetApartmentType,
298
+ AssetUnitLocationModel_1.AssetUnitLocation,
295
299
  DocumentModel_1.Document,
296
300
  DocumentFolderModel_1.DocumentFolder,
297
301
  DocumentDriveModel_1.DocumentDrive,
package/dist/index.d.ts CHANGED
@@ -257,3 +257,5 @@ export * from './models/HousingContractCancelWorkflowModel';
257
257
  export * from './models/HousingContractCancelApprovalModel';
258
258
  export * from './models/HousingContractCancelChatModel';
259
259
  export * from './models/HousingContractCancelAttachmentModel';
260
+ export * from './models/AssetApartmentTypeModel';
261
+ export * from './models/AssetUnitLocationModel';
package/dist/index.js CHANGED
@@ -397,3 +397,6 @@ __exportStar(require("./models/HousingContractCancelWorkflowModel"), exports);
397
397
  __exportStar(require("./models/HousingContractCancelApprovalModel"), exports);
398
398
  __exportStar(require("./models/HousingContractCancelChatModel"), exports);
399
399
  __exportStar(require("./models/HousingContractCancelAttachmentModel"), exports);
400
+ // Asset Affairs Admin Configuration
401
+ __exportStar(require("./models/AssetApartmentTypeModel"), exports);
402
+ __exportStar(require("./models/AssetUnitLocationModel"), exports);
@@ -16,6 +16,7 @@ export declare class AccommodationApproval extends BaseModel {
16
16
  approved_by: number;
17
17
  department_id: number;
18
18
  section_id: number;
19
+ is_allowed: boolean;
19
20
  level: number;
20
21
  approval_status: AccommodationApprovalStatus;
21
22
  comment: string;
@@ -62,6 +62,10 @@ __decorate([
62
62
  (0, typeorm_1.Column)({ type: 'int', nullable: true }),
63
63
  __metadata("design:type", Number)
64
64
  ], AccommodationApproval.prototype, "section_id", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: false, default: true }),
67
+ __metadata("design:type", Boolean)
68
+ ], AccommodationApproval.prototype, "is_allowed", void 0);
65
69
  __decorate([
66
70
  (0, typeorm_1.Column)({ type: 'int', nullable: false }),
67
71
  __metadata("design:type", Number)
@@ -0,0 +1,9 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class AssetApartmentType extends BaseModel {
3
+ apartment_type_name: string;
4
+ cost_per_type: number;
5
+ description: string | null;
6
+ is_active: boolean;
7
+ display_order: number;
8
+ constructor(apartmentTypeName: string);
9
+ }
@@ -0,0 +1,49 @@
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.AssetApartmentType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let AssetApartmentType = class AssetApartmentType extends BaseModel_1.BaseModel {
16
+ constructor(apartmentTypeName) {
17
+ super();
18
+ this.apartment_type_name = apartmentTypeName;
19
+ this.cost_per_type = 0;
20
+ this.description = null;
21
+ this.is_active = true;
22
+ this.display_order = 0;
23
+ }
24
+ };
25
+ exports.AssetApartmentType = AssetApartmentType;
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
28
+ __metadata("design:type", String)
29
+ ], AssetApartmentType.prototype, "apartment_type_name", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: "float", nullable: false, default: 0 }),
32
+ __metadata("design:type", Number)
33
+ ], AssetApartmentType.prototype, "cost_per_type", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
36
+ __metadata("design:type", Object)
37
+ ], AssetApartmentType.prototype, "description", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: "boolean", default: true }),
40
+ __metadata("design:type", Boolean)
41
+ ], AssetApartmentType.prototype, "is_active", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: "int", default: 0 }),
44
+ __metadata("design:type", Number)
45
+ ], AssetApartmentType.prototype, "display_order", void 0);
46
+ exports.AssetApartmentType = AssetApartmentType = __decorate([
47
+ (0, typeorm_1.Entity)({ name: "asset_apartment_types" }),
48
+ __metadata("design:paramtypes", [String])
49
+ ], AssetApartmentType);
@@ -0,0 +1,8 @@
1
+ import { BaseModel } from "./BaseModel";
2
+ export declare class AssetUnitLocation extends BaseModel {
3
+ location_name: string;
4
+ description: string | null;
5
+ is_active: boolean;
6
+ display_order: number;
7
+ constructor(locationName: string);
8
+ }
@@ -0,0 +1,44 @@
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.AssetUnitLocation = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const BaseModel_1 = require("./BaseModel");
15
+ let AssetUnitLocation = class AssetUnitLocation extends BaseModel_1.BaseModel {
16
+ constructor(locationName) {
17
+ super();
18
+ this.location_name = locationName;
19
+ this.description = null;
20
+ this.is_active = true;
21
+ this.display_order = 0;
22
+ }
23
+ };
24
+ exports.AssetUnitLocation = AssetUnitLocation;
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
27
+ __metadata("design:type", String)
28
+ ], AssetUnitLocation.prototype, "location_name", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: "text", nullable: true }),
31
+ __metadata("design:type", Object)
32
+ ], AssetUnitLocation.prototype, "description", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: "boolean", default: true }),
35
+ __metadata("design:type", Boolean)
36
+ ], AssetUnitLocation.prototype, "is_active", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: "int", default: 0 }),
39
+ __metadata("design:type", Number)
40
+ ], AssetUnitLocation.prototype, "display_order", void 0);
41
+ exports.AssetUnitLocation = AssetUnitLocation = __decorate([
42
+ (0, typeorm_1.Entity)({ name: "asset_unit_locations" }),
43
+ __metadata("design:paramtypes", [String])
44
+ ], AssetUnitLocation);
@@ -20,6 +20,8 @@ export declare enum CyberSecurityAuditApplicationType {
20
20
  export declare class CyberSecurityAuditRequest extends BaseModel {
21
21
  req_user_department_id: number | null;
22
22
  req_user_section_id: number | null;
23
+ requesting_to_department_id: number | null;
24
+ requesting_to_section_id: number | null;
23
25
  req_user_position_id: number | null;
24
26
  service_id: number | null;
25
27
  sub_service_id: number | null;
@@ -35,5 +37,5 @@ export declare class CyberSecurityAuditRequest extends BaseModel {
35
37
  application_to_be_audited: CyberSecurityAuditApplicationType;
36
38
  application_to_be_audited_other: string | null;
37
39
  submission_date: Date;
38
- constructor(user_id: number, request_classification: CyberSecurityAuditClassification, application_to_be_audited: CyberSecurityAuditApplicationType, submission_date: Date, status?: CyberSecurityAuditRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, application_to_be_audited_other?: string | null);
40
+ constructor(user_id: number, request_classification: CyberSecurityAuditClassification, application_to_be_audited: CyberSecurityAuditApplicationType, submission_date: Date, status?: CyberSecurityAuditRequestStatus, service_id?: number | null, sub_service_id?: number | null, req_user_department_id?: number | null, req_user_section_id?: number | null, requesting_to_department_id?: number | null, requesting_to_section_id?: number | null, req_user_position_id?: number | null, description?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null, request_id?: string | null, application_to_be_audited_other?: string | null);
39
41
  }
@@ -34,7 +34,7 @@ var CyberSecurityAuditApplicationType;
34
34
  CyberSecurityAuditApplicationType["OTHERS"] = "Others";
35
35
  })(CyberSecurityAuditApplicationType || (exports.CyberSecurityAuditApplicationType = CyberSecurityAuditApplicationType = {}));
36
36
  let CyberSecurityAuditRequest = class CyberSecurityAuditRequest extends BaseModel_1.BaseModel {
37
- constructor(user_id, request_classification, application_to_be_audited, submission_date, status = CyberSecurityAuditRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, application_to_be_audited_other) {
37
+ constructor(user_id, request_classification, application_to_be_audited, submission_date, status = CyberSecurityAuditRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, requesting_to_department_id, requesting_to_section_id, req_user_position_id, description, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id, request_id, application_to_be_audited_other) {
38
38
  super();
39
39
  this.user_id = user_id;
40
40
  this.request_classification = request_classification;
@@ -45,6 +45,8 @@ let CyberSecurityAuditRequest = class CyberSecurityAuditRequest extends BaseMode
45
45
  this.sub_service_id = sub_service_id || null;
46
46
  this.req_user_department_id = req_user_department_id || null;
47
47
  this.req_user_section_id = req_user_section_id || null;
48
+ this.requesting_to_department_id = requesting_to_department_id || null;
49
+ this.requesting_to_section_id = requesting_to_section_id || null;
48
50
  this.req_user_position_id = req_user_position_id || null;
49
51
  this.description = description || null;
50
52
  this.reviewer_user_id = reviewer_user_id || null;
@@ -64,6 +66,14 @@ __decorate([
64
66
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
65
67
  __metadata("design:type", Object)
66
68
  ], CyberSecurityAuditRequest.prototype, "req_user_section_id", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], CyberSecurityAuditRequest.prototype, "requesting_to_department_id", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
75
+ __metadata("design:type", Object)
76
+ ], CyberSecurityAuditRequest.prototype, "requesting_to_section_id", void 0);
67
77
  __decorate([
68
78
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
69
79
  __metadata("design:type", Object)
@@ -126,5 +136,5 @@ __decorate([
126
136
  ], CyberSecurityAuditRequest.prototype, "submission_date", void 0);
127
137
  exports.CyberSecurityAuditRequest = CyberSecurityAuditRequest = __decorate([
128
138
  (0, typeorm_1.Entity)({ name: "cyber_security_audit_requests" }),
129
- __metadata("design:paramtypes", [Number, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
139
+ __metadata("design:paramtypes", [Number, String, String, Date, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
130
140
  ], CyberSecurityAuditRequest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.129",
3
+ "version": "2.3.131",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -146,6 +146,8 @@ import { AccommodationWorkflow } from './models/AccommodationWorkflowModel';
146
146
  import { AccommodationApproval } from './models/AccommodationApprovalModel';
147
147
  import { AccommodationChat } from './models/AccommodationChatModel';
148
148
  import { AccommodationAttachment } from './models/AccommodationAttachmentModel';
149
+ import { AssetApartmentType } from './models/AssetApartmentTypeModel';
150
+ import { AssetUnitLocation } from './models/AssetUnitLocationModel';
149
151
 
150
152
  export const AppDataSource = new DataSource({
151
153
  type: 'postgres',
@@ -291,6 +293,8 @@ export const AppDataSource = new DataSource({
291
293
  AccommodationApproval,
292
294
  AccommodationChat,
293
295
  AccommodationAttachment,
296
+ AssetApartmentType,
297
+ AssetUnitLocation,
294
298
  Document,
295
299
  DocumentFolder,
296
300
  DocumentDrive,
package/src/index.ts CHANGED
@@ -308,3 +308,7 @@ export * from './models/HousingContractCancelWorkflowModel';
308
308
  export * from './models/HousingContractCancelApprovalModel';
309
309
  export * from './models/HousingContractCancelChatModel';
310
310
  export * from './models/HousingContractCancelAttachmentModel';
311
+
312
+ // Asset Affairs Admin Configuration
313
+ export * from './models/AssetApartmentTypeModel';
314
+ export * from './models/AssetUnitLocationModel';
@@ -35,11 +35,14 @@ export class AccommodationApproval extends BaseModel {
35
35
  @Column({ type: 'int', nullable: true })
36
36
  department_id: number;
37
37
 
38
- @Column({ type: 'int', nullable: true })
39
- section_id: number;
40
-
41
- @Column({ type: 'int', nullable: false })
42
- level: number;
38
+ @Column({ type: 'int', nullable: true })
39
+ section_id: number;
40
+
41
+ @Column({ type: 'boolean', nullable: false, default: true })
42
+ is_allowed: boolean;
43
+
44
+ @Column({ type: 'int', nullable: false })
45
+ level: number;
43
46
 
44
47
  @Column({
45
48
  type: 'enum',
@@ -0,0 +1,29 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "asset_apartment_types" })
5
+ export class AssetApartmentType extends BaseModel {
6
+ @Column({ type: "varchar", length: 100, nullable: false })
7
+ apartment_type_name: string;
8
+
9
+ @Column({ type: "float", nullable: false, default: 0 })
10
+ cost_per_type: number;
11
+
12
+ @Column({ type: "text", nullable: true })
13
+ description: string | null;
14
+
15
+ @Column({ type: "boolean", default: true })
16
+ is_active: boolean;
17
+
18
+ @Column({ type: "int", default: 0 })
19
+ display_order: number;
20
+
21
+ constructor(apartmentTypeName: string) {
22
+ super();
23
+ this.apartment_type_name = apartmentTypeName;
24
+ this.cost_per_type = 0;
25
+ this.description = null;
26
+ this.is_active = true;
27
+ this.display_order = 0;
28
+ }
29
+ }
@@ -0,0 +1,25 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ @Entity({ name: "asset_unit_locations" })
5
+ export class AssetUnitLocation extends BaseModel {
6
+ @Column({ type: "varchar", length: 255, nullable: false })
7
+ location_name: string;
8
+
9
+ @Column({ type: "text", nullable: true })
10
+ description: string | null;
11
+
12
+ @Column({ type: "boolean", default: true })
13
+ is_active: boolean;
14
+
15
+ @Column({ type: "int", default: 0 })
16
+ display_order: number;
17
+
18
+ constructor(locationName: string) {
19
+ super();
20
+ this.location_name = locationName;
21
+ this.description = null;
22
+ this.is_active = true;
23
+ this.display_order = 0;
24
+ }
25
+ }
@@ -23,15 +23,21 @@ export enum CyberSecurityAuditApplicationType {
23
23
  }
24
24
 
25
25
  @Entity({ name: "cyber_security_audit_requests" })
26
- export class CyberSecurityAuditRequest extends BaseModel {
27
- @Column({ type: "integer", nullable: true })
28
- req_user_department_id: number | null;
29
-
30
- @Column({ type: "integer", nullable: true })
31
- req_user_section_id: number | null;
32
-
33
- @Column({ type: "integer", nullable: true })
34
- req_user_position_id: number | null;
26
+ export class CyberSecurityAuditRequest extends BaseModel {
27
+ @Column({ type: "integer", nullable: true })
28
+ req_user_department_id: number | null;
29
+
30
+ @Column({ type: "integer", nullable: true })
31
+ req_user_section_id: number | null;
32
+
33
+ @Column({ type: "integer", nullable: true })
34
+ requesting_to_department_id: number | null;
35
+
36
+ @Column({ type: "integer", nullable: true })
37
+ requesting_to_section_id: number | null;
38
+
39
+ @Column({ type: "integer", nullable: true })
40
+ req_user_position_id: number | null;
35
41
 
36
42
  @Column({ type: "integer", nullable: true })
37
43
  service_id: number | null;
@@ -81,13 +87,15 @@ export class CyberSecurityAuditRequest extends BaseModel {
81
87
  application_to_be_audited: CyberSecurityAuditApplicationType,
82
88
  submission_date: Date,
83
89
  status: CyberSecurityAuditRequestStatus = CyberSecurityAuditRequestStatus.PENDING,
84
- service_id?: number | null,
85
- sub_service_id?: number | null,
86
- req_user_department_id?: number | null,
87
- req_user_section_id?: number | null,
88
- req_user_position_id?: number | null,
89
- description?: string | null,
90
- reviewer_user_id?: number | null,
90
+ service_id?: number | null,
91
+ sub_service_id?: number | null,
92
+ req_user_department_id?: number | null,
93
+ req_user_section_id?: number | null,
94
+ requesting_to_department_id?: number | null,
95
+ requesting_to_section_id?: number | null,
96
+ req_user_position_id?: number | null,
97
+ description?: string | null,
98
+ reviewer_user_id?: number | null,
91
99
  assigned_to_user_id?: number | null,
92
100
  assigned_at?: Date | null,
93
101
  workflow_execution_id?: string | null,
@@ -100,12 +108,14 @@ export class CyberSecurityAuditRequest extends BaseModel {
100
108
  this.application_to_be_audited = application_to_be_audited;
101
109
  this.submission_date = submission_date;
102
110
  this.status = status;
103
- this.service_id = service_id || null;
104
- this.sub_service_id = sub_service_id || null;
105
- this.req_user_department_id = req_user_department_id || null;
106
- this.req_user_section_id = req_user_section_id || null;
107
- this.req_user_position_id = req_user_position_id || null;
108
- this.description = description || null;
111
+ this.service_id = service_id || null;
112
+ this.sub_service_id = sub_service_id || null;
113
+ this.req_user_department_id = req_user_department_id || null;
114
+ this.req_user_section_id = req_user_section_id || null;
115
+ this.requesting_to_department_id = requesting_to_department_id || null;
116
+ this.requesting_to_section_id = requesting_to_section_id || null;
117
+ this.req_user_position_id = req_user_position_id || null;
118
+ this.description = description || null;
109
119
  this.reviewer_user_id = reviewer_user_id || null;
110
120
  this.assigned_to_user_id = assigned_to_user_id || null;
111
121
  this.assigned_at = assigned_at || null;