@platform-modules/civil-aviation-authority 2.0.9 → 2.0.11

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.
@@ -40,6 +40,7 @@ const LogisticsApprovalModel_1 = require("./models/LogisticsApprovalModel");
40
40
  const LogisticsChatModel_1 = require("./models/LogisticsChatModel");
41
41
  const LogisticsAttachmentModel_1 = require("./models/LogisticsAttachmentModel");
42
42
  const LogisticsWorkflowModel_1 = require("./models/LogisticsWorkflowModel");
43
+ const importantLinksModel_1 = require("./models/importantLinksModel");
43
44
  exports.AppDataSource = new typeorm_1.DataSource({
44
45
  type: 'postgres',
45
46
  host: process.env.DB_HOST || 'localhost',
@@ -83,6 +84,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
83
84
  LogisticsApprovalModel_1.LogisticsApprovalDetails,
84
85
  LogisticsChatModel_1.LogisticsRequestChat,
85
86
  LogisticsAttachmentModel_1.LogisticsRequestAttachment,
86
- LogisticsWorkflowModel_1.LogisticsWorkFlow
87
+ LogisticsWorkflowModel_1.LogisticsWorkFlow,
88
+ importantLinksModel_1.ImportantLinks
87
89
  ],
88
90
  });
package/dist/index.d.ts CHANGED
@@ -31,4 +31,5 @@ export * from './models/LogisticsForeignVehiclePassengerModel';
31
31
  export * from './models/LogisticsApprovalModel';
32
32
  export * from './models/LogisticsChatModel';
33
33
  export * from './models/LogisticsAttachmentModel';
34
+ export * from './models/importantLinksModel';
34
35
  export * from './models/LogisticsWorkflowModel';
package/dist/index.js CHANGED
@@ -48,4 +48,5 @@ __exportStar(require("./models/LogisticsForeignVehiclePassengerModel"), exports)
48
48
  __exportStar(require("./models/LogisticsApprovalModel"), exports);
49
49
  __exportStar(require("./models/LogisticsChatModel"), exports);
50
50
  __exportStar(require("./models/LogisticsAttachmentModel"), exports);
51
+ __exportStar(require("./models/importantLinksModel"), exports);
51
52
  __exportStar(require("./models/LogisticsWorkflowModel"), exports);
@@ -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);
@@ -0,0 +1,6 @@
1
+ import { BaseModel } from './BaseModel';
2
+ export declare class ImportantLinks extends BaseModel {
3
+ title: string;
4
+ url: string;
5
+ constructor(title: string, url: string);
6
+ }
@@ -9,21 +9,26 @@ 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.ITServicesTypes = void 0;
12
+ exports.ImportantLinks = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const BaseModel_1 = require("./BaseModel");
15
- let ITServicesTypes = class ITServicesTypes extends BaseModel_1.BaseModel {
16
- constructor(name) {
15
+ let ImportantLinks = class ImportantLinks extends BaseModel_1.BaseModel {
16
+ constructor(title, url) {
17
17
  super();
18
- this.name = name;
18
+ this.title = title;
19
+ this.url = url;
19
20
  }
20
21
  };
21
- exports.ITServicesTypes = ITServicesTypes;
22
+ exports.ImportantLinks = ImportantLinks;
22
23
  __decorate([
23
- (0, typeorm_1.Column)({ nullable: false }),
24
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
24
25
  __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);
26
+ ], ImportantLinks.prototype, "title", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], ImportantLinks.prototype, "url", void 0);
31
+ exports.ImportantLinks = ImportantLinks = __decorate([
32
+ (0, typeorm_1.Entity)({ name: 'important_links' }),
33
+ __metadata("design:paramtypes", [String, String])
34
+ ], ImportantLinks);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -37,6 +37,7 @@ import { LogisticsApprovalDetails } from './models/LogisticsApprovalModel';
37
37
  import { LogisticsRequestChat } from './models/LogisticsChatModel';
38
38
  import { LogisticsRequestAttachment } from './models/LogisticsAttachmentModel';
39
39
  import { LogisticsWorkFlow } from './models/LogisticsWorkflowModel';
40
+ import { ImportantLinks } from './models/importantLinksModel';
40
41
 
41
42
 
42
43
 
@@ -83,6 +84,7 @@ export const AppDataSource = new DataSource({
83
84
  LogisticsApprovalDetails,
84
85
  LogisticsRequestChat,
85
86
  LogisticsRequestAttachment,
86
- LogisticsWorkFlow
87
+ LogisticsWorkFlow,
88
+ ImportantLinks
87
89
  ],
88
90
  });
package/src/index.ts CHANGED
@@ -32,4 +32,5 @@ export * from './models/LogisticsForeignVehiclePassengerModel';
32
32
  export * from './models/LogisticsApprovalModel';
33
33
  export * from './models/LogisticsChatModel';
34
34
  export * from './models/LogisticsAttachmentModel';
35
+ export * from './models/importantLinksModel';
35
36
  export * from './models/LogisticsWorkflowModel';
@@ -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
 
@@ -0,0 +1,22 @@
1
+ import { Column, Entity } from "typeorm";
2
+ import { BaseModel } from './BaseModel';
3
+
4
+ @Entity({ name: 'important_links' })
5
+ export class ImportantLinks extends BaseModel {
6
+
7
+ @Column({ type: 'varchar', nullable: false })
8
+ title: string;
9
+
10
+ @Column({ type: 'varchar', nullable: false })
11
+ url: string;
12
+
13
+ constructor(
14
+ title: string,
15
+ url: string
16
+ ) {
17
+ super();
18
+ this.title = title;
19
+ this.url = url;
20
+ }
21
+ }
22
+
@@ -1,5 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class ITServicesTypes extends BaseModel {
3
- name: string;
4
- constructor(name: string);
5
- }