@platform-modules/foreign-ministry 1.3.266 → 1.3.271
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 +10 -5
- package/dist/data-source.js +4 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/models/EvaluationEligibilitySettingModel.d.ts +20 -0
- package/dist/models/EvaluationEligibilitySettingModel.js +67 -0
- package/dist/models/IneligibleForEvaluationModel.d.ts +8 -0
- package/dist/models/IneligibleForEvaluationModel.js +44 -0
- package/dist/models/MissionTravelClassConfigModel.d.ts +10 -0
- package/dist/models/MissionTravelClassConfigModel.js +50 -0
- package/dist/models/MissionTravelPerdiemModel.d.ts +10 -0
- package/dist/models/MissionTravelPerdiemModel.js +54 -0
- package/package.json +1 -1
- package/src/data-source.ts +566 -560
- package/src/index.ts +5 -0
- package/src/models/AnnualTravelTicketPriceConfigurationItemModel.ts +36 -36
- package/src/models/AnnualTravelTicketPriceConfigurationModel.ts +35 -35
- package/src/models/AnnualTravelTicketRequestModel.ts +42 -42
- package/src/models/DiplomaticAcademyRequestModel.ts +80 -80
- package/src/models/DocumentationFileModel.ts +40 -40
- package/src/models/EvaluationEligibilitySettingModel.ts +42 -0
- package/src/models/FinancialWorkFlowModel.ts +15 -15
- package/src/models/GatePassVisitorsModel.ts +7 -7
- package/src/models/LMSExternalEntityTrainedPersonModel.ts +45 -45
- package/src/models/LanguageCourseRequestModel.ts +67 -67
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/MissionTravelApprovalModel.ts +101 -101
- package/src/models/MissionTravelAttachmentModel.ts +56 -56
- package/src/models/MissionTravelChatModel.ts +52 -52
- package/src/models/MissionTravelPersonModel.ts +105 -105
- package/src/models/MissionTravelWorkflowModel.ts +54 -54
- package/src/models/PollOptionsModel.ts +26 -26
- package/src/models/PollVotesModel.ts +37 -37
- package/src/models/PollsModel.ts +49 -49
- package/src/models/ProjectContactsModel.ts +51 -51
- package/src/models/ProjectFaqModel.ts +36 -36
- package/src/models/ProjectInvoicesModel.ts +41 -41
- package/src/models/ProjectModel.ts +75 -75
- package/src/models/ProjectTasksModel.ts +75 -75
- package/src/models/ResignationTerminationApprovalModel.ts +9 -9
- package/src/models/ResignationTerminationRequestModel.ts +17 -17
- package/src/models/SectionModel.ts +35 -35
- package/src/models/ServicesNotificationConfigsModel.ts +55 -55
- package/src/models/TelephoneDirectoryModel.ts +20 -20
- package/dist/models/EmbassyMasterModel.d.ts +0 -16
- package/dist/models/EmbassyMasterModel.js +0 -75
- package/dist/models/UserDependentsModel.d.ts +0 -18
- package/dist/models/UserDependentsModel.js +0 -94
package/.env
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
DB_HOST=localhost
|
|
2
|
-
DB_PORT=5432
|
|
3
|
-
DB_USER=postgres
|
|
4
|
-
DB_PASS=
|
|
5
|
-
DB_NAME=FM
|
|
1
|
+
# DB_HOST=localhost
|
|
2
|
+
# DB_PORT=5432
|
|
3
|
+
# DB_USER=postgres
|
|
4
|
+
# DB_PASS=stevejobs
|
|
5
|
+
# DB_NAME=FM
|
|
6
|
+
|
|
7
|
+
DB_HOST = 164.52.222.169
|
|
8
|
+
DB_USER = postgres_admin_user
|
|
9
|
+
DB_PASS = pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
10
|
+
DB_NAME= FM
|
package/dist/data-source.js
CHANGED
|
@@ -282,6 +282,7 @@ const DocumentationFolderModel_1 = require("./models/DocumentationFolderModel");
|
|
|
282
282
|
const DocumentationFileModel_1 = require("./models/DocumentationFileModel");
|
|
283
283
|
const UniversalLanguageMasterModel_1 = require("./models/UniversalLanguageMasterModel");
|
|
284
284
|
const MeetingAppointmentReminderLogModel_1 = require("./models/MeetingAppointmentReminderLogModel");
|
|
285
|
+
const EvaluationEligibilitySettingModel_1 = require("./models/EvaluationEligibilitySettingModel");
|
|
285
286
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
286
287
|
type: 'postgres',
|
|
287
288
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -568,6 +569,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
568
569
|
DocumentationFolderModel_1.DocumentationFolder,
|
|
569
570
|
DocumentationFileModel_1.DocumentationFile,
|
|
570
571
|
UniversalLanguageMasterModel_1.UniversalLanguageMaster,
|
|
571
|
-
MeetingAppointmentReminderLogModel_1.MeetingAppointmentReminderLog
|
|
572
|
+
MeetingAppointmentReminderLogModel_1.MeetingAppointmentReminderLog,
|
|
573
|
+
EvaluationEligibilitySettingModel_1.EvaluationEligibilitySetting,
|
|
574
|
+
EvaluationEligibilitySettingModel_1.EvaluationEligibilitySettingEmployee,
|
|
572
575
|
],
|
|
573
576
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -403,3 +403,4 @@ export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
|
403
403
|
export * from './models/ServicesNotificationConfigsModel';
|
|
404
404
|
export { ServicesNotificationTriggerType } from './models/ServicesNotificationConfigsModel';
|
|
405
405
|
export * from './models/MoodleUsersModel';
|
|
406
|
+
export { EvaluationEligibilitySetting, EvaluationEligibilitySettingEmployee, } from './models/EvaluationEligibilitySettingModel';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ServicesNotificationTriggerType = exports.AppointmentWorkFlowStatus = exports.AppointmentMessageType = exports.AppointmentAttendeeStatus = exports.AppointmentApprovalStatus = exports.AppointmentAttendees = exports.AppointmentWorkFlow = exports.AppointmentRequestChat = exports.AppointmentRequestAttachment = exports.AppointmentApprovalDetails = exports.AppointmentRequestStatus = exports.AppointmentRequests = exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.SecurityDeptMessageType = exports.SecurityDeptAccessType = exports.SecurityDeptRequestStatus = exports.RetiredCardMessageType = exports.RetiredCardWorkFlowStatus = exports.RetiredCardApprovalStatus = exports.RetiredCardAccessType = exports.RetiredCardRequestStatus = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = exports.ParcelDepartmentCategory = exports.RegisterCandidateExperienceActivity = void 0;
|
|
17
|
+
exports.EvaluationEligibilitySetting = exports.ServicesNotificationTriggerType = exports.AppointmentWorkFlowStatus = exports.AppointmentMessageType = exports.AppointmentAttendeeStatus = exports.AppointmentApprovalStatus = exports.AppointmentAttendees = exports.AppointmentWorkFlow = exports.AppointmentRequestChat = exports.AppointmentRequestAttachment = exports.AppointmentApprovalDetails = exports.AppointmentRequestStatus = exports.AppointmentRequests = exports.TravelClass = exports.MissionTravelWorkFlowStatus = exports.MissionTravelApprovalStatus = exports.AllowanceRatio = exports.DecisionType = exports.MissionType = exports.MissionTravelStatus = exports.GatePassMessageType = exports.GatePassWorkFlowStatus = exports.GatePassApprovalStatus = exports.GatePassType = exports.GatePassRequestStatus = exports.SecurityDeptMessageType = exports.SecurityDeptAccessType = exports.SecurityDeptRequestStatus = exports.RetiredCardMessageType = exports.RetiredCardWorkFlowStatus = exports.RetiredCardApprovalStatus = exports.RetiredCardAccessType = exports.RetiredCardRequestStatus = exports.TitleCategory = exports.ProfileUpdateRequestStatus = exports.StayAfterHoursTransactionStatus = exports.StayAfterHoursTransaction = exports.StayAfterHoursBalance = exports.EarlyCheckoutTransactionStatus = exports.EarlyCheckoutTransaction = exports.EarlyCheckoutFrequency = exports.EarlyCheckoutConfiguration = exports.EarlyCheckoutBalance = exports.LeaveTransactionStatus = exports.LeaveTransaction = exports.LeaveConfigurationGrades = exports.enumFrequency = exports.LeaveConfiguration = exports.ParcelDepartmentCategory = exports.RegisterCandidateExperienceActivity = void 0;
|
|
18
|
+
exports.EvaluationEligibilitySettingEmployee = void 0;
|
|
18
19
|
__exportStar(require("./models/user"), exports);
|
|
19
20
|
__exportStar(require("./models/role"), exports);
|
|
20
21
|
__exportStar(require("./models/user-sessions"), exports);
|
|
@@ -488,3 +489,7 @@ var ServicesNotificationConfigsModel_1 = require("./models/ServicesNotificationC
|
|
|
488
489
|
Object.defineProperty(exports, "ServicesNotificationTriggerType", { enumerable: true, get: function () { return ServicesNotificationConfigsModel_1.ServicesNotificationTriggerType; } });
|
|
489
490
|
// Moodle Users Model
|
|
490
491
|
__exportStar(require("./models/MoodleUsersModel"), exports);
|
|
492
|
+
// Evaluation eligibility (department/section/month + employees)
|
|
493
|
+
var EvaluationEligibilitySettingModel_1 = require("./models/EvaluationEligibilitySettingModel");
|
|
494
|
+
Object.defineProperty(exports, "EvaluationEligibilitySetting", { enumerable: true, get: function () { return EvaluationEligibilitySettingModel_1.EvaluationEligibilitySetting; } });
|
|
495
|
+
Object.defineProperty(exports, "EvaluationEligibilitySettingEmployee", { enumerable: true, get: function () { return EvaluationEligibilitySettingModel_1.EvaluationEligibilitySettingEmployee; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
/**
|
|
3
|
+
* Department/section/month evaluation window: which employees are excluded or re-included
|
|
4
|
+
* for that cycle (e.g. excluded in January, eligible again in May via a different month row).
|
|
5
|
+
*/
|
|
6
|
+
export declare class EvaluationEligibilitySetting extends BaseModel {
|
|
7
|
+
department_id: number;
|
|
8
|
+
section_id: number;
|
|
9
|
+
/** Calendar month 1–12 */
|
|
10
|
+
month: number;
|
|
11
|
+
evaluation_end_date: Date;
|
|
12
|
+
is_active: boolean;
|
|
13
|
+
employees?: EvaluationEligibilitySettingEmployee[];
|
|
14
|
+
}
|
|
15
|
+
export declare class EvaluationEligibilitySettingEmployee extends BaseModel {
|
|
16
|
+
evaluation_eligibility_setting: EvaluationEligibilitySetting;
|
|
17
|
+
employee_id: number;
|
|
18
|
+
/** When true, employee is excluded from evaluation for this setting’s month/department/section. */
|
|
19
|
+
is_excluded_from_evaluation: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.EvaluationEligibilitySettingEmployee = exports.EvaluationEligibilitySetting = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
/**
|
|
16
|
+
* Department/section/month evaluation window: which employees are excluded or re-included
|
|
17
|
+
* for that cycle (e.g. excluded in January, eligible again in May via a different month row).
|
|
18
|
+
*/
|
|
19
|
+
let EvaluationEligibilitySetting = class EvaluationEligibilitySetting extends BaseModel_1.BaseModel {
|
|
20
|
+
};
|
|
21
|
+
exports.EvaluationEligibilitySetting = EvaluationEligibilitySetting;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], EvaluationEligibilitySetting.prototype, "department_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], EvaluationEligibilitySetting.prototype, "section_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], EvaluationEligibilitySetting.prototype, "month", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'date' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], EvaluationEligibilitySetting.prototype, "evaluation_end_date", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], EvaluationEligibilitySetting.prototype, "is_active", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.OneToMany)(() => EvaluationEligibilitySettingEmployee, (e) => e.evaluation_eligibility_setting),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], EvaluationEligibilitySetting.prototype, "employees", void 0);
|
|
46
|
+
exports.EvaluationEligibilitySetting = EvaluationEligibilitySetting = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'evaluation_eligibility_settings' })
|
|
48
|
+
], EvaluationEligibilitySetting);
|
|
49
|
+
let EvaluationEligibilitySettingEmployee = class EvaluationEligibilitySettingEmployee extends BaseModel_1.BaseModel {
|
|
50
|
+
};
|
|
51
|
+
exports.EvaluationEligibilitySettingEmployee = EvaluationEligibilitySettingEmployee;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => EvaluationEligibilitySetting, (s) => s.employees, { onDelete: 'CASCADE' }),
|
|
54
|
+
(0, typeorm_1.JoinColumn)({ name: 'setting_id' }),
|
|
55
|
+
__metadata("design:type", EvaluationEligibilitySetting)
|
|
56
|
+
], EvaluationEligibilitySettingEmployee.prototype, "evaluation_eligibility_setting", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], EvaluationEligibilitySettingEmployee.prototype, "employee_id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
63
|
+
__metadata("design:type", Boolean)
|
|
64
|
+
], EvaluationEligibilitySettingEmployee.prototype, "is_excluded_from_evaluation", void 0);
|
|
65
|
+
exports.EvaluationEligibilitySettingEmployee = EvaluationEligibilitySettingEmployee = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'evaluation_eligibility_setting_employees' })
|
|
67
|
+
], EvaluationEligibilitySettingEmployee);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class IneligibleForEvaluation extends BaseModel {
|
|
3
|
+
employeeId: number;
|
|
4
|
+
leave_type: string;
|
|
5
|
+
is_active: boolean;
|
|
6
|
+
year: number;
|
|
7
|
+
constructor(employeeId: number, leave_type: string, is_active: boolean, year: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.IneligibleForEvaluation = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let IneligibleForEvaluation = class IneligibleForEvaluation extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(employeeId, leave_type, is_active, year) {
|
|
17
|
+
super();
|
|
18
|
+
this.employeeId = employeeId;
|
|
19
|
+
this.leave_type = leave_type;
|
|
20
|
+
this.is_active = is_active;
|
|
21
|
+
this.year = year;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.IneligibleForEvaluation = IneligibleForEvaluation;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'employee_id', type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], IneligibleForEvaluation.prototype, "employeeId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], IneligibleForEvaluation.prototype, "leave_type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], IneligibleForEvaluation.prototype, "is_active", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], IneligibleForEvaluation.prototype, "year", void 0);
|
|
41
|
+
exports.IneligibleForEvaluation = IneligibleForEvaluation = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'ineligible_for_evaluation' }),
|
|
43
|
+
__metadata("design:paramtypes", [Number, String, Boolean, Number])
|
|
44
|
+
], IneligibleForEvaluation);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { TravelClass } from './MissionTravelPersonModel';
|
|
3
|
+
export declare class MissionTravelClassConfig extends BaseModel {
|
|
4
|
+
grade: number | null;
|
|
5
|
+
position: string | null;
|
|
6
|
+
travel_class: TravelClass;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
description: string | null;
|
|
9
|
+
constructor(grade: number | null, position: string | null, travel_class: TravelClass, description: string | null);
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.MissionTravelClassConfig = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const MissionTravelPersonModel_1 = require("./MissionTravelPersonModel");
|
|
16
|
+
let MissionTravelClassConfig = class MissionTravelClassConfig extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(grade, position, travel_class, description) {
|
|
18
|
+
super();
|
|
19
|
+
this.grade = grade;
|
|
20
|
+
this.position = position;
|
|
21
|
+
this.travel_class = travel_class;
|
|
22
|
+
this.description = description;
|
|
23
|
+
this.is_active = true;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.MissionTravelClassConfig = MissionTravelClassConfig;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], MissionTravelClassConfig.prototype, "grade", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], MissionTravelClassConfig.prototype, "position", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MissionTravelPersonModel_1.TravelClass, nullable: false }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], MissionTravelClassConfig.prototype, "travel_class", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], MissionTravelClassConfig.prototype, "is_active", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], MissionTravelClassConfig.prototype, "description", void 0);
|
|
47
|
+
exports.MissionTravelClassConfig = MissionTravelClassConfig = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'mission_travel_class_config' }),
|
|
49
|
+
__metadata("design:paramtypes", [Object, Object, String, Object])
|
|
50
|
+
], MissionTravelClassConfig);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class MissionTravelPerdiem extends BaseModel {
|
|
3
|
+
grade: number;
|
|
4
|
+
perdiem_amount: number;
|
|
5
|
+
currency: string | null;
|
|
6
|
+
effective_from: Date | null;
|
|
7
|
+
effective_to: Date | null;
|
|
8
|
+
is_active: boolean;
|
|
9
|
+
constructor(grade: number, perdiem_amount: number, currency: string | null, effective_from: Date | null, effective_to: Date | null);
|
|
10
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.MissionTravelPerdiem = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let MissionTravelPerdiem = class MissionTravelPerdiem extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(grade, perdiem_amount, currency, effective_from, effective_to) {
|
|
17
|
+
super();
|
|
18
|
+
this.grade = grade;
|
|
19
|
+
this.perdiem_amount = perdiem_amount;
|
|
20
|
+
this.currency = currency;
|
|
21
|
+
this.effective_from = effective_from;
|
|
22
|
+
this.effective_to = effective_to;
|
|
23
|
+
this.is_active = true;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.MissionTravelPerdiem = MissionTravelPerdiem;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], MissionTravelPerdiem.prototype, "grade", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: false }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], MissionTravelPerdiem.prototype, "perdiem_amount", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], MissionTravelPerdiem.prototype, "currency", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], MissionTravelPerdiem.prototype, "effective_from", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], MissionTravelPerdiem.prototype, "effective_to", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], MissionTravelPerdiem.prototype, "is_active", void 0);
|
|
51
|
+
exports.MissionTravelPerdiem = MissionTravelPerdiem = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'mission_travel_perdiem' }),
|
|
53
|
+
__metadata("design:paramtypes", [Number, Number, Object, Object, Object])
|
|
54
|
+
], MissionTravelPerdiem);
|