@platform-modules/civil-aviation-authority 2.0.9 → 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.
|
@@ -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
|
-
|
|
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);
|
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -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);
|