@platform-modules/foreign-ministry 1.2.35 → 1.2.36
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.
|
@@ -3,7 +3,9 @@ export declare class GeneralServiceChats extends BaseModel {
|
|
|
3
3
|
request_id: number;
|
|
4
4
|
content: string;
|
|
5
5
|
sender_user_id: number;
|
|
6
|
+
sender_role_id: number | null;
|
|
7
|
+
status: string | null;
|
|
6
8
|
service_id: number | null;
|
|
7
9
|
sub_service_id: number | null;
|
|
8
|
-
constructor(request_id: number, content: string, sender_user_id: number, service_id?: number | null, sub_service_id?: number | null);
|
|
10
|
+
constructor(request_id: number, content: string, sender_user_id: number, service_id?: number | null, sub_service_id?: number | null, sender_role_id?: number | null, status?: string | null);
|
|
9
11
|
}
|
|
@@ -15,13 +15,15 @@ const BaseModel_1 = require("./BaseModel");
|
|
|
15
15
|
let GeneralServiceChats = class GeneralServiceChats extends BaseModel_1.BaseModel {
|
|
16
16
|
// Note: No relationship mapping - this table is generic and can be used with any request table
|
|
17
17
|
// Use request_id to join manually when needed
|
|
18
|
-
constructor(request_id, content, sender_user_id, service_id, sub_service_id) {
|
|
18
|
+
constructor(request_id, content, sender_user_id, service_id, sub_service_id, sender_role_id, status) {
|
|
19
19
|
super();
|
|
20
20
|
this.request_id = request_id;
|
|
21
21
|
this.content = content;
|
|
22
22
|
this.sender_user_id = sender_user_id;
|
|
23
23
|
this.service_id = service_id || null;
|
|
24
24
|
this.sub_service_id = sub_service_id || null;
|
|
25
|
+
this.sender_role_id = sender_role_id || null;
|
|
26
|
+
this.status = status || null;
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
29
|
exports.GeneralServiceChats = GeneralServiceChats;
|
|
@@ -37,6 +39,14 @@ __decorate([
|
|
|
37
39
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
38
40
|
__metadata("design:type", Number)
|
|
39
41
|
], GeneralServiceChats.prototype, "sender_user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], GeneralServiceChats.prototype, "sender_role_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], GeneralServiceChats.prototype, "status", void 0);
|
|
40
50
|
__decorate([
|
|
41
51
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
52
|
__metadata("design:type", Object)
|
|
@@ -47,5 +57,5 @@ __decorate([
|
|
|
47
57
|
], GeneralServiceChats.prototype, "sub_service_id", void 0);
|
|
48
58
|
exports.GeneralServiceChats = GeneralServiceChats = __decorate([
|
|
49
59
|
(0, typeorm_1.Entity)({ name: 'general_service_chats' }),
|
|
50
|
-
__metadata("design:paramtypes", [Number, String, Number, Object, Object])
|
|
60
|
+
__metadata("design:paramtypes", [Number, String, Number, Object, Object, Object, Object])
|
|
51
61
|
], GeneralServiceChats);
|
package/package.json
CHANGED
|
@@ -12,6 +12,12 @@ export class GeneralServiceChats extends BaseModel {
|
|
|
12
12
|
@Column({ type: 'int' })
|
|
13
13
|
sender_user_id: number;
|
|
14
14
|
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
sender_role_id: number | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
19
|
+
status: string | null;
|
|
20
|
+
|
|
15
21
|
@Column({ type: 'int', nullable: true })
|
|
16
22
|
service_id: number | null; // For filtering and multi-service support
|
|
17
23
|
|
|
@@ -26,7 +32,9 @@ export class GeneralServiceChats extends BaseModel {
|
|
|
26
32
|
content: string,
|
|
27
33
|
sender_user_id: number,
|
|
28
34
|
service_id?: number | null,
|
|
29
|
-
sub_service_id?: number | null
|
|
35
|
+
sub_service_id?: number | null,
|
|
36
|
+
sender_role_id?: number | null,
|
|
37
|
+
status?: string | null
|
|
30
38
|
) {
|
|
31
39
|
super();
|
|
32
40
|
this.request_id = request_id;
|
|
@@ -34,6 +42,8 @@ export class GeneralServiceChats extends BaseModel {
|
|
|
34
42
|
this.sender_user_id = sender_user_id;
|
|
35
43
|
this.service_id = service_id || null;
|
|
36
44
|
this.sub_service_id = sub_service_id || null;
|
|
45
|
+
this.sender_role_id = sender_role_id || null;
|
|
46
|
+
this.status = status || null;
|
|
37
47
|
}
|
|
38
48
|
}
|
|
39
49
|
|