@platform-modules/foreign-ministry 1.1.56 → 1.1.57
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 +34 -18
- package/dist/index.d.ts +24 -9
- package/dist/index.js +24 -9
- package/dist/models/AttendanceModel.d.ts +2 -1
- package/dist/models/AttendanceModel.js +2 -1
- package/dist/models/CurrencyModel.d.ts +10 -0
- package/dist/models/CurrencyModel.js +53 -0
- package/dist/models/EarlyCheckoutApprovalModel.d.ts +1 -0
- package/dist/models/EarlyCheckoutApprovalModel.js +4 -0
- package/dist/models/EarlyCheckoutChatModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutChatModel.js +28 -2
- package/dist/models/EarlyCheckoutWorkflowModel.d.ts +4 -0
- package/dist/models/EarlyCheckoutWorkflowModel.js +16 -0
- package/dist/models/FinancialApprovalsModel.d.ts +2 -1
- package/dist/models/FinancialApprovalsModel.js +7 -2
- package/dist/models/FinancialChatsModel.d.ts +16 -1
- package/dist/models/FinancialChatsModel.js +33 -3
- package/dist/models/FinancialRequestsModel.d.ts +1 -1
- package/dist/models/FinancialRequestsModel.js +3 -3
- package/dist/models/FinancialWorkFlowModel.d.ts +3 -1
- package/dist/models/FinancialWorkFlowModel.js +11 -2
- package/dist/models/GeneralServiceApprovalsModel.d.ts +26 -0
- package/dist/models/GeneralServiceApprovalsModel.js +109 -0
- package/dist/models/GeneralServiceAttachmentsModel.d.ts +10 -0
- package/dist/models/{DiplomaticAttachmentsModel.js → GeneralServiceAttachmentsModel.js} +18 -22
- package/dist/models/GeneralServiceChatsModel.d.ts +9 -0
- package/dist/models/{DiplomaticChatsModel.js → GeneralServiceChatsModel.js} +17 -21
- package/dist/models/GeneralServiceRequestsModel.d.ts +36 -0
- package/dist/models/GeneralServiceRequestsModel.js +137 -0
- package/dist/models/GeneralServiceWorkFlowModel.d.ts +21 -0
- package/dist/models/GeneralServiceWorkFlowModel.js +80 -0
- package/dist/models/GroupModel.d.ts +16 -0
- package/dist/models/GroupModel.js +44 -0
- package/dist/models/GroupNamesModel.d.ts +6 -0
- package/dist/models/GroupNamesModel.js +34 -0
- package/dist/models/HelpdeskCategoriesModel.d.ts +9 -0
- package/dist/models/{DiplomaticClubCardAttachmentModel.js → HelpdeskCategoriesModel.js} +27 -22
- package/dist/models/HelpdeskSubCategoriesModel.d.ts +10 -0
- package/dist/models/{PassportRequestAttachmentModel.js → HelpdeskSubCategoriesModel.js} +29 -29
- package/dist/models/IssueTypesModel.d.ts +10 -0
- package/dist/models/IssueTypesModel.js +54 -0
- package/dist/models/JobsModel.d.ts +17 -0
- package/dist/models/{DiplomaticClubCardChatModel.js → JobsModel.js} +29 -16
- package/dist/models/LeaveApprovalsModel.d.ts +4 -1
- package/dist/models/LeaveApprovalsModel.js +9 -0
- package/dist/models/LeaveAttachmentsModel.d.ts +6 -2
- package/dist/models/LeaveAttachmentsModel.js +27 -7
- package/dist/models/LeaveChatModel.d.ts +5 -1
- package/dist/models/LeaveChatModel.js +22 -2
- package/dist/models/LeaveRequestModel.d.ts +12 -1
- package/dist/models/LeaveRequestModel.js +35 -0
- package/dist/models/LeaveWorkFlowModel.d.ts +5 -1
- package/dist/models/LeaveWorkFlowModel.js +22 -2
- package/dist/models/MounringLeaveRelationModel.d.ts +2 -1
- package/dist/models/MounringLeaveRelationModel.js +7 -2
- package/dist/models/ReimbursementRequestsModel.d.ts +2 -1
- package/dist/models/ReimbursementRequestsModel.js +9 -4
- package/dist/models/RoutingGroupsModel.d.ts +13 -0
- package/dist/models/RoutingGroupsModel.js +67 -0
- package/dist/models/StayAfterHoursApprovalModel.d.ts +1 -0
- package/dist/models/StayAfterHoursApprovalModel.js +4 -0
- package/dist/models/StayAfterHoursChatModel.d.ts +4 -0
- package/dist/models/StayAfterHoursChatModel.js +28 -2
- package/dist/models/StayAfterHoursWorkflowModel.d.ts +4 -0
- package/dist/models/StayAfterHoursWorkflowModel.js +16 -0
- package/dist/models/TelephoneDirectoryModel.d.ts +21 -0
- package/dist/models/TelephoneDirectoryModel.js +108 -0
- package/dist/models/TransferMissionApprovalModel.d.ts +21 -0
- package/dist/models/TransferMissionApprovalModel.js +75 -0
- package/dist/models/TransferMissionAttachmentModel.d.ts +11 -0
- package/dist/models/TransferMissionAttachmentModel.js +52 -0
- package/dist/models/TransferMissionChatModel.d.ts +19 -0
- package/dist/models/TransferMissionChatModel.js +78 -0
- package/dist/models/TransferMissionRequestModel.d.ts +36 -0
- package/dist/models/TransferMissionRequestModel.js +132 -0
- package/dist/models/TransferMissionWorkflowModel.d.ts +17 -0
- package/dist/models/TransferMissionWorkflowModel.js +62 -0
- package/dist/models/UpdateAttendanceApprovalModel.d.ts +21 -0
- package/dist/models/UpdateAttendanceApprovalModel.js +75 -0
- package/dist/models/UpdateAttendanceChatModel.d.ts +16 -0
- package/dist/models/UpdateAttendanceChatModel.js +52 -0
- package/dist/models/UpdateAttendanceRequestModel.d.ts +28 -0
- package/dist/models/UpdateAttendanceRequestModel.js +86 -0
- package/dist/models/UpdateAttendanceWorkflowModel.d.ts +13 -0
- package/dist/models/UpdateAttendanceWorkflowModel.js +46 -0
- package/dist/models/WorkScheduleModel.d.ts +19 -0
- package/dist/models/WorkScheduleModel.js +60 -0
- package/dist/models/WorkflowTask.d.ts +5 -2
- package/dist/models/WorkflowTask.js +28 -4
- package/dist/models/WorkflowTaskNames.d.ts +12 -3
- package/dist/models/WorkflowTaskNames.js +28 -9
- package/package.json +1 -1
- package/src/data-source.ts +45 -30
- package/src/index.ts +24 -9
- package/src/models/AttendanceModel.ts +2 -1
- package/src/models/CurrencyModel.ts +38 -0
- package/src/models/EarlyCheckoutApprovalModel.ts +3 -0
- package/src/models/EarlyCheckoutChatModel.ts +34 -1
- package/src/models/EarlyCheckoutWorkflowModel.ts +12 -0
- package/src/models/FinancialApprovalsModel.ts +6 -1
- package/src/models/FinancialChatsModel.ts +27 -1
- package/src/models/FinancialRequestsModel.ts +2 -2
- package/src/models/FinancialWorkFlowModel.ts +9 -1
- package/src/models/GeneralServiceApprovalsModel.ts +95 -0
- package/src/models/GeneralServiceAttachmentsModel.ts +43 -0
- package/src/models/GeneralServiceChatsModel.ts +39 -0
- package/src/models/GeneralServiceRequestsModel.ts +113 -0
- package/src/models/GeneralServiceWorkFlowModel.ts +78 -0
- package/src/models/GroupModel.ts +30 -0
- package/src/models/GroupNamesModel.ts +22 -0
- package/src/models/HelpdeskCategoriesModel.ts +35 -0
- package/src/models/HelpdeskSubCategoriesModel.ts +40 -0
- package/src/models/IssueTypesModel.ts +47 -0
- package/src/models/JobsModel.ts +37 -0
- package/src/models/LeaveApprovalsModel.ts +8 -1
- package/src/models/LeaveAttachmentsModel.ts +21 -5
- package/src/models/LeaveChatModel.ts +17 -1
- package/src/models/LeaveRequestModel.ts +29 -1
- package/src/models/LeaveWorkFlowModel.ts +17 -1
- package/src/models/MounringLeaveRelationModel.ts +5 -1
- package/src/models/ReimbursementRequestsModel.ts +8 -6
- package/src/models/RoutingGroupsModel.ts +64 -0
- package/src/models/StayAfterHoursApprovalModel.ts +3 -0
- package/src/models/StayAfterHoursChatModel.ts +34 -1
- package/src/models/StayAfterHoursWorkflowModel.ts +12 -0
- package/src/models/TelephoneDirectoryModel.ts +84 -0
- package/src/models/TransferMissionApprovalModel.ts +49 -0
- package/src/models/TransferMissionAttachmentModel.ts +31 -0
- package/src/models/TransferMissionChatModel.ts +66 -0
- package/src/models/TransferMissionRequestModel.ts +94 -0
- package/src/models/TransferMissionWorkflowModel.ts +39 -0
- package/src/models/UpdateAttendanceApprovalModel.ts +50 -0
- package/src/models/UpdateAttendanceChatModel.ts +35 -0
- package/src/models/UpdateAttendanceRequestModel.ts +63 -0
- package/src/models/UpdateAttendanceWorkflowModel.ts +28 -0
- package/src/models/WorkScheduleModel.ts +47 -0
- package/src/models/WorkflowTask.ts +31 -4
- package/src/models/WorkflowTaskNames.ts +27 -8
- package/dist/models/DiplomaticApprovalsModel.d.ts +0 -25
- package/dist/models/DiplomaticApprovalsModel.js +0 -95
- package/dist/models/DiplomaticAttachmentsModel.d.ts +0 -12
- package/dist/models/DiplomaticChatsModel.d.ts +0 -11
- package/dist/models/DiplomaticClubCardApprovalModel.d.ts +0 -16
- package/dist/models/DiplomaticClubCardApprovalModel.js +0 -58
- package/dist/models/DiplomaticClubCardAttachmentModel.d.ts +0 -9
- package/dist/models/DiplomaticClubCardChatModel.d.ts +0 -7
- package/dist/models/DiplomaticClubCardMemberModel.d.ts +0 -13
- package/dist/models/DiplomaticClubCardMemberModel.js +0 -60
- package/dist/models/DiplomaticClubCardRequestModel.d.ts +0 -33
- package/dist/models/DiplomaticClubCardRequestModel.js +0 -98
- package/dist/models/DiplomaticClubCardWorkFlowModel.d.ts +0 -12
- package/dist/models/DiplomaticClubCardWorkFlowModel.js +0 -42
- package/dist/models/DiplomaticRequestsModel.d.ts +0 -43
- package/dist/models/DiplomaticRequestsModel.js +0 -142
- package/dist/models/DiplomaticServiceDetailsModel.d.ts +0 -20
- package/dist/models/DiplomaticServiceDetailsModel.js +0 -65
- package/dist/models/DiplomaticSettingsModel.d.ts +0 -11
- package/dist/models/DiplomaticSettingsModel.js +0 -59
- package/dist/models/DiplomaticTitleModel.d.ts +0 -12
- package/dist/models/DiplomaticTitleModel.js +0 -45
- package/dist/models/DiplomaticWorkFlowModel.d.ts +0 -21
- package/dist/models/DiplomaticWorkFlowModel.js +0 -78
- package/dist/models/PassportRequestApprovalModel.d.ts +0 -22
- package/dist/models/PassportRequestApprovalModel.js +0 -91
- package/dist/models/PassportRequestAttachmentModel.d.ts +0 -10
- package/dist/models/PassportRequestChatModel.d.ts +0 -8
- package/dist/models/PassportRequestChatModel.js +0 -44
- package/dist/models/PassportRequestDependentModel.d.ts +0 -20
- package/dist/models/PassportRequestDependentModel.js +0 -85
- package/dist/models/PassportRequestModel.d.ts +0 -40
- package/dist/models/PassportRequestModel.js +0 -128
- package/dist/models/PassportRequestWorkFlowModel.d.ts +0 -15
- package/dist/models/PassportRequestWorkFlowModel.js +0 -60
- package/dist/models/SubscriptionAmountModel.d.ts +0 -67
- package/dist/models/SubscriptionAmountModel.js +0 -114
- package/src/models/DiplomaticApprovalsModel.ts +0 -78
- package/src/models/DiplomaticAttachmentsModel.ts +0 -45
- package/src/models/DiplomaticChatsModel.ts +0 -41
- package/src/models/DiplomaticRequestsModel.ts +0 -121
- package/src/models/DiplomaticServiceDetailsModel.ts +0 -51
- package/src/models/DiplomaticSettingsModel.ts +0 -45
- package/src/models/DiplomaticTitleModel.ts +0 -27
- package/src/models/DiplomaticWorkFlowModel.ts +0 -62
- package/src/models/SubscriptionAmountModel.ts +0 -95
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class HelpdeskCategories extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string | null;
|
|
5
|
+
code: string | null;
|
|
6
|
+
is_active: boolean;
|
|
7
|
+
priority: number | null;
|
|
8
|
+
constructor(name: string, description?: string | null, code?: string | null, priority?: number | null);
|
|
9
|
+
}
|
|
@@ -9,36 +9,41 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.HelpdeskCategories = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
15
|
+
let HelpdeskCategories = class HelpdeskCategories extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, description, code, priority) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.description = description || null;
|
|
20
|
+
this.code = code || null;
|
|
21
|
+
this.is_active = true;
|
|
22
|
+
this.priority = priority || null;
|
|
23
|
+
}
|
|
16
24
|
};
|
|
17
|
-
exports.
|
|
25
|
+
exports.HelpdeskCategories = HelpdeskCategories;
|
|
18
26
|
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: '
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], DiplomaticClubCardAttachments.prototype, "request_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
24
|
-
__metadata("design:type", Object)
|
|
25
|
-
], DiplomaticClubCardAttachments.prototype, "member_id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
29
|
+
], HelpdeskCategories.prototype, "name", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable:
|
|
32
|
-
__metadata("design:type",
|
|
33
|
-
],
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], HelpdeskCategories.prototype, "description", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
36
36
|
__metadata("design:type", Object)
|
|
37
|
-
],
|
|
37
|
+
], HelpdeskCategories.prototype, "code", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: '
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], HelpdeskCategories.prototype, "is_active", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
40
44
|
__metadata("design:type", Object)
|
|
41
|
-
],
|
|
42
|
-
exports.
|
|
43
|
-
(0, typeorm_1.Entity)({ name: '
|
|
44
|
-
|
|
45
|
+
], HelpdeskCategories.prototype, "priority", void 0);
|
|
46
|
+
exports.HelpdeskCategories = HelpdeskCategories = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'helpdesk_categories' }),
|
|
48
|
+
__metadata("design:paramtypes", [String, Object, Object, Object])
|
|
49
|
+
], HelpdeskCategories);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class HelpdeskSubCategories extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string | null;
|
|
5
|
+
category_id: number;
|
|
6
|
+
code: string | null;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
priority: number | null;
|
|
9
|
+
constructor(name: string, category_id: number, description?: string | null, code?: string | null, priority?: number | null);
|
|
10
|
+
}
|
|
@@ -9,46 +9,46 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.HelpdeskSubCategories = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
16
|
-
constructor(
|
|
15
|
+
let HelpdeskSubCategories = class HelpdeskSubCategories extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, category_id, description, code, priority) {
|
|
17
17
|
super();
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.category_id = category_id;
|
|
20
|
+
this.description = description || null;
|
|
21
|
+
this.code = code || null;
|
|
22
|
+
this.is_active = true;
|
|
23
|
+
this.priority = priority || null;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
exports.
|
|
26
|
+
exports.HelpdeskSubCategories = HelpdeskSubCategories;
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: '
|
|
29
|
-
__metadata("design:type",
|
|
30
|
-
],
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], HelpdeskSubCategories.prototype, "name", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ type: '
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
33
33
|
__metadata("design:type", Object)
|
|
34
|
-
],
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], PassportRequestAttachments.prototype, "file_name", void 0);
|
|
34
|
+
], HelpdeskSubCategories.prototype, "description", void 0);
|
|
39
35
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: '
|
|
41
|
-
__metadata("design:type",
|
|
42
|
-
],
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], HelpdeskSubCategories.prototype, "category_id", void 0);
|
|
43
39
|
__decorate([
|
|
44
40
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
45
41
|
__metadata("design:type", Object)
|
|
46
|
-
],
|
|
42
|
+
], HelpdeskSubCategories.prototype, "code", void 0);
|
|
47
43
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: '
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], HelpdeskSubCategories.prototype, "is_active", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
49
|
__metadata("design:type", Object)
|
|
50
|
-
],
|
|
51
|
-
exports.
|
|
52
|
-
(0, typeorm_1.Entity)({ name: '
|
|
53
|
-
__metadata("design:paramtypes", [
|
|
54
|
-
],
|
|
50
|
+
], HelpdeskSubCategories.prototype, "priority", void 0);
|
|
51
|
+
exports.HelpdeskSubCategories = HelpdeskSubCategories = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'helpdesk_sub_categories' }),
|
|
53
|
+
__metadata("design:paramtypes", [String, Number, Object, Object, Object])
|
|
54
|
+
], HelpdeskSubCategories);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class IssueTypes extends BaseModel {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string | null;
|
|
5
|
+
category_id: number | null;
|
|
6
|
+
subcategory_id: number | null;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
priority: number | null;
|
|
9
|
+
constructor(name: string, description?: string, priority?: number | null, category_id?: number | null, subcategory_id?: number | 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.IssueTypes = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let IssueTypes = class IssueTypes extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(name, description, priority, category_id, subcategory_id) {
|
|
17
|
+
super();
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.category_id = category_id || null;
|
|
20
|
+
this.subcategory_id = subcategory_id || null;
|
|
21
|
+
this.description = description || null;
|
|
22
|
+
this.is_active = true;
|
|
23
|
+
this.priority = priority || null;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.IssueTypes = IssueTypes;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], IssueTypes.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], IssueTypes.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], IssueTypes.prototype, "category_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], IssueTypes.prototype, "subcategory_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], IssueTypes.prototype, "is_active", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], IssueTypes.prototype, "priority", void 0);
|
|
51
|
+
exports.IssueTypes = IssueTypes = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'issue_types' }),
|
|
53
|
+
__metadata("design:paramtypes", [String, String, Object, Object, Object])
|
|
54
|
+
], IssueTypes);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author
|
|
3
|
+
* Amnet Digital
|
|
4
|
+
* @date
|
|
5
|
+
* 2024-12-20
|
|
6
|
+
* @Model
|
|
7
|
+
* Jobs
|
|
8
|
+
* @usage
|
|
9
|
+
* Jobs Information will store
|
|
10
|
+
*/
|
|
11
|
+
import { BaseModel } from './BaseModel';
|
|
12
|
+
export declare class Jobs extends BaseModel {
|
|
13
|
+
title: string;
|
|
14
|
+
grade: number;
|
|
15
|
+
description: string;
|
|
16
|
+
constructor(title: string, grade: number, description: string);
|
|
17
|
+
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author
|
|
4
|
+
* Amnet Digital
|
|
5
|
+
* @date
|
|
6
|
+
* 2024-12-20
|
|
7
|
+
* @Model
|
|
8
|
+
* Jobs
|
|
9
|
+
* @usage
|
|
10
|
+
* Jobs Information will store
|
|
11
|
+
*/
|
|
2
12
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
13
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
14
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,28 +19,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
19
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
20
|
};
|
|
11
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
22
|
+
exports.Jobs = void 0;
|
|
13
23
|
const typeorm_1 = require("typeorm");
|
|
14
24
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
25
|
+
let Jobs = class Jobs extends BaseModel_1.BaseModel {
|
|
26
|
+
constructor(title, grade, description) {
|
|
27
|
+
super();
|
|
28
|
+
this.title = title;
|
|
29
|
+
this.grade = grade;
|
|
30
|
+
this.description = description;
|
|
31
|
+
}
|
|
16
32
|
};
|
|
17
|
-
exports.
|
|
33
|
+
exports.Jobs = Jobs;
|
|
18
34
|
__decorate([
|
|
19
|
-
(0, typeorm_1.Column)({ type: '
|
|
20
|
-
__metadata("design:type",
|
|
21
|
-
],
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: false }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Jobs.prototype, "title", void 0);
|
|
22
38
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ type: '
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
24
40
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
41
|
+
], Jobs.prototype, "grade", void 0);
|
|
26
42
|
__decorate([
|
|
27
43
|
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
28
44
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.
|
|
32
|
-
__metadata("design:
|
|
33
|
-
],
|
|
34
|
-
exports.DiplomaticClubCardChat = DiplomaticClubCardChat = __decorate([
|
|
35
|
-
(0, typeorm_1.Entity)({ name: 'diplomatic_club_card_chats' })
|
|
36
|
-
], DiplomaticClubCardChat);
|
|
45
|
+
], Jobs.prototype, "description", void 0);
|
|
46
|
+
exports.Jobs = Jobs = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'jobs' }),
|
|
48
|
+
__metadata("design:paramtypes", [String, Number, String])
|
|
49
|
+
], Jobs);
|
|
@@ -2,13 +2,16 @@ import { BaseModel } from './BaseModel';
|
|
|
2
2
|
export declare enum ApprovalStatus {
|
|
3
3
|
PENDING = "Pending",
|
|
4
4
|
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
IN_PROGRESS = "In Progress"
|
|
6
7
|
}
|
|
7
8
|
export declare class LeaveApprovalDetails extends BaseModel {
|
|
8
9
|
leave_request_id: number;
|
|
9
10
|
level: number;
|
|
10
11
|
approver_user_id: number;
|
|
11
12
|
approver_role_id: number;
|
|
13
|
+
delegate_user_id: number | null;
|
|
14
|
+
approved_by: number | null;
|
|
12
15
|
department_id: number;
|
|
13
16
|
section_id: number;
|
|
14
17
|
comment: string;
|
|
@@ -17,6 +17,7 @@ var ApprovalStatus;
|
|
|
17
17
|
ApprovalStatus["PENDING"] = "Pending";
|
|
18
18
|
ApprovalStatus["APPROVED"] = "Approved";
|
|
19
19
|
ApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
+
ApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
20
21
|
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
21
22
|
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
22
23
|
let LeaveApprovalDetails = class LeaveApprovalDetails extends BaseModel_1.BaseModel {
|
|
@@ -49,6 +50,14 @@ __decorate([
|
|
|
49
50
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
50
51
|
__metadata("design:type", Number)
|
|
51
52
|
], LeaveApprovalDetails.prototype, "approver_role_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LeaveApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], LeaveApprovalDetails.prototype, "approved_by", void 0);
|
|
52
61
|
__decorate([
|
|
53
62
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
63
|
__metadata("design:type", Number)
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class LeaveAttachments extends BaseModel {
|
|
3
3
|
leave_request_id: number;
|
|
4
|
-
files: string;
|
|
5
4
|
attached_by_user_id: number;
|
|
6
|
-
|
|
5
|
+
file_url: string;
|
|
6
|
+
file_name: string;
|
|
7
|
+
file_type: string;
|
|
8
|
+
file_size: number | null;
|
|
9
|
+
chat_id: number | null;
|
|
10
|
+
constructor(leave_request_id: number, file_url: string, file_name: string, file_type: string, file_size: number | null, chat_id: number | null, attached_by_user_id: number);
|
|
7
11
|
}
|
|
@@ -14,10 +14,14 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
16
16
|
let LeaveAttachments = class LeaveAttachments extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_request_id,
|
|
17
|
+
constructor(leave_request_id, file_url, file_name, file_type, file_size, chat_id, attached_by_user_id) {
|
|
18
18
|
super();
|
|
19
19
|
this.leave_request_id = leave_request_id;
|
|
20
|
-
this.
|
|
20
|
+
this.file_url = file_url;
|
|
21
|
+
this.file_name = file_name;
|
|
22
|
+
this.file_type = file_type;
|
|
23
|
+
this.file_size = file_size;
|
|
24
|
+
this.chat_id = chat_id;
|
|
21
25
|
this.attached_by_user_id = attached_by_user_id;
|
|
22
26
|
}
|
|
23
27
|
};
|
|
@@ -26,15 +30,31 @@ __decorate([
|
|
|
26
30
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
31
|
__metadata("design:type", Number)
|
|
28
32
|
], LeaveAttachments.prototype, "leave_request_id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], LeaveAttachments.prototype, "files", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
36
|
], LeaveAttachments.prototype, "attached_by_user_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LeaveAttachments.prototype, "file_url", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], LeaveAttachments.prototype, "file_name", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], LeaveAttachments.prototype, "file_type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LeaveAttachments.prototype, "file_size", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], LeaveAttachments.prototype, "chat_id", void 0);
|
|
37
57
|
exports.LeaveAttachments = LeaveAttachments = __decorate([
|
|
38
58
|
(0, typeorm_1.Entity)({ name: 'leave_attachments' }),
|
|
39
|
-
__metadata("design:paramtypes", [Number, String, Number])
|
|
59
|
+
__metadata("design:paramtypes", [Number, String, String, String, Object, Object, Number])
|
|
40
60
|
], LeaveAttachments);
|
|
@@ -3,5 +3,9 @@ export declare class LeaveChat extends BaseModel {
|
|
|
3
3
|
leave_request_id: number;
|
|
4
4
|
content: string;
|
|
5
5
|
sender_user_id: number;
|
|
6
|
-
|
|
6
|
+
service_id: number | null;
|
|
7
|
+
sub_service_id: number | null;
|
|
8
|
+
role_id: number;
|
|
9
|
+
status: string;
|
|
10
|
+
constructor(leave_request_id: number, content: string, sender_user_id: number, service_id: number | null, sub_service_id: number | null, role_id: number, status: string);
|
|
7
11
|
}
|
|
@@ -14,11 +14,15 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
16
16
|
let LeaveChat = class LeaveChat extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_request_id, content, sender_user_id) {
|
|
17
|
+
constructor(leave_request_id, content, sender_user_id, service_id, sub_service_id, role_id, status) {
|
|
18
18
|
super();
|
|
19
19
|
this.leave_request_id = leave_request_id;
|
|
20
20
|
this.content = content;
|
|
21
21
|
this.sender_user_id = sender_user_id;
|
|
22
|
+
this.status = status;
|
|
23
|
+
this.service_id = service_id;
|
|
24
|
+
this.sub_service_id = sub_service_id;
|
|
25
|
+
this.role_id = role_id;
|
|
22
26
|
}
|
|
23
27
|
};
|
|
24
28
|
exports.LeaveChat = LeaveChat;
|
|
@@ -34,7 +38,23 @@ __decorate([
|
|
|
34
38
|
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
35
39
|
__metadata("design:type", Number)
|
|
36
40
|
], LeaveChat.prototype, "sender_user_id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], LeaveChat.prototype, "service_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], LeaveChat.prototype, "sub_service_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], LeaveChat.prototype, "role_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], LeaveChat.prototype, "status", void 0);
|
|
37
57
|
exports.LeaveChat = LeaveChat = __decorate([
|
|
38
58
|
(0, typeorm_1.Entity)({ name: 'leave_chats' }),
|
|
39
|
-
__metadata("design:paramtypes", [Number, String, Number])
|
|
59
|
+
__metadata("design:paramtypes", [Number, String, Number, Object, Object, Number, String])
|
|
40
60
|
], LeaveChat);
|
|
@@ -6,7 +6,10 @@ export declare enum Leave_For {
|
|
|
6
6
|
export declare enum status {
|
|
7
7
|
PENDING = "Pending",
|
|
8
8
|
APPROVED = "Approved",
|
|
9
|
-
REJECTED = "Rejected"
|
|
9
|
+
REJECTED = "Rejected",
|
|
10
|
+
EXTENDED = "Extended",
|
|
11
|
+
CANCELLED = "Cancelled",
|
|
12
|
+
RETURNED = "Returned"
|
|
10
13
|
}
|
|
11
14
|
export declare class LeaveRequests extends BaseModel {
|
|
12
15
|
user_id: string;
|
|
@@ -37,5 +40,13 @@ export declare class LeaveRequests extends BaseModel {
|
|
|
37
40
|
service_id: number | null;
|
|
38
41
|
sub_service_id: number | null;
|
|
39
42
|
workflow_execution_id: string | null;
|
|
43
|
+
reference_leave_request_id: number | null;
|
|
44
|
+
leave_extension_date: Date | null;
|
|
45
|
+
cancel_leave_date: Date | null;
|
|
46
|
+
return_notification_date: Date | null;
|
|
47
|
+
actual_leave_start_date: Date | null;
|
|
48
|
+
actual_leave_end_date: Date | null;
|
|
49
|
+
actual_leave_duration: string | null;
|
|
50
|
+
no_of_days_delayed: number | null;
|
|
40
51
|
constructor(user_id: string, leave_for: Leave_For, leave_type: number, study_leave_degree: number, department: string, status: status, leave_start_date: Date, leave_end_date: Date, leave_duration: number, remaining_leave_balance: number, contact_number_during_leave: string, address_during_leave: string, notes: string, delegated_to: string, number_of_escort_instances_per_year: number, accompanying_the_patient: boolean, treatment_place: string, emergency_leaves_available: number, unpaid_leave_type: string, country_or_state_being_visited: string, leave_balance_summary: string, representation: string, activity_title: string, relationship: string, mounring_leave_relation: number, service_id: number, sub_service_id: number, workflow_execution_id: string);
|
|
41
52
|
}
|
|
@@ -23,6 +23,9 @@ var status;
|
|
|
23
23
|
status["PENDING"] = "Pending";
|
|
24
24
|
status["APPROVED"] = "Approved";
|
|
25
25
|
status["REJECTED"] = "Rejected";
|
|
26
|
+
status["EXTENDED"] = "Extended";
|
|
27
|
+
status["CANCELLED"] = "Cancelled";
|
|
28
|
+
status["RETURNED"] = "Returned";
|
|
26
29
|
})(status || (exports.status = status = {}));
|
|
27
30
|
let LeaveRequests = class LeaveRequests extends BaseModel_1.BaseModel {
|
|
28
31
|
constructor(user_id, leave_for, leave_type, study_leave_degree, department, status, leave_start_date, leave_end_date, leave_duration, remaining_leave_balance, contact_number_during_leave, address_during_leave, notes, delegated_to, number_of_escort_instances_per_year, accompanying_the_patient, treatment_place, emergency_leaves_available, unpaid_leave_type, country_or_state_being_visited, leave_balance_summary, representation, activity_title, relationship, mounring_leave_relation, service_id, sub_service_id, workflow_execution_id) {
|
|
@@ -170,6 +173,38 @@ __decorate([
|
|
|
170
173
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
171
174
|
__metadata("design:type", Object)
|
|
172
175
|
], LeaveRequests.prototype, "workflow_execution_id", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: null }),
|
|
178
|
+
__metadata("design:type", Object)
|
|
179
|
+
], LeaveRequests.prototype, "reference_leave_request_id", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, default: null }),
|
|
182
|
+
__metadata("design:type", Object)
|
|
183
|
+
], LeaveRequests.prototype, "leave_extension_date", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, default: null }),
|
|
186
|
+
__metadata("design:type", Object)
|
|
187
|
+
], LeaveRequests.prototype, "cancel_leave_date", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, default: null }),
|
|
190
|
+
__metadata("design:type", Object)
|
|
191
|
+
], LeaveRequests.prototype, "return_notification_date", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, default: null }),
|
|
194
|
+
__metadata("design:type", Object)
|
|
195
|
+
], LeaveRequests.prototype, "actual_leave_start_date", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, default: null }),
|
|
198
|
+
__metadata("design:type", Object)
|
|
199
|
+
], LeaveRequests.prototype, "actual_leave_end_date", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true, default: null }),
|
|
202
|
+
__metadata("design:type", Object)
|
|
203
|
+
], LeaveRequests.prototype, "actual_leave_duration", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: null }),
|
|
206
|
+
__metadata("design:type", Object)
|
|
207
|
+
], LeaveRequests.prototype, "no_of_days_delayed", void 0);
|
|
173
208
|
exports.LeaveRequests = LeaveRequests = __decorate([
|
|
174
209
|
(0, typeorm_1.Entity)({ name: 'leave_requests' }),
|
|
175
210
|
__metadata("design:paramtypes", [String, String, Number, Number, String, String, Date, Date, Number, Number, String, String, String, String, Number, Boolean, String, Number, String, String, String, String, String, String, Number, Number, Number, String])
|
|
@@ -9,5 +9,9 @@ export declare class LeaveWorkFlow extends BaseModel {
|
|
|
9
9
|
leave_approval_details_id: number;
|
|
10
10
|
content: string;
|
|
11
11
|
status: workFlowStatus;
|
|
12
|
-
|
|
12
|
+
user_id: number | null;
|
|
13
|
+
role_id: number | null;
|
|
14
|
+
department_id: number | null;
|
|
15
|
+
section_id: number | null;
|
|
16
|
+
constructor(leave_request_id: number, leave_approval_details_id: number, content: string, status: workFlowStatus, user_id: number, role_id: number, department_id: number, section_id: number);
|
|
13
17
|
}
|
|
@@ -20,12 +20,16 @@ var workFlowStatus;
|
|
|
20
20
|
})(workFlowStatus || (exports.workFlowStatus = workFlowStatus = {}));
|
|
21
21
|
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
22
22
|
let LeaveWorkFlow = class LeaveWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(leave_request_id, leave_approval_details_id, content, status) {
|
|
23
|
+
constructor(leave_request_id, leave_approval_details_id, content, status, user_id, role_id, department_id, section_id) {
|
|
24
24
|
super();
|
|
25
25
|
this.leave_request_id = leave_request_id;
|
|
26
26
|
this.leave_approval_details_id = leave_approval_details_id;
|
|
27
27
|
this.content = content;
|
|
28
28
|
this.status = status;
|
|
29
|
+
this.user_id = user_id;
|
|
30
|
+
this.role_id = role_id;
|
|
31
|
+
this.department_id = department_id;
|
|
32
|
+
this.section_id = section_id;
|
|
29
33
|
}
|
|
30
34
|
};
|
|
31
35
|
exports.LeaveWorkFlow = LeaveWorkFlow;
|
|
@@ -45,7 +49,23 @@ __decorate([
|
|
|
45
49
|
(0, typeorm_1.Column)({ type: 'enum', enum: workFlowStatus, default: workFlowStatus.NOT_YET_STARTED, nullable: false }),
|
|
46
50
|
__metadata("design:type", String)
|
|
47
51
|
], LeaveWorkFlow.prototype, "status", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], LeaveWorkFlow.prototype, "user_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], LeaveWorkFlow.prototype, "role_id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], LeaveWorkFlow.prototype, "department_id", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], LeaveWorkFlow.prototype, "section_id", void 0);
|
|
48
68
|
exports.LeaveWorkFlow = LeaveWorkFlow = __decorate([
|
|
49
69
|
(0, typeorm_1.Entity)({ name: 'leave_work_flows' }),
|
|
50
|
-
__metadata("design:paramtypes", [Number, Number, String, String])
|
|
70
|
+
__metadata("design:paramtypes", [Number, Number, String, String, Number, Number, Number, Number])
|
|
51
71
|
], LeaveWorkFlow);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class MounringLeaveRelations extends BaseModel {
|
|
3
3
|
mounring_leave_relation: string;
|
|
4
|
-
|
|
4
|
+
days_allowed: number;
|
|
5
|
+
constructor(mounring_leave_relation: string, days_allowed: number);
|
|
5
6
|
}
|
|
@@ -13,9 +13,10 @@ exports.MounringLeaveRelations = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let MounringLeaveRelations = class MounringLeaveRelations extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(mounring_leave_relation) {
|
|
16
|
+
constructor(mounring_leave_relation, days_allowed) {
|
|
17
17
|
super();
|
|
18
18
|
this.mounring_leave_relation = mounring_leave_relation;
|
|
19
|
+
this.days_allowed = days_allowed;
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
exports.MounringLeaveRelations = MounringLeaveRelations;
|
|
@@ -23,7 +24,11 @@ __decorate([
|
|
|
23
24
|
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: false }),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], MounringLeaveRelations.prototype, "mounring_leave_relation", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], MounringLeaveRelations.prototype, "days_allowed", void 0);
|
|
26
31
|
exports.MounringLeaveRelations = MounringLeaveRelations = __decorate([
|
|
27
32
|
(0, typeorm_1.Entity)({ name: 'mounring_leave_relations' }),
|
|
28
|
-
__metadata("design:paramtypes", [String])
|
|
33
|
+
__metadata("design:paramtypes", [String, Number])
|
|
29
34
|
], MounringLeaveRelations);
|