@platform-modules/civil-aviation-authority 2.3.165 → 2.3.166
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.
|
@@ -52,6 +52,7 @@ export declare class AccommodationRequest extends BaseModel {
|
|
|
52
52
|
description: string | null;
|
|
53
53
|
assigned_to_user_id: number | null;
|
|
54
54
|
approver_comment: string | null;
|
|
55
|
+
accommodation_allocated: string | null;
|
|
55
56
|
approved_by: number | null;
|
|
56
57
|
approved_at: Date | null;
|
|
57
58
|
constructor();
|
|
@@ -155,6 +155,10 @@ __decorate([
|
|
|
155
155
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
156
156
|
__metadata("design:type", Object)
|
|
157
157
|
], AccommodationRequest.prototype, "approver_comment", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], AccommodationRequest.prototype, "accommodation_allocated", void 0);
|
|
158
162
|
__decorate([
|
|
159
163
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
160
164
|
__metadata("design:type", Object)
|
package/package.json
CHANGED
|
@@ -137,6 +137,9 @@ export class AccommodationRequest extends BaseModel {
|
|
|
137
137
|
@Column({ type: 'text', nullable: true })
|
|
138
138
|
approver_comment: string | null;
|
|
139
139
|
|
|
140
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
141
|
+
accommodation_allocated: string | null;
|
|
142
|
+
|
|
140
143
|
@Column({ type: 'int', nullable: true })
|
|
141
144
|
approved_by: number | null;
|
|
142
145
|
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
import { ITHelpDeskRequests } from './ITHelpDeskModel';
|
|
4
|
-
import { User } from './user';
|
|
5
|
-
|
|
6
|
-
/** Same set as hotel / logistics / event-support chat */
|
|
7
|
-
export enum ITHelpDeskMessageType {
|
|
8
|
-
TEXT = 'text',
|
|
9
|
-
IMAGE = 'image',
|
|
10
|
-
VIDEO = 'video',
|
|
11
|
-
FILE = 'file',
|
|
12
|
-
LINK = 'link',
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@Entity({ name: 'it_request_chat' })
|
|
16
|
-
export class ITRequestChat extends BaseModel {
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'integer', nullable: false })
|
|
19
|
-
request_id: number;
|
|
20
|
-
|
|
21
|
-
@ManyToOne(() => ITHelpDeskRequests)
|
|
22
|
-
@JoinColumn({ name: 'request_id' })
|
|
23
|
-
request: ITHelpDeskRequests;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'integer', nullable: true })
|
|
26
|
-
service_id: number | null;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'integer', nullable: true })
|
|
29
|
-
sub_service_id: number | null;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'integer', nullable: false })
|
|
32
|
-
user_id: number;
|
|
33
|
-
|
|
34
|
-
@ManyToOne(() => User)
|
|
35
|
-
@JoinColumn({ name: 'user_id' })
|
|
36
|
-
user: User;
|
|
37
|
-
|
|
38
|
-
@Column({ type: 'integer', nullable: true })
|
|
39
|
-
role_id: number | null;
|
|
40
|
-
|
|
41
|
-
@Column({ type: 'text', nullable: false })
|
|
42
|
-
message: string;
|
|
43
|
-
|
|
44
|
-
@Column({ type: 'varchar', length: 20, nullable: false, default: ITHelpDeskMessageType.TEXT })
|
|
45
|
-
message_type: string;
|
|
46
|
-
|
|
47
|
-
@Column({ type: 'text', nullable: true })
|
|
48
|
-
status: string | null;
|
|
49
|
-
|
|
50
|
-
@Column({ type: 'boolean', default: false })
|
|
51
|
-
is_internal: boolean;
|
|
52
|
-
|
|
53
|
-
constructor(
|
|
54
|
-
request_id: number,
|
|
55
|
-
user_id: number,
|
|
56
|
-
message: string,
|
|
57
|
-
is_internal?: boolean,
|
|
58
|
-
service_id?: number | null,
|
|
59
|
-
sub_service_id?: number | null,
|
|
60
|
-
role_id?: number | null,
|
|
61
|
-
status?: string | null
|
|
62
|
-
) {
|
|
63
|
-
super();
|
|
64
|
-
this.request_id = request_id;
|
|
65
|
-
this.service_id = service_id || null;
|
|
66
|
-
this.sub_service_id = sub_service_id || null;
|
|
67
|
-
this.user_id = user_id;
|
|
68
|
-
this.role_id = role_id || null;
|
|
69
|
-
this.message = message;
|
|
70
|
-
this.status = status || null;
|
|
71
|
-
this.is_internal = is_internal || false;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { ITHelpDeskRequests } from './ITHelpDeskModel';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
|
|
6
|
+
/** Same set as hotel / logistics / event-support chat */
|
|
7
|
+
export enum ITHelpDeskMessageType {
|
|
8
|
+
TEXT = 'text',
|
|
9
|
+
IMAGE = 'image',
|
|
10
|
+
VIDEO = 'video',
|
|
11
|
+
FILE = 'file',
|
|
12
|
+
LINK = 'link',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Entity({ name: 'it_request_chat' })
|
|
16
|
+
export class ITRequestChat extends BaseModel {
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'integer', nullable: false })
|
|
19
|
+
request_id: number;
|
|
20
|
+
|
|
21
|
+
@ManyToOne(() => ITHelpDeskRequests)
|
|
22
|
+
@JoinColumn({ name: 'request_id' })
|
|
23
|
+
request: ITHelpDeskRequests;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
service_id: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
sub_service_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: false })
|
|
32
|
+
user_id: number;
|
|
33
|
+
|
|
34
|
+
@ManyToOne(() => User)
|
|
35
|
+
@JoinColumn({ name: 'user_id' })
|
|
36
|
+
user: User;
|
|
37
|
+
|
|
38
|
+
@Column({ type: 'integer', nullable: true })
|
|
39
|
+
role_id: number | null;
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'text', nullable: false })
|
|
42
|
+
message: string;
|
|
43
|
+
|
|
44
|
+
@Column({ type: 'varchar', length: 20, nullable: false, default: ITHelpDeskMessageType.TEXT })
|
|
45
|
+
message_type: string;
|
|
46
|
+
|
|
47
|
+
@Column({ type: 'text', nullable: true })
|
|
48
|
+
status: string | null;
|
|
49
|
+
|
|
50
|
+
@Column({ type: 'boolean', default: false })
|
|
51
|
+
is_internal: boolean;
|
|
52
|
+
|
|
53
|
+
constructor(
|
|
54
|
+
request_id: number,
|
|
55
|
+
user_id: number,
|
|
56
|
+
message: string,
|
|
57
|
+
is_internal?: boolean,
|
|
58
|
+
service_id?: number | null,
|
|
59
|
+
sub_service_id?: number | null,
|
|
60
|
+
role_id?: number | null,
|
|
61
|
+
status?: string | null
|
|
62
|
+
) {
|
|
63
|
+
super();
|
|
64
|
+
this.request_id = request_id;
|
|
65
|
+
this.service_id = service_id || null;
|
|
66
|
+
this.sub_service_id = sub_service_id || null;
|
|
67
|
+
this.user_id = user_id;
|
|
68
|
+
this.role_id = role_id || null;
|
|
69
|
+
this.message = message;
|
|
70
|
+
this.status = status || null;
|
|
71
|
+
this.is_internal = is_internal || false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|