@platform-modules/foreign-ministry 1.0.90 → 1.0.92

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.
Files changed (50) hide show
  1. package/.env +7 -1
  2. package/dist/data-source.js +1 -27
  3. package/dist/index.d.ts +0 -13
  4. package/dist/index.js +0 -13
  5. package/dist/models/LeaveApprovalDetailsModel.d.ts +13 -0
  6. package/dist/models/LeaveApprovalDetailsModel.js +51 -0
  7. package/dist/models/LeaveApprovalMatrixModel.d.ts +7 -0
  8. package/dist/models/LeaveApprovalMatrixModel.js +40 -0
  9. package/dist/models/userRolesModel.d.ts +1 -2
  10. package/dist/models/userRolesModel.js +2 -7
  11. package/package.json +1 -1
  12. package/src/data-source.ts +10 -0
  13. package/src/index.ts +4 -0
  14. package/src/models/FinancialRequestsModel.ts +3 -10
  15. package/src/models/LeaveApprovalsModel.ts +10 -2
  16. package/src/models/LeaveRequestModel.ts +13 -1
  17. package/src/models/WorkflowDefinitions.ts +71 -0
  18. package/src/models/WorkflowHierarchy.ts +67 -0
  19. package/src/models/WorkflowTask.ts +26 -0
  20. package/src/models/WorkflowTaskNames.ts +31 -0
  21. package/dist/models/AllowanceRequestsModel.d.ts +0 -13
  22. package/dist/models/AllowanceRequestsModel.js +0 -64
  23. package/dist/models/AllowanceTypesModel.d.ts +0 -8
  24. package/dist/models/AllowanceTypesModel.js +0 -43
  25. package/dist/models/BankAccountChangeRequestsModel.d.ts +0 -12
  26. package/dist/models/BankAccountChangeRequestsModel.js +0 -62
  27. package/dist/models/FinancialApprovalsModel.d.ts +0 -22
  28. package/dist/models/FinancialApprovalsModel.js +0 -84
  29. package/dist/models/FinancialAttachmentsModel.d.ts +0 -10
  30. package/dist/models/FinancialAttachmentsModel.js +0 -50
  31. package/dist/models/FinancialChatsModel.d.ts +0 -9
  32. package/dist/models/FinancialChatsModel.js +0 -45
  33. package/dist/models/FinancialRequestsModel.d.ts +0 -53
  34. package/dist/models/FinancialRequestsModel.js +0 -164
  35. package/dist/models/FinancialSettingsModel.d.ts +0 -11
  36. package/dist/models/FinancialSettingsModel.js +0 -59
  37. package/dist/models/FinancialWorkFlowModel.d.ts +0 -18
  38. package/dist/models/FinancialWorkFlowModel.js +0 -67
  39. package/dist/models/NotificationModel.d.ts +0 -18
  40. package/dist/models/NotificationModel.js +0 -79
  41. package/dist/models/PayslipRequestsModel.d.ts +0 -10
  42. package/dist/models/PayslipRequestsModel.js +0 -50
  43. package/dist/models/ReimbursementRequestsModel.d.ts +0 -16
  44. package/dist/models/ReimbursementRequestsModel.js +0 -78
  45. package/dist/models/RequestTypeMasterModel.d.ts +0 -13
  46. package/dist/models/RequestTypeMasterModel.js +0 -59
  47. package/dist/models/SalaryCertificateRequestsModel.d.ts +0 -9
  48. package/dist/models/SalaryCertificateRequestsModel.js +0 -45
  49. package/dist/models/questionTagsModel.d.ts +0 -6
  50. package/dist/models/questionTagsModel.js +0 -34
@@ -1,64 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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);
@@ -1,8 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class AllowanceTypes extends BaseModel {
3
- allowance_code: string;
4
- allowance_name: string;
5
- description: string;
6
- is_active: boolean;
7
- constructor(allowance_code: string, allowance_name: string);
8
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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);
@@ -1,12 +0,0 @@
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
- }
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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);
@@ -1,22 +0,0 @@
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
- }
@@ -1,84 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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);
@@ -1,10 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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);
@@ -1,9 +0,0 @@
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
- }
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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);
@@ -1,53 +0,0 @@
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
- import type { RequestTypeMaster } from './RequestTypeMasterModel';
12
- export declare enum FinancialRequestStatus {
13
- DRAFT = "Draft",
14
- SUBMITTED = "Submitted",
15
- PENDING = "Pending",
16
- IN_PROGRESS = "In Progress",
17
- APPROVED = "Approved",
18
- REJECTED = "Rejected",
19
- COMPLETED = "Completed",
20
- CANCELLED = "Cancelled"
21
- }
22
- export declare class FinancialRequests extends BaseModel {
23
- user_id: number;
24
- employee_id: string;
25
- employee_name: string;
26
- grade: string | null;
27
- designation_id: number | null;
28
- department_id: number | null;
29
- email_address: string;
30
- contact_number: string;
31
- request_type_id: number;
32
- request_date: Date;
33
- request_status: FinancialRequestStatus;
34
- request_close_date: Date | null;
35
- remarks: string | null;
36
- current_approval_level: number | null;
37
- current_approver_id: number | null;
38
- service_id: number | null;
39
- sub_service_id: number | null;
40
- section_id: number | null;
41
- reporting_manager: number | null;
42
- payslipRequest?: PayslipRequests;
43
- salaryCertificateRequest?: SalaryCertificateRequests;
44
- allowanceRequest?: AllowanceRequests;
45
- reimbursementRequest?: ReimbursementRequests;
46
- bankAccountChangeRequest?: BankAccountChangeRequests;
47
- chats?: FinancialChats[];
48
- approvals?: FinancialApprovals[];
49
- workflows?: FinancialWorkFlow[];
50
- attachments?: FinancialAttachments[];
51
- requestType?: RequestTypeMaster;
52
- constructor(user_id: number, employee_id: string, employee_name: string, email_address: string, contact_number: string, request_type_id: number, service_id: number | null, sub_service_id: number | null, section_id: number | null, reporting_manager: number | null);
53
- }
@@ -1,164 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FinancialRequests = exports.FinancialRequestStatus = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const BaseModel_1 = require("./BaseModel");
15
- var FinancialRequestStatus;
16
- (function (FinancialRequestStatus) {
17
- FinancialRequestStatus["DRAFT"] = "Draft";
18
- FinancialRequestStatus["SUBMITTED"] = "Submitted";
19
- FinancialRequestStatus["PENDING"] = "Pending";
20
- FinancialRequestStatus["IN_PROGRESS"] = "In Progress";
21
- FinancialRequestStatus["APPROVED"] = "Approved";
22
- FinancialRequestStatus["REJECTED"] = "Rejected";
23
- FinancialRequestStatus["COMPLETED"] = "Completed";
24
- FinancialRequestStatus["CANCELLED"] = "Cancelled";
25
- })(FinancialRequestStatus || (exports.FinancialRequestStatus = FinancialRequestStatus = {}));
26
- let FinancialRequests = class FinancialRequests extends BaseModel_1.BaseModel {
27
- constructor(user_id, employee_id, employee_name, email_address, contact_number, request_type_id, service_id, sub_service_id, section_id, reporting_manager) {
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
- this.service_id = service_id;
38
- this.sub_service_id = sub_service_id;
39
- this.section_id = section_id;
40
- this.reporting_manager = reporting_manager;
41
- }
42
- };
43
- exports.FinancialRequests = FinancialRequests;
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: 'int' }),
46
- __metadata("design:type", Number)
47
- ], FinancialRequests.prototype, "user_id", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
50
- __metadata("design:type", String)
51
- ], FinancialRequests.prototype, "employee_id", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
54
- __metadata("design:type", String)
55
- ], FinancialRequests.prototype, "employee_name", void 0);
56
- __decorate([
57
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
58
- __metadata("design:type", Object)
59
- ], FinancialRequests.prototype, "grade", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
62
- __metadata("design:type", Object)
63
- ], FinancialRequests.prototype, "designation_id", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
66
- __metadata("design:type", Object)
67
- ], FinancialRequests.prototype, "department_id", void 0);
68
- __decorate([
69
- (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
70
- __metadata("design:type", String)
71
- ], FinancialRequests.prototype, "email_address", void 0);
72
- __decorate([
73
- (0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
74
- __metadata("design:type", String)
75
- ], FinancialRequests.prototype, "contact_number", void 0);
76
- __decorate([
77
- (0, typeorm_1.Column)({ type: 'int' }),
78
- __metadata("design:type", Number)
79
- ], FinancialRequests.prototype, "request_type_id", void 0);
80
- __decorate([
81
- (0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
82
- __metadata("design:type", Date)
83
- ], FinancialRequests.prototype, "request_date", void 0);
84
- __decorate([
85
- (0, typeorm_1.Column)({ type: 'enum', enum: FinancialRequestStatus, default: FinancialRequestStatus.PENDING }),
86
- __metadata("design:type", String)
87
- ], FinancialRequests.prototype, "request_status", void 0);
88
- __decorate([
89
- (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
90
- __metadata("design:type", Object)
91
- ], FinancialRequests.prototype, "request_close_date", void 0);
92
- __decorate([
93
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
94
- __metadata("design:type", Object)
95
- ], FinancialRequests.prototype, "remarks", void 0);
96
- __decorate([
97
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
98
- __metadata("design:type", Object)
99
- ], FinancialRequests.prototype, "current_approval_level", void 0);
100
- __decorate([
101
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
102
- __metadata("design:type", Object)
103
- ], FinancialRequests.prototype, "current_approver_id", void 0);
104
- __decorate([
105
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
106
- __metadata("design:type", Object)
107
- ], FinancialRequests.prototype, "service_id", void 0);
108
- __decorate([
109
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
110
- __metadata("design:type", Object)
111
- ], FinancialRequests.prototype, "sub_service_id", void 0);
112
- __decorate([
113
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
114
- __metadata("design:type", Object)
115
- ], FinancialRequests.prototype, "section_id", void 0);
116
- __decorate([
117
- (0, typeorm_1.Column)({ type: 'int', nullable: true }),
118
- __metadata("design:type", Object)
119
- ], FinancialRequests.prototype, "reporting_manager", void 0);
120
- __decorate([
121
- (0, typeorm_1.OneToOne)('PayslipRequests', 'financialRequest', { nullable: true }),
122
- __metadata("design:type", Function)
123
- ], FinancialRequests.prototype, "payslipRequest", void 0);
124
- __decorate([
125
- (0, typeorm_1.OneToOne)('SalaryCertificateRequests', 'financialRequest', { nullable: true }),
126
- __metadata("design:type", Function)
127
- ], FinancialRequests.prototype, "salaryCertificateRequest", void 0);
128
- __decorate([
129
- (0, typeorm_1.OneToOne)('AllowanceRequests', 'financialRequest', { nullable: true }),
130
- __metadata("design:type", Function)
131
- ], FinancialRequests.prototype, "allowanceRequest", void 0);
132
- __decorate([
133
- (0, typeorm_1.OneToOne)('ReimbursementRequests', 'financialRequest', { nullable: true }),
134
- __metadata("design:type", Function)
135
- ], FinancialRequests.prototype, "reimbursementRequest", void 0);
136
- __decorate([
137
- (0, typeorm_1.OneToOne)('BankAccountChangeRequests', 'financialRequest', { nullable: true }),
138
- __metadata("design:type", Function)
139
- ], FinancialRequests.prototype, "bankAccountChangeRequest", void 0);
140
- __decorate([
141
- (0, typeorm_1.OneToMany)('FinancialChats', 'financialRequest'),
142
- __metadata("design:type", Array)
143
- ], FinancialRequests.prototype, "chats", void 0);
144
- __decorate([
145
- (0, typeorm_1.OneToMany)('FinancialApprovals', 'financialRequest'),
146
- __metadata("design:type", Array)
147
- ], FinancialRequests.prototype, "approvals", void 0);
148
- __decorate([
149
- (0, typeorm_1.OneToMany)('FinancialWorkFlow', 'financialRequest'),
150
- __metadata("design:type", Array)
151
- ], FinancialRequests.prototype, "workflows", void 0);
152
- __decorate([
153
- (0, typeorm_1.OneToMany)('FinancialAttachments', 'financialRequest'),
154
- __metadata("design:type", Array)
155
- ], FinancialRequests.prototype, "attachments", void 0);
156
- __decorate([
157
- (0, typeorm_1.ManyToOne)('RequestTypeMaster'),
158
- (0, typeorm_1.JoinColumn)({ name: 'request_type_id' }),
159
- __metadata("design:type", Function)
160
- ], FinancialRequests.prototype, "requestType", void 0);
161
- exports.FinancialRequests = FinancialRequests = __decorate([
162
- (0, typeorm_1.Entity)({ name: 'financial_requests' }),
163
- __metadata("design:paramtypes", [Number, String, String, String, String, Number, Object, Object, Object, Object])
164
- ], FinancialRequests);
@@ -1,11 +0,0 @@
1
- import { BaseModel } from './BaseModel';
2
- export declare class FinancialSettings extends BaseModel {
3
- service_id: number;
4
- approval_level: number;
5
- approver_role_id: number;
6
- is_active: boolean;
7
- sub_service_id: number;
8
- department_id: number;
9
- section_id: number;
10
- constructor(service_id: number, approval_level: number, approver_role_id: number, sub_service_id: number, department_id: number, section_id: number);
11
- }