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