@platform-modules/civil-aviation-authority 2.3.180 → 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/.env +8 -0
- package/dist/models/AccessCardRequestModel.d.ts +2 -2
- package/dist/models/AccessCardRequestModel.js +4 -4
- package/dist/models/AnnualTrainingPlanRequestModel.d.ts +3 -3
- package/dist/models/AnnualTrainingPlanRequestModel.js +5 -5
- package/dist/models/DocumentMetadataModel.d.ts +45 -0
- package/dist/models/DocumentMetadataModel.js +171 -0
- package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
- package/dist/models/DocumentationDepartmentsModel.js +53 -0
- package/dist/models/FolderModel.d.ts +16 -0
- package/dist/models/FolderModel.js +85 -0
- package/dist/models/PermissionModel.d.ts +18 -0
- package/dist/models/PermissionModel.js +68 -0
- package/dist/models/TrainingRequestModel.d.ts +13 -3
- package/dist/models/TrainingRequestModel.js +21 -6
- package/dist/models/UUIDBaseModel.d.ts +14 -0
- package/dist/models/UUIDBaseModel.js +66 -0
- package/package.json +24 -24
- package/src/data-source.ts +385 -385
- package/src/models/AccessCardRequestModel.ts +4 -4
- package/src/models/AirportEntryPermitModel.ts +276 -276
- package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
- package/src/models/DepartmentsModel.ts +25 -25
- package/src/models/DocumentDriveModel.ts +28 -28
- package/src/models/DocumentFolderModel.ts +45 -45
- package/src/models/HousingContractCancelChatModel.ts +56 -56
- package/src/models/HousingContractRenewalChatModel.ts +59 -59
- package/src/models/ITRequestAttachmentModel.ts +73 -73
- package/src/models/ITRequestChatModel.ts +74 -74
- package/src/models/ItApprovalsModel.ts +84 -84
- package/src/models/ItWorkflowModel.ts +55 -55
- package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
- package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
- package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
- package/src/models/ServicesNotificationConfigModel.ts +55 -55
- package/src/models/StudyLeaveRequestModel.ts +144 -144
- package/src/models/TrainingRequestModel.ts +164 -148
- package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
- package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
- package/platform-modules-civil-aviation-authority-2.3.179.tgz +0 -0
|
@@ -37,12 +37,15 @@ var TrainingMediaCoverageRequired;
|
|
|
37
37
|
TrainingMediaCoverageRequired["NO"] = "No";
|
|
38
38
|
})(TrainingMediaCoverageRequired || (exports.TrainingMediaCoverageRequired = TrainingMediaCoverageRequired = {}));
|
|
39
39
|
let TrainingRequest = class TrainingRequest extends BaseModel_1.BaseModel {
|
|
40
|
-
constructor(user_id, type_of_training, description, place, no_of_attendees, media_coverage_required, status = TrainingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, type_of_category, start_date, end_date, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
|
|
40
|
+
constructor(user_id, type_of_training, description, place, no_of_attendees, media_coverage_required, status = TrainingRequestStatus.PENDING, service_id, sub_service_id, req_user_department_id, req_user_section_id, req_user_position_id, type_of_category, course_name, course_id, name_of_attendees_selection, start_date, end_date, reviewer_user_id, assigned_to_user_id, assigned_at, workflow_execution_id) {
|
|
41
41
|
super();
|
|
42
42
|
this.user_id = user_id;
|
|
43
43
|
this.type_of_training = type_of_training;
|
|
44
44
|
this.description = description;
|
|
45
45
|
this.place = place;
|
|
46
|
+
this.course_name = course_name ?? null;
|
|
47
|
+
this.course_id = course_id ?? null;
|
|
48
|
+
this.name_of_attendees_selection = name_of_attendees_selection ?? null;
|
|
46
49
|
this.no_of_attendees = no_of_attendees;
|
|
47
50
|
this.media_coverage_required = media_coverage_required;
|
|
48
51
|
this.status = status;
|
|
@@ -89,9 +92,9 @@ __decorate([
|
|
|
89
92
|
(0, typeorm_1.Column)({
|
|
90
93
|
type: "enum",
|
|
91
94
|
enum: TypeOfTraining,
|
|
92
|
-
nullable:
|
|
95
|
+
nullable: true
|
|
93
96
|
}),
|
|
94
|
-
__metadata("design:type",
|
|
97
|
+
__metadata("design:type", Object)
|
|
95
98
|
], TrainingRequest.prototype, "type_of_training", void 0);
|
|
96
99
|
__decorate([
|
|
97
100
|
(0, typeorm_1.Column)({
|
|
@@ -101,6 +104,14 @@ __decorate([
|
|
|
101
104
|
}),
|
|
102
105
|
__metadata("design:type", Object)
|
|
103
106
|
], TrainingRequest.prototype, "type_of_category", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], TrainingRequest.prototype, "course_name", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], TrainingRequest.prototype, "course_id", void 0);
|
|
104
115
|
__decorate([
|
|
105
116
|
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
106
117
|
__metadata("design:type", String)
|
|
@@ -114,9 +125,13 @@ __decorate([
|
|
|
114
125
|
__metadata("design:type", Object)
|
|
115
126
|
], TrainingRequest.prototype, "end_date", void 0);
|
|
116
127
|
__decorate([
|
|
117
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable:
|
|
118
|
-
__metadata("design:type",
|
|
128
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
129
|
+
__metadata("design:type", Object)
|
|
119
130
|
], TrainingRequest.prototype, "place", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], TrainingRequest.prototype, "name_of_attendees_selection", void 0);
|
|
120
135
|
__decorate([
|
|
121
136
|
(0, typeorm_1.Column)({ type: "integer", nullable: false }),
|
|
122
137
|
__metadata("design:type", Number)
|
|
@@ -157,5 +172,5 @@ __decorate([
|
|
|
157
172
|
], TrainingRequest.prototype, "workflow_execution_id", void 0);
|
|
158
173
|
exports.TrainingRequest = TrainingRequest = __decorate([
|
|
159
174
|
(0, typeorm_1.Entity)({ name: "training_requests" }),
|
|
160
|
-
__metadata("design:paramtypes", [Number,
|
|
175
|
+
__metadata("design:paramtypes", [Number, Object, String, Object, Number, String, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
161
176
|
], TrainingRequest);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare abstract class UUIDModel0 {
|
|
2
|
+
jsonIgnore: string[];
|
|
3
|
+
created_by?: string;
|
|
4
|
+
created_at?: Date;
|
|
5
|
+
updated_by?: string;
|
|
6
|
+
updated_at?: Date;
|
|
7
|
+
insertCreated(): void;
|
|
8
|
+
is_deleted?: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class UUIDBaseModel extends UUIDModel0 {
|
|
12
|
+
id: string;
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UUIDBaseModel = exports.UUIDModel0 = void 0;
|
|
16
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
class UUIDModel0 {
|
|
19
|
+
insertCreated() {
|
|
20
|
+
const currentTime = (0, moment_timezone_1.default)().utc().tz('Asia/Kolkata').toDate();
|
|
21
|
+
this.created_at = currentTime;
|
|
22
|
+
this.updated_at = currentTime;
|
|
23
|
+
}
|
|
24
|
+
constructor() {
|
|
25
|
+
this.jsonIgnore = ['logicalDelete', 'is_deleted', 'jsonIgnore'];
|
|
26
|
+
this.is_deleted = false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.UUIDModel0 = UUIDModel0;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UUIDModel0.prototype, "created_by", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], UUIDModel0.prototype, "created_at", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], UUIDModel0.prototype, "updated_by", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.UpdateDateColumn)({ type: "timestamptz", default: () => "CURRENT_TIMESTAMP" }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], UUIDModel0.prototype, "updated_at", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", []),
|
|
50
|
+
__metadata("design:returntype", void 0)
|
|
51
|
+
], UUIDModel0.prototype, "insertCreated", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UUIDModel0.prototype, "is_deleted", void 0);
|
|
56
|
+
class UUIDBaseModel extends UUIDModel0 {
|
|
57
|
+
constructor() {
|
|
58
|
+
super();
|
|
59
|
+
this.id = ''; // This will be set by the database when the entity is saved
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.UUIDBaseModel = UUIDBaseModel;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UUIDBaseModel.prototype, "id", void 0);
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@platform-modules/civil-aviation-authority",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"types": "dist/index.d.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc",
|
|
8
|
-
"dev": "ts-node src/scripts.ts"
|
|
9
|
-
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"moment-timezone": "^0.6.0",
|
|
15
|
-
"pg": "^8.16.0",
|
|
16
|
-
"typeorm": "^0.3.17"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/moment-timezone": "^0.5.30",
|
|
20
|
-
"dotenv": "^16.5.0",
|
|
21
|
-
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.2.0"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@platform-modules/civil-aviation-authority",
|
|
3
|
+
"version": "2.3.183",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"dev": "ts-node src/scripts.ts"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"moment-timezone": "^0.6.0",
|
|
15
|
+
"pg": "^8.16.0",
|
|
16
|
+
"typeorm": "^0.3.17"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/moment-timezone": "^0.5.30",
|
|
20
|
+
"dotenv": "^16.5.0",
|
|
21
|
+
"ts-node": "^10.9.2",
|
|
22
|
+
"typescript": "^5.2.0"
|
|
23
|
+
}
|
|
24
|
+
}
|