@platform-modules/foreign-ministry 1.0.74 → 1.0.76
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/FINANCIAL_MODELS_SUMMARY.md +144 -0
- package/FINANCIAL_SERVICES_MODELS.md +236 -0
- package/dist/data-source.js +2 -10
- package/dist/index.d.ts +13 -4
- package/dist/index.js +13 -4
- package/dist/models/AllowanceRequestsModel.d.ts +9 -0
- package/dist/models/AllowanceRequestsModel.js +49 -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/FMServices.js +1 -1
- package/dist/models/FinancialApprovalsModel.d.ts +20 -0
- package/dist/models/FinancialApprovalsModel.js +76 -0
- package/dist/models/FinancialAttachmentsModel.d.ts +8 -0
- package/dist/models/FinancialAttachmentsModel.js +43 -0
- package/dist/models/FinancialChatsModel.d.ts +7 -0
- package/dist/models/{PortalFeedbackModel.js → FinancialChatsModel.js} +19 -24
- package/dist/models/FinancialRequestsModel.d.ts +29 -0
- package/dist/models/FinancialRequestsModel.js +103 -0
- package/dist/models/FinancialSettingsModel.d.ts +8 -0
- package/dist/models/{userRolesModel.js → FinancialSettingsModel.js} +21 -31
- package/dist/models/FinancialWorkFlowModel.d.ts +16 -0
- package/dist/models/FinancialWorkFlowModel.js +61 -0
- package/dist/models/PayslipRequestsModel.d.ts +8 -0
- package/dist/models/PayslipRequestsModel.js +44 -0
- package/dist/models/ReimbursementRequestsModel.d.ts +14 -0
- package/dist/models/ReimbursementRequestsModel.js +73 -0
- package/dist/models/RequestTypeMasterModel.d.ts +12 -0
- package/dist/models/RequestTypeMasterModel.js +60 -0
- package/dist/models/SalaryCertificateRequestsModel.d.ts +7 -0
- package/dist/models/SalaryCertificateRequestsModel.js +39 -0
- package/dist/models/role.d.ts +7 -1
- package/dist/models/role.js +2 -2
- package/package.json +1 -1
- package/src/data-source.ts +2 -10
- package/src/index.ts +13 -4
- package/src/models/AllowanceRequestsModel.ts +38 -0
- package/src/models/AllowanceTypesModel.ts +26 -0
- package/src/models/BankAccountChangeRequestsModel.ts +50 -0
- package/src/models/FMServices.ts +1 -1
- package/src/models/FinancialApprovalsModel.ts +57 -0
- package/src/models/FinancialAttachmentsModel.ts +30 -0
- package/src/models/FinancialChatsModel.ts +23 -0
- package/src/models/FinancialRequestsModel.ts +81 -0
- package/src/models/FinancialSettingsModel.ts +30 -0
- package/src/models/FinancialWorkFlowModel.ts +47 -0
- package/src/models/PayslipRequestsModel.ts +29 -0
- package/src/models/ReimbursementRequestsModel.ts +58 -0
- package/src/models/RequestTypeMasterModel.ts +38 -0
- package/src/models/SalaryCertificateRequestsModel.ts +24 -0
- package/src/models/role.ts +7 -1
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/HolidaysModel.d.ts +0 -11
- package/dist/models/HolidaysModel.js +0 -59
- package/dist/models/PortalFeedbackModel.d.ts +0 -8
- package/dist/models/roleRightsModel.d.ts +0 -16
- package/dist/models/roleRightsModel.js +0 -44
- package/dist/models/userRolesModel.d.ts +0 -18
- package/src/models/HolidaysModel.ts +0 -46
- package/src/models/PortalFeedbackModel.ts +0 -33
- package/src/models/roleRightsModel.ts +0 -31
- package/src/models/userRolesModel.ts +0 -38
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum FinancialApprovalStatus {
|
|
3
|
+
PENDING = "Pending",
|
|
4
|
+
APPROVED = "Approved",
|
|
5
|
+
REJECTED = "Rejected",
|
|
6
|
+
SKIPPED = "Skipped"
|
|
7
|
+
}
|
|
8
|
+
export declare class FinancialApprovals extends BaseModel {
|
|
9
|
+
financial_request_id: number;
|
|
10
|
+
level: number;
|
|
11
|
+
approver_user_id: number;
|
|
12
|
+
approver_role_id: number;
|
|
13
|
+
approver_name: string;
|
|
14
|
+
comment: string;
|
|
15
|
+
approval_status: FinancialApprovalStatus;
|
|
16
|
+
action_date: Date;
|
|
17
|
+
sla_days: number;
|
|
18
|
+
is_overdue: boolean;
|
|
19
|
+
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus);
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.FinancialApprovals = exports.FinancialApprovalStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
var FinancialApprovalStatus;
|
|
16
|
+
(function (FinancialApprovalStatus) {
|
|
17
|
+
FinancialApprovalStatus["PENDING"] = "Pending";
|
|
18
|
+
FinancialApprovalStatus["APPROVED"] = "Approved";
|
|
19
|
+
FinancialApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
+
FinancialApprovalStatus["SKIPPED"] = "Skipped";
|
|
21
|
+
})(FinancialApprovalStatus || (exports.FinancialApprovalStatus = FinancialApprovalStatus = {}));
|
|
22
|
+
let FinancialApprovals = class FinancialApprovals extends BaseModel_1.BaseModel {
|
|
23
|
+
constructor(financial_request_id, level, approver_role_id, approval_status) {
|
|
24
|
+
super();
|
|
25
|
+
this.financial_request_id = financial_request_id;
|
|
26
|
+
this.level = level;
|
|
27
|
+
this.approver_role_id = approver_role_id;
|
|
28
|
+
this.approval_status = approval_status;
|
|
29
|
+
this.is_overdue = false;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.FinancialApprovals = FinancialApprovals;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], FinancialApprovals.prototype, "financial_request_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], FinancialApprovals.prototype, "level", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], FinancialApprovals.prototype, "approver_user_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], FinancialApprovals.prototype, "approver_role_id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], FinancialApprovals.prototype, "approver_name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], FinancialApprovals.prototype, "comment", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: FinancialApprovalStatus, default: FinancialApprovalStatus.PENDING }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], FinancialApprovals.prototype, "approval_status", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], FinancialApprovals.prototype, "action_date", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], FinancialApprovals.prototype, "sla_days", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], FinancialApprovals.prototype, "is_overdue", void 0);
|
|
73
|
+
exports.FinancialApprovals = FinancialApprovals = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)({ name: 'financial_approvals' }),
|
|
75
|
+
__metadata("design:paramtypes", [Number, Number, Number, String])
|
|
76
|
+
], FinancialApprovals);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class FinancialAttachments extends BaseModel {
|
|
3
|
+
financial_request_id: number;
|
|
4
|
+
file_url: string;
|
|
5
|
+
file_name: string;
|
|
6
|
+
file_type: string;
|
|
7
|
+
constructor(financial_request_id: number, file_url: string, file_name: string);
|
|
8
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.FinancialAttachments = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let FinancialAttachments = class FinancialAttachments extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(financial_request_id, file_url, file_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.financial_request_id = financial_request_id;
|
|
19
|
+
this.file_url = file_url;
|
|
20
|
+
this.file_name = file_name;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.FinancialAttachments = FinancialAttachments;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], FinancialAttachments.prototype, "financial_request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], FinancialAttachments.prototype, "file_url", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], FinancialAttachments.prototype, "file_name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], FinancialAttachments.prototype, "file_type", void 0);
|
|
40
|
+
exports.FinancialAttachments = FinancialAttachments = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)({ name: 'financial_attachments' }),
|
|
42
|
+
__metadata("design:paramtypes", [Number, String, String])
|
|
43
|
+
], FinancialAttachments);
|
|
@@ -9,36 +9,31 @@ 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.FinancialChats = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
constructor(comment, rating, user_Id) {
|
|
15
|
+
let FinancialChats = class FinancialChats extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(financial_request_id, content, sender_user_id) {
|
|
18
17
|
super();
|
|
19
|
-
this.
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
this.financial_request_id = financial_request_id;
|
|
19
|
+
this.content = content;
|
|
20
|
+
this.sender_user_id = sender_user_id;
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
|
-
exports.
|
|
23
|
+
exports.FinancialChats = FinancialChats;
|
|
25
24
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], PortalFeedback.prototype, "comment", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({
|
|
31
|
-
type: "enum",
|
|
32
|
-
enum: feedbackModel_1.Rating,
|
|
33
|
-
nullable: true,
|
|
34
|
-
}),
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
35
26
|
__metadata("design:type", Number)
|
|
36
|
-
],
|
|
27
|
+
], FinancialChats.prototype, "financial_request_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], FinancialChats.prototype, "content", void 0);
|
|
37
32
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
39
34
|
__metadata("design:type", Number)
|
|
40
|
-
],
|
|
41
|
-
exports.
|
|
42
|
-
(0, typeorm_1.Entity)({ name: '
|
|
43
|
-
__metadata("design:paramtypes", [
|
|
44
|
-
],
|
|
35
|
+
], FinancialChats.prototype, "sender_user_id", void 0);
|
|
36
|
+
exports.FinancialChats = FinancialChats = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)({ name: 'financial_chats' }),
|
|
38
|
+
__metadata("design:paramtypes", [Number, String, Number])
|
|
39
|
+
], FinancialChats);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum FinancialRequestStatus {
|
|
3
|
+
DRAFT = "Draft",
|
|
4
|
+
SUBMITTED = "Submitted",
|
|
5
|
+
PENDING = "Pending",
|
|
6
|
+
IN_PROGRESS = "In Progress",
|
|
7
|
+
APPROVED = "Approved",
|
|
8
|
+
REJECTED = "Rejected",
|
|
9
|
+
COMPLETED = "Completed",
|
|
10
|
+
CANCELLED = "Cancelled"
|
|
11
|
+
}
|
|
12
|
+
export declare class FinancialRequests extends BaseModel {
|
|
13
|
+
user_id: number;
|
|
14
|
+
employee_id: string;
|
|
15
|
+
employee_name: string;
|
|
16
|
+
grade: string;
|
|
17
|
+
designation_id: number;
|
|
18
|
+
department_id: number;
|
|
19
|
+
email_address: string;
|
|
20
|
+
contact_number: string;
|
|
21
|
+
request_type_id: number;
|
|
22
|
+
request_date: Date;
|
|
23
|
+
request_status: FinancialRequestStatus;
|
|
24
|
+
request_close_date: Date;
|
|
25
|
+
remarks: string;
|
|
26
|
+
current_approval_level: number;
|
|
27
|
+
current_approver_id: number;
|
|
28
|
+
constructor(user_id: number, employee_id: string, employee_name: string, email_address: string, contact_number: string, request_type_id: number);
|
|
29
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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);
|
|
@@ -0,0 +1,8 @@
|
|
|
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,14 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/** *
|
|
3
|
-
@author
|
|
4
|
-
Amnet Digital
|
|
5
|
-
@date
|
|
6
|
-
2024-05-20
|
|
7
|
-
@Model
|
|
8
|
-
Role
|
|
9
|
-
@usage
|
|
10
|
-
Userrole Information will store
|
|
11
|
-
*/
|
|
12
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -19,36 +9,36 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
19
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
10
|
};
|
|
21
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
12
|
+
exports.FinancialSettings = void 0;
|
|
23
13
|
const typeorm_1 = require("typeorm");
|
|
24
14
|
const BaseModel_1 = require("./BaseModel");
|
|
25
|
-
let
|
|
26
|
-
constructor(
|
|
15
|
+
let FinancialSettings = class FinancialSettings extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(service_id, approval_level, approver_role_id) {
|
|
27
17
|
super();
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
18
|
+
this.service_id = service_id;
|
|
19
|
+
this.approval_level = approval_level;
|
|
20
|
+
this.approver_role_id = approver_role_id;
|
|
21
|
+
this.is_active = true;
|
|
32
22
|
}
|
|
33
23
|
};
|
|
34
|
-
exports.
|
|
24
|
+
exports.FinancialSettings = FinancialSettings;
|
|
35
25
|
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: '
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
37
27
|
__metadata("design:type", Number)
|
|
38
|
-
],
|
|
28
|
+
], FinancialSettings.prototype, "service_id", void 0);
|
|
39
29
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ type: '
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
41
31
|
__metadata("design:type", Number)
|
|
42
|
-
],
|
|
32
|
+
], FinancialSettings.prototype, "approval_level", void 0);
|
|
43
33
|
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)({ type: '
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
45
35
|
__metadata("design:type", Number)
|
|
46
|
-
],
|
|
36
|
+
], FinancialSettings.prototype, "approver_role_id", void 0);
|
|
47
37
|
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)({ type: '
|
|
49
|
-
__metadata("design:type",
|
|
50
|
-
],
|
|
51
|
-
exports.
|
|
52
|
-
(0, typeorm_1.Entity)({ name: '
|
|
53
|
-
__metadata("design:paramtypes", [Number, Number, Number
|
|
54
|
-
],
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], FinancialSettings.prototype, "is_active", void 0);
|
|
41
|
+
exports.FinancialSettings = FinancialSettings = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'financial_settings' }),
|
|
43
|
+
__metadata("design:paramtypes", [Number, Number, Number])
|
|
44
|
+
], FinancialSettings);
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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);
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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);
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|