@platform-modules/civil-aviation-authority 2.3.81 → 2.3.82

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 (45) hide show
  1. package/.env +19 -13
  2. package/dist/data-source.js +10 -4
  3. package/dist/index.d.ts +9 -3
  4. package/dist/index.js +15 -6
  5. package/dist/models/DutyMissionRequestModel.d.ts +1 -2
  6. package/dist/models/DutyMissionRequestModel.js +12 -17
  7. package/dist/models/FinancialGradeModel.d.ts +3 -2
  8. package/dist/models/FinancialGradeModel.js +12 -7
  9. package/dist/models/JobTransferRequestModel.d.ts +1 -1
  10. package/dist/models/JobTransferRequestModel.js +1 -1
  11. package/dist/models/ResidentialUnitRentalApprovalModel.d.ts +23 -0
  12. package/dist/models/ResidentialUnitRentalApprovalModel.js +88 -0
  13. package/dist/models/ResidentialUnitRentalAttachmentModel.d.ts +12 -0
  14. package/dist/models/ResidentialUnitRentalAttachmentModel.js +56 -0
  15. package/dist/models/ResidentialUnitRentalChatModel.d.ts +18 -0
  16. package/dist/models/ResidentialUnitRentalChatModel.js +60 -0
  17. package/dist/models/ResidentialUnitRentalRequestModel.d.ts +48 -0
  18. package/dist/models/ResidentialUnitRentalRequestModel.js +123 -0
  19. package/dist/models/ResidentialUnitRentalWorkflowModel.d.ts +25 -0
  20. package/dist/models/ResidentialUnitRentalWorkflowModel.js +88 -0
  21. package/package.json +1 -1
  22. package/src/data-source.ts +10 -4
  23. package/src/index.ts +10 -5
  24. package/src/models/DutyMissionRequestModel.ts +10 -15
  25. package/src/models/FinancialGradeModel.ts +10 -5
  26. package/src/models/JobTransferRequestModel.ts +2 -2
  27. package/src/models/ResidentialUnitRentalApprovalModel.ts +62 -0
  28. package/src/models/ResidentialUnitRentalAttachmentModel.ts +34 -0
  29. package/src/models/ResidentialUnitRentalChatModel.ts +39 -0
  30. package/src/models/ResidentialUnitRentalRequestModel.ts +101 -0
  31. package/src/models/ResidentialUnitRentalWorkflowModel.ts +60 -0
  32. package/dist/models/CityMasterModel.d.ts +0 -8
  33. package/dist/models/CityMasterModel.js +0 -41
  34. package/dist/models/ITApprovalSettings.d.ts +0 -7
  35. package/dist/models/ITApprovalSettings.js +0 -40
  36. package/dist/models/ITServicesTypesMuscatModel.d.ts +0 -6
  37. package/dist/models/ITServicesTypesMuscatModel.js +0 -34
  38. package/dist/models/ITServicesTypesSalalahModel.d.ts +0 -6
  39. package/dist/models/ITServicesTypesSalalahModel.js +0 -34
  40. package/dist/models/SkillsEnhancementRequestModel.d.ts +0 -39
  41. package/dist/models/SkillsEnhancementRequestModel.js +0 -133
  42. package/dist/models/Workflows.d.ts +0 -0
  43. package/dist/models/Workflows.js +0 -31
  44. package/src/models/CityMasterModel.ts +0 -22
  45. package/src/models/SkillsEnhancementRequestModel.ts +0 -120
@@ -0,0 +1,101 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum ResidentialUnitRentalRequestStatus {
5
+ Pending = 'Pending',
6
+ Approved = 'Approved',
7
+ Rejected = 'Rejected',
8
+ RFC = 'RFC'
9
+ }
10
+
11
+ @Entity({ name: 'residential_unit_rental_requests' })
12
+ export class ResidentialUnitRentalRequest extends BaseModel {
13
+
14
+ @Column({ type: 'varchar', length: 20, nullable: false })
15
+ request_id: string;
16
+
17
+ @Column({ type: 'int', nullable: false })
18
+ service_id: number;
19
+
20
+ @Column({ type: 'int', nullable: false })
21
+ sub_service_id: number;
22
+
23
+ @Column({ type: 'varchar', length: 50, nullable: false })
24
+ requested_unit_type: string; // Apartment, Villa
25
+
26
+ /** BRD: Apartment options with OMR rates - Studio 100, 1BHK 150, 2BHK 200, 3BHK 250 */
27
+ @Column({ type: 'json', nullable: true })
28
+ apartment_type: {
29
+ studio?: boolean;
30
+ one_bhk?: boolean;
31
+ two_bhk?: boolean;
32
+ three_bhk?: boolean;
33
+ };
34
+
35
+ /** BRD: Villa options with OMR rates - 1 ROOM 201, 2 ROOM 350, 3 ROOM 400 */
36
+ @Column({ type: 'json', nullable: true })
37
+ villa_type: {
38
+ one_room?: boolean;
39
+ two_room?: boolean;
40
+ three_room?: boolean;
41
+ };
42
+
43
+ @Column({ type: 'varchar', length: 20, nullable: true })
44
+ extension_number: string;
45
+
46
+ @Column({ type: 'date', nullable: false })
47
+ preferred_start_date: Date;
48
+
49
+ @Column({ type: 'int', nullable: false })
50
+ family_size: number;
51
+
52
+ @Column({ type: 'varchar', length: 50, nullable: false })
53
+ duration_of_stay: string; // Months/Years
54
+
55
+ @Column({ type: 'varchar', length: 255, nullable: true })
56
+ location_of_unit: string;
57
+
58
+ @Column({ type: 'text', nullable: true })
59
+ comment: string;
60
+
61
+ @Column({ type: 'varchar', length: 20, nullable: false, default: 'Pending' })
62
+ status: string;
63
+
64
+ @Column({ type: 'int', nullable: true })
65
+ user_id: number;
66
+
67
+ @Column({ type: 'varchar', length: 255, nullable: true })
68
+ workflow_execution_id: string;
69
+
70
+ @Column({ type: 'int', nullable: false })
71
+ created_by: number;
72
+
73
+ @Column({ type: 'int', nullable: true })
74
+ approved_by: number;
75
+
76
+ @Column({ type: 'date', nullable: true })
77
+ approved_at: Date;
78
+
79
+ @Column({ type: 'text', nullable: true })
80
+ approver_comment: string;
81
+
82
+ @Column({ type: 'json', nullable: true })
83
+ unit_details: {
84
+ type: string;
85
+ specifications: any;
86
+ rate: number;
87
+ };
88
+
89
+ @Column({ type: 'date', nullable: true })
90
+ rental_start_date: Date;
91
+
92
+ @Column({ type: 'date', nullable: true })
93
+ rental_end_date: Date;
94
+
95
+ @Column({ type: 'text', nullable: true })
96
+ rental_agreement_url: string;
97
+
98
+ constructor() {
99
+ super();
100
+ }
101
+ }
@@ -0,0 +1,60 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from "./BaseModel";
3
+
4
+ export enum ResidentialUnitRentalWorkFlowStatus {
5
+ Pending = 'Pending',
6
+ InProgress = 'In Progress',
7
+ Approved = 'Approved',
8
+ Rejected = 'Rejected',
9
+ RFC = 'RFC' // Request for change / Modification (flowchart)
10
+ }
11
+
12
+ @Entity({ name: 'residential_unit_rental_workflow' })
13
+ export class ResidentialUnitRentalWorkflow extends BaseModel {
14
+
15
+ @Column({ type: 'int', nullable: false })
16
+ request_id: number;
17
+
18
+ @Column({ type: 'int', nullable: true })
19
+ service_id: number;
20
+
21
+ @Column({ type: 'int', nullable: true })
22
+ sub_service_id: number;
23
+
24
+ @Column({ type: 'int', nullable: true })
25
+ workflow_definition_id: number;
26
+
27
+ @Column({ type: 'int', nullable: true })
28
+ current_level: number;
29
+
30
+ @Column({ type: 'varchar', length: 500, nullable: true })
31
+ content: string;
32
+
33
+ @Column({ type: 'varchar', length: 50, nullable: false })
34
+ status: string;
35
+
36
+ @Column({ type: 'int', nullable: true })
37
+ step_order: number;
38
+
39
+ @Column({ type: 'int', nullable: true })
40
+ user_id: number;
41
+
42
+ @Column({ type: 'int', nullable: true })
43
+ role_id: number;
44
+
45
+ @Column({ type: 'int', nullable: true })
46
+ department_id: number;
47
+
48
+ @Column({ type: 'int', nullable: true })
49
+ section_id: number;
50
+
51
+ @Column({ type: 'text', nullable: true })
52
+ workflow_data: string; // JSON string
53
+
54
+ @Column({ type: 'int', nullable: false })
55
+ created_by: number;
56
+
57
+ constructor() {
58
+ super();
59
+ }
60
+ }
@@ -1,8 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class CityMaster extends BaseModel {
3
- country_id: number | null;
4
- city_name: string;
5
- city_code: string | null;
6
- description: string | null;
7
- constructor(city_name: string);
8
- }
@@ -1,41 +0,0 @@
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.CityMaster = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let CityMaster = class CityMaster extends BaseModel_1.BaseModel {
16
- constructor(city_name) {
17
- super();
18
- this.city_name = city_name;
19
- }
20
- };
21
- exports.CityMaster = CityMaster;
22
- __decorate([
23
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
24
- __metadata("design:type", Object)
25
- ], CityMaster.prototype, "country_id", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
28
- __metadata("design:type", String)
29
- ], CityMaster.prototype, "city_name", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
32
- __metadata("design:type", Object)
33
- ], CityMaster.prototype, "city_code", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
36
- __metadata("design:type", Object)
37
- ], CityMaster.prototype, "description", void 0);
38
- exports.CityMaster = CityMaster = __decorate([
39
- (0, typeorm_1.Entity)({ name: 'city_master' }),
40
- __metadata("design:paramtypes", [String])
41
- ], CityMaster);
@@ -1,7 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITApprovalSettings extends BaseModel {
3
- level: number;
4
- approval_role_id: number;
5
- workflow_id: number;
6
- constructor(level: number, approval_role_id: number, workflow_id: number);
7
- }
@@ -1,40 +0,0 @@
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.ITApprovalSettings = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITApprovalSettings = class ITApprovalSettings extends BaseModel_1.BaseModel {
16
- constructor(level, approval_role_id, workflow_id) {
17
- super();
18
- this.level = level;
19
- this.approval_role_id = approval_role_id;
20
- this.workflow_id = workflow_id;
21
- }
22
- };
23
- exports.ITApprovalSettings = ITApprovalSettings;
24
- __decorate([
25
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
26
- __metadata("design:type", Number)
27
- ], ITApprovalSettings.prototype, "level", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
30
- __metadata("design:type", Number)
31
- ], ITApprovalSettings.prototype, "approval_role_id", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ type: 'int', nullable: false }),
34
- __metadata("design:type", Number)
35
- ], ITApprovalSettings.prototype, "workflow_id", void 0);
36
- exports.ITApprovalSettings = ITApprovalSettings = __decorate([
37
- (0, typeorm_1.Entity)({ name: 'it_approval_settings' }),
38
- (0, typeorm_1.Unique)(['workflow_id', 'level']),
39
- __metadata("design:paramtypes", [Number, Number, Number])
40
- ], ITApprovalSettings);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypesMuscat extends BaseModel {
3
- name: string;
4
- name_in_arabic: string;
5
- constructor(name: string, name_in_arabic: string);
6
- }
@@ -1,34 +0,0 @@
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.ITServicesTypesMuscat = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITServicesTypesMuscat = class ITServicesTypesMuscat extends BaseModel_1.BaseModel {
16
- constructor(name, name_in_arabic) {
17
- super();
18
- this.name = name;
19
- this.name_in_arabic = name_in_arabic;
20
- }
21
- };
22
- exports.ITServicesTypesMuscat = ITServicesTypesMuscat;
23
- __decorate([
24
- (0, typeorm_1.Column)({ nullable: false }),
25
- __metadata("design:type", String)
26
- ], ITServicesTypesMuscat.prototype, "name", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ nullable: false }),
29
- __metadata("design:type", String)
30
- ], ITServicesTypesMuscat.prototype, "name_in_arabic", void 0);
31
- exports.ITServicesTypesMuscat = ITServicesTypesMuscat = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'it_services_types_muscat' }),
33
- __metadata("design:paramtypes", [String, String])
34
- ], ITServicesTypesMuscat);
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypesSalalah extends BaseModel {
3
- name: string;
4
- name_in_arabic: string;
5
- constructor(name: string, name_in_arabic: string);
6
- }
@@ -1,34 +0,0 @@
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.ITServicesTypesSalalah = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITServicesTypesSalalah = class ITServicesTypesSalalah extends BaseModel_1.BaseModel {
16
- constructor(name, name_in_arabic) {
17
- super();
18
- this.name = name;
19
- this.name_in_arabic = name_in_arabic;
20
- }
21
- };
22
- exports.ITServicesTypesSalalah = ITServicesTypesSalalah;
23
- __decorate([
24
- (0, typeorm_1.Column)({ nullable: false }),
25
- __metadata("design:type", String)
26
- ], ITServicesTypesSalalah.prototype, "name", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)({ nullable: false }),
29
- __metadata("design:type", String)
30
- ], ITServicesTypesSalalah.prototype, "name_in_arabic", void 0);
31
- exports.ITServicesTypesSalalah = ITServicesTypesSalalah = __decorate([
32
- (0, typeorm_1.Entity)({ name: 'it_services_types_salalah' }),
33
- __metadata("design:paramtypes", [String, String])
34
- ], ITServicesTypesSalalah);
@@ -1,39 +0,0 @@
1
- import { BaseModel } from "./BaseModel";
2
- export declare enum SkillsEnhancementRequestStatus {
3
- PENDING = "Pending",
4
- ASSIGNED = "Assigned",
5
- IN_PROGRESS = "In Progress",
6
- COMPLETED = "Completed",
7
- APPROVED = "Approved",
8
- REJECTED = "Rejected",
9
- INFORMATION_REQUESTED = "Information Requested"
10
- }
11
- export declare enum SkillCategory {
12
- TECHNICAL = "Technical",
13
- COMPLIANCE = "Compliance",
14
- MANAGEMENT = "Management",
15
- SAFETY = "Safety",
16
- SOFT_SKILLS = "Soft Skills",
17
- OTHER = "Other"
18
- }
19
- export declare class SkillsEnhancementRequest extends BaseModel {
20
- req_user_department_id: number | null;
21
- req_user_section_id: number | null;
22
- req_user_position_id: number | null;
23
- user_id: number;
24
- service_id: number | null;
25
- sub_service_id: number | null;
26
- status: SkillsEnhancementRequestStatus;
27
- reviewer_user_id: number | null;
28
- assigned_to_user_id: number | null;
29
- assigned_at: Date | null;
30
- workflow_execution_id: string | null;
31
- description: string | null;
32
- certification_title: string;
33
- skill_category: SkillCategory;
34
- issuing_authority: string;
35
- completion_date: Date;
36
- skill_summary: string | null;
37
- additional_info_requested: string | null;
38
- constructor(user_id: number, status?: SkillsEnhancementRequestStatus, 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, certification_title?: string, skill_category?: SkillCategory, issuing_authority?: string, completion_date?: Date, skill_summary?: string | null, additional_info_requested?: string | null);
39
- }
@@ -1,133 +0,0 @@
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.SkillsEnhancementRequest = exports.SkillCategory = exports.SkillsEnhancementRequestStatus = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var SkillsEnhancementRequestStatus;
16
- (function (SkillsEnhancementRequestStatus) {
17
- SkillsEnhancementRequestStatus["PENDING"] = "Pending";
18
- SkillsEnhancementRequestStatus["ASSIGNED"] = "Assigned";
19
- SkillsEnhancementRequestStatus["IN_PROGRESS"] = "In Progress";
20
- SkillsEnhancementRequestStatus["COMPLETED"] = "Completed";
21
- SkillsEnhancementRequestStatus["APPROVED"] = "Approved";
22
- SkillsEnhancementRequestStatus["REJECTED"] = "Rejected";
23
- SkillsEnhancementRequestStatus["INFORMATION_REQUESTED"] = "Information Requested";
24
- })(SkillsEnhancementRequestStatus || (exports.SkillsEnhancementRequestStatus = SkillsEnhancementRequestStatus = {}));
25
- var SkillCategory;
26
- (function (SkillCategory) {
27
- SkillCategory["TECHNICAL"] = "Technical";
28
- SkillCategory["COMPLIANCE"] = "Compliance";
29
- SkillCategory["MANAGEMENT"] = "Management";
30
- SkillCategory["SAFETY"] = "Safety";
31
- SkillCategory["SOFT_SKILLS"] = "Soft Skills";
32
- SkillCategory["OTHER"] = "Other";
33
- })(SkillCategory || (exports.SkillCategory = SkillCategory = {}));
34
- let SkillsEnhancementRequest = class SkillsEnhancementRequest extends BaseModel_1.BaseModel {
35
- constructor(user_id, status = SkillsEnhancementRequestStatus.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, certification_title, skill_category, issuing_authority, completion_date, skill_summary, additional_info_requested) {
36
- super();
37
- this.user_id = user_id;
38
- this.status = status;
39
- this.service_id = service_id || null;
40
- this.sub_service_id = sub_service_id || null;
41
- this.req_user_department_id = req_user_department_id || null;
42
- this.req_user_section_id = req_user_section_id || null;
43
- this.req_user_position_id = req_user_position_id || null;
44
- this.description = description || null;
45
- this.reviewer_user_id = reviewer_user_id || null;
46
- this.assigned_to_user_id = assigned_to_user_id || null;
47
- this.assigned_at = assigned_at || null;
48
- this.workflow_execution_id = workflow_execution_id || null;
49
- this.certification_title = certification_title || "";
50
- this.skill_category = skill_category || SkillCategory.TECHNICAL;
51
- this.issuing_authority = issuing_authority || "";
52
- this.completion_date = completion_date || new Date();
53
- this.skill_summary = skill_summary || null;
54
- this.additional_info_requested = additional_info_requested || null;
55
- }
56
- };
57
- exports.SkillsEnhancementRequest = SkillsEnhancementRequest;
58
- __decorate([
59
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
60
- __metadata("design:type", Object)
61
- ], SkillsEnhancementRequest.prototype, "req_user_department_id", void 0);
62
- __decorate([
63
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
64
- __metadata("design:type", Object)
65
- ], SkillsEnhancementRequest.prototype, "req_user_section_id", void 0);
66
- __decorate([
67
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
68
- __metadata("design:type", Object)
69
- ], SkillsEnhancementRequest.prototype, "req_user_position_id", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)({ type: "integer", nullable: false }),
72
- __metadata("design:type", Number)
73
- ], SkillsEnhancementRequest.prototype, "user_id", void 0);
74
- __decorate([
75
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
76
- __metadata("design:type", Object)
77
- ], SkillsEnhancementRequest.prototype, "service_id", void 0);
78
- __decorate([
79
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
80
- __metadata("design:type", Object)
81
- ], SkillsEnhancementRequest.prototype, "sub_service_id", void 0);
82
- __decorate([
83
- (0, typeorm_1.Column)({ type: "enum", enum: SkillsEnhancementRequestStatus, default: SkillsEnhancementRequestStatus.PENDING, nullable: false }),
84
- __metadata("design:type", String)
85
- ], SkillsEnhancementRequest.prototype, "status", void 0);
86
- __decorate([
87
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
88
- __metadata("design:type", Object)
89
- ], SkillsEnhancementRequest.prototype, "reviewer_user_id", void 0);
90
- __decorate([
91
- (0, typeorm_1.Column)({ type: "integer", nullable: true }),
92
- __metadata("design:type", Object)
93
- ], SkillsEnhancementRequest.prototype, "assigned_to_user_id", void 0);
94
- __decorate([
95
- (0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
96
- __metadata("design:type", Object)
97
- ], SkillsEnhancementRequest.prototype, "assigned_at", void 0);
98
- __decorate([
99
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
100
- __metadata("design:type", Object)
101
- ], SkillsEnhancementRequest.prototype, "workflow_execution_id", void 0);
102
- __decorate([
103
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
104
- __metadata("design:type", Object)
105
- ], SkillsEnhancementRequest.prototype, "description", void 0);
106
- __decorate([
107
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
108
- __metadata("design:type", String)
109
- ], SkillsEnhancementRequest.prototype, "certification_title", void 0);
110
- __decorate([
111
- (0, typeorm_1.Column)({ type: "enum", enum: SkillCategory, nullable: false }),
112
- __metadata("design:type", String)
113
- ], SkillsEnhancementRequest.prototype, "skill_category", void 0);
114
- __decorate([
115
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
116
- __metadata("design:type", String)
117
- ], SkillsEnhancementRequest.prototype, "issuing_authority", void 0);
118
- __decorate([
119
- (0, typeorm_1.Column)({ type: "date", nullable: false }),
120
- __metadata("design:type", Date)
121
- ], SkillsEnhancementRequest.prototype, "completion_date", void 0);
122
- __decorate([
123
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
124
- __metadata("design:type", Object)
125
- ], SkillsEnhancementRequest.prototype, "skill_summary", void 0);
126
- __decorate([
127
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
128
- __metadata("design:type", Object)
129
- ], SkillsEnhancementRequest.prototype, "additional_info_requested", void 0);
130
- exports.SkillsEnhancementRequest = SkillsEnhancementRequest = __decorate([
131
- (0, typeorm_1.Entity)({ name: "skills_enhancement_requests" }),
132
- __metadata("design:paramtypes", [Number, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, String, String, String, Date, Object, Object])
133
- ], SkillsEnhancementRequest);
File without changes
@@ -1,31 +0,0 @@
1
- "use strict";
2
- // import { Column, Entity, Unique } from "typeorm";
3
- // import { BaseModel } from './BaseModel';
4
- // @Entity({ name: 'workflows' })
5
- // @Unique(['service_id', 'sub_service_id', 'request_for'])
6
- // export class Workflows extends BaseModel {
7
- // @Column({ type: 'varchar', length: 100, nullable: false })
8
- // name: string;
9
- // @Column({ type: 'bigint', nullable: false })
10
- // service_id: number;
11
- // @Column({ type: 'bigint', nullable: false })
12
- // sub_service_id: number;
13
- // @Column({ type: 'varchar', length: 20, nullable: false })
14
- // request_for: string; // 'Self' | 'Behalf of' | 'Internal'
15
- // @Column({ type: 'int', nullable: false })
16
- // levels: number;
17
- // constructor(
18
- // name: string,
19
- // service_id: number,
20
- // sub_service_id: number,
21
- // request_for: string,
22
- // levels: number,
23
- // ) {
24
- // super();
25
- // this.name = name;
26
- // this.service_id = service_id;
27
- // this.sub_service_id = sub_service_id;
28
- // this.request_for = request_for;
29
- // this.levels = levels;
30
- // }
31
- // }
@@ -1,22 +0,0 @@
1
- import { Column, Entity } from "typeorm";
2
- import { BaseModel } from './BaseModel';
3
-
4
- @Entity({ name: 'city_master' })
5
- export class CityMaster extends BaseModel {
6
- @Column({ type: 'int', nullable: true })
7
- country_id: number | null;
8
-
9
- @Column({ type: 'varchar', length: 255, nullable: false })
10
- city_name: string;
11
-
12
- @Column({ type: 'varchar', length: 50, nullable: true })
13
- city_code: string | null;
14
-
15
- @Column({ type: 'text', nullable: true })
16
- description: string | null;
17
-
18
- constructor(city_name: string) {
19
- super();
20
- this.city_name = city_name;
21
- }
22
- }