@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/.env
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
DB_HOST=localhost
|
|
2
|
-
DB_PORT=
|
|
2
|
+
DB_PORT=5433
|
|
3
3
|
DB_USER=postgres
|
|
4
|
-
DB_PASS=
|
|
4
|
+
DB_PASS=123
|
|
5
5
|
DB_NAME=FM
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
|
|
7
9
|
# DB_HOST=164.52.222.169
|
|
8
10
|
# DB_PORT=5432
|
|
9
11
|
# DB_USER=postgres_admin_user
|
|
10
12
|
# DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
11
|
-
# DB_NAME=FM
|
|
13
|
+
# DB_NAME=FM
|
package/dist/data-source.js
CHANGED
|
@@ -53,6 +53,24 @@ const HolidaysModel_1 = require("./models/HolidaysModel");
|
|
|
53
53
|
const userRolesModel_1 = require("./models/userRolesModel");
|
|
54
54
|
const roleRightsModel_1 = require("./models/roleRightsModel");
|
|
55
55
|
const PortalFeedbackModel_1 = require("./models/PortalFeedbackModel");
|
|
56
|
+
const NotificationModel_1 = require("./models/NotificationModel");
|
|
57
|
+
const FinancialRequestsModel_1 = require("./models/FinancialRequestsModel");
|
|
58
|
+
const FinancialApprovalsModel_1 = require("./models/FinancialApprovalsModel");
|
|
59
|
+
const FinancialSettingsModel_1 = require("./models/FinancialSettingsModel");
|
|
60
|
+
const PayslipRequestsModel_1 = require("./models/PayslipRequestsModel");
|
|
61
|
+
const SalaryCertificateRequestsModel_1 = require("./models/SalaryCertificateRequestsModel");
|
|
62
|
+
const AllowanceRequestsModel_1 = require("./models/AllowanceRequestsModel");
|
|
63
|
+
const ReimbursementRequestsModel_1 = require("./models/ReimbursementRequestsModel");
|
|
64
|
+
const BankAccountChangeRequestsModel_1 = require("./models/BankAccountChangeRequestsModel");
|
|
65
|
+
const FinancialChatsModel_1 = require("./models/FinancialChatsModel");
|
|
66
|
+
const FinancialWorkFlowModel_1 = require("./models/FinancialWorkFlowModel");
|
|
67
|
+
const FinancialAttachmentsModel_1 = require("./models/FinancialAttachmentsModel");
|
|
68
|
+
const RequestTypeMasterModel_1 = require("./models/RequestTypeMasterModel");
|
|
69
|
+
const WorkflowTask_1 = require("./models/WorkflowTask");
|
|
70
|
+
const WorkflowTaskNames_1 = require("./models/WorkflowTaskNames");
|
|
71
|
+
const WorkflowDefinitions_1 = require("./models/WorkflowDefinitions");
|
|
72
|
+
const WorkflowHierarchy_1 = require("./models/WorkflowHierarchy");
|
|
73
|
+
const importantLinksModel_1 = require("./models/importantLinksModel");
|
|
56
74
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
57
75
|
type: 'postgres',
|
|
58
76
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -110,6 +128,24 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
110
128
|
HolidaysModel_1.Holidays,
|
|
111
129
|
userRolesModel_1.UserRole,
|
|
112
130
|
roleRightsModel_1.RoleRights,
|
|
113
|
-
PortalFeedbackModel_1.PortalFeedback
|
|
131
|
+
PortalFeedbackModel_1.PortalFeedback,
|
|
132
|
+
NotificationModel_1.Notification,
|
|
133
|
+
FinancialRequestsModel_1.FinancialRequests,
|
|
134
|
+
FinancialApprovalsModel_1.FinancialApprovals,
|
|
135
|
+
FinancialSettingsModel_1.FinancialSettings,
|
|
136
|
+
PayslipRequestsModel_1.PayslipRequests,
|
|
137
|
+
SalaryCertificateRequestsModel_1.SalaryCertificateRequests,
|
|
138
|
+
AllowanceRequestsModel_1.AllowanceRequests,
|
|
139
|
+
ReimbursementRequestsModel_1.ReimbursementRequests,
|
|
140
|
+
BankAccountChangeRequestsModel_1.BankAccountChangeRequests,
|
|
141
|
+
FinancialChatsModel_1.FinancialChats,
|
|
142
|
+
FinancialWorkFlowModel_1.FinancialWorkFlow,
|
|
143
|
+
FinancialAttachmentsModel_1.FinancialAttachments,
|
|
144
|
+
RequestTypeMasterModel_1.RequestTypeMaster,
|
|
145
|
+
WorkflowTask_1.WorkflowTask,
|
|
146
|
+
WorkflowTaskNames_1.WorkflowTaskNames,
|
|
147
|
+
WorkflowDefinitions_1.WorkflowDefinitions,
|
|
148
|
+
WorkflowHierarchy_1.WorkflowHierarchy,
|
|
149
|
+
importantLinksModel_1.ImportantLinks,
|
|
114
150
|
],
|
|
115
151
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -46,3 +46,21 @@ export * from './models/HolidaysModel';
|
|
|
46
46
|
export * from './models/userRolesModel';
|
|
47
47
|
export * from './models/roleRightsModel';
|
|
48
48
|
export * from './models/PortalFeedbackModel';
|
|
49
|
+
export * from './models/NotificationModel';
|
|
50
|
+
export * from './models/FinancialRequestsModel';
|
|
51
|
+
export * from './models/FinancialApprovalsModel';
|
|
52
|
+
export * from './models/FinancialSettingsModel';
|
|
53
|
+
export * from './models/PayslipRequestsModel';
|
|
54
|
+
export * from './models/SalaryCertificateRequestsModel';
|
|
55
|
+
export * from './models/AllowanceRequestsModel';
|
|
56
|
+
export * from './models/ReimbursementRequestsModel';
|
|
57
|
+
export * from './models/BankAccountChangeRequestsModel';
|
|
58
|
+
export * from './models/FinancialChatsModel';
|
|
59
|
+
export * from './models/FinancialAttachmentsModel';
|
|
60
|
+
export * from './models/FinancialWorkFlowModel';
|
|
61
|
+
export * from './models/RequestTypeMasterModel';
|
|
62
|
+
export * from './models/WorkflowTask';
|
|
63
|
+
export * from './models/WorkflowTaskNames';
|
|
64
|
+
export * from './models/WorkflowDefinitions';
|
|
65
|
+
export * from './models/WorkflowHierarchy';
|
|
66
|
+
export * from './models/importantLinksModel';
|
package/dist/index.js
CHANGED
|
@@ -62,3 +62,21 @@ __exportStar(require("./models/HolidaysModel"), exports);
|
|
|
62
62
|
__exportStar(require("./models/userRolesModel"), exports);
|
|
63
63
|
__exportStar(require("./models/roleRightsModel"), exports);
|
|
64
64
|
__exportStar(require("./models/PortalFeedbackModel"), exports);
|
|
65
|
+
__exportStar(require("./models/NotificationModel"), exports);
|
|
66
|
+
__exportStar(require("./models/FinancialRequestsModel"), exports);
|
|
67
|
+
__exportStar(require("./models/FinancialApprovalsModel"), exports);
|
|
68
|
+
__exportStar(require("./models/FinancialSettingsModel"), exports);
|
|
69
|
+
__exportStar(require("./models/PayslipRequestsModel"), exports);
|
|
70
|
+
__exportStar(require("./models/SalaryCertificateRequestsModel"), exports);
|
|
71
|
+
__exportStar(require("./models/AllowanceRequestsModel"), exports);
|
|
72
|
+
__exportStar(require("./models/ReimbursementRequestsModel"), exports);
|
|
73
|
+
__exportStar(require("./models/BankAccountChangeRequestsModel"), exports);
|
|
74
|
+
__exportStar(require("./models/FinancialChatsModel"), exports);
|
|
75
|
+
__exportStar(require("./models/FinancialAttachmentsModel"), exports);
|
|
76
|
+
__exportStar(require("./models/FinancialWorkFlowModel"), exports);
|
|
77
|
+
__exportStar(require("./models/RequestTypeMasterModel"), exports);
|
|
78
|
+
__exportStar(require("./models/WorkflowTask"), exports);
|
|
79
|
+
__exportStar(require("./models/WorkflowTaskNames"), exports);
|
|
80
|
+
__exportStar(require("./models/WorkflowDefinitions"), exports);
|
|
81
|
+
__exportStar(require("./models/WorkflowHierarchy"), exports);
|
|
82
|
+
__exportStar(require("./models/importantLinksModel"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { FinancialRequests } from "./FinancialRequestsModel";
|
|
3
|
+
export declare class AllowanceRequests extends BaseModel {
|
|
4
|
+
financial_request_id: number;
|
|
5
|
+
allowance_type_id: number;
|
|
6
|
+
allowance_amount: number;
|
|
7
|
+
approved_allowance_amount: number;
|
|
8
|
+
currency: string;
|
|
9
|
+
contact_number: string;
|
|
10
|
+
description: string;
|
|
11
|
+
financialRequest?: FinancialRequests;
|
|
12
|
+
constructor(financial_request_id: number, allowance_type_id: number, allowance_amount: number, approved_allowance_amount: number, currency: string, contact_number: string, description: string);
|
|
13
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.AllowanceRequests = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
16
|
+
let AllowanceRequests = class AllowanceRequests extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(financial_request_id, allowance_type_id, allowance_amount, approved_allowance_amount, currency, contact_number, description) {
|
|
18
|
+
super();
|
|
19
|
+
this.financial_request_id = financial_request_id;
|
|
20
|
+
this.allowance_type_id = allowance_type_id;
|
|
21
|
+
this.allowance_amount = allowance_amount;
|
|
22
|
+
this.approved_allowance_amount = approved_allowance_amount;
|
|
23
|
+
this.currency = currency;
|
|
24
|
+
this.contact_number = contact_number;
|
|
25
|
+
this.description = description;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.AllowanceRequests = AllowanceRequests;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], AllowanceRequests.prototype, "financial_request_id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], AllowanceRequests.prototype, "allowance_type_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], AllowanceRequests.prototype, "allowance_amount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], AllowanceRequests.prototype, "approved_allowance_amount", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AllowanceRequests.prototype, "currency", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], AllowanceRequests.prototype, "contact_number", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AllowanceRequests.prototype, "description", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.OneToOne)('FinancialRequests', 'allowanceRequest'),
|
|
59
|
+
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
60
|
+
], AllowanceRequests.prototype, "financialRequest", void 0);
|
|
61
|
+
exports.AllowanceRequests = AllowanceRequests = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)({ name: 'allowance_requests' }),
|
|
63
|
+
__metadata("design:paramtypes", [Number, Number, Number, Number, String, String, String])
|
|
64
|
+
], AllowanceRequests);
|
|
@@ -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.AllowanceTypes = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let AllowanceTypes = class AllowanceTypes extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(allowance_code, allowance_name) {
|
|
17
|
+
super();
|
|
18
|
+
this.allowance_code = allowance_code;
|
|
19
|
+
this.allowance_name = allowance_name;
|
|
20
|
+
this.is_active = true;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.AllowanceTypes = AllowanceTypes;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], AllowanceTypes.prototype, "allowance_code", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AllowanceTypes.prototype, "allowance_name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], AllowanceTypes.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], AllowanceTypes.prototype, "is_active", void 0);
|
|
40
|
+
exports.AllowanceTypes = AllowanceTypes = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)({ name: 'allowance_types' }),
|
|
42
|
+
__metadata("design:paramtypes", [String, String])
|
|
43
|
+
], AllowanceTypes);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class BankAccountChangeRequests extends BaseModel {
|
|
3
|
+
financial_request_id: number;
|
|
4
|
+
old_bank_name: string;
|
|
5
|
+
old_account_number: string;
|
|
6
|
+
new_bank_name: string;
|
|
7
|
+
new_account_number: string;
|
|
8
|
+
new_account_name: string;
|
|
9
|
+
new_branch_ifsc_code: string;
|
|
10
|
+
reason_for_change: string;
|
|
11
|
+
constructor(financial_request_id: number, new_bank_name: string, new_account_number: string, new_account_name: string, new_branch_ifsc_code: string, reason_for_change: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.BankAccountChangeRequests = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let BankAccountChangeRequests = class BankAccountChangeRequests extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(financial_request_id, new_bank_name, new_account_number, new_account_name, new_branch_ifsc_code, reason_for_change) {
|
|
17
|
+
super();
|
|
18
|
+
this.financial_request_id = financial_request_id;
|
|
19
|
+
this.new_bank_name = new_bank_name;
|
|
20
|
+
this.new_account_number = new_account_number;
|
|
21
|
+
this.new_account_name = new_account_name;
|
|
22
|
+
this.new_branch_ifsc_code = new_branch_ifsc_code;
|
|
23
|
+
this.reason_for_change = reason_for_change;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.BankAccountChangeRequests = BankAccountChangeRequests;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], BankAccountChangeRequests.prototype, "financial_request_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], BankAccountChangeRequests.prototype, "old_bank_name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BankAccountChangeRequests.prototype, "old_account_number", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], BankAccountChangeRequests.prototype, "new_bank_name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50 }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], BankAccountChangeRequests.prototype, "new_account_number", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], BankAccountChangeRequests.prototype, "new_account_name", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], BankAccountChangeRequests.prototype, "new_branch_ifsc_code", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], BankAccountChangeRequests.prototype, "reason_for_change", void 0);
|
|
59
|
+
exports.BankAccountChangeRequests = BankAccountChangeRequests = __decorate([
|
|
60
|
+
(0, typeorm_1.Entity)({ name: 'bank_account_change_requests' }),
|
|
61
|
+
__metadata("design:paramtypes", [Number, String, String, String, String, String])
|
|
62
|
+
], BankAccountChangeRequests);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { FinancialRequests } from './FinancialRequestsModel';
|
|
3
|
+
export declare enum FinancialApprovalStatus {
|
|
4
|
+
PENDING = "Pending",
|
|
5
|
+
APPROVED = "Approved",
|
|
6
|
+
REJECTED = "Rejected",
|
|
7
|
+
SKIPPED = "Skipped"
|
|
8
|
+
}
|
|
9
|
+
export declare class FinancialApprovals extends BaseModel {
|
|
10
|
+
financial_request_id: number;
|
|
11
|
+
level: number;
|
|
12
|
+
approver_user_id: number | null;
|
|
13
|
+
approver_role_id: number;
|
|
14
|
+
comment: string | null;
|
|
15
|
+
approval_status: FinancialApprovalStatus;
|
|
16
|
+
action_date: Date;
|
|
17
|
+
department_id: number | null;
|
|
18
|
+
section_id: number | null;
|
|
19
|
+
approved_by: number | null;
|
|
20
|
+
financialRequest?: FinancialRequests;
|
|
21
|
+
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus, department_id: number | null, section_id: number | null, approved_by: number | null);
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
16
|
+
var FinancialApprovalStatus;
|
|
17
|
+
(function (FinancialApprovalStatus) {
|
|
18
|
+
FinancialApprovalStatus["PENDING"] = "Pending";
|
|
19
|
+
FinancialApprovalStatus["APPROVED"] = "Approved";
|
|
20
|
+
FinancialApprovalStatus["REJECTED"] = "Rejected";
|
|
21
|
+
FinancialApprovalStatus["SKIPPED"] = "Skipped";
|
|
22
|
+
})(FinancialApprovalStatus || (exports.FinancialApprovalStatus = FinancialApprovalStatus = {}));
|
|
23
|
+
let FinancialApprovals = class FinancialApprovals extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(financial_request_id, level, approver_role_id, approval_status, department_id, section_id, approved_by) {
|
|
25
|
+
super();
|
|
26
|
+
this.financial_request_id = financial_request_id;
|
|
27
|
+
this.level = level;
|
|
28
|
+
this.approver_role_id = approver_role_id;
|
|
29
|
+
this.approval_status = approval_status;
|
|
30
|
+
this.department_id = department_id;
|
|
31
|
+
this.section_id = section_id;
|
|
32
|
+
this.approved_by = approved_by;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.FinancialApprovals = FinancialApprovals;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], FinancialApprovals.prototype, "financial_request_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], FinancialApprovals.prototype, "level", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], FinancialApprovals.prototype, "approver_user_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], FinancialApprovals.prototype, "approver_role_id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], FinancialApprovals.prototype, "comment", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: FinancialApprovalStatus, default: FinancialApprovalStatus.PENDING }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], FinancialApprovals.prototype, "approval_status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], FinancialApprovals.prototype, "action_date", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
66
|
+
__metadata("design:type", Object)
|
|
67
|
+
], FinancialApprovals.prototype, "department_id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], FinancialApprovals.prototype, "section_id", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], FinancialApprovals.prototype, "approved_by", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.approvals),
|
|
78
|
+
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
79
|
+
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
80
|
+
], FinancialApprovals.prototype, "financialRequest", void 0);
|
|
81
|
+
exports.FinancialApprovals = FinancialApprovals = __decorate([
|
|
82
|
+
(0, typeorm_1.Entity)({ name: 'financial_approvals' }),
|
|
83
|
+
__metadata("design:paramtypes", [Number, Number, Number, String, Object, Object, Object])
|
|
84
|
+
], FinancialApprovals);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { FinancialRequests } from './FinancialRequestsModel';
|
|
3
|
+
export declare class FinancialAttachments extends BaseModel {
|
|
4
|
+
financial_request_id: number;
|
|
5
|
+
file_url: string;
|
|
6
|
+
file_name: string;
|
|
7
|
+
file_type: string;
|
|
8
|
+
financialRequest?: FinancialRequests;
|
|
9
|
+
constructor(financial_request_id: number, file_url: string, file_name: string);
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
16
|
+
let FinancialAttachments = class FinancialAttachments extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(financial_request_id, file_url, file_name) {
|
|
18
|
+
super();
|
|
19
|
+
this.financial_request_id = financial_request_id;
|
|
20
|
+
this.file_url = file_url;
|
|
21
|
+
this.file_name = file_name;
|
|
22
|
+
this.file_type = 'PDF';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.FinancialAttachments = FinancialAttachments;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], FinancialAttachments.prototype, "financial_request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], FinancialAttachments.prototype, "file_url", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], FinancialAttachments.prototype, "file_name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], FinancialAttachments.prototype, "file_type", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.attachments),
|
|
44
|
+
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
45
|
+
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
46
|
+
], FinancialAttachments.prototype, "financialRequest", void 0);
|
|
47
|
+
exports.FinancialAttachments = FinancialAttachments = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'financial_attachments' }),
|
|
49
|
+
__metadata("design:paramtypes", [Number, String, String])
|
|
50
|
+
], FinancialAttachments);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import { FinancialRequests } from './FinancialRequestsModel';
|
|
3
|
+
export declare class FinancialChats extends BaseModel {
|
|
4
|
+
financial_request_id: number;
|
|
5
|
+
content: string;
|
|
6
|
+
sender_user_id: number;
|
|
7
|
+
financialRequest?: FinancialRequests;
|
|
8
|
+
constructor(financial_request_id: number, content: string, sender_user_id: number);
|
|
9
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.FinancialChats = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
const FinancialRequestsModel_1 = require("./FinancialRequestsModel");
|
|
16
|
+
let FinancialChats = class FinancialChats extends BaseModel_1.BaseModel {
|
|
17
|
+
constructor(financial_request_id, content, sender_user_id) {
|
|
18
|
+
super();
|
|
19
|
+
this.financial_request_id = financial_request_id;
|
|
20
|
+
this.content = content;
|
|
21
|
+
this.sender_user_id = sender_user_id;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.FinancialChats = FinancialChats;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], FinancialChats.prototype, "financial_request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], FinancialChats.prototype, "content", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], FinancialChats.prototype, "sender_user_id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.chats),
|
|
39
|
+
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
40
|
+
__metadata("design:type", FinancialRequestsModel_1.FinancialRequests)
|
|
41
|
+
], FinancialChats.prototype, "financialRequest", void 0);
|
|
42
|
+
exports.FinancialChats = FinancialChats = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: 'financial_chats' }),
|
|
44
|
+
__metadata("design:paramtypes", [Number, String, Number])
|
|
45
|
+
], FinancialChats);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
import type { PayslipRequests } from './PayslipRequestsModel';
|
|
3
|
+
import type { SalaryCertificateRequests } from './SalaryCertificateRequestsModel';
|
|
4
|
+
import type { AllowanceRequests } from './AllowanceRequestsModel';
|
|
5
|
+
import type { ReimbursementRequests } from './ReimbursementRequestsModel';
|
|
6
|
+
import type { BankAccountChangeRequests } from './BankAccountChangeRequestsModel';
|
|
7
|
+
import type { FinancialChats } from './FinancialChatsModel';
|
|
8
|
+
import type { FinancialApprovals } from './FinancialApprovalsModel';
|
|
9
|
+
import type { FinancialWorkFlow } from './FinancialWorkFlowModel';
|
|
10
|
+
import type { FinancialAttachments } from './FinancialAttachmentsModel';
|
|
11
|
+
export declare enum FinancialRequestStatus {
|
|
12
|
+
DRAFT = "Draft",
|
|
13
|
+
SUBMITTED = "Submitted",
|
|
14
|
+
PENDING = "Pending",
|
|
15
|
+
IN_PROGRESS = "In Progress",
|
|
16
|
+
APPROVED = "Approved",
|
|
17
|
+
REJECTED = "Rejected",
|
|
18
|
+
COMPLETED = "Completed",
|
|
19
|
+
CANCELLED = "Cancelled"
|
|
20
|
+
}
|
|
21
|
+
export declare class FinancialRequests extends BaseModel {
|
|
22
|
+
user_id: number;
|
|
23
|
+
employee_id: string;
|
|
24
|
+
employee_name: string;
|
|
25
|
+
grade: string | null;
|
|
26
|
+
designation_id: number | null;
|
|
27
|
+
department_id: number | null;
|
|
28
|
+
email_address: string;
|
|
29
|
+
contact_number: string;
|
|
30
|
+
request_date: Date;
|
|
31
|
+
request_status: FinancialRequestStatus;
|
|
32
|
+
request_close_date: Date | null;
|
|
33
|
+
remarks: string | null;
|
|
34
|
+
current_approval_level: number | null;
|
|
35
|
+
current_approver_id: number | null;
|
|
36
|
+
service_id: number | null;
|
|
37
|
+
sub_service_id: number | null;
|
|
38
|
+
section_id: number | null;
|
|
39
|
+
reporting_manager: number | null;
|
|
40
|
+
workflow_execution_id: string | null;
|
|
41
|
+
payslipRequest?: PayslipRequests;
|
|
42
|
+
salaryCertificateRequest?: SalaryCertificateRequests;
|
|
43
|
+
allowanceRequest?: AllowanceRequests;
|
|
44
|
+
reimbursementRequest?: ReimbursementRequests;
|
|
45
|
+
bankAccountChangeRequest?: BankAccountChangeRequests;
|
|
46
|
+
chats?: FinancialChats[];
|
|
47
|
+
approvals?: FinancialApprovals[];
|
|
48
|
+
workflows?: FinancialWorkFlow[];
|
|
49
|
+
attachments?: FinancialAttachments[];
|
|
50
|
+
constructor(user_id: number, employee_id: string, employee_name: string, email_address: string, contact_number: string, service_id: number | null, sub_service_id: number | null, section_id: number | null, reporting_manager: number | null);
|
|
51
|
+
}
|