@platform-modules/foreign-ministry 1.1.79 → 1.1.81
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 +3 -11
- package/dist/data-source.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +9 -0
- package/dist/models/DiplomaticTitlesMasterModel.js +47 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +3 -2
- package/dist/models/TelephoneDirectoryModel.js +11 -6
- package/dist/models/TransferMissionApprovalModel.d.ts +0 -1
- package/dist/models/TransferMissionApprovalModel.js +0 -4
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +1 -0
- package/src/models/DiplomaticTitlesMasterModel.ts +28 -0
- package/src/models/TelephoneDirectoryModel.ts +8 -4
- package/src/models/TransferMissionApprovalModel.ts +0 -3
- package/src/models/TransferMissionRequestModel.ts +0 -1
- 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/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
package/.env
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
# DB_PORT=5433
|
|
3
|
-
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=123
|
|
5
|
-
# DB_NAME=FM
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
DB_HOST=164.52.222.169
|
|
1
|
+
DB_HOST=localhost
|
|
10
2
|
DB_PORT=5432
|
|
11
|
-
DB_USER=
|
|
12
|
-
DB_PASS=
|
|
3
|
+
DB_USER=postgres
|
|
4
|
+
DB_PASS=Fa@123
|
|
13
5
|
DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -117,6 +117,7 @@ const ProfileUpdateRequestsModel_1 = require("./models/ProfileUpdateRequestsMode
|
|
|
117
117
|
const UserPersonalDetailsModel_1 = require("./models/UserPersonalDetailsModel");
|
|
118
118
|
const UserEmploymentDetailsModel_1 = require("./models/UserEmploymentDetailsModel");
|
|
119
119
|
const UserEducationDetailsModel_1 = require("./models/UserEducationDetailsModel");
|
|
120
|
+
const DiplomaticTitlesMasterModel_1 = require("./models/DiplomaticTitlesMasterModel");
|
|
120
121
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
121
122
|
type: 'postgres',
|
|
122
123
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -238,6 +239,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
238
239
|
ProfileUpdateRequestsModel_1.ProfileUpdateRequests,
|
|
239
240
|
UserPersonalDetailsModel_1.UserPersonalDetails,
|
|
240
241
|
UserEmploymentDetailsModel_1.UserEmploymentDetails,
|
|
241
|
-
UserEducationDetailsModel_1.UserEducationDetails
|
|
242
|
+
UserEducationDetailsModel_1.UserEducationDetails,
|
|
243
|
+
DiplomaticTitlesMasterModel_1.DiplomaticTitlesMaster
|
|
242
244
|
],
|
|
243
245
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -126,3 +126,4 @@ export * from './models/UserPersonalDetailsModel';
|
|
|
126
126
|
export * from './models/UserEmploymentDetailsModel';
|
|
127
127
|
export * from './models/UserEducationDetailsModel';
|
|
128
128
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
129
|
+
export * from './models/DiplomaticTitlesMasterModel';
|
package/dist/index.js
CHANGED
|
@@ -157,3 +157,4 @@ __exportStar(require("./models/UserEmploymentDetailsModel"), exports);
|
|
|
157
157
|
__exportStar(require("./models/UserEducationDetailsModel"), exports);
|
|
158
158
|
var ProfileUpdateRequestsModel_1 = require("./models/ProfileUpdateRequestsModel");
|
|
159
159
|
Object.defineProperty(exports, "ProfileUpdateRequestStatus", { enumerable: true, get: function () { return ProfileUpdateRequestsModel_1.ProfileUpdateRequestStatus; } });
|
|
160
|
+
__exportStar(require("./models/DiplomaticTitlesMasterModel"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class DiplomaticTitlesMaster extends BaseModel {
|
|
3
|
+
title: string;
|
|
4
|
+
title_in_arabic: string | null;
|
|
5
|
+
description: string | null;
|
|
6
|
+
is_active: boolean;
|
|
7
|
+
display_order: number;
|
|
8
|
+
constructor(title: string);
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.DiplomaticTitlesMaster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let DiplomaticTitlesMaster = class DiplomaticTitlesMaster extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(title) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.is_active = true;
|
|
20
|
+
this.display_order = 0;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.DiplomaticTitlesMaster = DiplomaticTitlesMaster;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], DiplomaticTitlesMaster.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], DiplomaticTitlesMaster.prototype, "title_in_arabic", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], DiplomaticTitlesMaster.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], DiplomaticTitlesMaster.prototype, "is_active", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], DiplomaticTitlesMaster.prototype, "display_order", void 0);
|
|
44
|
+
exports.DiplomaticTitlesMaster = DiplomaticTitlesMaster = __decorate([
|
|
45
|
+
(0, typeorm_1.Entity)({ name: 'diplomatic_titles_master' }),
|
|
46
|
+
__metadata("design:paramtypes", [String])
|
|
47
|
+
], DiplomaticTitlesMaster);
|
|
@@ -5,7 +5,8 @@ export declare class TelephoneDirectory extends BaseModel {
|
|
|
5
5
|
name: string;
|
|
6
6
|
position: string;
|
|
7
7
|
diplomatic_title: string;
|
|
8
|
-
|
|
8
|
+
embassy_id: number | null;
|
|
9
|
+
contextual_search: string | null;
|
|
9
10
|
email: string;
|
|
10
11
|
contact_number: string;
|
|
11
12
|
extension_number: string;
|
|
@@ -17,5 +18,5 @@ export declare class TelephoneDirectory extends BaseModel {
|
|
|
17
18
|
zip_code: string;
|
|
18
19
|
country: string;
|
|
19
20
|
photo_url: string;
|
|
20
|
-
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string,
|
|
21
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_id?: number | null, contextual_search?: string | null, email?: string, contact_number?: string, extension_number?: string, location?: string, department_id?: number, employee_id?: number, city?: string, state?: string, zip_code?: string, country?: string, photo_url?: string);
|
|
21
22
|
}
|
|
@@ -13,13 +13,14 @@ exports.TelephoneDirectory = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let TelephoneDirectory = class TelephoneDirectory extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(category, name, position, diplomatic_title,
|
|
16
|
+
constructor(category, name, position, diplomatic_title, embassy_id, contextual_search, email, contact_number, extension_number, location, department_id, employee_id, city, state, zip_code, country, photo_url) {
|
|
17
17
|
super();
|
|
18
18
|
this.category = category || "FM";
|
|
19
19
|
this.name = name || "";
|
|
20
20
|
this.position = position || "";
|
|
21
21
|
this.diplomatic_title = diplomatic_title || "";
|
|
22
|
-
this.
|
|
22
|
+
this.embassy_id = embassy_id || null;
|
|
23
|
+
this.contextual_search = contextual_search || null;
|
|
23
24
|
this.email = email || "";
|
|
24
25
|
this.contact_number = contact_number || "";
|
|
25
26
|
this.extension_number = extension_number || "";
|
|
@@ -55,9 +56,13 @@ __decorate([
|
|
|
55
56
|
__metadata("design:type", String)
|
|
56
57
|
], TelephoneDirectory.prototype, "diplomatic_title", void 0);
|
|
57
58
|
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: "
|
|
59
|
-
__metadata("design:type",
|
|
60
|
-
], TelephoneDirectory.prototype, "
|
|
59
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], TelephoneDirectory.prototype, "embassy_id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], TelephoneDirectory.prototype, "contextual_search", void 0);
|
|
61
66
|
__decorate([
|
|
62
67
|
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
63
68
|
__metadata("design:type", String)
|
|
@@ -104,5 +109,5 @@ __decorate([
|
|
|
104
109
|
], TelephoneDirectory.prototype, "photo_url", void 0);
|
|
105
110
|
exports.TelephoneDirectory = TelephoneDirectory = __decorate([
|
|
106
111
|
(0, typeorm_1.Entity)({ name: "telephone_directory" }),
|
|
107
|
-
__metadata("design:paramtypes", [String, String, String, String,
|
|
112
|
+
__metadata("design:paramtypes", [String, String, String, String, Object, Object, String, String, String, String, Number, Number, String, String, String, String, String])
|
|
108
113
|
], TelephoneDirectory);
|
|
@@ -15,7 +15,6 @@ export declare class TransferMissionApprovalDetails extends BaseModel {
|
|
|
15
15
|
section_id: number | null;
|
|
16
16
|
approver_user_id: number | null;
|
|
17
17
|
delegate_user_id: number | null;
|
|
18
|
-
group_id: number | null;
|
|
19
18
|
approved_by: number | null;
|
|
20
19
|
comment: string;
|
|
21
20
|
approval_status: TransferMissionApprovalStatus;
|
|
@@ -58,10 +58,6 @@ __decorate([
|
|
|
58
58
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
59
|
__metadata("design:type", Object)
|
|
60
60
|
], TransferMissionApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], TransferMissionApprovalDetails.prototype, "group_id", void 0);
|
|
65
61
|
__decorate([
|
|
66
62
|
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
63
|
__metadata("design:type", Object)
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -122,6 +122,7 @@ import { ProfileUpdateRequests } from './models/ProfileUpdateRequestsModel'
|
|
|
122
122
|
import { UserPersonalDetails } from './models/UserPersonalDetailsModel'
|
|
123
123
|
import { UserEmploymentDetails } from './models/UserEmploymentDetailsModel'
|
|
124
124
|
import { UserEducationDetails } from './models/UserEducationDetailsModel'
|
|
125
|
+
import { DiplomaticTitlesMaster } from './models/DiplomaticTitlesMasterModel'
|
|
125
126
|
|
|
126
127
|
|
|
127
128
|
export const AppDataSource = new DataSource({
|
|
@@ -245,6 +246,7 @@ export const AppDataSource = new DataSource({
|
|
|
245
246
|
ProfileUpdateRequests,
|
|
246
247
|
UserPersonalDetails,
|
|
247
248
|
UserEmploymentDetails,
|
|
248
|
-
UserEducationDetails
|
|
249
|
+
UserEducationDetails,
|
|
250
|
+
DiplomaticTitlesMaster
|
|
249
251
|
],
|
|
250
252
|
});
|
package/src/index.ts
CHANGED
|
@@ -126,3 +126,4 @@ export * from './models/UserPersonalDetailsModel';
|
|
|
126
126
|
export * from './models/UserEmploymentDetailsModel';
|
|
127
127
|
export * from './models/UserEducationDetailsModel';
|
|
128
128
|
export { ProfileUpdateRequestStatus } from './models/ProfileUpdateRequestsModel';
|
|
129
|
+
export * from './models/DiplomaticTitlesMasterModel';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'diplomatic_titles_master' })
|
|
5
|
+
export class DiplomaticTitlesMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
7
|
+
title: string; // Diplomatic title name
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
10
|
+
title_in_arabic: string | null; // Arabic translation
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'text', nullable: true })
|
|
13
|
+
description: string | null; // Description of the title
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'boolean', default: true })
|
|
16
|
+
is_active: boolean; // Whether the title is active
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'int', default: 0 })
|
|
19
|
+
display_order: number; // Order for display in dropdowns
|
|
20
|
+
|
|
21
|
+
constructor(title: string) {
|
|
22
|
+
super();
|
|
23
|
+
this.title = title;
|
|
24
|
+
this.is_active = true;
|
|
25
|
+
this.display_order = 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -19,8 +19,11 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
19
19
|
@Column({ type: "varchar", length: 255, nullable: true })
|
|
20
20
|
diplomatic_title: string; // Diplomatic Title
|
|
21
21
|
|
|
22
|
-
@Column({ type: "
|
|
23
|
-
|
|
22
|
+
@Column({ type: "int", nullable: true })
|
|
23
|
+
embassy_id: number | null; // Embassy ID reference (for Embassy category)
|
|
24
|
+
|
|
25
|
+
@Column({ type: "text", nullable: true })
|
|
26
|
+
contextual_search: string | null; // Contextual search field for direct searching across multiple fields
|
|
24
27
|
|
|
25
28
|
// Email & Contact Information
|
|
26
29
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
@@ -60,13 +63,14 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
60
63
|
@Column({ type: "varchar", length: 500, nullable: true })
|
|
61
64
|
photo_url: string;
|
|
62
65
|
|
|
63
|
-
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string,
|
|
66
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_id?: number | null, contextual_search?: string | null, email?: string, contact_number?: string, extension_number?: string, location?: string, department_id?: number, employee_id?: number, city?: string, state?: string, zip_code?: string, country?: string, photo_url?: string) {
|
|
64
67
|
super();
|
|
65
68
|
this.category = category || "FM";
|
|
66
69
|
this.name = name || "";
|
|
67
70
|
this.position = position || "";
|
|
68
71
|
this.diplomatic_title = diplomatic_title || "";
|
|
69
|
-
this.
|
|
72
|
+
this.embassy_id = embassy_id || null;
|
|
73
|
+
this.contextual_search = contextual_search || null;
|
|
70
74
|
this.email = email || "";
|
|
71
75
|
this.contact_number = contact_number || "";
|
|
72
76
|
this.extension_number = extension_number || "";
|
|
@@ -37,9 +37,6 @@ export class TransferMissionApprovalDetails extends BaseModel {
|
|
|
37
37
|
@Column({ type: 'integer', nullable: true })
|
|
38
38
|
delegate_user_id: number | null;
|
|
39
39
|
|
|
40
|
-
@Column({ type: 'integer', nullable: true })
|
|
41
|
-
group_id: number | null;
|
|
42
|
-
|
|
43
40
|
@Column({ type: 'integer', nullable: true })
|
|
44
41
|
approved_by: number | null;
|
|
45
42
|
|
|
@@ -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,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.HelpContentTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentTags = class HelpContentTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.HelpContentTags = HelpContentTags;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], HelpContentTags.prototype, "name", void 0);
|
|
26
|
-
exports.HelpContentTags = HelpContentTags = __decorate([
|
|
27
|
-
(0, typeorm_1.Entity)({ name: 'help_content_tags' }),
|
|
28
|
-
__metadata("design:paramtypes", [String])
|
|
29
|
-
], HelpContentTags);
|
|
@@ -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.QuestionTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, question_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name,
|
|
19
|
-
this.question_Id = question_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.QuestionTags = QuestionTags;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], QuestionTags.prototype, "name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], QuestionTags.prototype, "question_Id", void 0);
|
|
31
|
-
exports.QuestionTags = QuestionTags = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'question_tags' }),
|
|
33
|
-
__metadata("design:paramtypes", [String, Number])
|
|
34
|
-
], QuestionTags);
|
|
File without changes
|