@platform-modules/foreign-ministry 1.0.76 → 1.0.78
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 +2 -2
- package/dist/data-source.js +12 -2
- package/dist/index.d.ts +5 -13
- package/dist/index.js +5 -13
- package/dist/models/FMServices.js +1 -1
- 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/HolidaysModel.d.ts +11 -0
- package/dist/models/HolidaysModel.js +59 -0
- package/dist/models/NotificationModel.d.ts +18 -0
- package/dist/models/NotificationModel.js +79 -0
- package/dist/models/PortalFeedbackModel.d.ts +8 -0
- package/dist/models/{FinancialChatsModel.js → PortalFeedbackModel.js} +24 -19
- package/dist/models/role.d.ts +1 -7
- package/dist/models/role.js +2 -2
- package/dist/models/roleRightsModel.d.ts +16 -0
- package/dist/models/roleRightsModel.js +44 -0
- package/dist/models/user.d.ts +5 -1
- package/dist/models/user.js +22 -2
- package/dist/models/userRolesModel.d.ts +18 -0
- package/dist/models/{FinancialSettingsModel.js → userRolesModel.js} +31 -21
- package/package.json +1 -1
- package/src/data-source.ts +12 -2
- package/src/index.ts +5 -13
- package/src/models/FMServices.ts +1 -1
- package/src/models/HolidaysModel.ts +46 -0
- package/src/models/NotificationModel.ts +68 -0
- package/src/models/PortalFeedbackModel.ts +33 -0
- package/src/models/role.ts +1 -7
- package/src/models/roleRightsModel.ts +31 -0
- package/src/models/user.ts +21 -0
- package/src/models/userRolesModel.ts +38 -0
- package/FINANCIAL_MODELS_SUMMARY.md +0 -144
- package/FINANCIAL_SERVICES_MODELS.md +0 -236
- package/dist/models/AllowanceRequestsModel.d.ts +0 -9
- package/dist/models/AllowanceRequestsModel.js +0 -49
- package/dist/models/AllowanceTypesModel.d.ts +0 -8
- package/dist/models/AllowanceTypesModel.js +0 -43
- package/dist/models/BankAccountChangeRequestsModel.d.ts +0 -12
- package/dist/models/BankAccountChangeRequestsModel.js +0 -62
- package/dist/models/FinancialApprovalsModel.d.ts +0 -20
- package/dist/models/FinancialApprovalsModel.js +0 -76
- package/dist/models/FinancialAttachmentsModel.d.ts +0 -8
- package/dist/models/FinancialAttachmentsModel.js +0 -43
- package/dist/models/FinancialChatsModel.d.ts +0 -7
- package/dist/models/FinancialRequestsModel.d.ts +0 -29
- package/dist/models/FinancialRequestsModel.js +0 -103
- package/dist/models/FinancialSettingsModel.d.ts +0 -8
- package/dist/models/FinancialWorkFlowModel.d.ts +0 -16
- package/dist/models/FinancialWorkFlowModel.js +0 -61
- package/dist/models/PayslipRequestsModel.d.ts +0 -8
- package/dist/models/PayslipRequestsModel.js +0 -44
- package/dist/models/ReimbursementRequestsModel.d.ts +0 -14
- package/dist/models/ReimbursementRequestsModel.js +0 -73
- package/dist/models/RequestTypeMasterModel.d.ts +0 -12
- package/dist/models/RequestTypeMasterModel.js +0 -60
- package/dist/models/SalaryCertificateRequestsModel.d.ts +0 -7
- package/dist/models/SalaryCertificateRequestsModel.js +0 -39
- package/src/models/AllowanceRequestsModel.ts +0 -38
- package/src/models/AllowanceTypesModel.ts +0 -26
- package/src/models/BankAccountChangeRequestsModel.ts +0 -50
- package/src/models/FinancialApprovalsModel.ts +0 -57
- package/src/models/FinancialAttachmentsModel.ts +0 -30
- package/src/models/FinancialChatsModel.ts +0 -23
- package/src/models/FinancialRequestsModel.ts +0 -81
- package/src/models/FinancialSettingsModel.ts +0 -30
- package/src/models/FinancialWorkFlowModel.ts +0 -47
- package/src/models/PayslipRequestsModel.ts +0 -29
- package/src/models/ReimbursementRequestsModel.ts +0 -58
- package/src/models/RequestTypeMasterModel.ts +0 -38
- package/src/models/SalaryCertificateRequestsModel.ts +0 -24
|
@@ -1,103 +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.FinancialRequests = exports.FinancialRequestStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var FinancialRequestStatus;
|
|
16
|
-
(function (FinancialRequestStatus) {
|
|
17
|
-
FinancialRequestStatus["DRAFT"] = "Draft";
|
|
18
|
-
FinancialRequestStatus["SUBMITTED"] = "Submitted";
|
|
19
|
-
FinancialRequestStatus["PENDING"] = "Pending";
|
|
20
|
-
FinancialRequestStatus["IN_PROGRESS"] = "In Progress";
|
|
21
|
-
FinancialRequestStatus["APPROVED"] = "Approved";
|
|
22
|
-
FinancialRequestStatus["REJECTED"] = "Rejected";
|
|
23
|
-
FinancialRequestStatus["COMPLETED"] = "Completed";
|
|
24
|
-
FinancialRequestStatus["CANCELLED"] = "Cancelled";
|
|
25
|
-
})(FinancialRequestStatus || (exports.FinancialRequestStatus = FinancialRequestStatus = {}));
|
|
26
|
-
let FinancialRequests = class FinancialRequests extends BaseModel_1.BaseModel {
|
|
27
|
-
constructor(user_id, employee_id, employee_name, email_address, contact_number, request_type_id) {
|
|
28
|
-
super();
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.employee_id = employee_id;
|
|
31
|
-
this.employee_name = employee_name;
|
|
32
|
-
this.email_address = email_address;
|
|
33
|
-
this.contact_number = contact_number;
|
|
34
|
-
this.request_type_id = request_type_id;
|
|
35
|
-
this.request_date = new Date();
|
|
36
|
-
this.request_status = FinancialRequestStatus.PENDING;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.FinancialRequests = FinancialRequests;
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], FinancialRequests.prototype, "user_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], FinancialRequests.prototype, "employee_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], FinancialRequests.prototype, "employee_name", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], FinancialRequests.prototype, "grade", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], FinancialRequests.prototype, "designation_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
62
|
-
__metadata("design:type", Number)
|
|
63
|
-
], FinancialRequests.prototype, "department_id", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], FinancialRequests.prototype, "email_address", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], FinancialRequests.prototype, "contact_number", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
74
|
-
__metadata("design:type", Number)
|
|
75
|
-
], FinancialRequests.prototype, "request_type_id", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }),
|
|
78
|
-
__metadata("design:type", Date)
|
|
79
|
-
], FinancialRequests.prototype, "request_date", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: FinancialRequestStatus, default: FinancialRequestStatus.PENDING }),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], FinancialRequests.prototype, "request_status", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
86
|
-
__metadata("design:type", Date)
|
|
87
|
-
], FinancialRequests.prototype, "request_close_date", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], FinancialRequests.prototype, "remarks", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
94
|
-
__metadata("design:type", Number)
|
|
95
|
-
], FinancialRequests.prototype, "current_approval_level", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
98
|
-
__metadata("design:type", Number)
|
|
99
|
-
], FinancialRequests.prototype, "current_approver_id", void 0);
|
|
100
|
-
exports.FinancialRequests = FinancialRequests = __decorate([
|
|
101
|
-
(0, typeorm_1.Entity)({ name: 'financial_requests' }),
|
|
102
|
-
__metadata("design:paramtypes", [Number, String, String, String, String, Number])
|
|
103
|
-
], FinancialRequests);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class FinancialSettings extends BaseModel {
|
|
3
|
-
service_id: number;
|
|
4
|
-
approval_level: number;
|
|
5
|
-
approver_role_id: number;
|
|
6
|
-
is_active: boolean;
|
|
7
|
-
constructor(service_id: number, approval_level: number, approver_role_id: number);
|
|
8
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum FinancialWorkFlowStatus {
|
|
3
|
-
COMPLETED = "Completed",
|
|
4
|
-
NOT_YET_STARTED = "Not Yet Started",
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
IN_PROGRESS = "In Progress"
|
|
7
|
-
}
|
|
8
|
-
export declare class FinancialWorkFlow extends BaseModel {
|
|
9
|
-
financial_request_id: number;
|
|
10
|
-
financial_approval_id: number;
|
|
11
|
-
status: FinancialWorkFlowStatus;
|
|
12
|
-
approved_by_user_id: number;
|
|
13
|
-
content: string;
|
|
14
|
-
activity_date: Date;
|
|
15
|
-
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string);
|
|
16
|
-
}
|
|
@@ -1,61 +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.FinancialWorkFlow = exports.FinancialWorkFlowStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var FinancialWorkFlowStatus;
|
|
16
|
-
(function (FinancialWorkFlowStatus) {
|
|
17
|
-
FinancialWorkFlowStatus["COMPLETED"] = "Completed";
|
|
18
|
-
FinancialWorkFlowStatus["NOT_YET_STARTED"] = "Not Yet Started";
|
|
19
|
-
FinancialWorkFlowStatus["PENDING"] = "Pending";
|
|
20
|
-
FinancialWorkFlowStatus["IN_PROGRESS"] = "In Progress";
|
|
21
|
-
})(FinancialWorkFlowStatus || (exports.FinancialWorkFlowStatus = FinancialWorkFlowStatus = {}));
|
|
22
|
-
let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(financial_request_id, status, approved_by_user_id, content) {
|
|
24
|
-
super();
|
|
25
|
-
this.financial_request_id = financial_request_id;
|
|
26
|
-
this.status = status;
|
|
27
|
-
this.financial_approval_id = 0;
|
|
28
|
-
this.activity_date = new Date();
|
|
29
|
-
this.approved_by_user_id = approved_by_user_id;
|
|
30
|
-
this.content = content;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.FinancialWorkFlow = FinancialWorkFlow;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'int' }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], FinancialWorkFlow.prototype, "financial_request_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true, default: 0 }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], FinancialWorkFlow.prototype, "financial_approval_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: FinancialWorkFlowStatus, default: FinancialWorkFlowStatus.NOT_YET_STARTED }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], FinancialWorkFlow.prototype, "status", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], FinancialWorkFlow.prototype, "approved_by_user_id", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], FinancialWorkFlow.prototype, "content", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }),
|
|
56
|
-
__metadata("design:type", Date)
|
|
57
|
-
], FinancialWorkFlow.prototype, "activity_date", void 0);
|
|
58
|
-
exports.FinancialWorkFlow = FinancialWorkFlow = __decorate([
|
|
59
|
-
(0, typeorm_1.Entity)({ name: 'financial_work_flows' }),
|
|
60
|
-
__metadata("design:paramtypes", [Number, String, Number, String])
|
|
61
|
-
], FinancialWorkFlow);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class PayslipRequests extends BaseModel {
|
|
3
|
-
financial_request_id: number;
|
|
4
|
-
payslip_month: string;
|
|
5
|
-
payslip_year: number;
|
|
6
|
-
payslip_url: string;
|
|
7
|
-
constructor(financial_request_id: number, payslip_month: string, payslip_year: number, payslip_url: string);
|
|
8
|
-
}
|
|
@@ -1,44 +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.PayslipRequests = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let PayslipRequests = class PayslipRequests extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(financial_request_id, payslip_month, payslip_year, payslip_url) {
|
|
17
|
-
super();
|
|
18
|
-
this.financial_request_id = financial_request_id;
|
|
19
|
-
this.payslip_month = payslip_month;
|
|
20
|
-
this.payslip_year = payslip_year;
|
|
21
|
-
this.payslip_url = payslip_url;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.PayslipRequests = PayslipRequests;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], PayslipRequests.prototype, "financial_request_id", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 7 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], PayslipRequests.prototype, "payslip_month", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], PayslipRequests.prototype, "payslip_year", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], PayslipRequests.prototype, "payslip_url", void 0);
|
|
41
|
-
exports.PayslipRequests = PayslipRequests = __decorate([
|
|
42
|
-
(0, typeorm_1.Entity)({ name: 'payslip_requests' }),
|
|
43
|
-
__metadata("design:paramtypes", [Number, String, Number, String])
|
|
44
|
-
], PayslipRequests);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class ReimbursementRequests extends BaseModel {
|
|
3
|
-
financial_request_id: number;
|
|
4
|
-
expense_description: string;
|
|
5
|
-
price: number;
|
|
6
|
-
quantity: number;
|
|
7
|
-
amount: number;
|
|
8
|
-
total_amount: number;
|
|
9
|
-
approved_amount: number;
|
|
10
|
-
payment_processed: boolean;
|
|
11
|
-
payment_mode: string;
|
|
12
|
-
payment_date: Date;
|
|
13
|
-
constructor(financial_request_id: number, amount: number, quantity: number, total_amount: number, approved_amount: number, payment_mode: string, payment_date: Date, expense_description: string);
|
|
14
|
-
}
|
|
@@ -1,73 +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.ReimbursementRequests = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let ReimbursementRequests = class ReimbursementRequests extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(financial_request_id, amount, quantity, total_amount, approved_amount, payment_mode, payment_date, expense_description) {
|
|
17
|
-
super();
|
|
18
|
-
this.financial_request_id = financial_request_id;
|
|
19
|
-
this.amount = amount;
|
|
20
|
-
this.quantity = quantity;
|
|
21
|
-
this.total_amount = total_amount;
|
|
22
|
-
this.approved_amount = approved_amount;
|
|
23
|
-
this.payment_mode = payment_mode;
|
|
24
|
-
this.payment_date = payment_date;
|
|
25
|
-
this.expense_description = expense_description;
|
|
26
|
-
this.payment_processed = false;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.ReimbursementRequests = ReimbursementRequests;
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], ReimbursementRequests.prototype, "financial_request_id", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'text' }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], ReimbursementRequests.prototype, "expense_description", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], ReimbursementRequests.prototype, "price", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], ReimbursementRequests.prototype, "quantity", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], ReimbursementRequests.prototype, "amount", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], ReimbursementRequests.prototype, "total_amount", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], ReimbursementRequests.prototype, "approved_amount", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
60
|
-
__metadata("design:type", Boolean)
|
|
61
|
-
], ReimbursementRequests.prototype, "payment_processed", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], ReimbursementRequests.prototype, "payment_mode", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
68
|
-
__metadata("design:type", Date)
|
|
69
|
-
], ReimbursementRequests.prototype, "payment_date", void 0);
|
|
70
|
-
exports.ReimbursementRequests = ReimbursementRequests = __decorate([
|
|
71
|
-
(0, typeorm_1.Entity)({ name: 'reimbursement_requests' }),
|
|
72
|
-
__metadata("design:paramtypes", [Number, Number, Number, Number, Number, String, Date, String])
|
|
73
|
-
], ReimbursementRequests);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class RequestTypeMaster extends BaseModel {
|
|
3
|
-
request_code: string;
|
|
4
|
-
request_name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
specific_table_name: string;
|
|
7
|
-
is_active: boolean;
|
|
8
|
-
icon: string;
|
|
9
|
-
max_sla_days: number;
|
|
10
|
-
display_order: number;
|
|
11
|
-
constructor(request_code: string, request_name: string);
|
|
12
|
-
}
|
|
@@ -1,60 +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.RequestTypeMaster = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let RequestTypeMaster = class RequestTypeMaster extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(request_code, request_name) {
|
|
17
|
-
super();
|
|
18
|
-
this.request_code = request_code;
|
|
19
|
-
this.request_name = request_name;
|
|
20
|
-
this.is_active = true;
|
|
21
|
-
this.display_order = 0;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.RequestTypeMaster = RequestTypeMaster;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 10, unique: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], RequestTypeMaster.prototype, "request_code", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], RequestTypeMaster.prototype, "request_name", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], RequestTypeMaster.prototype, "description", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], RequestTypeMaster.prototype, "specific_table_name", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
43
|
-
__metadata("design:type", Boolean)
|
|
44
|
-
], RequestTypeMaster.prototype, "is_active", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], RequestTypeMaster.prototype, "icon", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], RequestTypeMaster.prototype, "max_sla_days", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], RequestTypeMaster.prototype, "display_order", void 0);
|
|
57
|
-
exports.RequestTypeMaster = RequestTypeMaster = __decorate([
|
|
58
|
-
(0, typeorm_1.Entity)({ name: 'request_type_master' }),
|
|
59
|
-
__metadata("design:paramtypes", [String, String])
|
|
60
|
-
], RequestTypeMaster);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare class SalaryCertificateRequests extends BaseModel {
|
|
3
|
-
financial_request_id: number;
|
|
4
|
-
certificate_purpose: string;
|
|
5
|
-
certificate_url: string;
|
|
6
|
-
constructor(financial_request_id: number, certificate_purpose: string, certificate_url: string);
|
|
7
|
-
}
|
|
@@ -1,39 +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.SalaryCertificateRequests = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let SalaryCertificateRequests = class SalaryCertificateRequests extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(financial_request_id, certificate_purpose, certificate_url) {
|
|
17
|
-
super();
|
|
18
|
-
this.financial_request_id = financial_request_id;
|
|
19
|
-
this.certificate_purpose = certificate_purpose;
|
|
20
|
-
this.certificate_url = certificate_url;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.SalaryCertificateRequests = SalaryCertificateRequests;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], SalaryCertificateRequests.prototype, "financial_request_id", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], SalaryCertificateRequests.prototype, "certificate_purpose", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], SalaryCertificateRequests.prototype, "certificate_url", void 0);
|
|
36
|
-
exports.SalaryCertificateRequests = SalaryCertificateRequests = __decorate([
|
|
37
|
-
(0, typeorm_1.Entity)({ name: 'salary_certificate_requests' }),
|
|
38
|
-
__metadata("design:paramtypes", [Number, String, String])
|
|
39
|
-
], SalaryCertificateRequests);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, OneToOne, JoinColumn, ManyToOne } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'allowance_requests' })
|
|
5
|
-
export class AllowanceRequests extends BaseModel {
|
|
6
|
-
@Column({ type: 'int', unique: true })
|
|
7
|
-
financial_request_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'int' })
|
|
10
|
-
allowance_type_id: number;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'decimal', precision: 10, scale: 2 })
|
|
13
|
-
allowance_amount: number;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
|
16
|
-
approved_allowance_amount: number;
|
|
17
|
-
|
|
18
|
-
@Column({ type: 'boolean', default: false })
|
|
19
|
-
currency : string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
financial_request_id: number,
|
|
24
|
-
allowance_type_id: number,
|
|
25
|
-
allowance_amount: number,
|
|
26
|
-
approved_allowance_amount: number,
|
|
27
|
-
currency: string
|
|
28
|
-
|
|
29
|
-
) {
|
|
30
|
-
super();
|
|
31
|
-
this.financial_request_id = financial_request_id;
|
|
32
|
-
this.allowance_type_id = allowance_type_id;
|
|
33
|
-
this.allowance_amount = allowance_amount;
|
|
34
|
-
this.approved_allowance_amount = approved_allowance_amount;
|
|
35
|
-
this.currency = currency;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'allowance_types' })
|
|
5
|
-
export class AllowanceTypes extends BaseModel {
|
|
6
|
-
@Column({ type: 'varchar', length: 100, unique: true })
|
|
7
|
-
allowance_code: string; // HOUSING, TRANSPORT, EDUCATION, etc.
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'varchar', length: 255 })
|
|
10
|
-
allowance_name: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'text', nullable: true })
|
|
13
|
-
description: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'boolean', default: true })
|
|
17
|
-
is_active: boolean;
|
|
18
|
-
|
|
19
|
-
constructor(allowance_code: string, allowance_name: string) {
|
|
20
|
-
super();
|
|
21
|
-
this.allowance_code = allowance_code;
|
|
22
|
-
this.allowance_name = allowance_name;
|
|
23
|
-
this.is_active = true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, OneToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'bank_account_change_requests' })
|
|
5
|
-
export class BankAccountChangeRequests extends BaseModel {
|
|
6
|
-
@Column({ type: 'int', unique: true })
|
|
7
|
-
financial_request_id: number;
|
|
8
|
-
|
|
9
|
-
// Old Bank Details
|
|
10
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
11
|
-
old_bank_name: string;
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
14
|
-
old_account_number: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// New Bank Details
|
|
18
|
-
@Column({ type: 'varchar', length: 100 })
|
|
19
|
-
new_bank_name: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'varchar', length: 50 })
|
|
22
|
-
new_account_number: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
25
|
-
new_account_name: string;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
28
|
-
new_branch_ifsc_code: string;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'text' })
|
|
31
|
-
reason_for_change: string;
|
|
32
|
-
|
|
33
|
-
constructor(
|
|
34
|
-
financial_request_id: number,
|
|
35
|
-
new_bank_name: string,
|
|
36
|
-
new_account_number: string,
|
|
37
|
-
new_account_name: string,
|
|
38
|
-
new_branch_ifsc_code: string,
|
|
39
|
-
reason_for_change: string,
|
|
40
|
-
) {
|
|
41
|
-
super();
|
|
42
|
-
this.financial_request_id = financial_request_id;
|
|
43
|
-
this.new_bank_name = new_bank_name;
|
|
44
|
-
this.new_account_number = new_account_number;
|
|
45
|
-
this.new_account_name = new_account_name;
|
|
46
|
-
this.new_branch_ifsc_code = new_branch_ifsc_code;
|
|
47
|
-
this.reason_for_change = reason_for_change;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum FinancialApprovalStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
APPROVED = "Approved",
|
|
7
|
-
REJECTED = "Rejected",
|
|
8
|
-
SKIPPED = "Skipped"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Entity({ name: 'financial_approvals' })
|
|
12
|
-
export class FinancialApprovals extends BaseModel {
|
|
13
|
-
@Column({ type: 'int' })
|
|
14
|
-
financial_request_id: number;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int' })
|
|
17
|
-
level: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
approver_user_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'int' })
|
|
23
|
-
approver_role_id: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
26
|
-
approver_name: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'text', nullable: true })
|
|
29
|
-
comment: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'enum', enum: FinancialApprovalStatus, default: FinancialApprovalStatus.PENDING })
|
|
32
|
-
approval_status: FinancialApprovalStatus;
|
|
33
|
-
|
|
34
|
-
@Column({ type: 'datetime', nullable: true })
|
|
35
|
-
action_date: Date;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', nullable: true })
|
|
38
|
-
sla_days: number;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'boolean', default: false })
|
|
41
|
-
is_overdue: boolean;
|
|
42
|
-
|
|
43
|
-
constructor(
|
|
44
|
-
financial_request_id: number,
|
|
45
|
-
level: number,
|
|
46
|
-
approver_role_id: number,
|
|
47
|
-
approval_status: FinancialApprovalStatus
|
|
48
|
-
) {
|
|
49
|
-
super();
|
|
50
|
-
this.financial_request_id = financial_request_id;
|
|
51
|
-
this.level = level;
|
|
52
|
-
this.approver_role_id = approver_role_id;
|
|
53
|
-
this.approval_status = approval_status;
|
|
54
|
-
this.is_overdue = false;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Column, Entity, ManyToOne, JoinColumn } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
@Entity({ name: 'financial_attachments' })
|
|
5
|
-
export class FinancialAttachments extends BaseModel {
|
|
6
|
-
@Column({ type: 'int' })
|
|
7
|
-
financial_request_id: number;
|
|
8
|
-
|
|
9
|
-
@Column({ type: 'varchar', length: 500 })
|
|
10
|
-
file_url: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: 'varchar', length: 255 })
|
|
13
|
-
file_name: string;
|
|
14
|
-
|
|
15
|
-
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
16
|
-
file_type: string; // PDF, JPG, PNG, etc.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
constructor(
|
|
20
|
-
financial_request_id: number,
|
|
21
|
-
file_url: string,
|
|
22
|
-
file_name: string,
|
|
23
|
-
) {
|
|
24
|
-
super();
|
|
25
|
-
this.financial_request_id = financial_request_id;
|
|
26
|
-
this.file_url = file_url;
|
|
27
|
-
this.file_name = file_name;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|