@platform-modules/civil-aviation-authority 2.3.180 → 2.3.182

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 (37) hide show
  1. package/.env +8 -0
  2. package/dist/models/AnnualTrainingPlanRequestModel.d.ts +3 -3
  3. package/dist/models/AnnualTrainingPlanRequestModel.js +5 -5
  4. package/dist/models/DocumentMetadataModel.d.ts +45 -0
  5. package/dist/models/DocumentMetadataModel.js +171 -0
  6. package/dist/models/DocumentationDepartmentsModel.d.ts +13 -0
  7. package/dist/models/DocumentationDepartmentsModel.js +53 -0
  8. package/dist/models/FolderModel.d.ts +16 -0
  9. package/dist/models/FolderModel.js +85 -0
  10. package/dist/models/PermissionModel.d.ts +18 -0
  11. package/dist/models/PermissionModel.js +68 -0
  12. package/dist/models/TrainingRequestModel.d.ts +13 -3
  13. package/dist/models/TrainingRequestModel.js +21 -6
  14. package/dist/models/UUIDBaseModel.d.ts +14 -0
  15. package/dist/models/UUIDBaseModel.js +66 -0
  16. package/package.json +24 -24
  17. package/src/data-source.ts +385 -385
  18. package/src/models/AirportEntryPermitModel.ts +276 -276
  19. package/src/models/AnnualTrainingPlanRequestModel.ts +153 -153
  20. package/src/models/DepartmentsModel.ts +25 -25
  21. package/src/models/DocumentDriveModel.ts +28 -28
  22. package/src/models/DocumentFolderModel.ts +45 -45
  23. package/src/models/HousingContractCancelChatModel.ts +56 -56
  24. package/src/models/HousingContractRenewalChatModel.ts +59 -59
  25. package/src/models/ITRequestAttachmentModel.ts +73 -73
  26. package/src/models/ITRequestChatModel.ts +74 -74
  27. package/src/models/ItApprovalsModel.ts +84 -84
  28. package/src/models/ItWorkflowModel.ts +55 -55
  29. package/src/models/MissionTravelPassportExpiryNotificationConfigModel.ts +36 -36
  30. package/src/models/ResidentialUnitRentalChatModel.ts +56 -56
  31. package/src/models/ResidentialUnitRentalRequestModel.ts +218 -218
  32. package/src/models/ServicesNotificationConfigModel.ts +55 -55
  33. package/src/models/StudyLeaveRequestModel.ts +144 -144
  34. package/src/models/TrainingRequestModel.ts +22 -6
  35. package/src/models/TrainingRoomBookingRequestModel.ts +142 -142
  36. package/src/models/TrainingRoomNotificationConfigModel.ts +30 -30
  37. package/platform-modules-civil-aviation-authority-2.3.179.tgz +0 -0
@@ -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.180",
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.182",
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
+ }