@platform-modules/foreign-ministry 1.0.80 → 1.0.81
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 +2 -12
- package/dist/index.d.ts +13 -5
- package/dist/index.js +13 -5
- 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 +17 -0
- package/dist/models/FinancialApprovalsModel.js +63 -0
- package/dist/models/FinancialAttachmentsModel.d.ts +8 -0
- package/dist/models/FinancialAttachmentsModel.js +44 -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/FinancialSettingsModel.js +44 -0
- 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 +11 -0
- package/dist/models/RequestTypeMasterModel.js +55 -0
- package/dist/models/SalaryCertificateRequestsModel.d.ts +12 -0
- package/dist/models/SalaryCertificateRequestsModel.js +62 -0
- package/dist/models/role.d.ts +7 -1
- package/dist/models/role.js +2 -2
- package/dist/models/user.d.ts +1 -5
- package/dist/models/user.js +2 -22
- package/package.json +1 -1
- package/src/data-source.ts +2 -12
- package/src/index.ts +13 -5
- 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 +47 -0
- package/src/models/FinancialAttachmentsModel.ts +30 -0
- package/src/models/FinancialChatsModel.ts +22 -0
- package/src/models/FinancialRequestsModel.ts +81 -0
- package/src/models/FinancialSettingsModel.ts +30 -0
- package/src/models/FinancialWorkFlowModel.ts +46 -0
- package/src/models/PayslipRequestsModel.ts +26 -0
- package/src/models/ReimbursementRequestsModel.ts +58 -0
- package/src/models/RequestTypeMasterModel.ts +36 -0
- package/src/models/SalaryCertificateRequestsModel.ts +40 -0
- package/src/models/role.ts +7 -1
- package/src/models/user.ts +0 -21
- 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/NotificationModel.d.ts +0 -18
- package/dist/models/NotificationModel.js +0 -79
- 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 -19
- package/dist/models/userRolesModel.js +0 -59
- package/src/models/HolidaysModel.ts +0 -46
- package/src/models/NotificationModel.ts +0 -68
- package/src/models/PortalFeedbackModel.ts +0 -33
- package/src/models/roleRightsModel.ts +0 -31
- package/src/models/userRolesModel.ts +0 -42
package/.env
CHANGED
package/dist/data-source.js
CHANGED
|
@@ -49,11 +49,6 @@ const MessageReadStatusModel_1 = require("./models/MessageReadStatusModel");
|
|
|
49
49
|
const ShifttimesModel_1 = require("./models/ShifttimesModel");
|
|
50
50
|
const AttendanceModel_1 = require("./models/AttendanceModel");
|
|
51
51
|
const UserShiftModel_1 = require("./models/UserShiftModel");
|
|
52
|
-
const HolidaysModel_1 = require("./models/HolidaysModel");
|
|
53
|
-
const userRolesModel_1 = require("./models/userRolesModel");
|
|
54
|
-
const roleRightsModel_1 = require("./models/roleRightsModel");
|
|
55
|
-
const PortalFeedbackModel_1 = require("./models/PortalFeedbackModel");
|
|
56
|
-
const NotificationModel_1 = require("./models/NotificationModel");
|
|
57
52
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
58
53
|
type: 'postgres',
|
|
59
54
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -61,7 +56,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
61
56
|
username: process.env.DB_USER || 'postgres',
|
|
62
57
|
password: process.env.DB_PASS || 'postgres',
|
|
63
58
|
database: process.env.DB_NAME || 'common_models',
|
|
64
|
-
synchronize:
|
|
59
|
+
synchronize: false, // auto-create tables (disable in prod)
|
|
65
60
|
logging: false,
|
|
66
61
|
entities: [
|
|
67
62
|
user_1.User,
|
|
@@ -107,11 +102,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
107
102
|
MessageReadStatusModel_1.MessageReadStatus,
|
|
108
103
|
ShifttimesModel_1.ShiftDetails,
|
|
109
104
|
AttendanceModel_1.AttendanceDetails,
|
|
110
|
-
UserShiftModel_1.UserShift
|
|
111
|
-
HolidaysModel_1.Holidays,
|
|
112
|
-
userRolesModel_1.UserRole,
|
|
113
|
-
roleRightsModel_1.RoleRights,
|
|
114
|
-
PortalFeedbackModel_1.PortalFeedback,
|
|
115
|
-
NotificationModel_1.Notification
|
|
105
|
+
UserShiftModel_1.UserShift
|
|
116
106
|
],
|
|
117
107
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -42,8 +42,16 @@ export * from './models/ShifttimesModel';
|
|
|
42
42
|
export * from './models/AttendanceModel';
|
|
43
43
|
export * from './models/contactInfoModel';
|
|
44
44
|
export * from './models/UserShiftModel';
|
|
45
|
-
export * from './models/
|
|
46
|
-
export * from './models/
|
|
47
|
-
export * from './models/
|
|
48
|
-
export * from './models/
|
|
49
|
-
export * from './models/
|
|
45
|
+
export * from './models/FinancialRequestsModel';
|
|
46
|
+
export * from './models/PayslipRequestsModel';
|
|
47
|
+
export * from './models/SalaryCertificateRequestsModel';
|
|
48
|
+
export * from './models/AllowanceRequestsModel';
|
|
49
|
+
export * from './models/ReimbursementRequestsModel';
|
|
50
|
+
export * from './models/BankAccountChangeRequestsModel';
|
|
51
|
+
export * from './models/FinancialChatsModel';
|
|
52
|
+
export * from './models/FinancialApprovalsModel';
|
|
53
|
+
export * from './models/FinancialWorkFlowModel';
|
|
54
|
+
export * from './models/FinancialAttachmentsModel';
|
|
55
|
+
export * from './models/RequestTypeMasterModel';
|
|
56
|
+
export * from './models/FinancialSettingsModel';
|
|
57
|
+
export * from './models/AllowanceTypesModel';
|
package/dist/index.js
CHANGED
|
@@ -58,8 +58,16 @@ __exportStar(require("./models/ShifttimesModel"), exports);
|
|
|
58
58
|
__exportStar(require("./models/AttendanceModel"), exports);
|
|
59
59
|
__exportStar(require("./models/contactInfoModel"), exports);
|
|
60
60
|
__exportStar(require("./models/UserShiftModel"), exports);
|
|
61
|
-
__exportStar(require("./models/
|
|
62
|
-
__exportStar(require("./models/
|
|
63
|
-
__exportStar(require("./models/
|
|
64
|
-
__exportStar(require("./models/
|
|
65
|
-
__exportStar(require("./models/
|
|
61
|
+
__exportStar(require("./models/FinancialRequestsModel"), exports);
|
|
62
|
+
__exportStar(require("./models/PayslipRequestsModel"), exports);
|
|
63
|
+
__exportStar(require("./models/SalaryCertificateRequestsModel"), exports);
|
|
64
|
+
__exportStar(require("./models/AllowanceRequestsModel"), exports);
|
|
65
|
+
__exportStar(require("./models/ReimbursementRequestsModel"), exports);
|
|
66
|
+
__exportStar(require("./models/BankAccountChangeRequestsModel"), exports);
|
|
67
|
+
__exportStar(require("./models/FinancialChatsModel"), exports);
|
|
68
|
+
__exportStar(require("./models/FinancialApprovalsModel"), exports);
|
|
69
|
+
__exportStar(require("./models/FinancialWorkFlowModel"), exports);
|
|
70
|
+
__exportStar(require("./models/FinancialAttachmentsModel"), exports);
|
|
71
|
+
__exportStar(require("./models/RequestTypeMasterModel"), exports);
|
|
72
|
+
__exportStar(require("./models/FinancialSettingsModel"), exports);
|
|
73
|
+
__exportStar(require("./models/AllowanceTypesModel"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class AllowanceRequests extends BaseModel {
|
|
3
|
+
financial_request_id: number;
|
|
4
|
+
allowance_type_id: number;
|
|
5
|
+
allowance_amount: number;
|
|
6
|
+
approved_allowance_amount: number;
|
|
7
|
+
currency: string;
|
|
8
|
+
constructor(financial_request_id: number, allowance_type_id: number, allowance_amount: number, approved_allowance_amount: number, currency: string);
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
let AllowanceRequests = class AllowanceRequests extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(financial_request_id, allowance_type_id, allowance_amount, approved_allowance_amount, currency) {
|
|
17
|
+
super();
|
|
18
|
+
this.financial_request_id = financial_request_id;
|
|
19
|
+
this.allowance_type_id = allowance_type_id;
|
|
20
|
+
this.allowance_amount = allowance_amount;
|
|
21
|
+
this.approved_allowance_amount = approved_allowance_amount;
|
|
22
|
+
this.currency = currency;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.AllowanceRequests = AllowanceRequests;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'int', unique: true }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], AllowanceRequests.prototype, "financial_request_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], AllowanceRequests.prototype, "allowance_type_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], AllowanceRequests.prototype, "allowance_amount", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], AllowanceRequests.prototype, "approved_allowance_amount", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AllowanceRequests.prototype, "currency", void 0);
|
|
46
|
+
exports.AllowanceRequests = AllowanceRequests = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'allowance_requests' }),
|
|
48
|
+
__metadata("design:paramtypes", [Number, Number, Number, Number, String])
|
|
49
|
+
], 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);
|
|
@@ -35,7 +35,7 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], FMServices.prototype, "description", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ nullable:
|
|
38
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], FMServices.prototype, "logo_url", void 0);
|
|
41
41
|
exports.FMServices = FMServices = __decorate([
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
comment: string;
|
|
14
|
+
approval_status: FinancialApprovalStatus;
|
|
15
|
+
action_date: Date;
|
|
16
|
+
constructor(financial_request_id: number, level: number, approver_role_id: number, approval_status: FinancialApprovalStatus);
|
|
17
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
}
|
|
30
|
+
};
|
|
31
|
+
exports.FinancialApprovals = FinancialApprovals;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], FinancialApprovals.prototype, "financial_request_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], FinancialApprovals.prototype, "level", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], FinancialApprovals.prototype, "approver_user_id", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], FinancialApprovals.prototype, "approver_role_id", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], FinancialApprovals.prototype, "comment", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: FinancialApprovalStatus, default: FinancialApprovalStatus.PENDING }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], FinancialApprovals.prototype, "approval_status", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], FinancialApprovals.prototype, "action_date", void 0);
|
|
60
|
+
exports.FinancialApprovals = FinancialApprovals = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'financial_approvals' }),
|
|
62
|
+
__metadata("design:paramtypes", [Number, Number, Number, String])
|
|
63
|
+
], 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,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.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
|
+
this.file_type = 'PDF';
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.FinancialAttachments = FinancialAttachments;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], FinancialAttachments.prototype, "financial_request_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], FinancialAttachments.prototype, "file_url", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], FinancialAttachments.prototype, "file_name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], FinancialAttachments.prototype, "file_type", void 0);
|
|
41
|
+
exports.FinancialAttachments = FinancialAttachments = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)({ name: 'financial_attachments' }),
|
|
43
|
+
__metadata("design:paramtypes", [Number, String, String])
|
|
44
|
+
], 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: 'timestamp', 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: 'timestamp', 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
|
+
}
|