@platform-modules/civil-aviation-authority 2.3.111 → 2.3.120

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.
@@ -1,6 +1,7 @@
1
1
  import { BaseModel } from './BaseModel';
2
2
  import { Departments } from './DepartmentsModel';
3
3
  import { DocumentFolder } from './DocumentFolderModel';
4
+ import { DocumentDrive } from './DocumentDriveModel';
4
5
  import { DocumentType } from './DocumentTypeModel';
5
6
  import { DocumentPermission } from './DocumentPermissionModel';
6
7
  import { DocumentAuditLog } from './DocumentAuditLogModel';
@@ -8,6 +9,7 @@ export declare class Document extends BaseModel {
8
9
  title: string;
9
10
  department_id: number;
10
11
  document_type_id: number;
12
+ drive_id?: number;
11
13
  folder_id?: number;
12
14
  mongodb_file_id: string;
13
15
  file_name: string;
@@ -19,6 +21,7 @@ export declare class Document extends BaseModel {
19
21
  is_active: boolean;
20
22
  department?: Departments;
21
23
  documentType?: DocumentType;
24
+ drive?: DocumentDrive;
22
25
  folder?: DocumentFolder;
23
26
  permissions?: DocumentPermission[];
24
27
  auditLogs?: DocumentAuditLog[];
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  const DepartmentsModel_1 = require("./DepartmentsModel");
16
16
  const DocumentFolderModel_1 = require("./DocumentFolderModel");
17
+ const DocumentDriveModel_1 = require("./DocumentDriveModel");
17
18
  const DocumentTypeModel_1 = require("./DocumentTypeModel");
18
19
  const DocumentPermissionModel_1 = require("./DocumentPermissionModel");
19
20
  const DocumentAuditLogModel_1 = require("./DocumentAuditLogModel");
@@ -32,6 +33,10 @@ __decorate([
32
33
  (0, typeorm_1.Column)({ type: 'integer', nullable: false }),
33
34
  __metadata("design:type", Number)
34
35
  ], Document.prototype, "document_type_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
38
+ __metadata("design:type", Number)
39
+ ], Document.prototype, "drive_id", void 0);
35
40
  __decorate([
36
41
  (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
37
42
  __metadata("design:type", Number)
@@ -78,6 +83,11 @@ __decorate([
78
83
  (0, typeorm_1.JoinColumn)({ name: 'document_type_id' }),
79
84
  __metadata("design:type", DocumentTypeModel_1.DocumentType)
80
85
  ], Document.prototype, "documentType", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.ManyToOne)(() => DocumentDriveModel_1.DocumentDrive, { nullable: true }),
88
+ (0, typeorm_1.JoinColumn)({ name: 'drive_id' }),
89
+ __metadata("design:type", DocumentDriveModel_1.DocumentDrive)
90
+ ], Document.prototype, "drive", void 0);
81
91
  __decorate([
82
92
  (0, typeorm_1.ManyToOne)(() => DocumentFolderModel_1.DocumentFolder, { nullable: true }),
83
93
  (0, typeorm_1.JoinColumn)({ name: 'folder_id' }),
@@ -29,11 +29,12 @@ export declare class TrainingRoomBookingRequest extends BaseModel {
29
29
  network_support_required: boolean;
30
30
  meals_required: boolean;
31
31
  number_of_attendees: number;
32
+ name_of_participants: string[] | null;
32
33
  remarks: string | null;
33
34
  status: TrainingRoomBookingRequestStatus;
34
35
  reviewer_user_id: number | null;
35
36
  assigned_to_user_id: number | null;
36
37
  assigned_at: Date | null;
37
38
  workflow_execution_id: string | null;
38
- constructor(user_id: number, purpose_of_training: string, date_of_event: Date, start_time: string, end_time: string, room_type: TrainingRoomBookingRoomType, number_of_attendees: number, network_support_required?: boolean, meals_required?: boolean, status?: TrainingRoomBookingRequestStatus, 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, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null);
39
+ constructor(user_id: number, purpose_of_training: string, date_of_event: Date, start_time: string, end_time: string, room_type: TrainingRoomBookingRoomType, number_of_attendees: number, network_support_required?: boolean, meals_required?: boolean, status?: TrainingRoomBookingRequestStatus, 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, name_of_participants?: string[] | null, remarks?: string | null, reviewer_user_id?: number | null, assigned_to_user_id?: number | null, assigned_at?: Date | null, workflow_execution_id?: string | null);
39
40
  }
@@ -30,7 +30,7 @@ var TrainingRoomBookingRoomType;
30
30
  TrainingRoomBookingRoomType["LABORATORY"] = "Laboratory";
31
31
  })(TrainingRoomBookingRoomType || (exports.TrainingRoomBookingRoomType = TrainingRoomBookingRoomType = {}));
32
32
  let TrainingRoomBookingRequest = class TrainingRoomBookingRequest extends BaseModel_1.BaseModel {
33
- constructor(user_id, purpose_of_training, date_of_event, start_time, end_time, room_type, number_of_attendees, network_support_required = false, meals_required = false, status = TrainingRoomBookingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
33
+ constructor(user_id, purpose_of_training, date_of_event, start_time, end_time, room_type, number_of_attendees, network_support_required = false, meals_required = false, status = TrainingRoomBookingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, name_of_participants, remarks, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
34
34
  super();
35
35
  this.user_id = user_id;
36
36
  this.purpose_of_training = purpose_of_training;
@@ -47,6 +47,7 @@ let TrainingRoomBookingRequest = class TrainingRoomBookingRequest extends BaseMo
47
47
  this.req_user_department_id = req_user_department_id || null;
48
48
  this.req_user_section_id = req_user_section_id || null;
49
49
  this.req_user_position_id = req_user_position_id || null;
50
+ this.name_of_participants = name_of_participants ?? null;
50
51
  this.remarks = remarks || null;
51
52
  this.reviewer_user_id = reviewer_user_id || null;
52
53
  this.assigned_to_user_id = assigned_to_user_id || null;
@@ -115,6 +116,10 @@ __decorate([
115
116
  (0, typeorm_1.Column)({ type: "integer", nullable: false }),
116
117
  __metadata("design:type", Number)
117
118
  ], TrainingRoomBookingRequest.prototype, "number_of_attendees", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: "json", nullable: true }),
121
+ __metadata("design:type", Object)
122
+ ], TrainingRoomBookingRequest.prototype, "name_of_participants", void 0);
118
123
  __decorate([
119
124
  (0, typeorm_1.Column)({ type: "text", nullable: true }),
120
125
  __metadata("design:type", Object)
@@ -146,5 +151,5 @@ __decorate([
146
151
  ], TrainingRoomBookingRequest.prototype, "workflow_execution_id", void 0);
147
152
  exports.TrainingRoomBookingRequest = TrainingRoomBookingRequest = __decorate([
148
153
  (0, typeorm_1.Entity)({ name: "training_room_booking_requests" }),
149
- __metadata("design:paramtypes", [Number, String, Date, String, String, String, Number, Boolean, Boolean, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
154
+ __metadata("design:paramtypes", [Number, String, Date, String, String, String, Number, Boolean, Boolean, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
150
155
  ], TrainingRoomBookingRequest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.111",
3
+ "version": "2.3.120",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -2,6 +2,7 @@ import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
2
2
  import { BaseModel } from './BaseModel';
3
3
  import { Departments } from './DepartmentsModel';
4
4
  import { DocumentFolder } from './DocumentFolderModel';
5
+ import { DocumentDrive } from './DocumentDriveModel';
5
6
  import { DocumentType } from './DocumentTypeModel';
6
7
  import { DocumentPermission } from './DocumentPermissionModel';
7
8
  import { DocumentAuditLog } from './DocumentAuditLogModel';
@@ -18,6 +19,9 @@ export class Document extends BaseModel {
18
19
  @Column({ type: 'integer', nullable: false })
19
20
  document_type_id: number;
20
21
 
22
+ @Column({ type: 'integer', nullable: true })
23
+ drive_id?: number;
24
+
21
25
  @Column({ type: 'integer', nullable: true })
22
26
  folder_id?: number;
23
27
 
@@ -53,6 +57,10 @@ export class Document extends BaseModel {
53
57
  @JoinColumn({ name: 'document_type_id' })
54
58
  documentType?: DocumentType;
55
59
 
60
+ @ManyToOne(() => DocumentDrive, { nullable: true })
61
+ @JoinColumn({ name: 'drive_id' })
62
+ drive?: DocumentDrive;
63
+
56
64
  @ManyToOne(() => DocumentFolder, { nullable: true })
57
65
  @JoinColumn({ name: 'folder_id' })
58
66
  folder?: DocumentFolder;
@@ -66,6 +66,9 @@ export class TrainingRoomBookingRequest extends BaseModel {
66
66
  @Column({ type: "integer", nullable: false })
67
67
  number_of_attendees: number;
68
68
 
69
+ @Column({ type: "json", nullable: true })
70
+ name_of_participants: string[] | null;
71
+
69
72
  @Column({ type: "text", nullable: true })
70
73
  remarks: string | null;
71
74
 
@@ -105,6 +108,7 @@ export class TrainingRoomBookingRequest extends BaseModel {
105
108
  req_user_department_id?: number | null,
106
109
  req_user_section_id?: number | null,
107
110
  req_user_position_id?: number | null,
111
+ name_of_participants?: string[] | null,
108
112
  remarks?: string | null,
109
113
  reviewer_user_id?: number | null,
110
114
  assigned_to_user_id?: number | null,
@@ -127,6 +131,7 @@ export class TrainingRoomBookingRequest extends BaseModel {
127
131
  this.req_user_department_id = req_user_department_id || null;
128
132
  this.req_user_section_id = req_user_section_id || null;
129
133
  this.req_user_position_id = req_user_position_id || null;
134
+ this.name_of_participants = name_of_participants ?? null;
130
135
  this.remarks = remarks || null;
131
136
  this.reviewer_user_id = reviewer_user_id || null;
132
137
  this.assigned_to_user_id = assigned_to_user_id || null;