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

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.
package/.env CHANGED
@@ -1,11 +1,11 @@
1
- # DB_HOST=localhost
2
- # DB_PORT=5433
3
- # DB_USER=postgres
4
- # DB_PASS=123
5
- # DB_NAME=CAA
1
+ DB_HOST=localhost
2
+ DB_PORT=5433
3
+ DB_USER=postgres
4
+ DB_PASS=123
5
+ DB_NAME=CAA
6
6
 
7
- DB_HOST=164.52.222.169
8
- DB_PORT=5432
9
- DB_USER=postgres_admin_user
10
- DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
11
- DB_NAME=CAA
7
+ # DB_HOST=164.52.222.169
8
+ # DB_PORT=5432
9
+ # DB_USER=postgres_admin_user
10
+ # DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
11
+ # DB_NAME=CAA
@@ -7,5 +7,6 @@ export declare class LogisticsRequestAttachment extends BaseModel {
7
7
  file_name: string;
8
8
  file_type: string;
9
9
  file_size: number | null;
10
- constructor(request_id: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number);
10
+ chat_id: number | null;
11
+ constructor(request_id: number, file_url: string, file_name?: string, file_type?: string, file_size?: number, service_id?: number, sub_service_id?: number, chat_id?: number);
11
12
  }
@@ -13,7 +13,7 @@ exports.LogisticsRequestAttachment = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
15
  let LogisticsRequestAttachment = class LogisticsRequestAttachment extends BaseModel_1.BaseModel {
16
- constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id) {
16
+ constructor(request_id, file_url, file_name, file_type, file_size, service_id, sub_service_id, chat_id) {
17
17
  super();
18
18
  this.request_id = request_id;
19
19
  this.service_id = service_id || null;
@@ -22,6 +22,7 @@ let LogisticsRequestAttachment = class LogisticsRequestAttachment extends BaseMo
22
22
  this.file_name = file_name || '';
23
23
  this.file_type = file_type || '';
24
24
  this.file_size = file_size || null;
25
+ this.chat_id = chat_id || null;
25
26
  }
26
27
  };
27
28
  exports.LogisticsRequestAttachment = LogisticsRequestAttachment;
@@ -53,7 +54,11 @@ __decorate([
53
54
  (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
54
55
  __metadata("design:type", Object)
55
56
  ], LogisticsRequestAttachment.prototype, "file_size", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], LogisticsRequestAttachment.prototype, "chat_id", void 0);
56
61
  exports.LogisticsRequestAttachment = LogisticsRequestAttachment = __decorate([
57
62
  (0, typeorm_1.Entity)({ name: 'logistics_request_attachments' }),
58
- __metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number])
63
+ __metadata("design:paramtypes", [Number, String, String, String, Number, Number, Number, Number])
59
64
  ], LogisticsRequestAttachment);
@@ -39,7 +39,7 @@ export declare class LogisticsRequests extends BaseModel {
39
39
  service_id: number;
40
40
  sub_service_id: number;
41
41
  user_id: number;
42
- request_type: Request_Type;
42
+ category: Request_Type;
43
43
  vehicle_required_for: Vehicle_Required_For;
44
44
  vehicle_required_location: Vehicle_Required_Location;
45
45
  title: string;
@@ -53,5 +53,5 @@ export declare class LogisticsRequests extends BaseModel {
53
53
  description: string;
54
54
  status: Status;
55
55
  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);
56
+ constructor(req_user_department_id: number | null, req_user_section_id: number | null, service_id: number, sub_service_id: number, user_id: number, category: 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);
57
57
  }
@@ -54,14 +54,14 @@ var Type_of_Request;
54
54
  Type_of_Request["EXTENSION"] = "Extension of Previous Request";
55
55
  })(Type_of_Request || (exports.Type_of_Request = Type_of_Request = {}));
56
56
  let LogisticsRequests = class LogisticsRequests extends BaseModel_1.BaseModel {
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) {
57
+ constructor(req_user_department_id, req_user_section_id, service_id, sub_service_id, user_id, category, 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) {
58
58
  super();
59
59
  this.req_user_department_id = req_user_department_id ?? null;
60
60
  this.req_user_section_id = req_user_section_id ?? null;
61
61
  this.service_id = service_id;
62
62
  this.sub_service_id = sub_service_id;
63
63
  this.user_id = user_id;
64
- this.request_type = request_type;
64
+ this.category = category;
65
65
  this.vehicle_required_for = vehicle_required_for;
66
66
  this.vehicle_required_location = vehicle_required_location;
67
67
  this.title = title;
@@ -106,7 +106,7 @@ __decorate([
106
106
  nullable: false,
107
107
  }),
108
108
  __metadata("design:type", String)
109
- ], LogisticsRequests.prototype, "request_type", void 0);
109
+ ], LogisticsRequests.prototype, "category", void 0);
110
110
  __decorate([
111
111
  (0, typeorm_1.Column)({
112
112
  type: "enum",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -27,6 +27,9 @@ export class LogisticsRequestAttachment extends BaseModel {
27
27
  @Column({ type: 'bigint', nullable: true })
28
28
  file_size: number | null;
29
29
 
30
+ @Column({ type: 'integer', nullable: true })
31
+ chat_id: number | null;
32
+
30
33
 
31
34
  constructor(
32
35
  request_id: number,
@@ -35,7 +38,8 @@ export class LogisticsRequestAttachment extends BaseModel {
35
38
  file_type?: string,
36
39
  file_size?: number,
37
40
  service_id?: number,
38
- sub_service_id?: number
41
+ sub_service_id?: number,
42
+ chat_id?: number
39
43
  ) {
40
44
  super();
41
45
  this.request_id = request_id;
@@ -45,6 +49,7 @@ export class LogisticsRequestAttachment extends BaseModel {
45
49
  this.file_name = file_name || '';
46
50
  this.file_type = file_type || '';
47
51
  this.file_size = file_size || null;
52
+ this.chat_id = chat_id || null;
48
53
  }
49
54
  }
50
55
 
@@ -66,7 +66,7 @@ export class LogisticsRequests extends BaseModel {
66
66
  default: Request_Type.DAILY,
67
67
  nullable: false,
68
68
  })
69
- request_type: Request_Type;
69
+ category: Request_Type;
70
70
 
71
71
  @Column({
72
72
  type: "enum",
@@ -143,7 +143,7 @@ export class LogisticsRequests extends BaseModel {
143
143
  service_id: number,
144
144
  sub_service_id: number,
145
145
  user_id: number,
146
- request_type: Request_Type,
146
+ category: Request_Type,
147
147
  vehicle_required_for: Vehicle_Required_For,
148
148
  vehicle_required_location: Vehicle_Required_Location,
149
149
  title: string,
@@ -164,7 +164,7 @@ export class LogisticsRequests extends BaseModel {
164
164
  this.service_id = service_id;
165
165
  this.sub_service_id = sub_service_id;
166
166
  this.user_id = user_id;
167
- this.request_type = request_type;
167
+ this.category = category;
168
168
  this.vehicle_required_for = vehicle_required_for;
169
169
  this.vehicle_required_location = vehicle_required_location;
170
170
  this.title = title;
@@ -1,5 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypes extends BaseModel {
3
- name: string;
4
- constructor(name: string);
5
- }
@@ -1,29 +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.ITServicesTypes = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- let ITServicesTypes = class ITServicesTypes extends BaseModel_1.BaseModel {
16
- constructor(name) {
17
- super();
18
- this.name = name;
19
- }
20
- };
21
- exports.ITServicesTypes = ITServicesTypes;
22
- __decorate([
23
- (0, typeorm_1.Column)({ nullable: false }),
24
- __metadata("design:type", String)
25
- ], ITServicesTypes.prototype, "name", void 0);
26
- exports.ITServicesTypes = ITServicesTypes = __decorate([
27
- (0, typeorm_1.Entity)({ name: 'IT_Services_Types' }),
28
- __metadata("design:paramtypes", [String])
29
- ], ITServicesTypes);