@platform-modules/foreign-ministry 1.3.98 → 1.3.100

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 CHANGED
@@ -1,19 +1,5 @@
1
- # DB_HOST=localhost
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=postgres_admin_user
12
- DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
3
+ DB_USER=postgres
4
+ DB_PASS=Fa@123
13
5
  DB_NAME=FM
14
-
15
- # DB_HOST=216.48.187.46
16
- # DB_PORT=5432
17
- # DB_USER=adminuser
18
- # DB_PASS=postgres_caa_fm_qa_34567
19
- # DB_NAME=FM_QA
package/dist/index.d.ts CHANGED
@@ -184,6 +184,8 @@ export * from './models/RoutingGroupUsersModel';
184
184
  export * from './models/HelpdeskKnowledgeBase';
185
185
  export * from './models/HelpdeskAutoClosureConfig';
186
186
  export * from './models/MilestoneTitleModel';
187
+ export * from './models/WorkScheduleTypeNameModel';
188
+ export * from './models/LocationModel';
187
189
  export * from './models/EmployeeCardRequestsModel';
188
190
  export * from './models/EmployeeCardApprovalsModel';
189
191
  export * from './models/EmployeeCardWorkFlowModel';
package/dist/index.js CHANGED
@@ -218,6 +218,8 @@ __exportStar(require("./models/RoutingGroupUsersModel"), exports);
218
218
  __exportStar(require("./models/HelpdeskKnowledgeBase"), exports);
219
219
  __exportStar(require("./models/HelpdeskAutoClosureConfig"), exports);
220
220
  __exportStar(require("./models/MilestoneTitleModel"), exports);
221
+ __exportStar(require("./models/WorkScheduleTypeNameModel"), exports);
222
+ __exportStar(require("./models/LocationModel"), exports);
221
223
  __exportStar(require("./models/EmployeeCardRequestsModel"), exports);
222
224
  __exportStar(require("./models/EmployeeCardApprovalsModel"), exports);
223
225
  __exportStar(require("./models/EmployeeCardWorkFlowModel"), exports);
@@ -0,0 +1,12 @@
1
+ export declare class Location {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ is_active: boolean;
6
+ is_deleted: boolean;
7
+ created_by: string;
8
+ updated_by: string;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ constructor(name?: string, description?: string);
12
+ }
@@ -0,0 +1,62 @@
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.Location = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let Location = class Location {
15
+ constructor(name, description) {
16
+ if (name)
17
+ this.name = name;
18
+ if (description)
19
+ this.description = description;
20
+ }
21
+ };
22
+ exports.Location = Location;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], Location.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], Location.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], Location.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
37
+ __metadata("design:type", Boolean)
38
+ ], Location.prototype, "is_active", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
41
+ __metadata("design:type", Boolean)
42
+ ], Location.prototype, "is_deleted", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Location.prototype, "created_by", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], Location.prototype, "updated_by", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
53
+ __metadata("design:type", Date)
54
+ ], Location.prototype, "created_at", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
57
+ __metadata("design:type", Date)
58
+ ], Location.prototype, "updated_at", void 0);
59
+ exports.Location = Location = __decorate([
60
+ (0, typeorm_1.Entity)('locations'),
61
+ __metadata("design:paramtypes", [String, String])
62
+ ], Location);
@@ -10,10 +10,13 @@
10
10
  */
11
11
  import { BaseModel } from './BaseModel';
12
12
  export declare class WorkSchedule extends BaseModel {
13
+ schedule_type_name_id: number | null;
14
+ location_id: number | null;
15
+ number_of_days: number | null;
13
16
  from_date: Date;
14
17
  to_date: Date;
15
18
  from_time: string;
16
19
  to_time: string;
17
20
  reason: string | null;
18
- constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string);
21
+ constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string, schedule_type_name_id?: number, location_id?: number, number_of_days?: number);
19
22
  }
@@ -23,16 +23,31 @@ exports.WorkSchedule = void 0;
23
23
  const typeorm_1 = require("typeorm");
24
24
  const BaseModel_1 = require("./BaseModel");
25
25
  let WorkSchedule = class WorkSchedule extends BaseModel_1.BaseModel {
26
- constructor(from_date, to_date, from_time, to_time, reason) {
26
+ constructor(from_date, to_date, from_time, to_time, reason, schedule_type_name_id, location_id, number_of_days) {
27
27
  super();
28
28
  this.from_date = from_date;
29
29
  this.to_date = to_date;
30
30
  this.from_time = from_time;
31
31
  this.to_time = to_time;
32
32
  this.reason = reason || null;
33
+ this.schedule_type_name_id = schedule_type_name_id || null;
34
+ this.location_id = location_id || null;
35
+ this.number_of_days = number_of_days || null;
33
36
  }
34
37
  };
35
38
  exports.WorkSchedule = WorkSchedule;
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], WorkSchedule.prototype, "schedule_type_name_id", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], WorkSchedule.prototype, "location_id", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'int', nullable: true }),
49
+ __metadata("design:type", Object)
50
+ ], WorkSchedule.prototype, "number_of_days", void 0);
36
51
  __decorate([
37
52
  (0, typeorm_1.Column)({ type: 'date', nullable: false }),
38
53
  __metadata("design:type", Date)
@@ -56,5 +71,5 @@ __decorate([
56
71
  exports.WorkSchedule = WorkSchedule = __decorate([
57
72
  (0, typeorm_1.Entity)({ name: 'work_schedules' }),
58
73
  __metadata("design:paramtypes", [Date,
59
- Date, String, String, String])
74
+ Date, String, String, String, Number, Number, Number])
60
75
  ], WorkSchedule);
@@ -0,0 +1,12 @@
1
+ export declare class WorkScheduleTypeName {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ is_active: boolean;
6
+ is_deleted: boolean;
7
+ created_by: string;
8
+ updated_by: string;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ constructor(name?: string, description?: string);
12
+ }
@@ -0,0 +1,62 @@
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.WorkScheduleTypeName = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let WorkScheduleTypeName = class WorkScheduleTypeName {
15
+ constructor(name, description) {
16
+ if (name)
17
+ this.name = name;
18
+ if (description)
19
+ this.description = description;
20
+ }
21
+ };
22
+ exports.WorkScheduleTypeName = WorkScheduleTypeName;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
25
+ __metadata("design:type", Number)
26
+ ], WorkScheduleTypeName.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
29
+ __metadata("design:type", String)
30
+ ], WorkScheduleTypeName.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], WorkScheduleTypeName.prototype, "description", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
37
+ __metadata("design:type", Boolean)
38
+ ], WorkScheduleTypeName.prototype, "is_active", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'boolean', default: false }),
41
+ __metadata("design:type", Boolean)
42
+ ], WorkScheduleTypeName.prototype, "is_deleted", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], WorkScheduleTypeName.prototype, "created_by", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], WorkScheduleTypeName.prototype, "updated_by", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
53
+ __metadata("design:type", Date)
54
+ ], WorkScheduleTypeName.prototype, "created_at", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
57
+ __metadata("design:type", Date)
58
+ ], WorkScheduleTypeName.prototype, "updated_at", void 0);
59
+ exports.WorkScheduleTypeName = WorkScheduleTypeName = __decorate([
60
+ (0, typeorm_1.Entity)('work_schedule_type_names'),
61
+ __metadata("design:paramtypes", [String, String])
62
+ ], WorkScheduleTypeName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platform-modules/foreign-ministry",
3
- "version": "1.3.98",
3
+ "version": "1.3.100",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -184,6 +184,8 @@ export * from './models/RoutingGroupUsersModel';
184
184
  export * from './models/HelpdeskKnowledgeBase';
185
185
  export * from './models/HelpdeskAutoClosureConfig';
186
186
  export * from './models/MilestoneTitleModel';
187
+ export * from './models/WorkScheduleTypeNameModel';
188
+ export * from './models/LocationModel';
187
189
  export * from './models/EmployeeCardRequestsModel';
188
190
  export * from './models/EmployeeCardApprovalsModel';
189
191
  export * from './models/EmployeeCardWorkFlowModel';
@@ -0,0 +1,42 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ CreateDateColumn,
6
+ UpdateDateColumn
7
+ } from 'typeorm';
8
+
9
+ @Entity('locations')
10
+ export class Location {
11
+ @PrimaryGeneratedColumn()
12
+ id: number;
13
+
14
+ @Column({ type: 'varchar', length: 255, nullable: false })
15
+ name: string;
16
+
17
+ @Column({ type: 'text', nullable: true })
18
+ description: string;
19
+
20
+ @Column({ type: 'boolean', default: true })
21
+ is_active: boolean;
22
+
23
+ @Column({ type: 'boolean', default: false })
24
+ is_deleted: boolean;
25
+
26
+ @Column({ type: 'varchar', nullable: true })
27
+ created_by: string;
28
+
29
+ @Column({ type: 'varchar', nullable: true })
30
+ updated_by: string;
31
+
32
+ @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
33
+ created_at: Date;
34
+
35
+ @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
36
+ updated_at: Date;
37
+
38
+ constructor(name?: string, description?: string) {
39
+ if (name) this.name = name;
40
+ if (description) this.description = description;
41
+ }
42
+ }
@@ -14,6 +14,15 @@ import { BaseModel } from './BaseModel';
14
14
 
15
15
  @Entity({ name: 'work_schedules' })
16
16
  export class WorkSchedule extends BaseModel {
17
+ @Column({ type: 'int', nullable: true })
18
+ schedule_type_name_id: number | null;
19
+
20
+ @Column({ type: 'int', nullable: true })
21
+ location_id: number | null;
22
+
23
+ @Column({ type: 'int', nullable: true })
24
+ number_of_days: number | null;
25
+
17
26
  @Column({ type: 'date', nullable: false })
18
27
  from_date: Date;
19
28
 
@@ -34,7 +43,10 @@ export class WorkSchedule extends BaseModel {
34
43
  to_date: Date,
35
44
  from_time: string,
36
45
  to_time: string,
37
- reason?: string
46
+ reason?: string,
47
+ schedule_type_name_id?: number,
48
+ location_id?: number,
49
+ number_of_days?: number
38
50
  ) {
39
51
  super();
40
52
  this.from_date = from_date;
@@ -42,6 +54,9 @@ export class WorkSchedule extends BaseModel {
42
54
  this.from_time = from_time;
43
55
  this.to_time = to_time;
44
56
  this.reason = reason || null;
57
+ this.schedule_type_name_id = schedule_type_name_id || null;
58
+ this.location_id = location_id || null;
59
+ this.number_of_days = number_of_days || null;
45
60
  }
46
61
  }
47
62
 
@@ -0,0 +1,42 @@
1
+ import {
2
+ Entity,
3
+ PrimaryGeneratedColumn,
4
+ Column,
5
+ CreateDateColumn,
6
+ UpdateDateColumn
7
+ } from 'typeorm';
8
+
9
+ @Entity('work_schedule_type_names')
10
+ export class WorkScheduleTypeName {
11
+ @PrimaryGeneratedColumn()
12
+ id: number;
13
+
14
+ @Column({ type: 'varchar', length: 255, nullable: false })
15
+ name: string;
16
+
17
+ @Column({ type: 'text', nullable: true })
18
+ description: string;
19
+
20
+ @Column({ type: 'boolean', default: true })
21
+ is_active: boolean;
22
+
23
+ @Column({ type: 'boolean', default: false })
24
+ is_deleted: boolean;
25
+
26
+ @Column({ type: 'varchar', nullable: true })
27
+ created_by: string;
28
+
29
+ @Column({ type: 'varchar', nullable: true })
30
+ updated_by: string;
31
+
32
+ @CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
33
+ created_at: Date;
34
+
35
+ @UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
36
+ updated_at: Date;
37
+
38
+ constructor(name?: string, description?: string) {
39
+ if (name) this.name = name;
40
+ if (description) this.description = description;
41
+ }
42
+ }
@@ -1,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class HelpContentMappedCategories extends BaseModel {
3
- help_content_category_Id: number;
4
- help_content_Id: number;
5
- constructor(help_content_category_Id: number, help_content_Id: number);
6
- }
@@ -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,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class HelpContentMappedTags extends BaseModel {
3
- help_content_tag_Id: number;
4
- help_content_Id: number;
5
- constructor(help_content_tag_Id: number, help_content_Id: number);
6
- }
@@ -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,5 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class HelpContentTags extends BaseModel {
3
- name: string;
4
- constructor(name: string);
5
- }
@@ -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,6 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class QuestionTags extends BaseModel {
3
- name: string;
4
- question_Id: number;
5
- constructor(name: string, question_Id: number);
6
- }
@@ -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);