@platform-modules/foreign-ministry 1.0.41 → 1.0.43
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.
- package/.env +2 -2
- package/dist/data-source.js +12 -10
- package/dist/index.d.ts +6 -5
- package/dist/index.js +6 -5
- package/dist/models/CategoriesModel.d.ts +6 -0
- package/dist/models/{HelpContentTagsModel.js → CategoriesModel.js} +16 -11
- package/dist/models/CommentsModel.d.ts +16 -0
- package/dist/models/CommentsModel.js +75 -0
- package/dist/models/PostAttachmentsModel.d.ts +9 -0
- package/dist/models/PostAttachmentsModel.js +45 -0
- package/dist/models/PostReactionsModel.d.ts +15 -0
- package/dist/models/PostReactionsModel.js +67 -0
- package/dist/models/PostsModel.d.ts +21 -0
- package/dist/models/PostsModel.js +87 -0
- package/dist/models/faqsModel.d.ts +4 -1
- package/dist/models/faqsModel.js +16 -3
- package/package.json +1 -1
- package/src/data-source.ts +14 -10
- package/src/index.ts +6 -5
- package/src/models/CategoriesModel.ts +18 -0
- package/src/models/CommentsModel.ts +52 -0
- package/src/models/PostAttachmentsModel.ts +28 -0
- package/src/models/PostReactionsModel.ts +47 -0
- package/src/models/PostsModel.ts +62 -0
- package/src/models/faqsModel.ts +13 -3
- package/src/models/questionTagsModel.ts +22 -0
- package/dist/models/HelpContentAttachmentModel.d.ts +0 -7
- package/dist/models/HelpContentAttachmentModel.js +0 -39
- package/dist/models/HelpContentCategoryModel.d.ts +0 -5
- package/dist/models/HelpContentCategoryModel.js +0 -29
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentModel.d.ts +0 -10
- package/dist/models/HelpContentModel.js +0 -54
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/src/models/HelpContentAttachmentModel.ts +0 -27
- package/src/models/HelpContentCategoryModel.ts +0 -17
- package/src/models/HelpContentMappedTagsModel.ts +0 -22
- package/src/models/HelpContentModel.ts +0 -42
- package/src/models/HelpContentTagsModel.ts +0 -17
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { Posts } from './PostsModel';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
|
|
6
|
+
@Entity({ name: 'comments' })
|
|
7
|
+
export class Comments extends BaseModel {
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int', nullable: false })
|
|
10
|
+
post_id: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'int', nullable: false })
|
|
13
|
+
user_id: number;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'int', nullable: true })
|
|
16
|
+
parent_comment_id?: number;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'text', nullable: false })
|
|
19
|
+
content: string;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
22
|
+
created_at: Date;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
25
|
+
updated_at: Date;
|
|
26
|
+
|
|
27
|
+
// Relations
|
|
28
|
+
@ManyToOne(() => Posts, post => post.id)
|
|
29
|
+
@JoinColumn({ name: 'post_id' })
|
|
30
|
+
post?: Posts;
|
|
31
|
+
|
|
32
|
+
@ManyToOne(() => User, user => user.id)
|
|
33
|
+
@JoinColumn({ name: 'user_id' })
|
|
34
|
+
user?: User;
|
|
35
|
+
|
|
36
|
+
@ManyToOne(() => Comments, comment => comment.id)
|
|
37
|
+
@JoinColumn({ name: 'parent_comment_id' })
|
|
38
|
+
parentComment?: Comments;
|
|
39
|
+
|
|
40
|
+
@OneToMany(() => Comments, comment => comment.parentComment)
|
|
41
|
+
replies?: Comments[];
|
|
42
|
+
|
|
43
|
+
constructor() {
|
|
44
|
+
super();
|
|
45
|
+
this.post_id = 0;
|
|
46
|
+
this.user_id = 0;
|
|
47
|
+
this.parent_comment_id = 0;
|
|
48
|
+
this.content = '';
|
|
49
|
+
this.created_at = new Date();
|
|
50
|
+
this.updated_at = new Date();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { Posts } from './PostsModel';
|
|
4
|
+
|
|
5
|
+
@Entity({ name: 'post_attachments' })
|
|
6
|
+
export class PostAttachments extends BaseModel {
|
|
7
|
+
|
|
8
|
+
@Column({ type: 'int', nullable: false })
|
|
9
|
+
post_id: number;
|
|
10
|
+
|
|
11
|
+
@Column({ type: 'text', nullable: false })
|
|
12
|
+
file_url: string;
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
15
|
+
uploaded_at: Date;
|
|
16
|
+
|
|
17
|
+
// Relations
|
|
18
|
+
@ManyToOne(() => Posts, post => post.id)
|
|
19
|
+
@JoinColumn({ name: 'post_id' })
|
|
20
|
+
post?: Posts;
|
|
21
|
+
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.post_id = 0;
|
|
25
|
+
this.file_url = '';
|
|
26
|
+
this.uploaded_at = new Date();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { Posts } from './PostsModel';
|
|
4
|
+
import { Comments } from './CommentsModel';
|
|
5
|
+
import { User } from './user';
|
|
6
|
+
|
|
7
|
+
@Entity({ name: 'post_reactions' })
|
|
8
|
+
export class PostReactions extends BaseModel {
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: true })
|
|
11
|
+
post_id?: number;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'int', nullable: true })
|
|
14
|
+
comment_id?: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: false })
|
|
17
|
+
user_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 50, nullable: false })
|
|
20
|
+
reaction_type: string;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
24
|
+
created_at: Date;
|
|
25
|
+
|
|
26
|
+
// Relations
|
|
27
|
+
@ManyToOne(() => Posts, post => post.id)
|
|
28
|
+
@JoinColumn({ name: 'post_id' })
|
|
29
|
+
post?: Posts;
|
|
30
|
+
|
|
31
|
+
@ManyToOne(() => Comments, comment => comment.id)
|
|
32
|
+
@JoinColumn({ name: 'comment_id' })
|
|
33
|
+
comment?: Comments;
|
|
34
|
+
|
|
35
|
+
@ManyToOne(() => User, user => user.id)
|
|
36
|
+
@JoinColumn({ name: 'user_id' })
|
|
37
|
+
user?: User;
|
|
38
|
+
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
this.post_id = 0;
|
|
42
|
+
this.comment_id = 0;
|
|
43
|
+
this.user_id = 0;
|
|
44
|
+
this.reaction_type = '';
|
|
45
|
+
this.created_at = new Date();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Column, Entity, ManyToOne, JoinColumn, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { User } from './user';
|
|
4
|
+
import { Departments } from './DepartmentsModel';
|
|
5
|
+
import { Categories } from './CategoriesModel';
|
|
6
|
+
import { Comments } from './CommentsModel';
|
|
7
|
+
import { PostAttachments } from './PostAttachmentsModel';
|
|
8
|
+
|
|
9
|
+
@Entity({ name: 'posts' })
|
|
10
|
+
export class Posts extends BaseModel {
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
13
|
+
title: string;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'text', nullable: false })
|
|
16
|
+
content: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', nullable: true })
|
|
19
|
+
user_id?: number;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'int', nullable: true })
|
|
22
|
+
department_id?: number;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
category_id?: number;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
28
|
+
created_at: Date;
|
|
29
|
+
|
|
30
|
+
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
31
|
+
updated_at: Date;
|
|
32
|
+
|
|
33
|
+
// Relations
|
|
34
|
+
@ManyToOne(() => User, user => user.id)
|
|
35
|
+
@JoinColumn({ name: 'user_id' })
|
|
36
|
+
user?: User;
|
|
37
|
+
|
|
38
|
+
@ManyToOne(() => Departments, department => department.id)
|
|
39
|
+
@JoinColumn({ name: 'department_id' })
|
|
40
|
+
department?: Departments;
|
|
41
|
+
|
|
42
|
+
@ManyToOne(() => Categories, category => category.id)
|
|
43
|
+
@JoinColumn({ name: 'category_id' })
|
|
44
|
+
category?: Categories;
|
|
45
|
+
|
|
46
|
+
@OneToMany(() => Comments, comment => comment.post)
|
|
47
|
+
comments?: Comments[];
|
|
48
|
+
|
|
49
|
+
@OneToMany(() => PostAttachments, attachment => attachment.post)
|
|
50
|
+
attachments?: PostAttachments[];
|
|
51
|
+
|
|
52
|
+
constructor() {
|
|
53
|
+
super();
|
|
54
|
+
this.title = '';
|
|
55
|
+
this.content = '';
|
|
56
|
+
this.user_id = 0;
|
|
57
|
+
this.department_id = 0;
|
|
58
|
+
this.category_id = 0;
|
|
59
|
+
this.created_at = new Date();
|
|
60
|
+
this.updated_at = new Date();
|
|
61
|
+
}
|
|
62
|
+
}
|
package/src/models/faqsModel.ts
CHANGED
|
@@ -17,17 +17,27 @@ export class Faqs extends BaseModel {
|
|
|
17
17
|
@Column({ nullable: true })
|
|
18
18
|
sub_category_Id: number;
|
|
19
19
|
|
|
20
|
+
@Column({ nullable: true })
|
|
21
|
+
department_Id: number;
|
|
22
|
+
|
|
23
|
+
@Column({ nullable: true, default: 0 })
|
|
24
|
+
like_count: number;
|
|
25
|
+
|
|
26
|
+
@Column({ nullable: true, default: 0 })
|
|
27
|
+
dislike_count: number;
|
|
28
|
+
|
|
20
29
|
constructor(
|
|
21
30
|
question: string,
|
|
22
31
|
answer: string,
|
|
23
32
|
category_Id: number,
|
|
24
33
|
sub_category_Id: number,
|
|
34
|
+
department_Id: number,
|
|
25
35
|
) {
|
|
26
36
|
super();
|
|
27
37
|
this.question = question,
|
|
28
38
|
this.answer = answer,
|
|
29
|
-
this.category_Id = category_Id,
|
|
30
|
-
this.sub_category_Id = sub_category_Id
|
|
31
|
-
|
|
39
|
+
this.category_Id = category_Id ,
|
|
40
|
+
this.sub_category_Id = sub_category_Id,
|
|
41
|
+
this.department_Id = department_Id
|
|
32
42
|
}
|
|
33
43
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
|
|
3
|
+
import { BaseModel } from './BaseModel';
|
|
4
|
+
|
|
5
|
+
@Entity({ name: 'question_tags' })
|
|
6
|
+
export class QuestionTags extends BaseModel {
|
|
7
|
+
|
|
8
|
+
@Column({ nullable: true })
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
@Column({ nullable: true })
|
|
12
|
+
question_Id: number;
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
name: string,
|
|
16
|
+
question_Id: number
|
|
17
|
+
) {
|
|
18
|
+
super();
|
|
19
|
+
this.name = name,
|
|
20
|
+
this.question_Id = question_Id
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class HelpContentAttachments extends BaseModel {
|
|
3
|
-
help_content_Id: number;
|
|
4
|
-
attachment_url: string;
|
|
5
|
-
attachment_name: string;
|
|
6
|
-
constructor(help_content_Id: number, attachment_url: string, attachment_name: string);
|
|
7
|
-
}
|
|
@@ -1,39 +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.HelpContentAttachments = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentAttachments = class HelpContentAttachments extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_Id, attachment_url, attachment_name) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_Id = help_content_Id,
|
|
19
|
-
this.attachment_url = attachment_url,
|
|
20
|
-
this.attachment_name = attachment_name;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.HelpContentAttachments = HelpContentAttachments;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], HelpContentAttachments.prototype, "help_content_Id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], HelpContentAttachments.prototype, "attachment_url", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ nullable: false }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], HelpContentAttachments.prototype, "attachment_name", void 0);
|
|
36
|
-
exports.HelpContentAttachments = HelpContentAttachments = __decorate([
|
|
37
|
-
(0, typeorm_1.Entity)({ name: 'help_content_attachments' }),
|
|
38
|
-
__metadata("design:paramtypes", [Number, String, String])
|
|
39
|
-
], HelpContentAttachments);
|
|
@@ -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.HelpContentCategories = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentCategories = class HelpContentCategories extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.HelpContentCategories = HelpContentCategories;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], HelpContentCategories.prototype, "name", void 0);
|
|
26
|
-
exports.HelpContentCategories = HelpContentCategories = __decorate([
|
|
27
|
-
(0, typeorm_1.Entity)({ name: 'help_content_categories' }),
|
|
28
|
-
__metadata("design:paramtypes", [String])
|
|
29
|
-
], HelpContentCategories);
|
|
@@ -1,34 +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.HelpContentMappedCategories = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_category_Id, help_content_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_category_Id = help_content_category_Id,
|
|
19
|
-
this.help_content_Id = help_content_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.HelpContentMappedCategories = HelpContentMappedCategories;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], HelpContentMappedCategories.prototype, "help_content_Id", void 0);
|
|
31
|
-
exports.HelpContentMappedCategories = HelpContentMappedCategories = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'help_content_mapped_categories' }),
|
|
33
|
-
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
-
], HelpContentMappedCategories);
|
|
@@ -1,34 +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.HelpContentMappedTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_tag_Id, help_content_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_tag_Id = help_content_tag_Id,
|
|
19
|
-
this.help_content_Id = help_content_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.HelpContentMappedTags = HelpContentMappedTags;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], HelpContentMappedTags.prototype, "help_content_Id", void 0);
|
|
31
|
-
exports.HelpContentMappedTags = HelpContentMappedTags = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'help_content_mapped_tags' }),
|
|
33
|
-
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
-
], HelpContentMappedTags);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class HelpContent extends BaseModel {
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category_Id: number;
|
|
6
|
-
service_Id: number;
|
|
7
|
-
sub_service_Id: number;
|
|
8
|
-
department_Id: number;
|
|
9
|
-
constructor(title: string, description: string, category_Id: number, service_Id: number, sub_service_Id: number, department_Id: number);
|
|
10
|
-
}
|
|
@@ -1,54 +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.HelpContent = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContent = class HelpContent extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(title, description, category_Id, service_Id, sub_service_Id, department_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.title = title,
|
|
19
|
-
this.description = description,
|
|
20
|
-
this.category_Id = category_Id,
|
|
21
|
-
this.service_Id = service_Id,
|
|
22
|
-
this.sub_service_Id = sub_service_Id,
|
|
23
|
-
this.department_Id = department_Id;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.HelpContent = HelpContent;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: "text", nullable: false }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], HelpContent.prototype, "title", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], HelpContent.prototype, "description", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], HelpContent.prototype, "category_Id", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], HelpContent.prototype, "service_Id", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], HelpContent.prototype, "sub_service_Id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], HelpContent.prototype, "department_Id", void 0);
|
|
51
|
-
exports.HelpContent = HelpContent = __decorate([
|
|
52
|
-
(0, typeorm_1.Entity)({ name: 'help_content' }),
|
|
53
|
-
__metadata("design:paramtypes", [String, String, Number, Number, Number, Number])
|
|
54
|
-
], HelpContent);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity, BeforeInsert, BeforeUpdate } from "typeorm";
|
|
3
|
-
import { BaseModel } from './BaseModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'help_content_attachments' })
|
|
6
|
-
export class HelpContentAttachments extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ nullable: true })
|
|
9
|
-
help_content_Id: number;
|
|
10
|
-
|
|
11
|
-
@Column({ nullable: false })
|
|
12
|
-
attachment_url: string;
|
|
13
|
-
|
|
14
|
-
@Column({ nullable: false })
|
|
15
|
-
attachment_name: string;
|
|
16
|
-
|
|
17
|
-
constructor(
|
|
18
|
-
help_content_Id: number,
|
|
19
|
-
attachment_url: string,
|
|
20
|
-
attachment_name: string,
|
|
21
|
-
) {
|
|
22
|
-
super();
|
|
23
|
-
this.help_content_Id = help_content_Id,
|
|
24
|
-
this.attachment_url = attachment_url,
|
|
25
|
-
this.attachment_name = attachment_name
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
|
|
3
|
-
import { BaseModel } from './BaseModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'help_content_categories' })
|
|
6
|
-
export class HelpContentCategories extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ nullable: true })
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
12
|
-
name: string,
|
|
13
|
-
) {
|
|
14
|
-
super();
|
|
15
|
-
this.name = name
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
|
|
3
|
-
import { BaseModel } from './BaseModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'help_content_mapped_tags' })
|
|
6
|
-
export class HelpContentMappedTags extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ nullable: true })
|
|
9
|
-
help_content_tag_Id: number;
|
|
10
|
-
|
|
11
|
-
@Column({ nullable: true })
|
|
12
|
-
help_content_Id: number;
|
|
13
|
-
|
|
14
|
-
constructor(
|
|
15
|
-
help_content_tag_Id: number,
|
|
16
|
-
help_content_Id: number
|
|
17
|
-
) {
|
|
18
|
-
super();
|
|
19
|
-
this.help_content_tag_Id = help_content_tag_Id,
|
|
20
|
-
this.help_content_Id = help_content_Id
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity, BeforeInsert, BeforeUpdate } from "typeorm";
|
|
3
|
-
import { BaseModel } from './BaseModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'help_content' })
|
|
6
|
-
export class HelpContent extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ type: "text", nullable: false })
|
|
9
|
-
title: string;
|
|
10
|
-
|
|
11
|
-
@Column({ type: "text", nullable: true })
|
|
12
|
-
description: string;
|
|
13
|
-
|
|
14
|
-
@Column({ nullable: true })
|
|
15
|
-
category_Id: number;
|
|
16
|
-
|
|
17
|
-
@Column({ nullable: true })
|
|
18
|
-
service_Id: number;
|
|
19
|
-
|
|
20
|
-
@Column({ nullable: true })
|
|
21
|
-
sub_service_Id: number;
|
|
22
|
-
|
|
23
|
-
@Column({ nullable: true })
|
|
24
|
-
department_Id: number;
|
|
25
|
-
|
|
26
|
-
constructor(
|
|
27
|
-
title: string,
|
|
28
|
-
description: string,
|
|
29
|
-
category_Id: number,
|
|
30
|
-
service_Id: number,
|
|
31
|
-
sub_service_Id: number,
|
|
32
|
-
department_Id: number,
|
|
33
|
-
) {
|
|
34
|
-
super();
|
|
35
|
-
this.title = title,
|
|
36
|
-
this.description = description,
|
|
37
|
-
this.category_Id = category_Id,
|
|
38
|
-
this.service_Id = service_Id,
|
|
39
|
-
this.sub_service_Id = sub_service_Id,
|
|
40
|
-
this.department_Id = department_Id
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Column, Entity ,BeforeInsert,BeforeUpdate } from "typeorm";
|
|
3
|
-
import { BaseModel } from './BaseModel';
|
|
4
|
-
|
|
5
|
-
@Entity({ name: 'help_content_tags' })
|
|
6
|
-
export class HelpContentTags extends BaseModel {
|
|
7
|
-
|
|
8
|
-
@Column({ nullable: true })
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
12
|
-
name: string,
|
|
13
|
-
) {
|
|
14
|
-
super();
|
|
15
|
-
this.name = name
|
|
16
|
-
}
|
|
17
|
-
}
|