@platform-modules/civil-aviation-authority 2.3.315 → 2.3.316

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.
@@ -6,5 +6,9 @@ export declare class ChatbotDocuments extends BaseModel {
6
6
  file_name: string;
7
7
  file_type: string;
8
8
  file_size: number;
9
+ file_url_arabic?: string | null;
10
+ file_name_arabic?: string | null;
11
+ file_type_arabic?: string | null;
12
+ file_size_arabic?: number | null;
9
13
  constructor();
10
14
  }
@@ -15,6 +15,10 @@ const BaseModel_1 = require("./BaseModel");
15
15
  let ChatbotDocuments = class ChatbotDocuments extends BaseModel_1.BaseModel {
16
16
  constructor() {
17
17
  super();
18
+ this.file_url_arabic = null;
19
+ this.file_name_arabic = null;
20
+ this.file_type_arabic = null;
21
+ this.file_size_arabic = null;
18
22
  }
19
23
  };
20
24
  exports.ChatbotDocuments = ChatbotDocuments;
@@ -42,6 +46,22 @@ __decorate([
42
46
  (0, typeorm_1.Column)({ type: "int", nullable: false }),
43
47
  __metadata("design:type", Number)
44
48
  ], ChatbotDocuments.prototype, "file_size", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
51
+ __metadata("design:type", Object)
52
+ ], ChatbotDocuments.prototype, "file_url_arabic", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
55
+ __metadata("design:type", Object)
56
+ ], ChatbotDocuments.prototype, "file_name_arabic", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ type: "varchar", nullable: true }),
59
+ __metadata("design:type", Object)
60
+ ], ChatbotDocuments.prototype, "file_type_arabic", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ type: "int", nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], ChatbotDocuments.prototype, "file_size_arabic", void 0);
45
65
  exports.ChatbotDocuments = ChatbotDocuments = __decorate([
46
66
  (0, typeorm_1.Entity)({ name: "chatbot_documents" }),
47
67
  __metadata("design:paramtypes", [])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/civil-aviation-authority",
3
- "version": "2.3.315",
3
+ "version": "2.3.316",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,6 @@
1
+ -- Add Arabic file columns to chatbot_documents (CAA)
2
+ ALTER TABLE chatbot_documents
3
+ ADD COLUMN IF NOT EXISTS file_url_arabic VARCHAR NULL,
4
+ ADD COLUMN IF NOT EXISTS file_name_arabic VARCHAR NULL,
5
+ ADD COLUMN IF NOT EXISTS file_type_arabic VARCHAR NULL,
6
+ ADD COLUMN IF NOT EXISTS file_size_arabic INTEGER NULL;
@@ -9,6 +9,10 @@ CREATE TABLE IF NOT EXISTS chatbot_documents (
9
9
  file_name VARCHAR NOT NULL,
10
10
  file_type VARCHAR NOT NULL,
11
11
  file_size INTEGER NOT NULL,
12
+ file_url_arabic VARCHAR NULL,
13
+ file_name_arabic VARCHAR NULL,
14
+ file_type_arabic VARCHAR NULL,
15
+ file_size_arabic INTEGER NULL,
12
16
  created_by INTEGER NULL,
13
17
  created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
14
18
  updated_by INTEGER NULL,
@@ -21,7 +21,23 @@ export class ChatbotDocuments extends BaseModel {
21
21
  @Column({ type: "int", nullable: false })
22
22
  file_size: number;
23
23
 
24
+ @Column({ type: "varchar", nullable: true })
25
+ file_url_arabic?: string | null;
26
+
27
+ @Column({ type: "varchar", nullable: true })
28
+ file_name_arabic?: string | null;
29
+
30
+ @Column({ type: "varchar", nullable: true })
31
+ file_type_arabic?: string | null;
32
+
33
+ @Column({ type: "int", nullable: true })
34
+ file_size_arabic?: number | null;
35
+
24
36
  constructor() {
25
37
  super();
38
+ this.file_url_arabic = null;
39
+ this.file_name_arabic = null;
40
+ this.file_type_arabic = null;
41
+ this.file_size_arabic = null;
26
42
  }
27
43
  }