@platform-modules/foreign-ministry 1.3.265 → 1.3.270
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 +10 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -3
- package/dist/models/AnnualTravelTicketPriceConfigurationItemModel.d.ts +16 -0
- package/dist/models/AnnualTravelTicketPriceConfigurationItemModel.js +59 -0
- package/dist/models/AnnualTravelTicketPriceConfigurationModel.d.ts +16 -0
- package/dist/models/AnnualTravelTicketPriceConfigurationModel.js +58 -0
- package/dist/models/AnnualTravelTicketRequestModel.d.ts +12 -13
- package/dist/models/AnnualTravelTicketRequestModel.js +9 -25
- package/dist/models/EvaluationEligibilitySettingModel.d.ts +21 -0
- package/dist/models/EvaluationEligibilitySettingModel.js +71 -0
- package/package.json +1 -1
- package/src/data-source.ts +14 -2
- package/src/index.ts +432 -427
- package/src/models/AnnualTravelTicketPriceConfigurationItemModel.ts +36 -0
- package/src/models/AnnualTravelTicketPriceConfigurationModel.ts +35 -0
- package/src/models/AnnualTravelTicketRequestModel.ts +17 -25
- package/src/models/EvaluationEligibilitySettingModel.ts +45 -0
- package/src/models/IneligibleForEvaluationModel.ts +0 -25
package/dist/data-source.js
CHANGED
|
@@ -65,6 +65,9 @@ const SalaryCertificateRequestsModel_1 = require("./models/SalaryCertificateRequ
|
|
|
65
65
|
const AllowanceRequestsModel_1 = require("./models/AllowanceRequestsModel");
|
|
66
66
|
const ReimbursementRequestsModel_1 = require("./models/ReimbursementRequestsModel");
|
|
67
67
|
const BankAccountChangeRequestsModel_1 = require("./models/BankAccountChangeRequestsModel");
|
|
68
|
+
const AnnualTravelTicketRequestModel_1 = require("./models/AnnualTravelTicketRequestModel");
|
|
69
|
+
const AnnualTravelTicketPriceConfigurationModel_1 = require("./models/AnnualTravelTicketPriceConfigurationModel");
|
|
70
|
+
const AnnualTravelTicketPriceConfigurationItemModel_1 = require("./models/AnnualTravelTicketPriceConfigurationItemModel");
|
|
68
71
|
const FinancialChatsModel_1 = require("./models/FinancialChatsModel");
|
|
69
72
|
const FinancialWorkFlowModel_1 = require("./models/FinancialWorkFlowModel");
|
|
70
73
|
const FinancialAttachmentsModel_1 = require("./models/FinancialAttachmentsModel");
|
|
@@ -279,6 +282,7 @@ const DocumentationFolderModel_1 = require("./models/DocumentationFolderModel");
|
|
|
279
282
|
const DocumentationFileModel_1 = require("./models/DocumentationFileModel");
|
|
280
283
|
const UniversalLanguageMasterModel_1 = require("./models/UniversalLanguageMasterModel");
|
|
281
284
|
const MeetingAppointmentReminderLogModel_1 = require("./models/MeetingAppointmentReminderLogModel");
|
|
285
|
+
const EvaluationEligibilitySettingModel_1 = require("./models/EvaluationEligibilitySettingModel");
|
|
282
286
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
283
287
|
type: 'postgres',
|
|
284
288
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -349,6 +353,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
349
353
|
AllowanceRequestsModel_1.AllowanceRequests,
|
|
350
354
|
ReimbursementRequestsModel_1.ReimbursementRequests,
|
|
351
355
|
BankAccountChangeRequestsModel_1.BankAccountChangeRequests,
|
|
356
|
+
AnnualTravelTicketRequestModel_1.AnnualTravelTicketRequests,
|
|
357
|
+
AnnualTravelTicketPriceConfigurationModel_1.AnnualTravelTicketPriceConfiguration,
|
|
358
|
+
AnnualTravelTicketPriceConfigurationItemModel_1.AnnualTravelTicketPriceConfigurationItem,
|
|
352
359
|
FinancialChatsModel_1.FinancialChats,
|
|
353
360
|
FinancialWorkFlowModel_1.FinancialWorkFlow,
|
|
354
361
|
FinancialAttachmentsModel_1.FinancialAttachments,
|
|
@@ -562,6 +569,8 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
562
569
|
DocumentationFolderModel_1.DocumentationFolder,
|
|
563
570
|
DocumentationFileModel_1.DocumentationFile,
|
|
564
571
|
UniversalLanguageMasterModel_1.UniversalLanguageMaster,
|
|
565
|
-
MeetingAppointmentReminderLogModel_1.MeetingAppointmentReminderLog
|
|
572
|
+
MeetingAppointmentReminderLogModel_1.MeetingAppointmentReminderLog,
|
|
573
|
+
EvaluationEligibilitySettingModel_1.EvaluationEligibilitySetting,
|
|
574
|
+
EvaluationEligibilitySettingModel_1.EvaluationEligibilitySettingEmployee,
|
|
566
575
|
],
|
|
567
576
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export * from './models/MissionBankAccountAttachmentModel';
|
|
|
81
81
|
export * from './models/MissionBankAccountChatModel';
|
|
82
82
|
export * from './models/MissionBankAccountWorkflowModel';
|
|
83
83
|
export * from './models/AnnualTravelTicketRequestModel';
|
|
84
|
+
export * from './models/AnnualTravelTicketPriceConfigurationModel';
|
|
85
|
+
export * from './models/AnnualTravelTicketPriceConfigurationItemModel';
|
|
84
86
|
export * from './models/AmbassadorSpecialAccountAmountRequestModel';
|
|
85
87
|
export * from './models/StayAfterHoursRequestModel';
|
|
86
88
|
export * from './models/StayAfterHoursApprovalModel';
|
|
@@ -401,4 +403,4 @@ export * from './models/MissionTravelPassportExpiryNotificationConfigModel';
|
|
|
401
403
|
export * from './models/ServicesNotificationConfigsModel';
|
|
402
404
|
export { ServicesNotificationTriggerType } from './models/ServicesNotificationConfigsModel';
|
|
403
405
|
export * from './models/MoodleUsersModel';
|
|
404
|
-
export
|
|
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);
|
|
@@ -98,6 +99,8 @@ __exportStar(require("./models/MissionBankAccountAttachmentModel"), exports);
|
|
|
98
99
|
__exportStar(require("./models/MissionBankAccountChatModel"), exports);
|
|
99
100
|
__exportStar(require("./models/MissionBankAccountWorkflowModel"), exports);
|
|
100
101
|
__exportStar(require("./models/AnnualTravelTicketRequestModel"), exports);
|
|
102
|
+
__exportStar(require("./models/AnnualTravelTicketPriceConfigurationModel"), exports);
|
|
103
|
+
__exportStar(require("./models/AnnualTravelTicketPriceConfigurationItemModel"), exports);
|
|
101
104
|
__exportStar(require("./models/AmbassadorSpecialAccountAmountRequestModel"), exports);
|
|
102
105
|
__exportStar(require("./models/StayAfterHoursRequestModel"), exports);
|
|
103
106
|
__exportStar(require("./models/StayAfterHoursApprovalModel"), exports);
|
|
@@ -486,5 +489,7 @@ var ServicesNotificationConfigsModel_1 = require("./models/ServicesNotificationC
|
|
|
486
489
|
Object.defineProperty(exports, "ServicesNotificationTriggerType", { enumerable: true, get: function () { return ServicesNotificationConfigsModel_1.ServicesNotificationTriggerType; } });
|
|
487
490
|
// Moodle Users Model
|
|
488
491
|
__exportStar(require("./models/MoodleUsersModel"), exports);
|
|
489
|
-
// Evaluation
|
|
490
|
-
|
|
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,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { AnnualTravelTicketPriceConfiguration } from './AnnualTravelTicketPriceConfigurationModel';
|
|
3
|
+
/**
|
|
4
|
+
* Individual price slab within an annual travel ticket pricing configuration.
|
|
5
|
+
* age_from is inclusive and age_to is exclusive to allow adjacent ranges.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AnnualTravelTicketPriceConfigurationItem extends BaseModel {
|
|
8
|
+
configuration_id: number;
|
|
9
|
+
configuration: AnnualTravelTicketPriceConfiguration;
|
|
10
|
+
ticket_class: string | null;
|
|
11
|
+
age_from: number;
|
|
12
|
+
age_to: number;
|
|
13
|
+
price: number | string;
|
|
14
|
+
currency_code: string | null;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.AnnualTravelTicketPriceConfigurationItem = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const AnnualTravelTicketPriceConfigurationModel_1 = require("./AnnualTravelTicketPriceConfigurationModel");
|
|
16
|
+
/**
|
|
17
|
+
* Individual price slab within an annual travel ticket pricing configuration.
|
|
18
|
+
* age_from is inclusive and age_to is exclusive to allow adjacent ranges.
|
|
19
|
+
*/
|
|
20
|
+
let AnnualTravelTicketPriceConfigurationItem = class AnnualTravelTicketPriceConfigurationItem extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.AnnualTravelTicketPriceConfigurationItem = AnnualTravelTicketPriceConfigurationItem;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "configuration_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => AnnualTravelTicketPriceConfigurationModel_1.AnnualTravelTicketPriceConfiguration, (configuration) => configuration.price_slabs, { onDelete: 'CASCADE' }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)({ name: 'configuration_id' }),
|
|
30
|
+
__metadata("design:type", AnnualTravelTicketPriceConfigurationModel_1.AnnualTravelTicketPriceConfiguration)
|
|
31
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "configuration", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "ticket_class", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "age_from", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "age_to", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 12, scale: 2, nullable: false }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "price", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true, default: 'OMR' }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "currency_code", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], AnnualTravelTicketPriceConfigurationItem.prototype, "notes", void 0);
|
|
56
|
+
exports.AnnualTravelTicketPriceConfigurationItem = AnnualTravelTicketPriceConfigurationItem = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'annual_travel_ticket_price_configuration_items' }),
|
|
58
|
+
(0, typeorm_1.Unique)(['configuration_id', 'ticket_class', 'age_from', 'age_to'])
|
|
59
|
+
], AnnualTravelTicketPriceConfigurationItem);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { AnnualTravelTicketPriceConfigurationItem } from './AnnualTravelTicketPriceConfigurationItemModel';
|
|
3
|
+
/**
|
|
4
|
+
* Admin configuration for annual travel ticket pricing.
|
|
5
|
+
* One record per year (and optional service/sub-service pair), with multiple age slabs.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AnnualTravelTicketPriceConfiguration extends BaseModel {
|
|
8
|
+
service_id: number | null;
|
|
9
|
+
sub_service_id: number | null;
|
|
10
|
+
ticket_year: number;
|
|
11
|
+
configuration_name: string | null;
|
|
12
|
+
currency_code: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
is_active: boolean;
|
|
15
|
+
price_slabs?: AnnualTravelTicketPriceConfigurationItem[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.AnnualTravelTicketPriceConfiguration = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const AnnualTravelTicketPriceConfigurationItemModel_1 = require("./AnnualTravelTicketPriceConfigurationItemModel");
|
|
16
|
+
/**
|
|
17
|
+
* Admin configuration for annual travel ticket pricing.
|
|
18
|
+
* One record per year (and optional service/sub-service pair), with multiple age slabs.
|
|
19
|
+
*/
|
|
20
|
+
let AnnualTravelTicketPriceConfiguration = class AnnualTravelTicketPriceConfiguration extends BaseModel_1.BaseModel {
|
|
21
|
+
};
|
|
22
|
+
exports.AnnualTravelTicketPriceConfiguration = AnnualTravelTicketPriceConfiguration;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "service_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "sub_service_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "ticket_year", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "configuration_name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true, default: 'OMR' }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "currency_code", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "is_active", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.OneToMany)(() => AnnualTravelTicketPriceConfigurationItemModel_1.AnnualTravelTicketPriceConfigurationItem, (item) => item.configuration),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], AnnualTravelTicketPriceConfiguration.prototype, "price_slabs", void 0);
|
|
55
|
+
exports.AnnualTravelTicketPriceConfiguration = AnnualTravelTicketPriceConfiguration = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)({ name: 'annual_travel_ticket_price_configurations' }),
|
|
57
|
+
(0, typeorm_1.Unique)(['service_id', 'sub_service_id', 'ticket_year'])
|
|
58
|
+
], AnnualTravelTicketPriceConfiguration);
|
|
@@ -3,6 +3,13 @@ export declare enum AnnualTravelTicketPermanentResidence {
|
|
|
3
3
|
SALALAH = "Salalah",
|
|
4
4
|
MUSANDAM = "Musandam"
|
|
5
5
|
}
|
|
6
|
+
export interface AnnualTravelTicketFamilyDetail {
|
|
7
|
+
person_name: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
age: number;
|
|
10
|
+
age_category: string;
|
|
11
|
+
price: number | string;
|
|
12
|
+
}
|
|
6
13
|
/** Aligns with mission bank account request lifecycle for shared workflow UI. */
|
|
7
14
|
export declare enum AnnualTravelTicketRequestStatus {
|
|
8
15
|
PENDING = "Pending",
|
|
@@ -21,20 +28,12 @@ export declare class AnnualTravelTicketRequests extends BaseModel {
|
|
|
21
28
|
applicant_name: string;
|
|
22
29
|
civil_id_or_passport_number: string;
|
|
23
30
|
permanent_residence: AnnualTravelTicketPermanentResidence;
|
|
24
|
-
/**
|
|
25
|
-
family_details:
|
|
26
|
-
children_ticket_price: string | number | null;
|
|
27
|
-
employee_spouse_ticket_price: string | number | null;
|
|
31
|
+
/** Traveler list with person name, relation, age, age category, and price. */
|
|
32
|
+
family_details: AnnualTravelTicketFamilyDetail[] | null;
|
|
28
33
|
bank_account_number: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/** Optional structured travelers (e.g. children) for age rules; JSON array. */
|
|
33
|
-
children_travelers_json: Record<string, unknown>[] | null;
|
|
34
|
-
/** Client confirms dependents match HR/profile before submit. */
|
|
35
|
-
profile_children_synced_with_profile: boolean;
|
|
36
|
-
/** Notes on unused ticket carry-forward (max 7 years; children until age 21). */
|
|
37
|
-
carry_forward_notes: string | null;
|
|
34
|
+
travel_from: string;
|
|
35
|
+
travel_to: string;
|
|
36
|
+
date_of_travel: string;
|
|
38
37
|
status: AnnualTravelTicketRequestStatus;
|
|
39
38
|
workflow_execution_id: string | null;
|
|
40
39
|
}
|
|
@@ -62,41 +62,25 @@ __decorate([
|
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], AnnualTravelTicketRequests.prototype, "permanent_residence", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: '
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
66
66
|
__metadata("design:type", Object)
|
|
67
67
|
], AnnualTravelTicketRequests.prototype, "family_details", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 12, scale: 2, nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], AnnualTravelTicketRequests.prototype, "children_ticket_price", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 12, scale: 2, nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], AnnualTravelTicketRequests.prototype, "employee_spouse_ticket_price", void 0);
|
|
76
68
|
__decorate([
|
|
77
69
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
78
70
|
__metadata("design:type", String)
|
|
79
71
|
], AnnualTravelTicketRequests.prototype, "bank_account_number", void 0);
|
|
80
72
|
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: '
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
82
74
|
__metadata("design:type", String)
|
|
83
|
-
], AnnualTravelTicketRequests.prototype, "
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
86
|
-
__metadata("design:type", Number)
|
|
87
|
-
], AnnualTravelTicketRequests.prototype, "ticket_entitlement_year", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
90
|
-
__metadata("design:type", Object)
|
|
91
|
-
], AnnualTravelTicketRequests.prototype, "children_travelers_json", void 0);
|
|
75
|
+
], AnnualTravelTicketRequests.prototype, "travel_from", void 0);
|
|
92
76
|
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: '
|
|
94
|
-
__metadata("design:type",
|
|
95
|
-
], AnnualTravelTicketRequests.prototype, "
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AnnualTravelTicketRequests.prototype, "travel_to", void 0);
|
|
96
80
|
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: '
|
|
98
|
-
__metadata("design:type",
|
|
99
|
-
], AnnualTravelTicketRequests.prototype, "
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], AnnualTravelTicketRequests.prototype, "date_of_travel", void 0);
|
|
100
84
|
__decorate([
|
|
101
85
|
(0, typeorm_1.Column)({
|
|
102
86
|
type: 'enum',
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
departmentId: number;
|
|
8
|
+
sectionId: number;
|
|
9
|
+
/** Calendar month 1–12 */
|
|
10
|
+
month: number;
|
|
11
|
+
evaluationEndDate: Date;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
employees?: EvaluationEligibilitySettingEmployee[];
|
|
14
|
+
}
|
|
15
|
+
export declare class EvaluationEligibilitySettingEmployee extends BaseModel {
|
|
16
|
+
settingId: number;
|
|
17
|
+
setting: EvaluationEligibilitySetting;
|
|
18
|
+
employeeId: number;
|
|
19
|
+
/** When true, employee is excluded from evaluation for this setting’s month/department/section. */
|
|
20
|
+
isExcludedFromEvaluation: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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)({ name: 'department_id', type: 'int' }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], EvaluationEligibilitySetting.prototype, "departmentId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'section_id', type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], EvaluationEligibilitySetting.prototype, "sectionId", 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)({ name: 'evaluation_end_date', type: 'date' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], EvaluationEligibilitySetting.prototype, "evaluationEndDate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'is_active', type: 'boolean', default: true }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], EvaluationEligibilitySetting.prototype, "isActive", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.OneToMany)(() => EvaluationEligibilitySettingEmployee, (e) => e.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.Column)({ name: 'setting_id', type: 'int' }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], EvaluationEligibilitySettingEmployee.prototype, "settingId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToOne)(() => EvaluationEligibilitySetting, (s) => s.employees, { onDelete: 'CASCADE' }),
|
|
58
|
+
(0, typeorm_1.JoinColumn)({ name: 'setting_id' }),
|
|
59
|
+
__metadata("design:type", EvaluationEligibilitySetting)
|
|
60
|
+
], EvaluationEligibilitySettingEmployee.prototype, "setting", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: 'employee_id', type: 'int' }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], EvaluationEligibilitySettingEmployee.prototype, "employeeId", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ name: 'is_excluded_from_evaluation', type: 'boolean', default: true }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], EvaluationEligibilitySettingEmployee.prototype, "isExcludedFromEvaluation", void 0);
|
|
69
|
+
exports.EvaluationEligibilitySettingEmployee = EvaluationEligibilitySettingEmployee = __decorate([
|
|
70
|
+
(0, typeorm_1.Entity)({ name: 'evaluation_eligibility_setting_employees' })
|
|
71
|
+
], EvaluationEligibilitySettingEmployee);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -67,6 +67,9 @@ import { SalaryCertificateRequests } from './models/SalaryCertificateRequestsMod
|
|
|
67
67
|
import { AllowanceRequests } from './models/AllowanceRequestsModel';
|
|
68
68
|
import { ReimbursementRequests } from './models/ReimbursementRequestsModel';
|
|
69
69
|
import { BankAccountChangeRequests } from './models/BankAccountChangeRequestsModel';
|
|
70
|
+
import { AnnualTravelTicketRequests } from './models/AnnualTravelTicketRequestModel';
|
|
71
|
+
import { AnnualTravelTicketPriceConfiguration } from './models/AnnualTravelTicketPriceConfigurationModel';
|
|
72
|
+
import { AnnualTravelTicketPriceConfigurationItem } from './models/AnnualTravelTicketPriceConfigurationItemModel';
|
|
70
73
|
import { FinancialChats } from './models/FinancialChatsModel';
|
|
71
74
|
import { FinancialWorkFlow } from './models/FinancialWorkFlowModel';
|
|
72
75
|
import { FinancialAttachments } from './models/FinancialAttachmentsModel';
|
|
@@ -284,7 +287,11 @@ import { ProjectTaskComments } from './models/ProjectTaskCommentsModel';
|
|
|
284
287
|
import { DocumentationFolder } from './models/DocumentationFolderModel';
|
|
285
288
|
import { DocumentationFile } from './models/DocumentationFileModel';
|
|
286
289
|
import { UniversalLanguageMaster } from './models/UniversalLanguageMasterModel';
|
|
287
|
-
import { MeetingAppointmentReminderLog } from './models/MeetingAppointmentReminderLogModel';
|
|
290
|
+
import { MeetingAppointmentReminderLog } from './models/MeetingAppointmentReminderLogModel';
|
|
291
|
+
import {
|
|
292
|
+
EvaluationEligibilitySetting,
|
|
293
|
+
EvaluationEligibilitySettingEmployee,
|
|
294
|
+
} from './models/EvaluationEligibilitySettingModel';
|
|
288
295
|
|
|
289
296
|
export const AppDataSource = new DataSource({
|
|
290
297
|
type: 'postgres',
|
|
@@ -356,6 +363,9 @@ export const AppDataSource = new DataSource({
|
|
|
356
363
|
AllowanceRequests,
|
|
357
364
|
ReimbursementRequests,
|
|
358
365
|
BankAccountChangeRequests,
|
|
366
|
+
AnnualTravelTicketRequests,
|
|
367
|
+
AnnualTravelTicketPriceConfiguration,
|
|
368
|
+
AnnualTravelTicketPriceConfigurationItem,
|
|
359
369
|
FinancialChats,
|
|
360
370
|
FinancialWorkFlow,
|
|
361
371
|
FinancialAttachments,
|
|
@@ -569,6 +579,8 @@ export const AppDataSource = new DataSource({
|
|
|
569
579
|
DocumentationFolder,
|
|
570
580
|
DocumentationFile,
|
|
571
581
|
UniversalLanguageMaster,
|
|
572
|
-
MeetingAppointmentReminderLog
|
|
582
|
+
MeetingAppointmentReminderLog,
|
|
583
|
+
EvaluationEligibilitySetting,
|
|
584
|
+
EvaluationEligibilitySettingEmployee,
|
|
573
585
|
],
|
|
574
586
|
});
|