@platform-modules/foreign-ministry 1.3.240 → 1.3.242
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.
|
@@ -2,8 +2,9 @@ import { BaseModel } from './BaseModel';
|
|
|
2
2
|
export declare class ProjectFaqs extends BaseModel {
|
|
3
3
|
is_popular: boolean;
|
|
4
4
|
question: string;
|
|
5
|
-
|
|
5
|
+
/** Null = global / general FAQ not tied to a project */
|
|
6
|
+
project_id: number | null;
|
|
6
7
|
department_id: number;
|
|
7
8
|
answer: string;
|
|
8
|
-
constructor(question?: string, project_id?: number, department_id?: number, answer?: string, is_popular?: boolean);
|
|
9
|
+
constructor(question?: string, project_id?: number | null, department_id?: number, answer?: string, is_popular?: boolean);
|
|
9
10
|
}
|
|
@@ -16,7 +16,7 @@ let ProjectFaqs = class ProjectFaqs extends BaseModel_1.BaseModel {
|
|
|
16
16
|
constructor(question, project_id, department_id, answer, is_popular) {
|
|
17
17
|
super();
|
|
18
18
|
this.question = question ?? '';
|
|
19
|
-
this.project_id = project_id ??
|
|
19
|
+
this.project_id = project_id ?? null;
|
|
20
20
|
this.department_id = department_id ?? 0;
|
|
21
21
|
this.answer = answer ?? '';
|
|
22
22
|
this.is_popular = is_popular ?? false;
|
|
@@ -32,8 +32,8 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], ProjectFaqs.prototype, "question", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
-
__metadata("design:type",
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
37
|
], ProjectFaqs.prototype, "project_id", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
@@ -45,5 +45,5 @@ __decorate([
|
|
|
45
45
|
], ProjectFaqs.prototype, "answer", void 0);
|
|
46
46
|
exports.ProjectFaqs = ProjectFaqs = __decorate([
|
|
47
47
|
(0, typeorm_1.Entity)({ name: 'project_faqs' }),
|
|
48
|
-
__metadata("design:paramtypes", [String,
|
|
48
|
+
__metadata("design:paramtypes", [String, Object, Number, String, Boolean])
|
|
49
49
|
], ProjectFaqs);
|
package/package.json
CHANGED
|
@@ -9,8 +9,9 @@ export class ProjectFaqs extends BaseModel {
|
|
|
9
9
|
@Column({ type: 'text' })
|
|
10
10
|
question: string;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/** Null = global / general FAQ not tied to a project */
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
project_id: number | null;
|
|
14
15
|
|
|
15
16
|
@Column({ type: 'int', nullable: true })
|
|
16
17
|
department_id: number;
|
|
@@ -20,14 +21,14 @@ export class ProjectFaqs extends BaseModel {
|
|
|
20
21
|
|
|
21
22
|
constructor(
|
|
22
23
|
question?: string,
|
|
23
|
-
project_id?: number,
|
|
24
|
+
project_id?: number | null,
|
|
24
25
|
department_id?: number,
|
|
25
26
|
answer?: string,
|
|
26
27
|
is_popular?: boolean
|
|
27
28
|
) {
|
|
28
29
|
super();
|
|
29
30
|
this.question = question ?? '';
|
|
30
|
-
this.project_id = project_id ??
|
|
31
|
+
this.project_id = project_id ?? null;
|
|
31
32
|
this.department_id = department_id ?? 0;
|
|
32
33
|
this.answer = answer ?? '';
|
|
33
34
|
this.is_popular = is_popular ?? false;
|