@platform-modules/foreign-ministry 1.1.100 → 1.1.102
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 +15 -33
- package/dist/index.d.ts +7 -25
- package/dist/index.js +7 -40
- package/dist/models/DiplomaticApprovalsModel.d.ts +24 -0
- package/dist/models/DiplomaticApprovalsModel.js +94 -0
- package/dist/models/DiplomaticAttachmentsModel.d.ts +11 -0
- package/dist/models/DiplomaticAttachmentsModel.js +53 -0
- package/dist/models/DiplomaticChatsModel.d.ts +20 -0
- package/dist/models/DiplomaticChatsModel.js +70 -0
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +16 -0
- package/dist/models/DiplomaticClubCardApprovalModel.js +58 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +9 -0
- package/dist/models/DiplomaticClubCardAttachmentModel.js +44 -0
- package/dist/models/DiplomaticClubCardChatModel.d.ts +7 -0
- package/dist/models/{EarlyCheckoutBalanceModel.js → DiplomaticClubCardChatModel.js} +18 -21
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +13 -0
- package/dist/models/DiplomaticClubCardMemberModel.js +60 -0
- package/dist/models/DiplomaticClubCardMembersModel.d.ts +26 -0
- package/dist/models/DiplomaticClubCardMembersModel.js +85 -0
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +33 -0
- package/dist/models/DiplomaticClubCardRequestModel.js +98 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +12 -0
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +42 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.d.ts +12 -0
- package/dist/models/DiplomaticClubSubscriptionMasterModel.js +64 -0
- package/dist/models/DiplomaticRequestsModel.d.ts +54 -0
- package/dist/models/DiplomaticRequestsModel.js +186 -0
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +20 -0
- package/dist/models/DiplomaticServiceDetailsModel.js +65 -0
- package/dist/models/DiplomaticSettingsModel.d.ts +11 -0
- package/dist/models/DiplomaticSettingsModel.js +59 -0
- package/dist/models/DiplomaticTitleModel.d.ts +12 -0
- package/dist/models/DiplomaticTitleModel.js +45 -0
- package/dist/models/DiplomaticTitlesMasterModel.d.ts +7 -3
- package/dist/models/DiplomaticTitlesMasterModel.js +16 -9
- package/dist/models/DiplomaticWorkFlowModel.d.ts +20 -0
- package/dist/models/DiplomaticWorkFlowModel.js +77 -0
- package/dist/models/FinancialApprovalsModel.d.ts +0 -1
- package/dist/models/FinancialApprovalsModel.js +0 -4
- package/dist/models/FinancialGradeModel.d.ts +3 -4
- package/dist/models/FinancialGradeModel.js +7 -12
- package/dist/models/GeneralServiceApprovalsModel.d.ts +1 -4
- package/dist/models/GeneralServiceApprovalsModel.js +0 -9
- package/dist/models/LeaveApprovalsModel.d.ts +2 -4
- package/dist/models/LeaveApprovalsModel.js +2 -8
- package/dist/models/LeaveTypesModel.d.ts +1 -7
- package/dist/models/LeaveTypesModel.js +5 -20
- package/dist/models/PassportRequestApprovalModel.d.ts +22 -0
- package/dist/models/PassportRequestApprovalModel.js +91 -0
- package/dist/models/PassportRequestAttachmentModel.d.ts +10 -0
- package/dist/models/PassportRequestAttachmentModel.js +54 -0
- package/dist/models/PassportRequestChatModel.d.ts +8 -0
- package/dist/models/{LeaveBalanceModel.js → PassportRequestChatModel.js} +23 -23
- package/dist/models/PassportRequestDependentModel.d.ts +20 -0
- package/dist/models/PassportRequestDependentModel.js +85 -0
- package/dist/models/PassportRequestModel.d.ts +40 -0
- package/dist/models/PassportRequestModel.js +128 -0
- package/dist/models/PassportRequestWorkFlowModel.d.ts +15 -0
- package/dist/models/PassportRequestWorkFlowModel.js +60 -0
- package/dist/models/SubscriptionAmountModel.d.ts +67 -0
- package/dist/models/SubscriptionAmountModel.js +114 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +2 -3
- package/dist/models/TelephoneDirectoryModel.js +6 -11
- package/dist/models/TransferMissionApprovalModel.d.ts +0 -2
- package/dist/models/TransferMissionApprovalModel.js +0 -8
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +0 -1
- package/dist/models/UpdateAttendanceApprovalModel.js +0 -4
- package/dist/models/user.d.ts +1 -2
- package/dist/models/user.js +2 -7
- package/package.json +1 -1
- package/src/data-source.ts +17 -37
- package/src/index.ts +7 -25
- package/src/models/DiplomaticApprovalsModel.ts +77 -0
- package/src/models/DiplomaticAttachmentsModel.ts +37 -0
- package/src/models/DiplomaticChatsModel.ts +53 -0
- package/src/models/DiplomaticClubCardMembersModel.ts +71 -0
- package/src/models/DiplomaticClubSubscriptionMasterModel.ts +50 -0
- package/src/models/DiplomaticRequestsModel.ts +154 -0
- package/src/models/DiplomaticTitlesMasterModel.ts +20 -9
- package/src/models/DiplomaticWorkFlowModel.ts +59 -0
- package/src/models/FinancialApprovalsModel.ts +0 -4
- package/src/models/FinancialGradeModel.ts +8 -13
- package/src/models/GeneralServiceApprovalsModel.ts +1 -10
- package/src/models/LeaveApprovalsModel.ts +2 -7
- package/src/models/LeaveTypesModel.ts +11 -27
- package/src/models/TelephoneDirectoryModel.ts +4 -8
- package/src/models/TransferMissionApprovalModel.ts +0 -6
- package/src/models/TransferMissionRequestModel.ts +0 -1
- package/src/models/UpdateAttendanceApprovalModel.ts +0 -3
- package/src/models/user.ts +0 -5
- package/dist/models/EarlyCheckoutBalanceModel.d.ts +0 -7
- package/dist/models/EarlyCheckoutConfigModel.d.ts +0 -18
- package/dist/models/EarlyCheckoutConfigModel.js +0 -80
- package/dist/models/EarlyCheckoutTransactionModel.d.ts +0 -19
- package/dist/models/EarlyCheckoutTransactionModel.js +0 -66
- package/dist/models/LeaveBalanceModel.d.ts +0 -8
- package/dist/models/LeaveConfigGradesModel.d.ts +0 -19
- package/dist/models/LeaveConfigGradesModel.js +0 -100
- package/dist/models/LeaveConfigModel.d.ts +0 -20
- package/dist/models/LeaveConfigModel.js +0 -90
- package/dist/models/LeaveTransactionModel.d.ts +0 -20
- package/dist/models/LeaveTransactionModel.js +0 -71
- package/dist/models/M&CMasterModel.d.ts +0 -9
- package/dist/models/M&CMasterModel.js +0 -49
- package/dist/models/ProfileUpdateRequestsModel.d.ts +0 -106
- package/dist/models/ProfileUpdateRequestsModel.js +0 -409
- package/dist/models/StationeryMaterialMasterModel.d.ts +0 -11
- package/dist/models/StationeryMaterialMasterModel.js +0 -56
- package/dist/models/StationeryRequestsModel.d.ts +0 -27
- package/dist/models/StationeryRequestsModel.js +0 -93
- package/dist/models/StayAfterHoursBalanceModel.d.ts +0 -7
- package/dist/models/StayAfterHoursBalanceModel.js +0 -39
- package/dist/models/StayAfterHoursTransactionModel.d.ts +0 -19
- package/dist/models/StayAfterHoursTransactionModel.js +0 -66
- package/dist/models/UserEducationDetailsModel.d.ts +0 -12
- package/dist/models/UserEducationDetailsModel.js +0 -44
- package/dist/models/UserEmploymentDetailsModel.d.ts +0 -50
- package/dist/models/UserEmploymentDetailsModel.js +0 -193
- package/dist/models/UserPersonalDetailsModel.d.ts +0 -48
- package/dist/models/UserPersonalDetailsModel.js +0 -185
- package/src/models/EarlyCheckoutBalanceModel.ts +0 -22
- package/src/models/EarlyCheckoutConfigModel.ts +0 -57
- package/src/models/EarlyCheckoutTransactionModel.ts +0 -53
- package/src/models/LeaveBalanceModel.ts +0 -26
- package/src/models/LeaveConfigGradesModel.Ts +0 -72
- package/src/models/LeaveConfigModel.ts +0 -64
- package/src/models/LeaveTransactionModel.ts +0 -58
- package/src/models/M&CMasterModel.ts +0 -37
- package/src/models/ProfileUpdateRequestsModel.ts +0 -317
- package/src/models/StationeryMaterialMasterModel.ts +0 -35
- package/src/models/StationeryRequestsModel.ts +0 -65
- package/src/models/StayAfterHoursBalanceModel.ts +0 -22
- package/src/models/StayAfterHoursTransactionModel.ts +0 -53
- package/src/models/UserEducationDetailsModel.ts +0 -26
- package/src/models/UserEmploymentDetailsModel.ts +0 -141
- package/src/models/UserPersonalDetailsModel.ts +0 -137
|
@@ -6,8 +6,7 @@ export enum ApprovalStatus {
|
|
|
6
6
|
PENDING = "Pending",
|
|
7
7
|
APPROVED = "Approved",
|
|
8
8
|
REJECTED = "Rejected",
|
|
9
|
-
IN_PROGRESS = "In Progress"
|
|
10
|
-
CANCELLED = "Cancelled"
|
|
9
|
+
IN_PROGRESS = "In Progress"
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
@@ -43,10 +42,7 @@ export class LeaveApprovalDetails extends BaseModel {
|
|
|
43
42
|
@Column({ type: 'enum', enum: ApprovalStatus,default: ApprovalStatus.PENDING, nullable: false })
|
|
44
43
|
approval_status: ApprovalStatus;
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
is_allowed: boolean;
|
|
48
|
-
|
|
49
|
-
constructor(leave_request_id: number, approver_user_id: number, approver_role_id: number, comment: string, approval_status: ApprovalStatus, level: number, department_id: number, section_id: number, is_allowed: boolean) {
|
|
45
|
+
constructor(leave_request_id: number, approver_user_id: number, approver_role_id: number, comment: string, approval_status: ApprovalStatus, level: number, department_id: number, section_id: number) {
|
|
50
46
|
super();
|
|
51
47
|
this.leave_request_id = leave_request_id;
|
|
52
48
|
this.approver_user_id = approver_user_id;
|
|
@@ -56,6 +52,5 @@ export class LeaveApprovalDetails extends BaseModel {
|
|
|
56
52
|
this.comment = comment;
|
|
57
53
|
this.approval_status = approval_status;
|
|
58
54
|
this.level = level;
|
|
59
|
-
this.is_allowed = is_allowed;
|
|
60
55
|
}
|
|
61
56
|
}
|
|
@@ -1,47 +1,31 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
3
|
|
|
4
|
-
export enum genderType {
|
|
5
|
-
Male = 'Male',
|
|
6
|
-
Female = 'Female',
|
|
7
|
-
All = 'All',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
4
|
@Entity({ name: 'leave_types' })
|
|
11
5
|
export class LeaveTypes extends BaseModel {
|
|
12
6
|
|
|
13
|
-
@Column({
|
|
7
|
+
@Column({ nullable: true })
|
|
14
8
|
name: string;
|
|
15
9
|
|
|
16
|
-
@Column({
|
|
10
|
+
@Column({ nullable: true })
|
|
17
11
|
name_in_arabic: string;
|
|
18
12
|
|
|
19
|
-
@Column({ nullable: true, default: false })
|
|
20
|
-
omani_only?: boolean = false;
|
|
13
|
+
@Column({ nullable: true, default: false })
|
|
14
|
+
omani_only?: boolean = false;
|
|
21
15
|
|
|
22
|
-
@Column({ nullable: true, default: false })
|
|
23
|
-
non_omani_muslim?: boolean = false;
|
|
16
|
+
@Column({ nullable: true, default: false })
|
|
17
|
+
non_omani_muslim?: boolean = false;
|
|
24
18
|
|
|
25
|
-
@Column({ nullable: true, default: false })
|
|
26
|
-
non_omani_non_muslim?: boolean = false;
|
|
19
|
+
@Column({ nullable: true, default: false })
|
|
20
|
+
non_omani_non_muslim?: boolean = false;
|
|
27
21
|
|
|
28
|
-
@Column({ nullable: true, default: genderType.All })
|
|
29
|
-
gender: genderType = genderType.All;
|
|
30
22
|
|
|
31
|
-
constructor(
|
|
23
|
+
constructor(
|
|
32
24
|
name: string,
|
|
33
25
|
name_in_arabic: string,
|
|
34
|
-
omani_only: boolean,
|
|
35
|
-
non_omani_muslim: boolean,
|
|
36
|
-
non_omani_non_muslim: boolean,
|
|
37
|
-
gender: genderType
|
|
38
26
|
) {
|
|
39
|
-
super();
|
|
27
|
+
super();
|
|
40
28
|
this.name = name
|
|
41
|
-
this.name_in_arabic = name_in_arabic
|
|
42
|
-
this.omani_only = omani_only
|
|
43
|
-
this.non_omani_muslim = non_omani_muslim
|
|
44
|
-
this.non_omani_non_muslim = non_omani_non_muslim
|
|
45
|
-
this.gender = gender
|
|
29
|
+
this.name_in_arabic = name_in_arabic
|
|
46
30
|
}
|
|
47
31
|
}
|
|
@@ -19,11 +19,8 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
19
19
|
@Column({ type: "varchar", length: 255, nullable: true })
|
|
20
20
|
diplomatic_title: string; // Diplomatic Title
|
|
21
21
|
|
|
22
|
-
@Column({ type: "
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@Column({ type: "text", nullable: true })
|
|
26
|
-
contextual_search: string | null; // Contextual search field for direct searching across multiple fields
|
|
22
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
23
|
+
embassy_name: string; // Embassy name for M&C wise search (for Embassy category)
|
|
27
24
|
|
|
28
25
|
// Email & Contact Information
|
|
29
26
|
@Column({ type: "varchar", length: 255, nullable: false })
|
|
@@ -63,14 +60,13 @@ export class TelephoneDirectory extends BaseModel {
|
|
|
63
60
|
@Column({ type: "varchar", length: 500, nullable: true })
|
|
64
61
|
photo_url: string;
|
|
65
62
|
|
|
66
|
-
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string,
|
|
63
|
+
constructor(category?: "FM" | "Embassy", name?: string, position?: string, diplomatic_title?: string, embassy_name?: string, email?: string, contact_number?: string, extension_number?: string, location?: string, department_id?: number, employee_id?: number, city?: string, state?: string, zip_code?: string, country?: string, photo_url?: string) {
|
|
67
64
|
super();
|
|
68
65
|
this.category = category || "FM";
|
|
69
66
|
this.name = name || "";
|
|
70
67
|
this.position = position || "";
|
|
71
68
|
this.diplomatic_title = diplomatic_title || "";
|
|
72
|
-
this.
|
|
73
|
-
this.contextual_search = contextual_search || null;
|
|
69
|
+
this.embassy_name = embassy_name || "";
|
|
74
70
|
this.email = email || "";
|
|
75
71
|
this.contact_number = contact_number || "";
|
|
76
72
|
this.extension_number = extension_number || "";
|
|
@@ -37,9 +37,6 @@ export class TransferMissionApprovalDetails extends BaseModel {
|
|
|
37
37
|
@Column({ type: 'integer', nullable: true })
|
|
38
38
|
delegate_user_id: number | null;
|
|
39
39
|
|
|
40
|
-
@Column({ type: 'integer', nullable: true })
|
|
41
|
-
group_id: number | null;
|
|
42
|
-
|
|
43
40
|
@Column({ type: 'integer', nullable: true })
|
|
44
41
|
approved_by: number | null;
|
|
45
42
|
|
|
@@ -48,8 +45,5 @@ export class TransferMissionApprovalDetails extends BaseModel {
|
|
|
48
45
|
|
|
49
46
|
@Column({ type: 'enum', enum: TransferMissionApprovalStatus, default: TransferMissionApprovalStatus.PENDING, nullable: false })
|
|
50
47
|
approval_status: TransferMissionApprovalStatus;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
53
|
-
is_allowed: boolean;
|
|
54
48
|
}
|
|
55
49
|
|
|
@@ -45,9 +45,6 @@ export class UpdateAttendanceApprovalDetails extends BaseModel {
|
|
|
45
45
|
|
|
46
46
|
@Column({ type: 'enum', enum: UpdateAttendanceApprovalStatus, default: UpdateAttendanceApprovalStatus.PENDING, nullable: false })
|
|
47
47
|
approval_status: UpdateAttendanceApprovalStatus;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'boolean', default: true, nullable: false })
|
|
50
|
-
is_allowed: boolean;
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
|
package/src/models/user.ts
CHANGED
|
@@ -132,9 +132,6 @@ export class User extends BaseModel {
|
|
|
132
132
|
@Column({ type: "enum", enum: ["FM", "Embassy"], nullable: false, default: "FM" })
|
|
133
133
|
category: "FM" | "Embassy"; // Mandatory
|
|
134
134
|
|
|
135
|
-
@Column({ type: "int", nullable: true , default: 0})
|
|
136
|
-
mandc_number: number;
|
|
137
|
-
|
|
138
135
|
constructor(
|
|
139
136
|
employee_id?: number,
|
|
140
137
|
employee_name?: string,
|
|
@@ -178,7 +175,6 @@ export class User extends BaseModel {
|
|
|
178
175
|
children2_name?: string,
|
|
179
176
|
language_preferences?: string,
|
|
180
177
|
category?: "FM" | "Embassy",
|
|
181
|
-
mandc_number?: number,
|
|
182
178
|
) {
|
|
183
179
|
super();
|
|
184
180
|
this.employee_id = employee_id;
|
|
@@ -223,6 +219,5 @@ export class User extends BaseModel {
|
|
|
223
219
|
this.children2_name = children2_name;
|
|
224
220
|
this.language_preferences = language_preferences;
|
|
225
221
|
this.category = category || "FM";
|
|
226
|
-
this.mandc_number = mandc_number || 0;
|
|
227
222
|
}
|
|
228
223
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum EarlyCheckoutFrequency {
|
|
3
|
-
Monthly = "Monthly",
|
|
4
|
-
Yearly = "Yearly"
|
|
5
|
-
}
|
|
6
|
-
export declare class EarlyCheckoutConfiguration extends BaseModel {
|
|
7
|
-
category: string;
|
|
8
|
-
MandC_id: number;
|
|
9
|
-
frequency: EarlyCheckoutFrequency;
|
|
10
|
-
region: string;
|
|
11
|
-
country: string;
|
|
12
|
-
location: string;
|
|
13
|
-
no_of_hours: string;
|
|
14
|
-
from_date: Date;
|
|
15
|
-
to_date: Date;
|
|
16
|
-
reason: string;
|
|
17
|
-
constructor(category: string, MandC_id: number, frequency: EarlyCheckoutFrequency, region: string, country: string, location: string, no_of_hours: string, from_date: Date, to_date: Date, reason: string);
|
|
18
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
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.EarlyCheckoutConfiguration = exports.EarlyCheckoutFrequency = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var EarlyCheckoutFrequency;
|
|
16
|
-
(function (EarlyCheckoutFrequency) {
|
|
17
|
-
EarlyCheckoutFrequency["Monthly"] = "Monthly";
|
|
18
|
-
EarlyCheckoutFrequency["Yearly"] = "Yearly";
|
|
19
|
-
})(EarlyCheckoutFrequency || (exports.EarlyCheckoutFrequency = EarlyCheckoutFrequency = {}));
|
|
20
|
-
//This model is used to store the Early Checkout Configuration on the Admin Side
|
|
21
|
-
let EarlyCheckoutConfiguration = class EarlyCheckoutConfiguration extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(category, MandC_id, frequency, region, country, location, no_of_hours, from_date, to_date, reason) {
|
|
23
|
-
super();
|
|
24
|
-
this.category = category;
|
|
25
|
-
this.MandC_id = MandC_id;
|
|
26
|
-
this.no_of_hours = no_of_hours;
|
|
27
|
-
this.frequency = frequency;
|
|
28
|
-
this.region = region;
|
|
29
|
-
this.country = country;
|
|
30
|
-
this.location = location;
|
|
31
|
-
this.from_date = from_date;
|
|
32
|
-
this.to_date = to_date;
|
|
33
|
-
this.reason = reason;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.EarlyCheckoutConfiguration = EarlyCheckoutConfiguration;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], EarlyCheckoutConfiguration.prototype, "category", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], EarlyCheckoutConfiguration.prototype, "MandC_id", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], EarlyCheckoutConfiguration.prototype, "frequency", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], EarlyCheckoutConfiguration.prototype, "region", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], EarlyCheckoutConfiguration.prototype, "country", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], EarlyCheckoutConfiguration.prototype, "location", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], EarlyCheckoutConfiguration.prototype, "no_of_hours", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], EarlyCheckoutConfiguration.prototype, "from_date", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
71
|
-
__metadata("design:type", Date)
|
|
72
|
-
], EarlyCheckoutConfiguration.prototype, "to_date", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], EarlyCheckoutConfiguration.prototype, "reason", void 0);
|
|
77
|
-
exports.EarlyCheckoutConfiguration = EarlyCheckoutConfiguration = __decorate([
|
|
78
|
-
(0, typeorm_1.Entity)({ name: 'early_checkout_configuration' }),
|
|
79
|
-
__metadata("design:paramtypes", [String, Number, String, String, String, String, String, Date, Date, String])
|
|
80
|
-
], EarlyCheckoutConfiguration);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum EarlyCheckoutTransactionStatus {
|
|
3
|
-
GRANTED = "GRANTED",
|
|
4
|
-
TAKEN = "TAKEN",
|
|
5
|
-
ADJUSTMENT = "ADJUSTMENT",
|
|
6
|
-
CARRY_FORWARD = "CARRY_FORWARD",
|
|
7
|
-
ENCASHMENT = "ENCASHMENT",
|
|
8
|
-
AVAILED = "AVAILED",
|
|
9
|
-
ELAPSED = "ELAPSED"
|
|
10
|
-
}
|
|
11
|
-
export declare class EarlyCheckoutTransaction extends BaseModel {
|
|
12
|
-
user_id: number;
|
|
13
|
-
hours_count: string;
|
|
14
|
-
from_date: Date;
|
|
15
|
-
to_date: Date;
|
|
16
|
-
year: number;
|
|
17
|
-
status: EarlyCheckoutTransactionStatus;
|
|
18
|
-
constructor(user_id: number, hours_count: string, from_date: Date, to_date: Date, year: number, status: EarlyCheckoutTransactionStatus);
|
|
19
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
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.EarlyCheckoutTransaction = exports.EarlyCheckoutTransactionStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var EarlyCheckoutTransactionStatus;
|
|
16
|
-
(function (EarlyCheckoutTransactionStatus) {
|
|
17
|
-
EarlyCheckoutTransactionStatus["GRANTED"] = "GRANTED";
|
|
18
|
-
EarlyCheckoutTransactionStatus["TAKEN"] = "TAKEN";
|
|
19
|
-
EarlyCheckoutTransactionStatus["ADJUSTMENT"] = "ADJUSTMENT";
|
|
20
|
-
EarlyCheckoutTransactionStatus["CARRY_FORWARD"] = "CARRY_FORWARD";
|
|
21
|
-
EarlyCheckoutTransactionStatus["ENCASHMENT"] = "ENCASHMENT";
|
|
22
|
-
EarlyCheckoutTransactionStatus["AVAILED"] = "AVAILED";
|
|
23
|
-
EarlyCheckoutTransactionStatus["ELAPSED"] = "ELAPSED";
|
|
24
|
-
})(EarlyCheckoutTransactionStatus || (exports.EarlyCheckoutTransactionStatus = EarlyCheckoutTransactionStatus = {}));
|
|
25
|
-
//This model is used to store early checkout transactions for users
|
|
26
|
-
let EarlyCheckoutTransaction = class EarlyCheckoutTransaction extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(user_id, hours_count, from_date, to_date, year, status) {
|
|
28
|
-
super();
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.hours_count = hours_count;
|
|
31
|
-
this.from_date = from_date;
|
|
32
|
-
this.to_date = to_date;
|
|
33
|
-
this.year = year;
|
|
34
|
-
this.status = status;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.EarlyCheckoutTransaction = EarlyCheckoutTransaction;
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], EarlyCheckoutTransaction.prototype, "user_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], EarlyCheckoutTransaction.prototype, "hours_count", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
48
|
-
__metadata("design:type", Date)
|
|
49
|
-
], EarlyCheckoutTransaction.prototype, "from_date", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
52
|
-
__metadata("design:type", Date)
|
|
53
|
-
], EarlyCheckoutTransaction.prototype, "to_date", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], EarlyCheckoutTransaction.prototype, "year", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], EarlyCheckoutTransaction.prototype, "status", void 0);
|
|
62
|
-
exports.EarlyCheckoutTransaction = EarlyCheckoutTransaction = __decorate([
|
|
63
|
-
(0, typeorm_1.Entity)({ name: 'early_checkout_transactions' }),
|
|
64
|
-
__metadata("design:paramtypes", [Number, String, Date,
|
|
65
|
-
Date, Number, String])
|
|
66
|
-
], EarlyCheckoutTransaction);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class LeaveBalance extends BaseModel {
|
|
3
|
-
user_id: string;
|
|
4
|
-
leave_type_id: string;
|
|
5
|
-
balance: number;
|
|
6
|
-
total_balance: number;
|
|
7
|
-
constructor(user_id: string, leave_type_id: string, balance: number, total_balance: number);
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class LeaveConfigurationGrades extends BaseModel {
|
|
3
|
-
leave_config_id: number;
|
|
4
|
-
grade: number;
|
|
5
|
-
jan: number;
|
|
6
|
-
feb: number;
|
|
7
|
-
mar: number;
|
|
8
|
-
apr: number;
|
|
9
|
-
may: number;
|
|
10
|
-
jun: number;
|
|
11
|
-
jul: number;
|
|
12
|
-
aug: number;
|
|
13
|
-
sep: number;
|
|
14
|
-
oct: number;
|
|
15
|
-
nov: number;
|
|
16
|
-
dec: number;
|
|
17
|
-
total_count: number;
|
|
18
|
-
constructor(leave_config_id: number, grade: number, jan: number, feb: number, mar: number, apr: number, may: number, jun: number, jul: number, aug: number, sep: number, oct: number, nov: number, dec: number, total_count: number);
|
|
19
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
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.LeaveConfigurationGrades = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
//This model is used to store the relationship between Leave Configuration and Financial Grades with monthly leave counts
|
|
16
|
-
let LeaveConfigurationGrades = class LeaveConfigurationGrades extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_config_id, grade, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec, total_count) {
|
|
18
|
-
super();
|
|
19
|
-
this.leave_config_id = leave_config_id;
|
|
20
|
-
this.grade = grade;
|
|
21
|
-
this.jan = jan;
|
|
22
|
-
this.feb = feb;
|
|
23
|
-
this.mar = mar;
|
|
24
|
-
this.apr = apr;
|
|
25
|
-
this.may = may;
|
|
26
|
-
this.jun = jun;
|
|
27
|
-
this.jul = jul;
|
|
28
|
-
this.aug = aug;
|
|
29
|
-
this.sep = sep;
|
|
30
|
-
this.oct = oct;
|
|
31
|
-
this.nov = nov;
|
|
32
|
-
this.dec = dec;
|
|
33
|
-
this.total_count = total_count;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.LeaveConfigurationGrades = LeaveConfigurationGrades;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], LeaveConfigurationGrades.prototype, "leave_config_id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], LeaveConfigurationGrades.prototype, "grade", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
47
|
-
__metadata("design:type", Number)
|
|
48
|
-
], LeaveConfigurationGrades.prototype, "jan", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], LeaveConfigurationGrades.prototype, "feb", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], LeaveConfigurationGrades.prototype, "mar", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], LeaveConfigurationGrades.prototype, "apr", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
-
__metadata("design:type", Number)
|
|
64
|
-
], LeaveConfigurationGrades.prototype, "may", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], LeaveConfigurationGrades.prototype, "jun", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], LeaveConfigurationGrades.prototype, "jul", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
75
|
-
__metadata("design:type", Number)
|
|
76
|
-
], LeaveConfigurationGrades.prototype, "aug", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
79
|
-
__metadata("design:type", Number)
|
|
80
|
-
], LeaveConfigurationGrades.prototype, "sep", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
83
|
-
__metadata("design:type", Number)
|
|
84
|
-
], LeaveConfigurationGrades.prototype, "oct", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], LeaveConfigurationGrades.prototype, "nov", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
91
|
-
__metadata("design:type", Number)
|
|
92
|
-
], LeaveConfigurationGrades.prototype, "dec", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
95
|
-
__metadata("design:type", Number)
|
|
96
|
-
], LeaveConfigurationGrades.prototype, "total_count", void 0);
|
|
97
|
-
exports.LeaveConfigurationGrades = LeaveConfigurationGrades = __decorate([
|
|
98
|
-
(0, typeorm_1.Entity)({ name: 'leave_config_grades' }),
|
|
99
|
-
__metadata("design:paramtypes", [Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number, Number])
|
|
100
|
-
], LeaveConfigurationGrades);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum enumFrequency {
|
|
3
|
-
Monthly = "Monthly",
|
|
4
|
-
Yearly = "Yearly"
|
|
5
|
-
}
|
|
6
|
-
export declare class LeaveConfiguration extends BaseModel {
|
|
7
|
-
category: string;
|
|
8
|
-
MandC_id: number;
|
|
9
|
-
leave_type_id: number;
|
|
10
|
-
frequency: enumFrequency;
|
|
11
|
-
region: string;
|
|
12
|
-
country: string;
|
|
13
|
-
location: string;
|
|
14
|
-
is_carryforward: boolean;
|
|
15
|
-
carryforward_limit: number;
|
|
16
|
-
from_date: Date;
|
|
17
|
-
to_date: Date;
|
|
18
|
-
reason: string;
|
|
19
|
-
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string);
|
|
20
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
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.LeaveConfiguration = exports.enumFrequency = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var enumFrequency;
|
|
16
|
-
(function (enumFrequency) {
|
|
17
|
-
enumFrequency["Monthly"] = "Monthly";
|
|
18
|
-
enumFrequency["Yearly"] = "Yearly";
|
|
19
|
-
})(enumFrequency || (exports.enumFrequency = enumFrequency = {}));
|
|
20
|
-
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
21
|
-
let LeaveConfiguration = class LeaveConfiguration extends BaseModel_1.BaseModel {
|
|
22
|
-
constructor(category, MandC_id, leave_type_id, frequency, region, country, location, is_carryforward, carryforward_limit, from_date, to_date, reason) {
|
|
23
|
-
super();
|
|
24
|
-
this.category = category;
|
|
25
|
-
this.MandC_id = MandC_id;
|
|
26
|
-
this.leave_type_id = leave_type_id;
|
|
27
|
-
this.frequency = frequency;
|
|
28
|
-
this.region = region;
|
|
29
|
-
this.country = country;
|
|
30
|
-
this.location = location;
|
|
31
|
-
this.is_carryforward = is_carryforward;
|
|
32
|
-
this.carryforward_limit = carryforward_limit;
|
|
33
|
-
this.from_date = from_date;
|
|
34
|
-
this.to_date = to_date;
|
|
35
|
-
this.reason = reason;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.LeaveConfiguration = LeaveConfiguration;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], LeaveConfiguration.prototype, "category", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], LeaveConfiguration.prototype, "MandC_id", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
-
__metadata("design:type", Number)
|
|
50
|
-
], LeaveConfiguration.prototype, "leave_type_id", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], LeaveConfiguration.prototype, "frequency", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], LeaveConfiguration.prototype, "region", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], LeaveConfiguration.prototype, "country", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], LeaveConfiguration.prototype, "location", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)({ nullable: true, default: false }),
|
|
69
|
-
__metadata("design:type", Boolean)
|
|
70
|
-
], LeaveConfiguration.prototype, "is_carryforward", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: 0 }),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], LeaveConfiguration.prototype, "carryforward_limit", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
77
|
-
__metadata("design:type", Date)
|
|
78
|
-
], LeaveConfiguration.prototype, "from_date", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
81
|
-
__metadata("design:type", Date)
|
|
82
|
-
], LeaveConfiguration.prototype, "to_date", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], LeaveConfiguration.prototype, "reason", void 0);
|
|
87
|
-
exports.LeaveConfiguration = LeaveConfiguration = __decorate([
|
|
88
|
-
(0, typeorm_1.Entity)({ name: 'leave_configuration' }),
|
|
89
|
-
__metadata("design:paramtypes", [String, Number, Number, String, String, String, String, Boolean, Number, Date, Date, String])
|
|
90
|
-
], LeaveConfiguration);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum LeaveTransactionStatus {
|
|
3
|
-
GRANTED = "GRANTED",
|
|
4
|
-
TAKEN = "TAKEN",
|
|
5
|
-
ADJUSTMENT = "ADJUSTMENT",
|
|
6
|
-
CARRY_FORWARD = "CARRY_FORWARD",
|
|
7
|
-
ENCASHMENT = "ENCASHMENT",
|
|
8
|
-
AVAILED = "AVAILED",
|
|
9
|
-
ELAPSED = "ELAPSED"
|
|
10
|
-
}
|
|
11
|
-
export declare class LeaveTransaction extends BaseModel {
|
|
12
|
-
user_id: number;
|
|
13
|
-
leave_type_id: number;
|
|
14
|
-
leave_count: number;
|
|
15
|
-
from_date: Date;
|
|
16
|
-
to_date: Date;
|
|
17
|
-
year: number;
|
|
18
|
-
status: LeaveTransactionStatus;
|
|
19
|
-
constructor(user_id: number, leave_type_id: number, leave_count: number, from_date: Date, to_date: Date, year: number, status: LeaveTransactionStatus);
|
|
20
|
-
}
|