@platform-modules/civil-aviation-authority 1.0.10 → 1.0.12

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.
@@ -3,6 +3,11 @@ export declare enum ContactFor {
3
3
  SELF = "Self",
4
4
  BEHALFOF = "Behalf of"
5
5
  }
6
+ export declare enum status {
7
+ PENDING = "Pending",
8
+ APPROVED = "Approved",
9
+ REJECTED = "Rejected"
10
+ }
6
11
  export declare class ITHelpDeskRequests extends BaseModel {
7
12
  department: string;
8
13
  service_type: string;
@@ -13,5 +18,9 @@ export declare class ITHelpDeskRequests extends BaseModel {
13
18
  contact_num: string;
14
19
  request_date: Date;
15
20
  attachment_url: string;
16
- constructor(department: string, service_type: string, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, attachment_url: string);
21
+ user_id: number;
22
+ reporting_manager: number;
23
+ assigned_to: number;
24
+ status: status;
25
+ constructor(department: string, service_type: string, problem: string, request_for: ContactFor, description: string, extn_num: string, contact_num: string, request_date: Date, attachment_url: string, reporting_manager: number, assigned_to: number, status: status);
17
26
  }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ITHelpDeskRequests = exports.ContactFor = void 0;
12
+ exports.ITHelpDeskRequests = exports.status = exports.ContactFor = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  var ContactFor;
@@ -17,8 +17,14 @@ var ContactFor;
17
17
  ContactFor["SELF"] = "Self";
18
18
  ContactFor["BEHALFOF"] = "Behalf of";
19
19
  })(ContactFor || (exports.ContactFor = ContactFor = {}));
20
+ var status;
21
+ (function (status) {
22
+ status["PENDING"] = "Pending";
23
+ status["APPROVED"] = "Approved";
24
+ status["REJECTED"] = "Rejected";
25
+ })(status || (exports.status = status = {}));
20
26
  let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
21
- constructor(department, service_type, problem, request_for, description, extn_num, contact_num, request_date, attachment_url) {
27
+ constructor(department, service_type, problem, request_for, description, extn_num, contact_num, request_date, attachment_url, reporting_manager, assigned_to, status) {
22
28
  super();
23
29
  this.department = department,
24
30
  this.service_type = service_type,
@@ -28,7 +34,10 @@ let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel
28
34
  this.extn_num = extn_num,
29
35
  this.contact_num = contact_num,
30
36
  this.request_date = request_date,
31
- this.attachment_url = attachment_url;
37
+ this.attachment_url = attachment_url,
38
+ this.reporting_manager = reporting_manager,
39
+ this.assigned_to = assigned_to,
40
+ this.status = status;
32
41
  }
33
42
  };
34
43
  exports.ITHelpDeskRequests = ITHelpDeskRequests;
@@ -73,7 +82,28 @@ __decorate([
73
82
  (0, typeorm_1.Column)({ nullable: true }),
74
83
  __metadata("design:type", String)
75
84
  ], ITHelpDeskRequests.prototype, "attachment_url", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ nullable: false }),
87
+ __metadata("design:type", Number)
88
+ ], ITHelpDeskRequests.prototype, "user_id", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ nullable: true }),
91
+ __metadata("design:type", Number)
92
+ ], ITHelpDeskRequests.prototype, "reporting_manager", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ nullable: true }),
95
+ __metadata("design:type", Number)
96
+ ], ITHelpDeskRequests.prototype, "assigned_to", void 0);
97
+ __decorate([
98
+ (0, typeorm_1.Column)({
99
+ type: "enum",
100
+ enum: status,
101
+ default: status.PENDING,
102
+ nullable: false,
103
+ }),
104
+ __metadata("design:type", String)
105
+ ], ITHelpDeskRequests.prototype, "status", void 0);
76
106
  exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
77
107
  (0, typeorm_1.Entity)({ name: 'IT_Help_Desk_Requests' }),
78
- __metadata("design:paramtypes", [String, String, String, String, String, String, String, Date, String])
108
+ __metadata("design:paramtypes", [String, String, String, String, String, String, String, Date, String, Number, Number, String])
79
109
  ], ITHelpDeskRequests);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -5,6 +5,11 @@ export enum ContactFor {
5
5
  SELF = "Self",
6
6
  BEHALFOF = "Behalf of"
7
7
  }
8
+ export enum status {
9
+ PENDING = "Pending",
10
+ APPROVED = "Approved",
11
+ REJECTED = "Rejected"
12
+ }
8
13
  @Entity({ name: 'IT_Help_Desk_Requests' })
9
14
  export class ITHelpDeskRequests extends BaseModel {
10
15
 
@@ -40,6 +45,23 @@ export class ITHelpDeskRequests extends BaseModel {
40
45
  @Column({ nullable: true })
41
46
  attachment_url: string;
42
47
 
48
+ @Column({ nullable: false })
49
+ user_id: number;
50
+
51
+ @Column({ nullable: true })
52
+ reporting_manager: number;
53
+
54
+ @Column({ nullable: true })
55
+ assigned_to: number;
56
+
57
+ @Column({
58
+ type: "enum",
59
+ enum: status,
60
+ default: status.PENDING,
61
+ nullable: false,
62
+ })
63
+ status: status;
64
+
43
65
  constructor(
44
66
  department: string,
45
67
  service_type: string,
@@ -49,7 +71,10 @@ export class ITHelpDeskRequests extends BaseModel {
49
71
  extn_num: string,
50
72
  contact_num: string,
51
73
  request_date: Date,
52
- attachment_url: string
74
+ attachment_url: string,
75
+ reporting_manager: number,
76
+ assigned_to: number,
77
+ status: status,
53
78
  ) {
54
79
  super();
55
80
  this.department = department,
@@ -60,6 +85,9 @@ export class ITHelpDeskRequests extends BaseModel {
60
85
  this.extn_num = extn_num,
61
86
  this.contact_num = contact_num,
62
87
  this.request_date = request_date,
63
- this.attachment_url = attachment_url
88
+ this.attachment_url = attachment_url,
89
+ this.reporting_manager = reporting_manager,
90
+ this.assigned_to = assigned_to,
91
+ this.status = status
64
92
  }
65
93
  }