@platform-modules/civil-aviation-authority 2.3.182 → 2.3.183
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.
- package/dist/models/AccessCardRequestModel.d.ts +2 -2
- package/dist/models/AccessCardRequestModel.js +4 -4
- package/dist/models/AnnualTrainingPlanRequestModel.js +1 -1
- package/package.json +1 -1
- package/src/models/AccessCardRequestModel.ts +4 -4
- package/src/models/AnnualTrainingPlanRequestModel.ts +1 -1
- package/src/models/TrainingRequestModel.ts +164 -164
|
@@ -33,11 +33,11 @@ export declare class AccessCardRequest extends BaseModel {
|
|
|
33
33
|
request_type: AccessCardRequestType;
|
|
34
34
|
category: AccessCardCategory;
|
|
35
35
|
approval_route: string | null;
|
|
36
|
-
organization: string;
|
|
36
|
+
organization: string | null;
|
|
37
37
|
access_card_no: string | null;
|
|
38
38
|
reason: string;
|
|
39
39
|
request_date: Date;
|
|
40
40
|
status: AccessCardRequestStatus;
|
|
41
41
|
workflow_execution_id: string | null;
|
|
42
|
-
constructor(request_for: AccessCardRequestFor, name: string, id_number: string, phone_number: string, email_id: string, request_type: AccessCardRequestType, category: AccessCardCategory, organization: string, reason: string, request_date: Date, user_id: number, status?: AccessCardRequestStatus, approval_route?: string | null, service_id?: number, sub_service_id?: number, req_user_department_id?: number, req_user_section_id?: number, access_card_no?: string | null, workflow_execution_id?: string | null);
|
|
42
|
+
constructor(request_for: AccessCardRequestFor, name: string, id_number: string, phone_number: string, email_id: string, request_type: AccessCardRequestType, category: AccessCardCategory, organization: string | null, reason: string, request_date: Date, user_id: number, status?: AccessCardRequestStatus, approval_route?: string | null, service_id?: number, sub_service_id?: number, req_user_department_id?: number, req_user_section_id?: number, access_card_no?: string | null, workflow_execution_id?: string | null);
|
|
43
43
|
}
|
|
@@ -46,7 +46,7 @@ let AccessCardRequest = class AccessCardRequest extends BaseModel_1.BaseModel {
|
|
|
46
46
|
this.email_id = email_id;
|
|
47
47
|
this.request_type = request_type;
|
|
48
48
|
this.category = category;
|
|
49
|
-
this.organization = organization;
|
|
49
|
+
this.organization = organization ?? null;
|
|
50
50
|
this.reason = reason;
|
|
51
51
|
this.request_date = request_date;
|
|
52
52
|
this.user_id = user_id;
|
|
@@ -114,8 +114,8 @@ __decorate([
|
|
|
114
114
|
__metadata("design:type", Object)
|
|
115
115
|
], AccessCardRequest.prototype, "approval_route", void 0);
|
|
116
116
|
__decorate([
|
|
117
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable:
|
|
118
|
-
__metadata("design:type",
|
|
117
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
119
|
], AccessCardRequest.prototype, "organization", void 0);
|
|
120
120
|
__decorate([
|
|
121
121
|
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
@@ -144,5 +144,5 @@ __decorate([
|
|
|
144
144
|
], AccessCardRequest.prototype, "workflow_execution_id", void 0);
|
|
145
145
|
exports.AccessCardRequest = AccessCardRequest = __decorate([
|
|
146
146
|
(0, typeorm_1.Entity)({ name: "access_card_requests" }),
|
|
147
|
-
__metadata("design:paramtypes", [String, String, String, String, String, String, String,
|
|
147
|
+
__metadata("design:paramtypes", [String, String, String, String, String, String, String, Object, String, Date, Number, String, Object, Number, Number, Number, Number, Object, Object])
|
|
148
148
|
], AccessCardRequest);
|
|
@@ -96,7 +96,7 @@ __decorate([
|
|
|
96
96
|
__metadata("design:type", Number)
|
|
97
97
|
], AnnualTrainingPlanRequest.prototype, "total_cost", void 0);
|
|
98
98
|
__decorate([
|
|
99
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false }),
|
|
99
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: false, default: "" }),
|
|
100
100
|
__metadata("design:type", String)
|
|
101
101
|
], AnnualTrainingPlanRequest.prototype, "proposed_implementation_date", void 0);
|
|
102
102
|
__decorate([
|
package/package.json
CHANGED
|
@@ -66,8 +66,8 @@ export class AccessCardRequest extends BaseModel {
|
|
|
66
66
|
@Column({ type: "varchar", length: 50, nullable: true })
|
|
67
67
|
approval_route: string | null;
|
|
68
68
|
|
|
69
|
-
@Column({ type: "varchar", length: 255, nullable:
|
|
70
|
-
organization: string;
|
|
69
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
70
|
+
organization: string | null;
|
|
71
71
|
|
|
72
72
|
@Column({ type: "varchar", length: 100, nullable: true })
|
|
73
73
|
access_card_no: string | null;
|
|
@@ -97,7 +97,7 @@ export class AccessCardRequest extends BaseModel {
|
|
|
97
97
|
email_id: string,
|
|
98
98
|
request_type: AccessCardRequestType,
|
|
99
99
|
category: AccessCardCategory,
|
|
100
|
-
organization: string,
|
|
100
|
+
organization: string | null,
|
|
101
101
|
reason: string,
|
|
102
102
|
request_date: Date,
|
|
103
103
|
user_id: number,
|
|
@@ -118,7 +118,7 @@ export class AccessCardRequest extends BaseModel {
|
|
|
118
118
|
this.email_id = email_id;
|
|
119
119
|
this.request_type = request_type;
|
|
120
120
|
this.category = category;
|
|
121
|
-
this.organization = organization;
|
|
121
|
+
this.organization = organization ?? null;
|
|
122
122
|
this.reason = reason;
|
|
123
123
|
this.request_date = request_date;
|
|
124
124
|
this.user_id = user_id;
|
|
@@ -46,7 +46,7 @@ export class AnnualTrainingPlanRequest extends BaseModel {
|
|
|
46
46
|
@Column({ type: "decimal", precision: 10, scale: 2, nullable: false })
|
|
47
47
|
total_cost: number;
|
|
48
48
|
|
|
49
|
-
@Column({ type: "varchar", length: 500, nullable: false })
|
|
49
|
+
@Column({ type: "varchar", length: 500, nullable: false, default: "" })
|
|
50
50
|
proposed_implementation_date: string;
|
|
51
51
|
|
|
52
52
|
@Column({ type: "text", nullable: false })
|
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from "./BaseModel";
|
|
3
|
-
|
|
4
|
-
export enum TrainingRequestStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
ASSIGNED = "Assigned",
|
|
7
|
-
IN_PROGRESS = "In Progress",
|
|
8
|
-
COMPLETED = "Completed",
|
|
9
|
-
APPROVED = "Approved",
|
|
10
|
-
REJECTED = "Rejected"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum TypeOfTraining {
|
|
14
|
-
INSIDE_TRAINING = "Inside Training",
|
|
15
|
-
OUTSIDE_TRAINING = "Outside Training"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export enum TypeOfCategory {
|
|
19
|
-
PLANNED = "Planned",
|
|
20
|
-
OUT_OF_PLANNED = "Out of planned"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export enum TrainingMediaCoverageRequired {
|
|
24
|
-
YES = "Yes",
|
|
25
|
-
NO = "No"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Entity({ name: "training_requests" })
|
|
29
|
-
export class TrainingRequest extends BaseModel {
|
|
30
|
-
@Column({ type: "integer", nullable: true })
|
|
31
|
-
req_user_department_id: number | null;
|
|
32
|
-
|
|
33
|
-
@Column({ type: "integer", nullable: true })
|
|
34
|
-
req_user_section_id: number | null;
|
|
35
|
-
|
|
36
|
-
@Column({ type: "integer", nullable: true })
|
|
37
|
-
req_user_position_id: number | null;
|
|
38
|
-
|
|
39
|
-
@Column({ type: "integer", nullable: true })
|
|
40
|
-
service_id: number | null;
|
|
41
|
-
|
|
42
|
-
@Column({ type: "integer", nullable: true })
|
|
43
|
-
sub_service_id: number | null;
|
|
44
|
-
|
|
45
|
-
@Column({ type: "integer", nullable: false })
|
|
46
|
-
user_id: number;
|
|
47
|
-
|
|
48
|
-
@Column({
|
|
49
|
-
type: "enum",
|
|
50
|
-
enum: TypeOfTraining,
|
|
51
|
-
nullable: true
|
|
52
|
-
})
|
|
53
|
-
type_of_training: TypeOfTraining | null;
|
|
54
|
-
|
|
55
|
-
@Column({
|
|
56
|
-
type: "enum",
|
|
57
|
-
enum: TypeOfCategory,
|
|
58
|
-
nullable: true
|
|
59
|
-
})
|
|
60
|
-
type_of_category: TypeOfCategory | null;
|
|
61
|
-
|
|
62
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
63
|
-
course_name: string | null;
|
|
64
|
-
|
|
65
|
-
@Column({ type: "varchar", length: 100, nullable: true })
|
|
66
|
-
course_id: string | null;
|
|
67
|
-
|
|
68
|
-
@Column({ type: "text", nullable: false })
|
|
69
|
-
description: string;
|
|
70
|
-
|
|
71
|
-
@Column({ type: "date", nullable: true })
|
|
72
|
-
start_date: Date | null;
|
|
73
|
-
|
|
74
|
-
@Column({ type: "date", nullable: true })
|
|
75
|
-
end_date: Date | null;
|
|
76
|
-
|
|
77
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
78
|
-
place: string | null;
|
|
79
|
-
|
|
80
|
-
/** Selected attendees (e.g. user_id + optional display name from UI selection) */
|
|
81
|
-
@Column({ type: "jsonb", nullable: true })
|
|
82
|
-
name_of_attendees_selection: Array<{ user_id: number; name?: string }> | null;
|
|
83
|
-
|
|
84
|
-
@Column({ type: "integer", nullable: false })
|
|
85
|
-
no_of_attendees: number;
|
|
86
|
-
|
|
87
|
-
@Column({
|
|
88
|
-
type: "enum",
|
|
89
|
-
enum: TrainingMediaCoverageRequired,
|
|
90
|
-
default: TrainingMediaCoverageRequired.NO,
|
|
91
|
-
nullable: false
|
|
92
|
-
})
|
|
93
|
-
media_coverage_required: TrainingMediaCoverageRequired;
|
|
94
|
-
|
|
95
|
-
@Column({
|
|
96
|
-
type: "enum",
|
|
97
|
-
enum: TrainingRequestStatus,
|
|
98
|
-
default: TrainingRequestStatus.PENDING,
|
|
99
|
-
nullable: false
|
|
100
|
-
})
|
|
101
|
-
status: TrainingRequestStatus;
|
|
102
|
-
|
|
103
|
-
@Column({ type: "integer", nullable: true })
|
|
104
|
-
reviewer_user_id: number | null;
|
|
105
|
-
|
|
106
|
-
@Column({ type: "integer", nullable: true })
|
|
107
|
-
assigned_to_user_id: number | null;
|
|
108
|
-
|
|
109
|
-
@Column({ type: "timestamp", nullable: true })
|
|
110
|
-
assigned_at: Date | null;
|
|
111
|
-
|
|
112
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
113
|
-
workflow_execution_id: string | null;
|
|
114
|
-
|
|
115
|
-
constructor(
|
|
116
|
-
user_id: number,
|
|
117
|
-
type_of_training: TypeOfTraining | null,
|
|
118
|
-
description: string,
|
|
119
|
-
place: string | null,
|
|
120
|
-
no_of_attendees: number,
|
|
121
|
-
media_coverage_required: TrainingMediaCoverageRequired,
|
|
122
|
-
status: TrainingRequestStatus = TrainingRequestStatus.PENDING,
|
|
123
|
-
service_id?: number | null,
|
|
124
|
-
sub_service_id?: number | null,
|
|
125
|
-
req_user_department_id?: number | null,
|
|
126
|
-
req_user_section_id?: number | null,
|
|
127
|
-
req_user_position_id?: number | null,
|
|
128
|
-
type_of_category?: TypeOfCategory | null,
|
|
129
|
-
course_name?: string | null,
|
|
130
|
-
course_id?: string | null,
|
|
131
|
-
name_of_attendees_selection?: Array<{ user_id: number; name?: string }> | null,
|
|
132
|
-
start_date?: Date | null,
|
|
133
|
-
end_date?: Date | null,
|
|
134
|
-
reviewer_user_id?: number | null,
|
|
135
|
-
assigned_to_user_id?: number | null,
|
|
136
|
-
assigned_at?: Date | null,
|
|
137
|
-
workflow_execution_id?: string | null
|
|
138
|
-
) {
|
|
139
|
-
super();
|
|
140
|
-
this.user_id = user_id;
|
|
141
|
-
this.type_of_training = type_of_training;
|
|
142
|
-
this.description = description;
|
|
143
|
-
this.place = place;
|
|
144
|
-
this.course_name = course_name ?? null;
|
|
145
|
-
this.course_id = course_id ?? null;
|
|
146
|
-
this.name_of_attendees_selection = name_of_attendees_selection ?? null;
|
|
147
|
-
this.no_of_attendees = no_of_attendees;
|
|
148
|
-
this.media_coverage_required = media_coverage_required;
|
|
149
|
-
this.status = status;
|
|
150
|
-
this.service_id = service_id || null;
|
|
151
|
-
this.sub_service_id = sub_service_id || null;
|
|
152
|
-
this.req_user_department_id = req_user_department_id || null;
|
|
153
|
-
this.req_user_section_id = req_user_section_id || null;
|
|
154
|
-
this.req_user_position_id = req_user_position_id || null;
|
|
155
|
-
this.type_of_category = type_of_category || null;
|
|
156
|
-
this.start_date = start_date || null;
|
|
157
|
-
this.end_date = end_date || null;
|
|
158
|
-
this.reviewer_user_id = reviewer_user_id || null;
|
|
159
|
-
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
160
|
-
this.assigned_at = assigned_at || null;
|
|
161
|
-
this.workflow_execution_id = workflow_execution_id || null;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from "./BaseModel";
|
|
3
|
+
|
|
4
|
+
export enum TrainingRequestStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
ASSIGNED = "Assigned",
|
|
7
|
+
IN_PROGRESS = "In Progress",
|
|
8
|
+
COMPLETED = "Completed",
|
|
9
|
+
APPROVED = "Approved",
|
|
10
|
+
REJECTED = "Rejected"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export enum TypeOfTraining {
|
|
14
|
+
INSIDE_TRAINING = "Inside Training",
|
|
15
|
+
OUTSIDE_TRAINING = "Outside Training"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum TypeOfCategory {
|
|
19
|
+
PLANNED = "Planned",
|
|
20
|
+
OUT_OF_PLANNED = "Out of planned"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum TrainingMediaCoverageRequired {
|
|
24
|
+
YES = "Yes",
|
|
25
|
+
NO = "No"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@Entity({ name: "training_requests" })
|
|
29
|
+
export class TrainingRequest extends BaseModel {
|
|
30
|
+
@Column({ type: "integer", nullable: true })
|
|
31
|
+
req_user_department_id: number | null;
|
|
32
|
+
|
|
33
|
+
@Column({ type: "integer", nullable: true })
|
|
34
|
+
req_user_section_id: number | null;
|
|
35
|
+
|
|
36
|
+
@Column({ type: "integer", nullable: true })
|
|
37
|
+
req_user_position_id: number | null;
|
|
38
|
+
|
|
39
|
+
@Column({ type: "integer", nullable: true })
|
|
40
|
+
service_id: number | null;
|
|
41
|
+
|
|
42
|
+
@Column({ type: "integer", nullable: true })
|
|
43
|
+
sub_service_id: number | null;
|
|
44
|
+
|
|
45
|
+
@Column({ type: "integer", nullable: false })
|
|
46
|
+
user_id: number;
|
|
47
|
+
|
|
48
|
+
@Column({
|
|
49
|
+
type: "enum",
|
|
50
|
+
enum: TypeOfTraining,
|
|
51
|
+
nullable: true
|
|
52
|
+
})
|
|
53
|
+
type_of_training: TypeOfTraining | null;
|
|
54
|
+
|
|
55
|
+
@Column({
|
|
56
|
+
type: "enum",
|
|
57
|
+
enum: TypeOfCategory,
|
|
58
|
+
nullable: true
|
|
59
|
+
})
|
|
60
|
+
type_of_category: TypeOfCategory | null;
|
|
61
|
+
|
|
62
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
63
|
+
course_name: string | null;
|
|
64
|
+
|
|
65
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
66
|
+
course_id: string | null;
|
|
67
|
+
|
|
68
|
+
@Column({ type: "text", nullable: false })
|
|
69
|
+
description: string;
|
|
70
|
+
|
|
71
|
+
@Column({ type: "date", nullable: true })
|
|
72
|
+
start_date: Date | null;
|
|
73
|
+
|
|
74
|
+
@Column({ type: "date", nullable: true })
|
|
75
|
+
end_date: Date | null;
|
|
76
|
+
|
|
77
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
78
|
+
place: string | null;
|
|
79
|
+
|
|
80
|
+
/** Selected attendees (e.g. user_id + optional display name from UI selection) */
|
|
81
|
+
@Column({ type: "jsonb", nullable: true })
|
|
82
|
+
name_of_attendees_selection: Array<{ user_id: number; name?: string }> | null;
|
|
83
|
+
|
|
84
|
+
@Column({ type: "integer", nullable: false })
|
|
85
|
+
no_of_attendees: number;
|
|
86
|
+
|
|
87
|
+
@Column({
|
|
88
|
+
type: "enum",
|
|
89
|
+
enum: TrainingMediaCoverageRequired,
|
|
90
|
+
default: TrainingMediaCoverageRequired.NO,
|
|
91
|
+
nullable: false
|
|
92
|
+
})
|
|
93
|
+
media_coverage_required: TrainingMediaCoverageRequired;
|
|
94
|
+
|
|
95
|
+
@Column({
|
|
96
|
+
type: "enum",
|
|
97
|
+
enum: TrainingRequestStatus,
|
|
98
|
+
default: TrainingRequestStatus.PENDING,
|
|
99
|
+
nullable: false
|
|
100
|
+
})
|
|
101
|
+
status: TrainingRequestStatus;
|
|
102
|
+
|
|
103
|
+
@Column({ type: "integer", nullable: true })
|
|
104
|
+
reviewer_user_id: number | null;
|
|
105
|
+
|
|
106
|
+
@Column({ type: "integer", nullable: true })
|
|
107
|
+
assigned_to_user_id: number | null;
|
|
108
|
+
|
|
109
|
+
@Column({ type: "timestamp", nullable: true })
|
|
110
|
+
assigned_at: Date | null;
|
|
111
|
+
|
|
112
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
113
|
+
workflow_execution_id: string | null;
|
|
114
|
+
|
|
115
|
+
constructor(
|
|
116
|
+
user_id: number,
|
|
117
|
+
type_of_training: TypeOfTraining | null,
|
|
118
|
+
description: string,
|
|
119
|
+
place: string | null,
|
|
120
|
+
no_of_attendees: number,
|
|
121
|
+
media_coverage_required: TrainingMediaCoverageRequired,
|
|
122
|
+
status: TrainingRequestStatus = TrainingRequestStatus.PENDING,
|
|
123
|
+
service_id?: number | null,
|
|
124
|
+
sub_service_id?: number | null,
|
|
125
|
+
req_user_department_id?: number | null,
|
|
126
|
+
req_user_section_id?: number | null,
|
|
127
|
+
req_user_position_id?: number | null,
|
|
128
|
+
type_of_category?: TypeOfCategory | null,
|
|
129
|
+
course_name?: string | null,
|
|
130
|
+
course_id?: string | null,
|
|
131
|
+
name_of_attendees_selection?: Array<{ user_id: number; name?: string }> | null,
|
|
132
|
+
start_date?: Date | null,
|
|
133
|
+
end_date?: Date | null,
|
|
134
|
+
reviewer_user_id?: number | null,
|
|
135
|
+
assigned_to_user_id?: number | null,
|
|
136
|
+
assigned_at?: Date | null,
|
|
137
|
+
workflow_execution_id?: string | null
|
|
138
|
+
) {
|
|
139
|
+
super();
|
|
140
|
+
this.user_id = user_id;
|
|
141
|
+
this.type_of_training = type_of_training;
|
|
142
|
+
this.description = description;
|
|
143
|
+
this.place = place;
|
|
144
|
+
this.course_name = course_name ?? null;
|
|
145
|
+
this.course_id = course_id ?? null;
|
|
146
|
+
this.name_of_attendees_selection = name_of_attendees_selection ?? null;
|
|
147
|
+
this.no_of_attendees = no_of_attendees;
|
|
148
|
+
this.media_coverage_required = media_coverage_required;
|
|
149
|
+
this.status = status;
|
|
150
|
+
this.service_id = service_id || null;
|
|
151
|
+
this.sub_service_id = sub_service_id || null;
|
|
152
|
+
this.req_user_department_id = req_user_department_id || null;
|
|
153
|
+
this.req_user_section_id = req_user_section_id || null;
|
|
154
|
+
this.req_user_position_id = req_user_position_id || null;
|
|
155
|
+
this.type_of_category = type_of_category || null;
|
|
156
|
+
this.start_date = start_date || null;
|
|
157
|
+
this.end_date = end_date || null;
|
|
158
|
+
this.reviewer_user_id = reviewer_user_id || null;
|
|
159
|
+
this.assigned_to_user_id = assigned_to_user_id || null;
|
|
160
|
+
this.assigned_at = assigned_at || null;
|
|
161
|
+
this.workflow_execution_id = workflow_execution_id || null;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|