@platform-modules/foreign-ministry 1.2.20 → 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/dist/data-source.js +1 -11
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/models/FinancialGradeModel.d.ts +3 -1
- package/dist/models/FinancialGradeModel.js +12 -2
- package/dist/models/LeaveRequestModel.d.ts +9 -1
- package/dist/models/LeaveRequestModel.js +28 -3
- 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/dist/models/user.d.ts +2 -1
- package/dist/models/user.js +7 -2
- package/package.json +1 -1
- package/src/data-source.ts +1 -11
- package/src/index.ts +1 -7
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +26 -26
- package/src/models/DiplomaticRequestsModel.ts +154 -154
- package/src/models/FinancialGradeModel.ts +11 -1
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/LeaveRequestModel.ts +21 -1
- 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/src/models/user.ts +5 -0
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardAttachmentModel.js +0 -44
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardChatModel.js +0 -36
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/EmployeeCardApprovalsModel.d.ts +0 -31
- package/dist/models/EmployeeCardApprovalsModel.js +0 -100
- package/dist/models/EmployeeCardAttachmentsModel.d.ts +0 -17
- package/dist/models/EmployeeCardAttachmentsModel.js +0 -69
- package/dist/models/EmployeeCardChatsModel.d.ts +0 -19
- package/dist/models/EmployeeCardChatsModel.js +0 -79
- package/dist/models/EmployeeCardRequestsModel.d.ts +0 -40
- package/dist/models/EmployeeCardRequestsModel.js +0 -126
- package/dist/models/EmployeeCardWorkFlowModel.d.ts +0 -34
- package/dist/models/EmployeeCardWorkFlowModel.js +0 -103
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestAttachmentModel.js +0 -54
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/EmployeeCardApprovalsModel.ts +0 -87
- package/src/models/EmployeeCardAttachmentsModel.ts +0 -56
- package/src/models/EmployeeCardChatsModel.ts +0 -66
- package/src/models/EmployeeCardRequestsModel.ts +0 -115
- package/src/models/EmployeeCardWorkFlowModel.ts +0 -90
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum TravelClass {
|
|
3
|
+
ECONOMY = "Economy",
|
|
4
|
+
BUSINESS = "Business",
|
|
5
|
+
FIRST = "First"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AllowanceRatio {
|
|
8
|
+
RATIO_100 = "100",
|
|
9
|
+
RATIO_75 = "75",
|
|
10
|
+
RATIO_50 = "50"
|
|
11
|
+
}
|
|
12
|
+
export declare class MissionTravelPersons extends BaseModel {
|
|
13
|
+
request_id: number;
|
|
14
|
+
service_id: number | null;
|
|
15
|
+
sub_service_id: number | null;
|
|
16
|
+
travel_person_name: string;
|
|
17
|
+
user_id: number | null;
|
|
18
|
+
country_id: number | null;
|
|
19
|
+
allowance_ratio: AllowanceRatio | null;
|
|
20
|
+
travel_from_date: Date | null;
|
|
21
|
+
travel_to_date: Date | null;
|
|
22
|
+
travel_class: TravelClass | null;
|
|
23
|
+
number_of_days: number | null;
|
|
24
|
+
hotel_name: string | null;
|
|
25
|
+
hotel_rating: number | null;
|
|
26
|
+
hotel_price: number | null;
|
|
27
|
+
travel_agent_name: string | null;
|
|
28
|
+
allowance_amount: number | null;
|
|
29
|
+
grade: number | null;
|
|
30
|
+
position: string | null;
|
|
31
|
+
constructor(request_id: number, service_id: number | null, sub_service_id: number | null, travel_person_name: string, user_id: number | null, country_id: number | null, allowance_ratio: AllowanceRatio | null, travel_from_date: Date | null, travel_to_date: Date | null, travel_class: TravelClass | 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, position: string | null);
|
|
32
|
+
}
|
|
@@ -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/dist/models/user.d.ts
CHANGED
|
@@ -43,5 +43,6 @@ export declare class User extends BaseModel {
|
|
|
43
43
|
language_preferences?: string;
|
|
44
44
|
category: "FM" | "Embassy";
|
|
45
45
|
mandc_number: number;
|
|
46
|
-
|
|
46
|
+
is_services_blocked?: boolean;
|
|
47
|
+
constructor(employee_id?: number, employee_name?: string, employee_arabic_name?: string, date_of_birth?: string, region_of_birth?: string, country_of_birth?: string, date_of_joining?: string, last_promotion_date?: string, gender?: string, marital_status?: string, nationality?: string, email?: string, blood_group?: string, national_id?: number, mobile?: string, office_number?: string, department?: number, section?: number, grade?: number, location?: string, country?: string, is_admin?: boolean, division?: number, reporting_to?: number, address?: string, residential_status?: string, religion?: string, designation?: number, avatar?: string, passport_number?: string, personal_email?: string, extension_number?: number, fax_number?: string, diplomatic_name?: string, civil_employee_id?: number, qualification?: string, father_name?: string, spouse_name?: string, children1_name?: string, children2_name?: string, language_preferences?: string, category?: "FM" | "Embassy", mandc_number?: number, is_services_blocked?: boolean);
|
|
47
48
|
}
|
package/dist/models/user.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.User = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let User = class User extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, office_number, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences, category, mandc_number) {
|
|
16
|
+
constructor(employee_id, employee_name, employee_arabic_name, date_of_birth, region_of_birth, country_of_birth, date_of_joining, last_promotion_date, gender, marital_status, nationality, email, blood_group, national_id, mobile, office_number, department, section, grade, location, country, is_admin, division, reporting_to, address, residential_status, religion, designation, avatar, passport_number, personal_email, extension_number, fax_number, diplomatic_name, civil_employee_id, qualification, father_name, spouse_name, children1_name, children2_name, language_preferences, category, mandc_number, is_services_blocked) {
|
|
17
17
|
super();
|
|
18
18
|
this.employee_id = employee_id;
|
|
19
19
|
this.employee_name = employee_name;
|
|
@@ -58,6 +58,7 @@ let User = class User extends BaseModel_1.BaseModel {
|
|
|
58
58
|
this.language_preferences = language_preferences;
|
|
59
59
|
this.category = category || "FM";
|
|
60
60
|
this.mandc_number = mandc_number || 0;
|
|
61
|
+
this.is_services_blocked = is_services_blocked;
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
exports.User = User;
|
|
@@ -233,7 +234,11 @@ __decorate([
|
|
|
233
234
|
(0, typeorm_1.Column)({ type: "int", nullable: true, default: 0 }),
|
|
234
235
|
__metadata("design:type", Number)
|
|
235
236
|
], User.prototype, "mandc_number", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
239
|
+
__metadata("design:type", Boolean)
|
|
240
|
+
], User.prototype, "is_services_blocked", void 0);
|
|
236
241
|
exports.User = User = __decorate([
|
|
237
242
|
(0, typeorm_1.Entity)({ name: 'users' }),
|
|
238
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, String, String, String, String, String, Number])
|
|
243
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String, String, String, String, String, String, String, String, Number, String, String, Number, Number, Number, String, String, Boolean, Number, Number, String, String, String, Number, String, String, String, Number, String, String, Number, String, String, String, String, String, String, String, Number, Boolean])
|
|
239
244
|
], User);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -130,11 +130,6 @@ import { TelephoneDirectory } from './models/TelephoneDirectoryModel'
|
|
|
130
130
|
import { RoutingGroups } from './models/RoutingGroupsModel';
|
|
131
131
|
import { RoutingGroupUsers } from './models/RoutingGroupUsersModel';
|
|
132
132
|
import { IssueTypes } from './models/IssueTypesModel';
|
|
133
|
-
import { EmployeeCardRequests } from './models/EmployeeCardRequestsModel';
|
|
134
|
-
import { EmployeeCardApprovalDetails } from './models/EmployeeCardApprovalsModel';
|
|
135
|
-
import { EmployeeCardAttachments } from './models/EmployeeCardAttachmentsModel';
|
|
136
|
-
import { EmployeeCardChat } from './models/EmployeeCardChatsModel';
|
|
137
|
-
import { EmployeeCardWorkFlow } from './models/EmployeeCardWorkFlowModel';
|
|
138
133
|
|
|
139
134
|
export const AppDataSource = new DataSource({
|
|
140
135
|
type: 'postgres',
|
|
@@ -265,11 +260,6 @@ export const AppDataSource = new DataSource({
|
|
|
265
260
|
TelephoneDirectory,
|
|
266
261
|
RoutingGroups,
|
|
267
262
|
IssueTypes,
|
|
268
|
-
RoutingGroupUsers
|
|
269
|
-
EmployeeCardRequests,
|
|
270
|
-
EmployeeCardApprovalDetails,
|
|
271
|
-
EmployeeCardAttachments,
|
|
272
|
-
EmployeeCardChat,
|
|
273
|
-
EmployeeCardWorkFlow
|
|
263
|
+
RoutingGroupUsers
|
|
274
264
|
],
|
|
275
265
|
});
|
package/src/index.ts
CHANGED
|
@@ -161,10 +161,4 @@ export * from './models/DiplomaticTitlesMasterModel';
|
|
|
161
161
|
export { TitleCategory } from './models/DiplomaticTitlesMasterModel';
|
|
162
162
|
export * from './models/CountryMasterModel';
|
|
163
163
|
export * from './models/NationalityMasterModel';
|
|
164
|
-
export * from './models/OfficeMasterModel';
|
|
165
|
-
export * from './models/RoutingGroupUsersModel';
|
|
166
|
-
export * from './models/EmployeeCardRequestsModel';
|
|
167
|
-
export * from './models/EmployeeCardApprovalsModel';
|
|
168
|
-
export * from './models/EmployeeCardWorkFlowModel';
|
|
169
|
-
export * from './models/EmployeeCardChatsModel';
|
|
170
|
-
export * from './models/EmployeeCardAttachmentsModel';
|
|
164
|
+
export * from './models/OfficeMasterModel';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
|
-
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
7
|
-
subscription_type: string | null; // Type: Single or Family
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
|
-
subscription_amount: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
-
currency: string | null;
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
subscription_type: string,
|
|
17
|
-
subscription_amount: number,
|
|
18
|
-
currency?: string | null,
|
|
19
|
-
) {
|
|
20
|
-
super();
|
|
21
|
-
this.subscription_type = subscription_type;
|
|
22
|
-
this.subscription_amount = subscription_amount;
|
|
23
|
-
this.currency = currency || null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'diplomatic_club_subscription_master' })
|
|
5
|
+
export class DiplomaticClubSubscriptionMaster extends BaseModel {
|
|
6
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
7
|
+
subscription_type: string | null; // Type: Single or Family
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
10
|
+
subscription_amount: number;
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 10, nullable: true })
|
|
13
|
+
currency: string | null;
|
|
14
|
+
|
|
15
|
+
constructor(
|
|
16
|
+
subscription_type: string,
|
|
17
|
+
subscription_amount: number,
|
|
18
|
+
currency?: string | null,
|
|
19
|
+
) {
|
|
20
|
+
super();
|
|
21
|
+
this.subscription_type = subscription_type;
|
|
22
|
+
this.subscription_amount = subscription_amount;
|
|
23
|
+
this.currency = currency || null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|