@platform-modules/foreign-ministry 1.0.92 → 1.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +5 -3
- package/dist/data-source.js +37 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +18 -0
- package/dist/models/AllowanceRequestsModel.d.ts +13 -0
- package/dist/models/AllowanceRequestsModel.js +64 -0
- package/dist/models/AllowanceTypesModel.d.ts +8 -0
- package/dist/models/AllowanceTypesModel.js +43 -0
- package/dist/models/BankAccountChangeRequestsModel.d.ts +12 -0
- package/dist/models/BankAccountChangeRequestsModel.js +62 -0
- package/dist/models/FinancialApprovalsModel.d.ts +22 -0
- package/dist/models/FinancialApprovalsModel.js +84 -0
- package/dist/models/FinancialAttachmentsModel.d.ts +10 -0
- package/dist/models/FinancialAttachmentsModel.js +50 -0
- package/dist/models/FinancialChatsModel.d.ts +9 -0
- package/dist/models/FinancialChatsModel.js +45 -0
- package/dist/models/FinancialRequestsModel.d.ts +51 -0
- package/dist/models/FinancialRequestsModel.js +158 -0
- package/dist/models/FinancialSettingsModel.d.ts +11 -0
- package/dist/models/FinancialSettingsModel.js +59 -0
- package/dist/models/FinancialWorkFlowModel.d.ts +18 -0
- package/dist/models/FinancialWorkFlowModel.js +67 -0
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/NotificationModel.d.ts +18 -0
- package/dist/models/NotificationModel.js +79 -0
- package/dist/models/PayslipRequestsModel.d.ts +10 -0
- package/dist/models/PayslipRequestsModel.js +50 -0
- package/dist/models/ReimbursementRequestsModel.d.ts +16 -0
- package/dist/models/ReimbursementRequestsModel.js +78 -0
- package/dist/models/RequestTypeMasterModel.d.ts +13 -0
- package/dist/models/RequestTypeMasterModel.js +59 -0
- package/dist/models/SalaryCertificateRequestsModel.d.ts +9 -0
- package/dist/models/SalaryCertificateRequestsModel.js +45 -0
- package/dist/models/WorkflowDefinitions.d.ts +16 -0
- package/dist/models/WorkflowDefinitions.js +86 -0
- package/dist/models/WorkflowHierarchy.d.ts +16 -0
- package/dist/models/WorkflowHierarchy.js +81 -0
- package/dist/models/WorkflowTask.d.ts +7 -0
- package/dist/models/WorkflowTask.js +39 -0
- package/dist/models/WorkflowTaskNames.d.ts +8 -0
- package/dist/models/WorkflowTaskNames.js +44 -0
- package/dist/models/importantLinksModel.d.ts +6 -0
- package/dist/models/importantLinksModel.js +34 -0
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/dist/models/userRolesModel.d.ts +2 -1
- package/dist/models/userRolesModel.js +7 -2
- package/package.json +1 -1
- package/src/data-source.ts +2 -0
- package/src/index.ts +1 -0
- package/src/models/LeaveApprovalsModel.ts +2 -10
- package/src/models/LeaveRequestModel.ts +1 -13
- package/src/models/importantLinksModel.ts +22 -0
- package/dist/models/LeaveApprovalDetailsModel.d.ts +0 -13
- package/dist/models/LeaveApprovalDetailsModel.js +0 -51
- package/dist/models/LeaveApprovalMatrixModel.d.ts +0 -7
- package/dist/models/LeaveApprovalMatrixModel.js +0 -40
package/src/data-source.ts
CHANGED
|
@@ -74,6 +74,7 @@ import { WorkflowTask } from './models/WorkflowTask';
|
|
|
74
74
|
import { WorkflowTaskNames } from './models/WorkflowTaskNames';
|
|
75
75
|
import { WorkflowDefinitions } from './models/WorkflowDefinitions';
|
|
76
76
|
import { WorkflowHierarchy } from './models/WorkflowHierarchy';
|
|
77
|
+
import { ImportantLinks } from './models/importantLinksModel';
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
|
|
@@ -152,5 +153,6 @@ export const AppDataSource = new DataSource({
|
|
|
152
153
|
WorkflowTaskNames,
|
|
153
154
|
WorkflowDefinitions,
|
|
154
155
|
WorkflowHierarchy,
|
|
156
|
+
ImportantLinks,
|
|
155
157
|
],
|
|
156
158
|
});
|
package/src/index.ts
CHANGED
|
@@ -20,28 +20,20 @@ export class LeaveApprovalDetails extends BaseModel {
|
|
|
20
20
|
@Column({ type: 'int', nullable: true })
|
|
21
21
|
approver_user_id: number;
|
|
22
22
|
|
|
23
|
-
@Column({ type: 'int', nullable:
|
|
23
|
+
@Column({ type: 'int', nullable: false })
|
|
24
24
|
approver_role_id: number;
|
|
25
25
|
|
|
26
|
-
@Column({ type: 'int', nullable: true })
|
|
27
|
-
department_id: number;
|
|
28
|
-
|
|
29
|
-
@Column({ type: 'int', nullable: true })
|
|
30
|
-
section_id: number;
|
|
31
|
-
|
|
32
26
|
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
33
27
|
comment: string;
|
|
34
28
|
|
|
35
29
|
@Column({ type: 'enum', enum: ApprovalStatus,default: ApprovalStatus.PENDING, nullable: false })
|
|
36
30
|
approval_status: ApprovalStatus;
|
|
37
31
|
|
|
38
|
-
constructor(leave_request_id: number, approver_user_id: number, approver_role_id: number, comment: string, approval_status: ApprovalStatus, level: number
|
|
32
|
+
constructor(leave_request_id: number, approver_user_id: number, approver_role_id: number, comment: string, approval_status: ApprovalStatus, level: number) {
|
|
39
33
|
super();
|
|
40
34
|
this.leave_request_id = leave_request_id;
|
|
41
35
|
this.approver_user_id = approver_user_id;
|
|
42
36
|
this.approver_role_id = approver_role_id;
|
|
43
|
-
this.department_id = department_id;
|
|
44
|
-
this.section_id = section_id;
|
|
45
37
|
this.comment = comment;
|
|
46
38
|
this.approval_status = approval_status;
|
|
47
39
|
this.level = level;
|
|
@@ -85,17 +85,8 @@ export class LeaveRequests extends BaseModel {
|
|
|
85
85
|
@Column({ type: 'int', nullable: true })
|
|
86
86
|
mounring_leave_relation: number;
|
|
87
87
|
|
|
88
|
-
@Column({ type: 'int', nullable: true })
|
|
89
|
-
service_id: number | null;
|
|
90
|
-
|
|
91
|
-
@Column({ type: 'int', nullable: true })
|
|
92
|
-
sub_service_id: number | null;
|
|
93
|
-
|
|
94
|
-
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
95
|
-
workflow_execution_id: string | null;
|
|
96
|
-
|
|
97
88
|
|
|
98
|
-
constructor(user_id: string, leave_for: Leave_For, leave_type: 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
|
|
89
|
+
constructor(user_id: string, leave_for: Leave_For, leave_type: 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) {
|
|
99
90
|
super();
|
|
100
91
|
this.user_id = user_id;
|
|
101
92
|
this.leave_for = leave_for;
|
|
@@ -121,8 +112,5 @@ export class LeaveRequests extends BaseModel {
|
|
|
121
112
|
this.activity_title = activity_title;
|
|
122
113
|
this.relationship = relationship;
|
|
123
114
|
this.mounring_leave_relation = mounring_leave_relation;
|
|
124
|
-
this.service_id = service_id;
|
|
125
|
-
this.sub_service_id = sub_service_id;
|
|
126
|
-
this.workflow_execution_id = workflow_execution_id;
|
|
127
115
|
}
|
|
128
116
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'important_links' })
|
|
5
|
+
export class ImportantLinks extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', nullable: false })
|
|
8
|
+
title: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'varchar', nullable: false })
|
|
11
|
+
url: string;
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
title: string,
|
|
15
|
+
url: string
|
|
16
|
+
) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.url = url;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
6
|
-
}
|
|
7
|
-
export declare class LeaveApprovalDetails extends BaseModel {
|
|
8
|
-
leave_request_id: number;
|
|
9
|
-
level: number;
|
|
10
|
-
approver_id: number;
|
|
11
|
-
approval_status: ApprovalStatus;
|
|
12
|
-
constructor(leave_request_id: number, approver_id: number, approval_status: ApprovalStatus, level: number);
|
|
13
|
-
}
|
|
@@ -1,51 +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.LeaveApprovalDetails = exports.ApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ApprovalStatus;
|
|
16
|
-
(function (ApprovalStatus) {
|
|
17
|
-
ApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
ApprovalStatus["APPROVED"] = "Approved";
|
|
19
|
-
ApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
-
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
21
|
-
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
22
|
-
let LeaveApprovalDetails = class LeaveApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(leave_request_id, approver_id, approval_status, level) {
|
|
24
|
-
super();
|
|
25
|
-
this.leave_request_id = leave_request_id;
|
|
26
|
-
this.approver_id = approver_id;
|
|
27
|
-
this.approval_status = approval_status;
|
|
28
|
-
this.level = level;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.LeaveApprovalDetails = LeaveApprovalDetails;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], LeaveApprovalDetails.prototype, "leave_request_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], LeaveApprovalDetails.prototype, "level", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], LeaveApprovalDetails.prototype, "approver_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: ApprovalStatus, default: ApprovalStatus.PENDING, nullable: false }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], LeaveApprovalDetails.prototype, "approval_status", void 0);
|
|
48
|
-
exports.LeaveApprovalDetails = LeaveApprovalDetails = __decorate([
|
|
49
|
-
(0, typeorm_1.Entity)({ name: 'leave_approval_details' }),
|
|
50
|
-
__metadata("design:paramtypes", [Number, Number, String, Number])
|
|
51
|
-
], LeaveApprovalDetails);
|
|
@@ -1,40 +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.LeaveApprovalMatrix = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
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
|
-
let LeaveApprovalMatrix = class LeaveApprovalMatrix extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_type, level, approval_matrix) {
|
|
18
|
-
super();
|
|
19
|
-
this.leave_type = leave_type;
|
|
20
|
-
this.level = level;
|
|
21
|
-
this.approval_matrix = approval_matrix;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.LeaveApprovalMatrix = LeaveApprovalMatrix;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], LeaveApprovalMatrix.prototype, "leave_type", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], LeaveApprovalMatrix.prototype, "level", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], LeaveApprovalMatrix.prototype, "approval_matrix", void 0);
|
|
37
|
-
exports.LeaveApprovalMatrix = LeaveApprovalMatrix = __decorate([
|
|
38
|
-
(0, typeorm_1.Entity)({ name: 'leave_approval_matrix' }),
|
|
39
|
-
__metadata("design:paramtypes", [Number, Number, String])
|
|
40
|
-
], LeaveApprovalMatrix);
|