@platform-modules/foreign-ministry 1.2.19 → 1.2.21
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 -17
- package/dist/models/FinancialGradeModel.d.ts +3 -1
- package/dist/models/FinancialGradeModel.js +12 -2
- package/dist/models/MissionTravelApprovalModel.d.ts +22 -0
- package/dist/models/MissionTravelApprovalModel.js +79 -0
- package/dist/models/MissionTravelAttachmentModel.d.ts +11 -0
- package/dist/models/MissionTravelAttachmentModel.js +52 -0
- package/dist/models/MissionTravelChatModel.d.ts +9 -0
- package/dist/models/MissionTravelChatModel.js +44 -0
- package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelCostModel.d.ts +14 -0
- package/dist/models/MissionTravelCostModel.js +74 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -0
- package/dist/models/MissionTravelPersonModel.d.ts +32 -0
- package/dist/models/MissionTravelPersonModel.js +126 -0
- package/dist/models/MissionTravelRequestModel.d.ts +40 -0
- package/dist/models/MissionTravelRequestModel.js +138 -0
- package/dist/models/MissionTravelWorkflowModel.d.ts +13 -0
- package/dist/models/MissionTravelWorkflowModel.js +60 -0
- package/package.json +1 -1
- package/src/models/FinancialGradeModel.ts +11 -1
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +53 -0
- package/src/models/MissionTravelAttachmentModel.ts +32 -0
- package/src/models/MissionTravelChatModel.ts +26 -0
- package/src/models/MissionTravelClassConfigModel.ts +39 -0
- package/src/models/MissionTravelCostModel.ts +64 -0
- package/src/models/MissionTravelPerdiemModel.ts +43 -0
- package/src/models/MissionTravelPersonModel.ts +116 -0
- package/src/models/MissionTravelRequestModel.ts +126 -0
- package/src/models/MissionTravelWorkflowModel.ts +38 -0
- 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
|
@@ -0,0 +1,126 @@
|
|
|
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.MissionTravelPersons = exports.AllowanceRatio = exports.TravelClass = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var TravelClass;
|
|
16
|
+
(function (TravelClass) {
|
|
17
|
+
TravelClass["ECONOMY"] = "Economy";
|
|
18
|
+
TravelClass["BUSINESS"] = "Business";
|
|
19
|
+
TravelClass["FIRST"] = "First";
|
|
20
|
+
})(TravelClass || (exports.TravelClass = TravelClass = {}));
|
|
21
|
+
var AllowanceRatio;
|
|
22
|
+
(function (AllowanceRatio) {
|
|
23
|
+
AllowanceRatio["RATIO_100"] = "100";
|
|
24
|
+
AllowanceRatio["RATIO_75"] = "75";
|
|
25
|
+
AllowanceRatio["RATIO_50"] = "50";
|
|
26
|
+
})(AllowanceRatio || (exports.AllowanceRatio = AllowanceRatio = {}));
|
|
27
|
+
let MissionTravelPersons = class MissionTravelPersons extends BaseModel_1.BaseModel {
|
|
28
|
+
constructor(request_id, service_id, sub_service_id, travel_person_name, user_id, country_id, 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, position) {
|
|
29
|
+
super();
|
|
30
|
+
this.request_id = request_id;
|
|
31
|
+
this.service_id = service_id;
|
|
32
|
+
this.sub_service_id = sub_service_id;
|
|
33
|
+
this.travel_person_name = travel_person_name;
|
|
34
|
+
this.user_id = user_id;
|
|
35
|
+
this.country_id = country_id;
|
|
36
|
+
this.allowance_ratio = allowance_ratio;
|
|
37
|
+
this.travel_from_date = travel_from_date;
|
|
38
|
+
this.travel_to_date = travel_to_date;
|
|
39
|
+
this.travel_class = travel_class;
|
|
40
|
+
this.number_of_days = number_of_days;
|
|
41
|
+
this.hotel_name = hotel_name;
|
|
42
|
+
this.hotel_rating = hotel_rating;
|
|
43
|
+
this.hotel_price = hotel_price;
|
|
44
|
+
this.travel_agent_name = travel_agent_name;
|
|
45
|
+
this.allowance_amount = allowance_amount;
|
|
46
|
+
this.grade = grade;
|
|
47
|
+
this.position = position;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.MissionTravelPersons = MissionTravelPersons;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], MissionTravelPersons.prototype, "request_id", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], MissionTravelPersons.prototype, "service_id", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], MissionTravelPersons.prototype, "sub_service_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], MissionTravelPersons.prototype, "travel_person_name", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], MissionTravelPersons.prototype, "user_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], MissionTravelPersons.prototype, "country_id", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], MissionTravelPersons.prototype, "allowance_ratio", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], MissionTravelPersons.prototype, "travel_from_date", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], MissionTravelPersons.prototype, "travel_to_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: TravelClass, nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], MissionTravelPersons.prototype, "travel_class", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], MissionTravelPersons.prototype, "number_of_days", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], MissionTravelPersons.prototype, "hotel_name", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], MissionTravelPersons.prototype, "hotel_rating", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], MissionTravelPersons.prototype, "hotel_price", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], MissionTravelPersons.prototype, "travel_agent_name", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], MissionTravelPersons.prototype, "allowance_amount", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], MissionTravelPersons.prototype, "grade", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], MissionTravelPersons.prototype, "position", void 0);
|
|
123
|
+
exports.MissionTravelPersons = MissionTravelPersons = __decorate([
|
|
124
|
+
(0, typeorm_1.Entity)({ name: 'mission_travel_persons' }),
|
|
125
|
+
__metadata("design:paramtypes", [Number, Object, Object, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
126
|
+
], MissionTravelPersons);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum MissionTravelStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
APPROVED = "Approved",
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
COMPLETED = "Completed",
|
|
7
|
+
CANCELLED = "Cancelled"
|
|
8
|
+
}
|
|
9
|
+
export declare enum MissionType {
|
|
10
|
+
INTERNAL = "Internal",
|
|
11
|
+
EXTERNAL = "External"
|
|
12
|
+
}
|
|
13
|
+
export declare enum DecisionType {
|
|
14
|
+
OFFICIAL_MISSION = "Official Mission",
|
|
15
|
+
TRAINING_COURSE = "Training Course",
|
|
16
|
+
SUMMON = "Summon",
|
|
17
|
+
ATTACHMENT = "Attachment"
|
|
18
|
+
}
|
|
19
|
+
export declare class MissionTravelRequests extends BaseModel {
|
|
20
|
+
user_id: number;
|
|
21
|
+
service_id: number | null;
|
|
22
|
+
sub_service_id: number | null;
|
|
23
|
+
department_participation: boolean;
|
|
24
|
+
mission_type: MissionType | null;
|
|
25
|
+
decision_type: DecisionType | null;
|
|
26
|
+
country_id: number | null;
|
|
27
|
+
from_date: Date | null;
|
|
28
|
+
to_date: Date | null;
|
|
29
|
+
purpose_of_mission: string | null;
|
|
30
|
+
exchange_ratio: string | null;
|
|
31
|
+
number_of_days: number | null;
|
|
32
|
+
mission_allowance_cost: number | null;
|
|
33
|
+
hotel_name: string | null;
|
|
34
|
+
hotel_rating: number | null;
|
|
35
|
+
hotel_price: number | null;
|
|
36
|
+
travelling_agent: string | null;
|
|
37
|
+
status: MissionTravelStatus;
|
|
38
|
+
workflow_execution_id: string | null;
|
|
39
|
+
constructor(user_id: number, service_id: number | null, sub_service_id: number | null, department_participation: boolean, mission_type: MissionType | null, decision_type: DecisionType | null, country_id: number | null, from_date: Date | null, to_date: Date | null, purpose_of_mission: string | null, exchange_ratio: string | null, number_of_days: number | null, mission_allowance_cost: number | null, hotel_name: string | null, hotel_rating: number | null, hotel_price: number | null, travelling_agent: string | null);
|
|
40
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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.MissionTravelRequests = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var MissionTravelStatus;
|
|
16
|
+
(function (MissionTravelStatus) {
|
|
17
|
+
MissionTravelStatus["PENDING"] = "Pending";
|
|
18
|
+
MissionTravelStatus["APPROVED"] = "Approved";
|
|
19
|
+
MissionTravelStatus["REJECTED"] = "Rejected";
|
|
20
|
+
MissionTravelStatus["COMPLETED"] = "Completed";
|
|
21
|
+
MissionTravelStatus["CANCELLED"] = "Cancelled";
|
|
22
|
+
})(MissionTravelStatus || (exports.MissionTravelStatus = MissionTravelStatus = {}));
|
|
23
|
+
var MissionType;
|
|
24
|
+
(function (MissionType) {
|
|
25
|
+
MissionType["INTERNAL"] = "Internal";
|
|
26
|
+
MissionType["EXTERNAL"] = "External";
|
|
27
|
+
})(MissionType || (exports.MissionType = MissionType = {}));
|
|
28
|
+
var DecisionType;
|
|
29
|
+
(function (DecisionType) {
|
|
30
|
+
DecisionType["OFFICIAL_MISSION"] = "Official Mission";
|
|
31
|
+
DecisionType["TRAINING_COURSE"] = "Training Course";
|
|
32
|
+
DecisionType["SUMMON"] = "Summon";
|
|
33
|
+
DecisionType["ATTACHMENT"] = "Attachment";
|
|
34
|
+
})(DecisionType || (exports.DecisionType = DecisionType = {}));
|
|
35
|
+
let MissionTravelRequests = class MissionTravelRequests extends BaseModel_1.BaseModel {
|
|
36
|
+
constructor(user_id, service_id, sub_service_id, department_participation, mission_type, decision_type, country_id, from_date, to_date, purpose_of_mission, exchange_ratio, number_of_days, mission_allowance_cost, hotel_name, hotel_rating, hotel_price, travelling_agent) {
|
|
37
|
+
super();
|
|
38
|
+
this.user_id = user_id;
|
|
39
|
+
this.service_id = service_id;
|
|
40
|
+
this.sub_service_id = sub_service_id;
|
|
41
|
+
this.department_participation = department_participation;
|
|
42
|
+
this.mission_type = mission_type;
|
|
43
|
+
this.decision_type = decision_type;
|
|
44
|
+
this.country_id = country_id;
|
|
45
|
+
this.from_date = from_date;
|
|
46
|
+
this.to_date = to_date;
|
|
47
|
+
this.purpose_of_mission = purpose_of_mission;
|
|
48
|
+
this.exchange_ratio = exchange_ratio;
|
|
49
|
+
this.number_of_days = number_of_days;
|
|
50
|
+
this.mission_allowance_cost = mission_allowance_cost;
|
|
51
|
+
this.hotel_name = hotel_name;
|
|
52
|
+
this.hotel_rating = hotel_rating;
|
|
53
|
+
this.hotel_price = hotel_price;
|
|
54
|
+
this.travelling_agent = travelling_agent;
|
|
55
|
+
this.status = MissionTravelStatus.PENDING;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
exports.MissionTravelRequests = MissionTravelRequests;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], MissionTravelRequests.prototype, "user_id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], MissionTravelRequests.prototype, "service_id", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], MissionTravelRequests.prototype, "sub_service_id", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'boolean', nullable: true, default: false }),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], MissionTravelRequests.prototype, "department_participation", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MissionType, nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], MissionTravelRequests.prototype, "mission_type", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: DecisionType, nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], MissionTravelRequests.prototype, "decision_type", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], MissionTravelRequests.prototype, "country_id", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
89
|
+
__metadata("design:type", Object)
|
|
90
|
+
], MissionTravelRequests.prototype, "from_date", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], MissionTravelRequests.prototype, "to_date", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], MissionTravelRequests.prototype, "purpose_of_mission", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
101
|
+
__metadata("design:type", Object)
|
|
102
|
+
], MissionTravelRequests.prototype, "exchange_ratio", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], MissionTravelRequests.prototype, "number_of_days", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], MissionTravelRequests.prototype, "mission_allowance_cost", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], MissionTravelRequests.prototype, "hotel_name", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], MissionTravelRequests.prototype, "hotel_rating", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
121
|
+
__metadata("design:type", Object)
|
|
122
|
+
], MissionTravelRequests.prototype, "hotel_price", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], MissionTravelRequests.prototype, "travelling_agent", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MissionTravelStatus, default: MissionTravelStatus.PENDING, nullable: false }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], MissionTravelRequests.prototype, "status", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], MissionTravelRequests.prototype, "workflow_execution_id", void 0);
|
|
135
|
+
exports.MissionTravelRequests = MissionTravelRequests = __decorate([
|
|
136
|
+
(0, typeorm_1.Entity)({ name: 'mission_travel_requests' }),
|
|
137
|
+
__metadata("design:paramtypes", [Number, Object, Object, Boolean, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object])
|
|
138
|
+
], MissionTravelRequests);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class MissionTravelWorkFlow extends BaseModel {
|
|
3
|
+
request_id: number;
|
|
4
|
+
service_id: number | null;
|
|
5
|
+
sub_service_id: number | null;
|
|
6
|
+
user_id: number | null;
|
|
7
|
+
role_id: number | null;
|
|
8
|
+
department_id: number | null;
|
|
9
|
+
section_id: number | null;
|
|
10
|
+
action: string | null;
|
|
11
|
+
comment: string | null;
|
|
12
|
+
action_date: Date | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.MissionTravelWorkFlow = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let MissionTravelWorkFlow = class MissionTravelWorkFlow extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.MissionTravelWorkFlow = MissionTravelWorkFlow;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], MissionTravelWorkFlow.prototype, "request_id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], MissionTravelWorkFlow.prototype, "service_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], MissionTravelWorkFlow.prototype, "sub_service_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], MissionTravelWorkFlow.prototype, "user_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], MissionTravelWorkFlow.prototype, "role_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], MissionTravelWorkFlow.prototype, "department_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], MissionTravelWorkFlow.prototype, "section_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], MissionTravelWorkFlow.prototype, "action", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], MissionTravelWorkFlow.prototype, "comment", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], MissionTravelWorkFlow.prototype, "action_date", void 0);
|
|
58
|
+
exports.MissionTravelWorkFlow = MissionTravelWorkFlow = __decorate([
|
|
59
|
+
(0, typeorm_1.Entity)({ name: 'mission_travel_workflows' })
|
|
60
|
+
], MissionTravelWorkFlow);
|
package/package.json
CHANGED
|
@@ -16,16 +16,26 @@ export class FinancialGrade extends BaseModel {
|
|
|
16
16
|
@Column({ type: "integer", nullable: true })
|
|
17
17
|
leave_count: number;
|
|
18
18
|
|
|
19
|
+
@Column({ type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
20
|
+
daily_allowance: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', nullable: true })
|
|
23
|
+
travel_class: string | null;
|
|
24
|
+
|
|
19
25
|
constructor(
|
|
20
26
|
diplomatic_title: string,
|
|
21
27
|
arabic_title: string,
|
|
22
28
|
financial_grade: number,
|
|
23
|
-
leave_count: number
|
|
29
|
+
leave_count: number,
|
|
30
|
+
daily_allowance?: number,
|
|
31
|
+
travel_class?: string
|
|
24
32
|
) {
|
|
25
33
|
super();
|
|
26
34
|
this.diplomatic_title = diplomatic_title;
|
|
27
35
|
this.arabic_title = arabic_title;
|
|
28
36
|
this.financial_grade = financial_grade;
|
|
29
37
|
this.leave_count = leave_count;
|
|
38
|
+
this.daily_allowance = daily_allowance || null;
|
|
39
|
+
this.travel_class = travel_class || null;
|
|
30
40
|
}
|
|
31
41
|
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum enumFrequency {
|
|
5
|
-
Monthly = 'Monthly',
|
|
6
|
-
Yearly = 'Yearly',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
-
@Entity({ name: 'leave_configuration' })
|
|
11
|
-
export class LeaveConfiguration extends BaseModel {
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', nullable: true })
|
|
14
|
-
category: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
MandC_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
leave_type_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', nullable: true })
|
|
23
|
-
frequency: enumFrequency;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', nullable: true })
|
|
26
|
-
region: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', nullable: true })
|
|
29
|
-
country: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', nullable: true })
|
|
32
|
-
location: string;
|
|
33
|
-
|
|
34
|
-
@Column({ nullable: true, default: false })
|
|
35
|
-
is_carryforward: boolean;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
-
carryforward_limit: number;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'date', nullable: true })
|
|
41
|
-
from_date: Date;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'date', nullable: true })
|
|
44
|
-
to_date: Date;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', nullable: true })
|
|
47
|
-
reason: string;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'int', nullable: true })
|
|
50
|
-
emergency_balance_days: number | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'date', nullable: true })
|
|
53
|
-
last_credited: Date | null;
|
|
54
|
-
|
|
55
|
-
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
56
|
-
super();
|
|
57
|
-
this.category = category;
|
|
58
|
-
this.MandC_id = MandC_id;
|
|
59
|
-
this.leave_type_id = leave_type_id;
|
|
60
|
-
this.frequency = frequency;
|
|
61
|
-
this.region = region;
|
|
62
|
-
this.country = country;
|
|
63
|
-
this.location = location;
|
|
64
|
-
this.is_carryforward = is_carryforward;
|
|
65
|
-
this.carryforward_limit = carryforward_limit;
|
|
66
|
-
this.from_date = from_date;
|
|
67
|
-
this.to_date = to_date;
|
|
68
|
-
this.reason = reason;
|
|
69
|
-
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
-
this.last_credited = last_credited ?? null;
|
|
71
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum enumFrequency {
|
|
5
|
+
Monthly = 'Monthly',
|
|
6
|
+
Yearly = 'Yearly',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
+
@Entity({ name: 'leave_configuration' })
|
|
11
|
+
export class LeaveConfiguration extends BaseModel {
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'varchar', nullable: true })
|
|
14
|
+
category: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
MandC_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
leave_type_id: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', nullable: true })
|
|
23
|
+
frequency: enumFrequency;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'varchar', nullable: true })
|
|
26
|
+
region: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', nullable: true })
|
|
29
|
+
country: string;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', nullable: true })
|
|
32
|
+
location: string;
|
|
33
|
+
|
|
34
|
+
@Column({ nullable: true, default: false })
|
|
35
|
+
is_carryforward: boolean;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
+
carryforward_limit: number;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'date', nullable: true })
|
|
41
|
+
from_date: Date;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'date', nullable: true })
|
|
44
|
+
to_date: Date;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', nullable: true })
|
|
47
|
+
reason: string;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'int', nullable: true })
|
|
50
|
+
emergency_balance_days: number | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: true })
|
|
53
|
+
last_credited: Date | null;
|
|
54
|
+
|
|
55
|
+
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
56
|
+
super();
|
|
57
|
+
this.category = category;
|
|
58
|
+
this.MandC_id = MandC_id;
|
|
59
|
+
this.leave_type_id = leave_type_id;
|
|
60
|
+
this.frequency = frequency;
|
|
61
|
+
this.region = region;
|
|
62
|
+
this.country = country;
|
|
63
|
+
this.location = location;
|
|
64
|
+
this.is_carryforward = is_carryforward;
|
|
65
|
+
this.carryforward_limit = carryforward_limit;
|
|
66
|
+
this.from_date = from_date;
|
|
67
|
+
this.to_date = to_date;
|
|
68
|
+
this.reason = reason;
|
|
69
|
+
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
+
this.last_credited = last_credited ?? null;
|
|
71
|
+
}
|
|
72
72
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum MissionTravelApprovalStatus {
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
APPROVED = "Approved",
|
|
7
|
+
REJECTED = "Rejected",
|
|
8
|
+
RFC = "RFC" // Request for Change
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Entity({ name: 'mission_travel_approvals' })
|
|
12
|
+
export class MissionTravelApprovalDetails extends BaseModel {
|
|
13
|
+
@Column({ type: 'integer', nullable: false })
|
|
14
|
+
request_id: number;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'integer', nullable: true })
|
|
17
|
+
service_id: number | null;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'integer', nullable: true })
|
|
20
|
+
sub_service_id: number | null;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'integer', nullable: false })
|
|
23
|
+
level: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'integer', nullable: true })
|
|
26
|
+
approver_role_id: number;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
department_id: number | null;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'integer', nullable: true })
|
|
32
|
+
section_id: number | null;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'integer', nullable: true })
|
|
35
|
+
approver_user_id: number | null;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'integer', nullable: true })
|
|
38
|
+
delegate_user_id: number | null;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'integer', nullable: true })
|
|
41
|
+
approved_by: number | null;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'varchar', length: 500, nullable: true, default: '' })
|
|
44
|
+
comment: string;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'enum', enum: MissionTravelApprovalStatus, default: MissionTravelApprovalStatus.PENDING, nullable: false })
|
|
47
|
+
approval_status: MissionTravelApprovalStatus;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
+
is_allowed: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'mission_travel_attachments' })
|
|
5
|
+
export class MissionTravelRequestAttachment extends BaseModel {
|
|
6
|
+
@Column({ type: 'integer', nullable: false })
|
|
7
|
+
request_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'integer', nullable: true })
|
|
10
|
+
service_id: number | null;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'integer', nullable: true })
|
|
13
|
+
sub_service_id: number | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
16
|
+
file_name: string;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
19
|
+
file_path: string | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
22
|
+
file_type: string | null;
|
|
23
|
+
|
|
24
|
+
@Column({ type: 'integer', nullable: true })
|
|
25
|
+
file_size: number | null;
|
|
26
|
+
|
|
27
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
28
|
+
uploaded_by: string | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|