@platform-modules/civil-aviation-authority 2.0.7 → 2.0.8

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.
@@ -29,6 +29,10 @@ export declare enum Type_of_Vehicle {
29
29
  SEDAN = "Sedan",
30
30
  SUV = "SUV"
31
31
  }
32
+ export declare enum Type_of_Request {
33
+ NEW_REQUEST = "New Request",
34
+ EXTENSION = "Extension of Previous Request"
35
+ }
32
36
  export declare class LogisticsRequests extends BaseModel {
33
37
  req_user_department_id: number | null;
34
38
  req_user_section_id: number | null;
@@ -41,6 +45,7 @@ export declare class LogisticsRequests extends BaseModel {
41
45
  title: string;
42
46
  purpose_of_travel: Purpose_of_Travel;
43
47
  type_of_vehicle_required: Type_of_Vehicle;
48
+ type_of_request: Type_of_Request;
44
49
  date_of_travel: Date;
45
50
  time_of_travel: string;
46
51
  exp_duration_of_use_hrs: number;
@@ -48,5 +53,5 @@ export declare class LogisticsRequests extends BaseModel {
48
53
  description: string;
49
54
  status: Status;
50
55
  workflow_execution_id: string | null;
51
- constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, request_type: Request_Type, vehicle_required_for: Vehicle_Required_For, vehicle_required_location: Vehicle_Required_Location, title: string, purpose_of_travel: Purpose_of_Travel, type_of_vehicle_required: Type_of_Vehicle, date_of_travel: Date, time_of_travel: string, exp_duration_of_use_hrs: number, exp_duration_of_use_days: number, description: string, status: Status, workflow_execution_id?: string | null);
56
+ constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, request_type: Request_Type, vehicle_required_for: Vehicle_Required_For, vehicle_required_location: Vehicle_Required_Location, title: string, purpose_of_travel: Purpose_of_Travel, type_of_vehicle_required: Type_of_Vehicle, type_of_request: Type_of_Request, date_of_travel: Date, time_of_travel: string, exp_duration_of_use_hrs: number, exp_duration_of_use_days: number, description: string, status: Status, workflow_execution_id?: string | null);
52
57
  }
@@ -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.LogisticsRequests = exports.Type_of_Vehicle = exports.Purpose_of_Travel = exports.Vehicle_Required_Location = exports.Vehicle_Required_For = exports.Status = exports.Request_Type = void 0;
12
+ exports.LogisticsRequests = exports.Type_of_Request = exports.Type_of_Vehicle = exports.Purpose_of_Travel = exports.Vehicle_Required_Location = exports.Vehicle_Required_For = exports.Status = exports.Request_Type = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  var Request_Type;
@@ -48,8 +48,13 @@ var Type_of_Vehicle;
48
48
  Type_of_Vehicle["SEDAN"] = "Sedan";
49
49
  Type_of_Vehicle["SUV"] = "SUV";
50
50
  })(Type_of_Vehicle || (exports.Type_of_Vehicle = Type_of_Vehicle = {}));
51
+ var Type_of_Request;
52
+ (function (Type_of_Request) {
53
+ Type_of_Request["NEW_REQUEST"] = "New Request";
54
+ Type_of_Request["EXTENSION"] = "Extension of Previous Request";
55
+ })(Type_of_Request || (exports.Type_of_Request = Type_of_Request = {}));
51
56
  let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
52
- constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, request_type, vehicle_required_for, vehicle_required_location, title, purpose_of_travel, type_of_vehicle_required, date_of_travel, time_of_travel, exp_duration_of_use_hrs, exp_duration_of_use_days, description, status, workflow_execution_id) {
57
+ constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, request_type, vehicle_required_for, vehicle_required_location, title, purpose_of_travel, type_of_vehicle_required, type_of_request, date_of_travel, time_of_travel, exp_duration_of_use_hrs, exp_duration_of_use_days, description, status, workflow_execution_id) {
53
58
  super();
54
59
  this.req_user_department_id = req_user_department_id ?? null;
55
60
  this.req_user_section_id = req_user_section_id ?? null;
@@ -62,6 +67,7 @@ let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
62
67
  this.title = title;
63
68
  this.purpose_of_travel = purpose_of_travel;
64
69
  this.type_of_vehicle_required = type_of_vehicle_required;
70
+ this.type_of_request = type_of_request;
65
71
  this.date_of_travel = date_of_travel;
66
72
  this.time_of_travel = time_of_travel;
67
73
  this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;
@@ -141,6 +147,15 @@ __decorate([
141
147
  }),
142
148
  __metadata("design:type", String)
143
149
  ], LogisticsRequests.prototype, "type_of_vehicle_required", void 0);
150
+ __decorate([
151
+ (0, typeorm_1.Column)({
152
+ type: "enum",
153
+ enum: Type_of_Request,
154
+ default: Type_of_Request.NEW_REQUEST,
155
+ nullable: false,
156
+ }),
157
+ __metadata("design:type", String)
158
+ ], LogisticsRequests.prototype, "type_of_request", void 0);
144
159
  __decorate([
145
160
  (0, typeorm_1.Column)({ type: "date", nullable: false }),
146
161
  __metadata("design:type", Date)
@@ -176,5 +191,5 @@ __decorate([
176
191
  ], LogisticsRequests.prototype, "workflow_execution_id", void 0);
177
192
  exports.LogisticsRequests = LogisticsRequests = __decorate([
178
193
  (0, typeorm_1.Entity)({ name: 'logistics_requests' }),
179
- __metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, Date, String, Number, Number, String, String, Object])
194
+ __metadata("design:paramtypes", [Object, Object, Number, Number, Number, String, String, String, String, String, String, String, Date, String, Number, Number, String, String, Object])
180
195
  ], LogisticsRequests);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -37,6 +37,11 @@ export enum Type_of_Vehicle {
37
37
  SUV = "SUV"
38
38
  }
39
39
 
40
+ export enum Type_of_Request {
41
+ NEW_REQUEST = "New Request",
42
+ EXTENSION = "Extension of Previous Request"
43
+ }
44
+
40
45
  @Entity({ name: 'logistics_requests' })
41
46
  export class LogisticsRequests extends BaseModel {
42
47
 
@@ -98,6 +103,14 @@ export class LogisticsRequests extends BaseModel {
98
103
  })
99
104
  type_of_vehicle_required: Type_of_Vehicle;
100
105
 
106
+ @Column({
107
+ type: "enum",
108
+ enum: Type_of_Request,
109
+ default: Type_of_Request.NEW_REQUEST,
110
+ nullable: false,
111
+ })
112
+ type_of_request: Type_of_Request;
113
+
101
114
  @Column({ type: "date", nullable: false })
102
115
  date_of_travel: Date;
103
116
 
@@ -136,6 +149,7 @@ export class LogisticsRequests extends BaseModel {
136
149
  title: string,
137
150
  purpose_of_travel: Purpose_of_Travel,
138
151
  type_of_vehicle_required: Type_of_Vehicle,
152
+ type_of_request: Type_of_Request,
139
153
  date_of_travel: Date,
140
154
  time_of_travel: string,
141
155
  exp_duration_of_use_hrs: number,
@@ -156,6 +170,7 @@ export class LogisticsRequests extends BaseModel {
156
170
  this.title = title;
157
171
  this.purpose_of_travel = purpose_of_travel;
158
172
  this.type_of_vehicle_required = type_of_vehicle_required;
173
+ this.type_of_request = type_of_request;
159
174
  this.date_of_travel = date_of_travel;
160
175
  this.time_of_travel = time_of_travel;
161
176
  this.exp_duration_of_use_hrs = exp_duration_of_use_hrs;