@platform-modules/foreign-ministry 1.1.50 → 1.1.52
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 +11 -3
- package/dist/data-source.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +1 -0
- package/dist/models/EarlyCheckoutApprovalModel.js +4 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/StayAfterHoursApprovalModel.d.ts +1 -0
- package/dist/models/StayAfterHoursApprovalModel.js +4 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +1 -2
- package/dist/models/TelephoneDirectoryModel.js +21 -9
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -1
- package/src/index.ts +1 -0
- package/src/models/EarlyCheckoutApprovalModel.ts +3 -0
- package/src/models/StayAfterHoursApprovalModel.ts +3 -0
- package/src/models/TelephoneDirectoryModel.ts +21 -6
package/.env
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
DB_HOST=localhost
|
|
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
|
|
2
10
|
DB_PORT=5432
|
|
3
|
-
DB_USER=
|
|
4
|
-
DB_PASS=
|
|
11
|
+
DB_USER=postgres_admin_user
|
|
12
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
13
|
DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -100,6 +100,7 @@ const GroupNamesModel_1 = require("./models/GroupNamesModel");
|
|
|
100
100
|
const GroupModel_1 = require("./models/GroupModel");
|
|
101
101
|
const WorkScheduleModel_1 = require("./models/WorkScheduleModel");
|
|
102
102
|
const JobsModel_1 = require("./models/JobsModel");
|
|
103
|
+
const TelephoneDirectoryModel_1 = require("./models/TelephoneDirectoryModel");
|
|
103
104
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
104
105
|
type: 'postgres',
|
|
105
106
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -204,6 +205,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
204
205
|
GroupNamesModel_1.GroupNames,
|
|
205
206
|
GroupModel_1.Group,
|
|
206
207
|
WorkScheduleModel_1.WorkSchedule,
|
|
207
|
-
JobsModel_1.Jobs
|
|
208
|
+
JobsModel_1.Jobs,
|
|
209
|
+
TelephoneDirectoryModel_1.TelephoneDirectory
|
|
208
210
|
],
|
|
209
211
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -116,3 +116,4 @@ __exportStar(require("./models/GroupNamesModel"), exports);
|
|
|
116
116
|
__exportStar(require("./models/GroupModel"), exports);
|
|
117
117
|
__exportStar(require("./models/WorkScheduleModel"), exports);
|
|
118
118
|
__exportStar(require("./models/JobsModel"), exports);
|
|
119
|
+
__exportStar(require("./models/TelephoneDirectoryModel"), exports);
|
|
@@ -70,6 +70,10 @@ __decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'enum', enum: EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalStatus.PENDING, nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], EarlyCheckoutApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], EarlyCheckoutApprovalDetails.prototype, "is_allowed", void 0);
|
|
73
77
|
exports.EarlyCheckoutApprovalDetails = EarlyCheckoutApprovalDetails = __decorate([
|
|
74
78
|
(0, typeorm_1.Entity)({ name: 'early_checkout_approvals' })
|
|
75
79
|
], EarlyCheckoutApprovalDetails);
|
|
@@ -0,0 +1,34 @@
|
|
|
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);
|
|
@@ -0,0 +1,34 @@
|
|
|
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);
|
|
@@ -0,0 +1,29 @@
|
|
|
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);
|
|
@@ -70,6 +70,10 @@ __decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'enum', enum: StayAfterHoursApprovalStatus, default: StayAfterHoursApprovalStatus.PENDING, nullable: false }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], StayAfterHoursApprovalDetails.prototype, "approval_status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], StayAfterHoursApprovalDetails.prototype, "is_allowed", void 0);
|
|
73
77
|
exports.StayAfterHoursApprovalDetails = StayAfterHoursApprovalDetails = __decorate([
|
|
74
78
|
(0, typeorm_1.Entity)({ name: 'stay_after_hours_approvals' })
|
|
75
79
|
], StayAfterHoursApprovalDetails);
|
|
@@ -9,14 +9,13 @@ export declare class TelephoneDirectory extends BaseModel {
|
|
|
9
9
|
email: string;
|
|
10
10
|
contact_number: string;
|
|
11
11
|
extension_number: string;
|
|
12
|
-
fax_number: string;
|
|
13
12
|
location: string;
|
|
14
13
|
department_id: number;
|
|
15
14
|
employee_id: number | null;
|
|
16
|
-
street: string;
|
|
17
15
|
city: string;
|
|
18
16
|
state: string;
|
|
19
17
|
zip_code: string;
|
|
20
18
|
country: string;
|
|
21
19
|
photo_url: string;
|
|
20
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_name?: string, 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);
|
|
22
21
|
}
|
|
@@ -13,6 +13,25 @@ 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, embassy_name, email, contact_number, extension_number, location, department_id, employee_id, city, state, zip_code, country, photo_url) {
|
|
17
|
+
super();
|
|
18
|
+
this.category = category || "FM";
|
|
19
|
+
this.name = name || "";
|
|
20
|
+
this.position = position || "";
|
|
21
|
+
this.diplomatic_title = diplomatic_title || "";
|
|
22
|
+
this.embassy_name = embassy_name || "";
|
|
23
|
+
this.email = email || "";
|
|
24
|
+
this.contact_number = contact_number || "";
|
|
25
|
+
this.extension_number = extension_number || "";
|
|
26
|
+
this.location = location || "";
|
|
27
|
+
this.department_id = department_id || 0;
|
|
28
|
+
this.employee_id = employee_id || 0;
|
|
29
|
+
this.city = city || "";
|
|
30
|
+
this.state = state || "";
|
|
31
|
+
this.zip_code = zip_code || "";
|
|
32
|
+
this.country = country || "";
|
|
33
|
+
this.photo_url = photo_url || "";
|
|
34
|
+
}
|
|
16
35
|
};
|
|
17
36
|
exports.TelephoneDirectory = TelephoneDirectory;
|
|
18
37
|
__decorate([
|
|
@@ -51,10 +70,6 @@ __decorate([
|
|
|
51
70
|
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
52
71
|
__metadata("design:type", String)
|
|
53
72
|
], TelephoneDirectory.prototype, "extension_number", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], TelephoneDirectory.prototype, "fax_number", void 0);
|
|
58
73
|
__decorate([
|
|
59
74
|
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
60
75
|
__metadata("design:type", String)
|
|
@@ -67,10 +82,6 @@ __decorate([
|
|
|
67
82
|
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
68
83
|
__metadata("design:type", Object)
|
|
69
84
|
], TelephoneDirectory.prototype, "employee_id", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], TelephoneDirectory.prototype, "street", void 0);
|
|
74
85
|
__decorate([
|
|
75
86
|
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
76
87
|
__metadata("design:type", String)
|
|
@@ -92,5 +103,6 @@ __decorate([
|
|
|
92
103
|
__metadata("design:type", String)
|
|
93
104
|
], TelephoneDirectory.prototype, "photo_url", void 0);
|
|
94
105
|
exports.TelephoneDirectory = TelephoneDirectory = __decorate([
|
|
95
|
-
(0, typeorm_1.Entity)({ name: "telephone_directory" })
|
|
106
|
+
(0, typeorm_1.Entity)({ name: "telephone_directory" }),
|
|
107
|
+
__metadata("design:paramtypes", [String, String, String, String, String, String, String, String, String, Number, Number, String, String, String, String, String])
|
|
96
108
|
], TelephoneDirectory);
|
|
@@ -0,0 +1,34 @@
|
|
|
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);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -105,6 +105,7 @@ import { GroupNames } from './models/GroupNamesModel';
|
|
|
105
105
|
import { Group } from './models/GroupModel';
|
|
106
106
|
import { WorkSchedule } from './models/WorkScheduleModel';
|
|
107
107
|
import { Jobs } from './models/JobsModel';
|
|
108
|
+
import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
108
109
|
export const AppDataSource = new DataSource({
|
|
109
110
|
type: 'postgres',
|
|
110
111
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -209,6 +210,7 @@ export const AppDataSource = new DataSource({
|
|
|
209
210
|
GroupNames,
|
|
210
211
|
Group,
|
|
211
212
|
WorkSchedule,
|
|
212
|
-
Jobs
|
|
213
|
+
Jobs,
|
|
214
|
+
TelephoneDirectory
|
|
213
215
|
],
|
|
214
216
|
});
|
package/src/index.ts
CHANGED
|
@@ -45,6 +45,9 @@ export class EarlyCheckoutApprovalDetails extends BaseModel {
|
|
|
45
45
|
|
|
46
46
|
@Column({ type: 'enum', enum: EarlyCheckoutApprovalStatus, default: EarlyCheckoutApprovalStatus.PENDING, nullable: false })
|
|
47
47
|
approval_status: EarlyCheckoutApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
+
is_allowed: boolean;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
|
|
@@ -45,5 +45,8 @@ export class StayAfterHoursApprovalDetails extends BaseModel {
|
|
|
45
45
|
|
|
46
46
|
@Column({ type: 'enum', enum: StayAfterHoursApprovalStatus, default: StayAfterHoursApprovalStatus.PENDING, nullable: false })
|
|
47
47
|
approval_status: StayAfterHoursApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
+
is_allowed: boolean;
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -32,8 +32,6 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
32
32
|
@Column({ type: "varchar", length: 10, nullable: true })
|
|
33
33
|
extension_number: string; // Extension Number - can be generic or linked to employee
|
|
34
34
|
|
|
35
|
-
@Column({ type: "varchar", length: 20, nullable: true })
|
|
36
|
-
fax_number: string; // Optional
|
|
37
35
|
|
|
38
36
|
@Column({ type: "varchar", length: 255, nullable: true })
|
|
39
37
|
location: string; // Optional
|
|
@@ -46,10 +44,6 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
46
44
|
@Column({ type: "int", nullable: true })
|
|
47
45
|
employee_id: number | null; // If extension is linked to employee profile
|
|
48
46
|
|
|
49
|
-
// Business Postal Address Information (Optional)
|
|
50
|
-
@Column({ type: "varchar", length: 255, nullable: true })
|
|
51
|
-
street: string;
|
|
52
|
-
|
|
53
47
|
@Column({ type: "varchar", length: 100, nullable: true })
|
|
54
48
|
city: string;
|
|
55
49
|
|
|
@@ -65,5 +59,26 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
65
59
|
// Photo
|
|
66
60
|
@Column({ type: "varchar", length: 500, nullable: true })
|
|
67
61
|
photo_url: string;
|
|
62
|
+
|
|
63
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_name?: string, 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
|
+
super();
|
|
65
|
+
this.category = category || "FM";
|
|
66
|
+
this.name = name || "";
|
|
67
|
+
this.position = position || "";
|
|
68
|
+
this.diplomatic_title = diplomatic_title || "";
|
|
69
|
+
this.embassy_name = embassy_name || "";
|
|
70
|
+
this.email = email || "";
|
|
71
|
+
this.contact_number = contact_number || "";
|
|
72
|
+
this.extension_number = extension_number || "";
|
|
73
|
+
this.location = location || "";
|
|
74
|
+
this.department_id = department_id || 0;
|
|
75
|
+
this.employee_id = employee_id || 0;
|
|
76
|
+
this.city = city || "";
|
|
77
|
+
this.state = state || "";
|
|
78
|
+
this.zip_code = zip_code || "";
|
|
79
|
+
this.country = country || "";
|
|
80
|
+
this.photo_url = photo_url || "";
|
|
81
|
+
}
|
|
82
|
+
|
|
68
83
|
}
|
|
69
84
|
|