@platform-modules/foreign-ministry 1.3.58 → 1.3.60
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/dist/models/JobsModel.d.ts +3 -1
- package/dist/models/JobsModel.js +12 -2
- package/dist/models/MissionTravelPersonModel.d.ts +2 -2
- package/dist/models/MissionTravelPersonModel.js +4 -4
- package/dist/models/RegisterVacancyRequestModel.d.ts +1 -1
- package/dist/models/RegisterVacancyRequestModel.js +3 -3
- package/dist/models/TelephoneDirectoryModel.js +1 -1
- package/package.json +1 -1
- package/src/models/JobsModel.ts +11 -1
- package/src/models/MissionTravelPersonModel.ts +4 -4
- package/src/models/MissionTravelRequestModel.ts +1 -0
- package/src/models/RegisterVacancyRequestModel.ts +2 -2
- package/src/models/TelephoneDirectoryModel.ts +1 -1
|
@@ -13,5 +13,7 @@ export declare class Jobs extends BaseModel {
|
|
|
13
13
|
title: string;
|
|
14
14
|
grade: number;
|
|
15
15
|
description: string;
|
|
16
|
-
|
|
16
|
+
location: string | null;
|
|
17
|
+
job_description: string | null;
|
|
18
|
+
constructor(title: string, grade: number, description: string, location?: string | null, job_description?: string | null);
|
|
17
19
|
}
|
package/dist/models/JobsModel.js
CHANGED
|
@@ -23,11 +23,13 @@ exports.Jobs = void 0;
|
|
|
23
23
|
const typeorm_1 = require("typeorm");
|
|
24
24
|
const BaseModel_1 = require("./BaseModel");
|
|
25
25
|
let Jobs = class Jobs extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(title, grade, description) {
|
|
26
|
+
constructor(title, grade, description, location, job_description) {
|
|
27
27
|
super();
|
|
28
28
|
this.title = title;
|
|
29
29
|
this.grade = grade;
|
|
30
30
|
this.description = description;
|
|
31
|
+
this.location = location || null;
|
|
32
|
+
this.job_description = job_description || null;
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
exports.Jobs = Jobs;
|
|
@@ -43,7 +45,15 @@ __decorate([
|
|
|
43
45
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
44
46
|
__metadata("design:type", String)
|
|
45
47
|
], Jobs.prototype, "description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], Jobs.prototype, "location", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], Jobs.prototype, "job_description", void 0);
|
|
46
56
|
exports.Jobs = Jobs = __decorate([
|
|
47
57
|
(0, typeorm_1.Entity)({ name: 'jobs' }),
|
|
48
|
-
__metadata("design:paramtypes", [String, Number, String])
|
|
58
|
+
__metadata("design:paramtypes", [String, Number, String, Object, Object])
|
|
49
59
|
], Jobs);
|
|
@@ -10,7 +10,7 @@ export declare class MissionTravelPersons extends BaseModel {
|
|
|
10
10
|
sub_service_id: number | null;
|
|
11
11
|
travel_person_name: string;
|
|
12
12
|
user_id: number | null;
|
|
13
|
-
|
|
13
|
+
country_name: string | null;
|
|
14
14
|
allowance_ratio: AllowanceRatio | null;
|
|
15
15
|
travel_from_date: Date | null;
|
|
16
16
|
travel_to_date: Date | null;
|
|
@@ -22,5 +22,5 @@ export declare class MissionTravelPersons extends BaseModel {
|
|
|
22
22
|
travel_agent_name: string | null;
|
|
23
23
|
allowance_amount: number | null;
|
|
24
24
|
grade: number | null;
|
|
25
|
-
constructor(request_id: number, service_id: number | null, sub_service_id: number | null, travel_person_name: string, user_id: number | null,
|
|
25
|
+
constructor(request_id: number, service_id: number | null, sub_service_id: number | null, travel_person_name: string, user_id: number | null, country_name: string | null, allowance_ratio: AllowanceRatio | null, travel_from_date: Date | null, travel_to_date: Date | null, travel_class: string | null, number_of_days: number | null, hotel_name: string | null, hotel_rating: number | null, hotel_price: number | null, travel_agent_name: string | null, allowance_amount: number | null, grade: number | null);
|
|
26
26
|
}
|
|
@@ -19,14 +19,14 @@ var AllowanceRatio;
|
|
|
19
19
|
AllowanceRatio["RATIO_50"] = "50";
|
|
20
20
|
})(AllowanceRatio || (exports.AllowanceRatio = AllowanceRatio = {}));
|
|
21
21
|
let MissionTravelPersons = class MissionTravelPersons extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(request_id, service_id, sub_service_id, travel_person_name, user_id,
|
|
22
|
+
constructor(request_id, service_id, sub_service_id, travel_person_name, user_id, country_name, allowance_ratio, travel_from_date, travel_to_date, travel_class, number_of_days, hotel_name, hotel_rating, hotel_price, travel_agent_name, allowance_amount, grade) {
|
|
23
23
|
super();
|
|
24
24
|
this.request_id = request_id;
|
|
25
25
|
this.service_id = service_id;
|
|
26
26
|
this.sub_service_id = sub_service_id;
|
|
27
27
|
this.travel_person_name = travel_person_name;
|
|
28
28
|
this.user_id = user_id;
|
|
29
|
-
this.
|
|
29
|
+
this.country_name = country_name;
|
|
30
30
|
this.allowance_ratio = allowance_ratio;
|
|
31
31
|
this.travel_from_date = travel_from_date;
|
|
32
32
|
this.travel_to_date = travel_to_date;
|
|
@@ -62,9 +62,9 @@ __decorate([
|
|
|
62
62
|
__metadata("design:type", Object)
|
|
63
63
|
], MissionTravelPersons.prototype, "user_id", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: '
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
66
66
|
__metadata("design:type", Object)
|
|
67
|
-
], MissionTravelPersons.prototype, "
|
|
67
|
+
], MissionTravelPersons.prototype, "country_name", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
70
70
|
__metadata("design:type", Object)
|
|
@@ -13,7 +13,7 @@ export declare class RegisterVacancyRequests extends BaseModel {
|
|
|
13
13
|
sub_service_id: number | null;
|
|
14
14
|
user_id: number;
|
|
15
15
|
MandC_id: number;
|
|
16
|
-
|
|
16
|
+
name_of_positions: string;
|
|
17
17
|
description: string | null;
|
|
18
18
|
salary: string;
|
|
19
19
|
currency_type: string | null;
|
|
@@ -48,9 +48,9 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
49
|
], RegisterVacancyRequests.prototype, "MandC_id", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: '
|
|
52
|
-
__metadata("design:type",
|
|
53
|
-
], RegisterVacancyRequests.prototype, "
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], RegisterVacancyRequests.prototype, "name_of_positions", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
56
56
|
__metadata("design:type", Object)
|
|
@@ -42,7 +42,7 @@ __decorate([
|
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], TelephoneDirectory.prototype, "id", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false }),
|
|
45
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy", "M&C"], nullable: false }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], TelephoneDirectory.prototype, "category", void 0);
|
|
48
48
|
__decorate([
|
package/package.json
CHANGED
package/src/models/JobsModel.ts
CHANGED
|
@@ -23,15 +23,25 @@ export class Jobs extends BaseModel {
|
|
|
23
23
|
@Column({ type: 'text', nullable: false })
|
|
24
24
|
description: string;
|
|
25
25
|
|
|
26
|
+
@Column({ type: 'varchar', nullable: true })
|
|
27
|
+
location: string | null;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'text', nullable: true })
|
|
30
|
+
job_description: string | null;
|
|
31
|
+
|
|
26
32
|
constructor(
|
|
27
33
|
title: string,
|
|
28
34
|
grade: number,
|
|
29
|
-
description: string
|
|
35
|
+
description: string,
|
|
36
|
+
location?: string | null,
|
|
37
|
+
job_description?: string | null
|
|
30
38
|
) {
|
|
31
39
|
super();
|
|
32
40
|
this.title = title;
|
|
33
41
|
this.grade = grade;
|
|
34
42
|
this.description = description;
|
|
43
|
+
this.location = location || null;
|
|
44
|
+
this.job_description = job_description || null;
|
|
35
45
|
}
|
|
36
46
|
}
|
|
37
47
|
|
|
@@ -25,8 +25,8 @@ export class MissionTravelPersons extends BaseModel {
|
|
|
25
25
|
@Column({ type: 'int', nullable: true })
|
|
26
26
|
user_id: number | null; // If employee, link to user table
|
|
27
27
|
|
|
28
|
-
@Column({ type: '
|
|
29
|
-
|
|
28
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
29
|
+
country_name: string | null;
|
|
30
30
|
|
|
31
31
|
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
32
32
|
allowance_ratio: AllowanceRatio | null; // 100, 75, or 50
|
|
@@ -67,7 +67,7 @@ export class MissionTravelPersons extends BaseModel {
|
|
|
67
67
|
sub_service_id: number | null,
|
|
68
68
|
travel_person_name: string,
|
|
69
69
|
user_id: number | null,
|
|
70
|
-
|
|
70
|
+
country_name: string | null,
|
|
71
71
|
allowance_ratio: AllowanceRatio | null,
|
|
72
72
|
travel_from_date: Date | null,
|
|
73
73
|
travel_to_date: Date | null,
|
|
@@ -86,7 +86,7 @@ export class MissionTravelPersons extends BaseModel {
|
|
|
86
86
|
this.sub_service_id = sub_service_id;
|
|
87
87
|
this.travel_person_name = travel_person_name;
|
|
88
88
|
this.user_id = user_id;
|
|
89
|
-
this.
|
|
89
|
+
this.country_name = country_name;
|
|
90
90
|
this.allowance_ratio = allowance_ratio;
|
|
91
91
|
this.travel_from_date = travel_from_date;
|
|
92
92
|
this.travel_to_date = travel_to_date;
|
|
@@ -31,8 +31,8 @@ export class RegisterVacancyRequests extends BaseModel {
|
|
|
31
31
|
@Column({ type: 'int', nullable: false })
|
|
32
32
|
MandC_id: number;
|
|
33
33
|
|
|
34
|
-
@Column({ type: '
|
|
35
|
-
|
|
34
|
+
@Column({ type: 'varchar', nullable: true })
|
|
35
|
+
name_of_positions: string;
|
|
36
36
|
|
|
37
37
|
@Column({ type: 'varchar', nullable: true })
|
|
38
38
|
description: string | null;
|
|
@@ -7,7 +7,7 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
7
7
|
id: number;
|
|
8
8
|
|
|
9
9
|
// General Information
|
|
10
|
-
@Column({ type: "enum", enum: ["FM", "Embassy"], nullable: false })
|
|
10
|
+
@Column({ type: "enum", enum: ["FM", "Embassy","M&C"], nullable: false })
|
|
11
11
|
category: "FM" | "Embassy"; // Mandatory - to differentiate FM and Embassy
|
|
12
12
|
|
|
13
13
|
@Column({ type: "varchar", length: 255, nullable: false })
|