@platform-modules/civil-aviation-authority 1.0.7 → 1.0.9

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.
@@ -1,17 +1,17 @@
1
1
  import { BaseModel } from './BaseModel';
2
- export declare enum ProblemLevel {
3
- HIGH = "High",
4
- MEDIUM = "Medium",
5
- LOW = "Low"
2
+ export declare enum ContactFor {
3
+ SELF = "Self",
4
+ BEHALFOF = "Behalf of"
6
5
  }
7
6
  export declare class ITHelpDeskRequests extends BaseModel {
8
7
  department: string;
9
8
  service_type: string;
10
- problem: ProblemLevel;
9
+ problem: string;
10
+ request_for: ContactFor;
11
11
  description: string;
12
12
  extn_num: string;
13
13
  contact_num: string;
14
14
  request_date: Date;
15
15
  attachment_url: string;
16
- constructor(department: string, service_type: string, problem: ProblemLevel, description: string, extn_num: string, contact_num: string, request_date: Date, 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);
17
17
  }
@@ -9,21 +9,21 @@ 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.ProblemLevel = void 0;
12
+ exports.ITHelpDeskRequests = exports.ContactFor = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- var ProblemLevel;
16
- (function (ProblemLevel) {
17
- ProblemLevel["HIGH"] = "High";
18
- ProblemLevel["MEDIUM"] = "Medium";
19
- ProblemLevel["LOW"] = "Low";
20
- })(ProblemLevel || (exports.ProblemLevel = ProblemLevel = {}));
15
+ var ContactFor;
16
+ (function (ContactFor) {
17
+ ContactFor["SELF"] = "Self";
18
+ ContactFor["BEHALFOF"] = "Behalf of";
19
+ })(ContactFor || (exports.ContactFor = ContactFor = {}));
21
20
  let ITHelpDeskRequests = class ITHelpDeskRequests extends BaseModel_1.BaseModel {
22
- constructor(department, service_type, problem, description, extn_num, contact_num, request_date, attachment_url) {
21
+ constructor(department, service_type, problem, request_for, description, extn_num, contact_num, request_date, attachment_url) {
23
22
  super();
24
23
  this.department = department,
25
24
  this.service_type = service_type,
26
25
  this.problem = problem,
26
+ this.request_for = request_for,
27
27
  this.description = description,
28
28
  this.extn_num = extn_num,
29
29
  this.contact_num = contact_num,
@@ -40,15 +40,19 @@ __decorate([
40
40
  (0, typeorm_1.Column)({ nullable: false }),
41
41
  __metadata("design:type", String)
42
42
  ], ITHelpDeskRequests.prototype, "service_type", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ nullable: false }),
45
+ __metadata("design:type", String)
46
+ ], ITHelpDeskRequests.prototype, "problem", void 0);
43
47
  __decorate([
44
48
  (0, typeorm_1.Column)({
45
49
  type: "enum",
46
- enum: ProblemLevel,
47
- default: ProblemLevel.MEDIUM,
50
+ enum: ContactFor,
51
+ default: ContactFor.SELF,
48
52
  nullable: false,
49
53
  }),
50
54
  __metadata("design:type", String)
51
- ], ITHelpDeskRequests.prototype, "problem", void 0);
55
+ ], ITHelpDeskRequests.prototype, "request_for", void 0);
52
56
  __decorate([
53
57
  (0, typeorm_1.Column)({ nullable: false }),
54
58
  __metadata("design:type", String)
@@ -71,5 +75,5 @@ __decorate([
71
75
  ], ITHelpDeskRequests.prototype, "attachment_url", void 0);
72
76
  exports.ITHelpDeskRequests = ITHelpDeskRequests = __decorate([
73
77
  (0, typeorm_1.Entity)({ name: 'IT_Help_Desk_Requests' }),
74
- __metadata("design:paramtypes", [String, String, String, String, String, String, Date, String])
78
+ __metadata("design:paramtypes", [String, String, String, String, String, String, String, Date, String])
75
79
  ], ITHelpDeskRequests);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,10 +1,9 @@
1
1
 
2
2
  import { Column, Entity } from "typeorm";
3
3
  import { BaseModel } from './BaseModel';
4
- export enum ProblemLevel {
5
- HIGH = "High",
6
- MEDIUM = "Medium",
7
- LOW = "Low",
4
+ export enum ContactFor {
5
+ SELF = "Self",
6
+ BEHALFOF = "Behalf of"
8
7
  }
9
8
  @Entity({ name: 'IT_Help_Desk_Requests' })
10
9
  export class ITHelpDeskRequests extends BaseModel {
@@ -15,13 +14,16 @@ export class ITHelpDeskRequests extends BaseModel {
15
14
  @Column({ nullable: false })
16
15
  service_type: string;
17
16
 
17
+ @Column({ nullable: false })
18
+ problem: string;
19
+
18
20
  @Column({
19
21
  type: "enum",
20
- enum: ProblemLevel,
21
- default: ProblemLevel.MEDIUM,
22
+ enum: ContactFor,
23
+ default: ContactFor.SELF,
22
24
  nullable: false,
23
25
  })
24
- problem: ProblemLevel;
26
+ request_for: ContactFor;
25
27
 
26
28
  @Column({ nullable: false })
27
29
  description: string;
@@ -41,7 +43,8 @@ export class ITHelpDeskRequests extends BaseModel {
41
43
  constructor(
42
44
  department: string,
43
45
  service_type: string,
44
- problem: ProblemLevel,
46
+ problem: string,
47
+ request_for: ContactFor,
45
48
  description: string,
46
49
  extn_num: string,
47
50
  contact_num: string,
@@ -51,7 +54,8 @@ export class ITHelpDeskRequests extends BaseModel {
51
54
  super();
52
55
  this.department = department,
53
56
  this.service_type = service_type,
54
- this.problem = problem ,
57
+ this.problem = problem,
58
+ this.request_for = request_for,
55
59
  this.description = description,
56
60
  this.extn_num = extn_num,
57
61
  this.contact_num = contact_num,