@platform-modules/foreign-ministry 1.1.47 → 1.1.49
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/dist/models/FinancialWorkFlowModel.d.ts +2 -1
- package/dist/models/FinancialWorkFlowModel.js +7 -2
- package/dist/models/MounringLeaveRelationModel.d.ts +2 -2
- package/dist/models/MounringLeaveRelationModel.js +4 -3
- package/dist/models/TelephoneDirectoryModel.d.ts +22 -0
- package/dist/models/TelephoneDirectoryModel.js +96 -0
- package/package.json +1 -1
- package/src/models/FinancialWorkFlowModel.ts +6 -1
- package/src/models/MounringLeaveRelationModel.ts +3 -2
- package/src/models/TelephoneDirectoryModel.ts +69 -0
- package/dist/models/LeaveApprovalDetailsModel.d.ts +0 -13
- package/dist/models/LeaveApprovalDetailsModel.js +0 -51
- package/dist/models/LeaveApprovalMatrixModel.d.ts +0 -7
- package/dist/models/LeaveApprovalMatrixModel.js +0 -40
- package/dist/models/UpdateAttendenceRequestModel.d.ts +0 -28
- package/dist/models/UpdateAttendenceRequestModel.js +0 -86
|
@@ -15,6 +15,7 @@ export declare class FinancialWorkFlow extends BaseModel {
|
|
|
15
15
|
content: string;
|
|
16
16
|
activity_date: Date;
|
|
17
17
|
approved_by_role_id: number;
|
|
18
|
+
step_order: number;
|
|
18
19
|
financialRequest?: FinancialRequests;
|
|
19
|
-
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string);
|
|
20
|
+
constructor(financial_request_id: number, status: FinancialWorkFlowStatus, approved_by_user_id: number, content: string, step_order: number);
|
|
20
21
|
}
|
|
@@ -22,7 +22,7 @@ var FinancialWorkFlowStatus;
|
|
|
22
22
|
FinancialWorkFlowStatus["FAILED"] = "Failed";
|
|
23
23
|
})(FinancialWorkFlowStatus || (exports.FinancialWorkFlowStatus = FinancialWorkFlowStatus = {}));
|
|
24
24
|
let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
25
|
-
constructor(financial_request_id, status, approved_by_user_id, content) {
|
|
25
|
+
constructor(financial_request_id, status, approved_by_user_id, content, step_order) {
|
|
26
26
|
super();
|
|
27
27
|
this.financial_request_id = financial_request_id;
|
|
28
28
|
this.status = status;
|
|
@@ -30,6 +30,7 @@ let FinancialWorkFlow = class FinancialWorkFlow extends BaseModel_1.BaseModel {
|
|
|
30
30
|
this.content = content;
|
|
31
31
|
this.financial_approval_id = 0;
|
|
32
32
|
this.activity_date = new Date();
|
|
33
|
+
this.step_order = step_order;
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
exports.FinancialWorkFlow = FinancialWorkFlow;
|
|
@@ -61,6 +62,10 @@ __decorate([
|
|
|
61
62
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
62
63
|
__metadata("design:type", Number)
|
|
63
64
|
], FinancialWorkFlow.prototype, "approved_by_role_id", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], FinancialWorkFlow.prototype, "step_order", void 0);
|
|
64
69
|
__decorate([
|
|
65
70
|
(0, typeorm_1.ManyToOne)(() => FinancialRequestsModel_1.FinancialRequests, fr => fr.workflows),
|
|
66
71
|
(0, typeorm_1.JoinColumn)({ name: 'financial_request_id' }),
|
|
@@ -68,5 +73,5 @@ __decorate([
|
|
|
68
73
|
], FinancialWorkFlow.prototype, "financialRequest", void 0);
|
|
69
74
|
exports.FinancialWorkFlow = FinancialWorkFlow = __decorate([
|
|
70
75
|
(0, typeorm_1.Entity)({ name: 'financial_work_flows' }),
|
|
71
|
-
__metadata("design:paramtypes", [Number, String, Number, String])
|
|
76
|
+
__metadata("design:paramtypes", [Number, String, Number, String, Number])
|
|
72
77
|
], FinancialWorkFlow);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
export declare class MounringLeaveRelations extends BaseModel {
|
|
3
3
|
mounring_leave_relation: string;
|
|
4
|
-
days_allowed: number
|
|
5
|
-
constructor(mounring_leave_relation: string);
|
|
4
|
+
days_allowed: number;
|
|
5
|
+
constructor(mounring_leave_relation: string, days_allowed: number);
|
|
6
6
|
}
|
|
@@ -13,9 +13,10 @@ exports.MounringLeaveRelations = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
15
|
let MounringLeaveRelations = class MounringLeaveRelations extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(mounring_leave_relation) {
|
|
16
|
+
constructor(mounring_leave_relation, days_allowed) {
|
|
17
17
|
super();
|
|
18
18
|
this.mounring_leave_relation = mounring_leave_relation;
|
|
19
|
+
this.days_allowed = days_allowed;
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
exports.MounringLeaveRelations = MounringLeaveRelations;
|
|
@@ -25,9 +26,9 @@ __decorate([
|
|
|
25
26
|
], MounringLeaveRelations.prototype, "mounring_leave_relation", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
28
|
-
__metadata("design:type",
|
|
29
|
+
__metadata("design:type", Number)
|
|
29
30
|
], MounringLeaveRelations.prototype, "days_allowed", void 0);
|
|
30
31
|
exports.MounringLeaveRelations = MounringLeaveRelations = __decorate([
|
|
31
32
|
(0, typeorm_1.Entity)({ name: 'mounring_leave_relations' }),
|
|
32
|
-
__metadata("design:paramtypes", [String])
|
|
33
|
+
__metadata("design:paramtypes", [String, Number])
|
|
33
34
|
], MounringLeaveRelations);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class TelephoneDirectory extends BaseModel {
|
|
3
|
+
id: number;
|
|
4
|
+
category: "FM" | "Embassy";
|
|
5
|
+
name: string;
|
|
6
|
+
position: string;
|
|
7
|
+
diplomatic_title: string;
|
|
8
|
+
embassy_name: string;
|
|
9
|
+
email: string;
|
|
10
|
+
contact_number: string;
|
|
11
|
+
extension_number: string;
|
|
12
|
+
fax_number: string;
|
|
13
|
+
location: string;
|
|
14
|
+
department_id: number;
|
|
15
|
+
employee_id: number | null;
|
|
16
|
+
street: string;
|
|
17
|
+
city: string;
|
|
18
|
+
state: string;
|
|
19
|
+
zip_code: string;
|
|
20
|
+
country: string;
|
|
21
|
+
photo_url: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.TelephoneDirectory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let TelephoneDirectory = class TelephoneDirectory extends BaseModel_1.BaseModel {
|
|
16
|
+
};
|
|
17
|
+
exports.TelephoneDirectory = TelephoneDirectory;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], TelephoneDirectory.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "enum", enum: ["FM", "Embassy"], nullable: false }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TelephoneDirectory.prototype, "category", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TelephoneDirectory.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TelephoneDirectory.prototype, "position", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TelephoneDirectory.prototype, "diplomatic_title", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], TelephoneDirectory.prototype, "embassy_name", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], TelephoneDirectory.prototype, "email", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], TelephoneDirectory.prototype, "contact_number", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], TelephoneDirectory.prototype, "extension_number", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], TelephoneDirectory.prototype, "fax_number", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], TelephoneDirectory.prototype, "location", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], TelephoneDirectory.prototype, "department_id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], TelephoneDirectory.prototype, "employee_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], TelephoneDirectory.prototype, "street", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], TelephoneDirectory.prototype, "city", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], TelephoneDirectory.prototype, "state", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 20, nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], TelephoneDirectory.prototype, "zip_code", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], TelephoneDirectory.prototype, "country", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], TelephoneDirectory.prototype, "photo_url", void 0);
|
|
94
|
+
exports.TelephoneDirectory = TelephoneDirectory = __decorate([
|
|
95
|
+
(0, typeorm_1.Entity)({ name: "telephone_directory" })
|
|
96
|
+
], TelephoneDirectory);
|
package/package.json
CHANGED
|
@@ -33,6 +33,9 @@ export class FinancialWorkFlow extends BaseModel {
|
|
|
33
33
|
@Column({ type: 'int', nullable: true })
|
|
34
34
|
approved_by_role_id: number;
|
|
35
35
|
|
|
36
|
+
@Column({ type: 'int', nullable: true })
|
|
37
|
+
step_order: number;
|
|
38
|
+
|
|
36
39
|
@ManyToOne(() => FinancialRequests, fr => fr.workflows)
|
|
37
40
|
@JoinColumn({ name: 'financial_request_id' })
|
|
38
41
|
financialRequest?: FinancialRequests;
|
|
@@ -41,7 +44,8 @@ export class FinancialWorkFlow extends BaseModel {
|
|
|
41
44
|
financial_request_id: number,
|
|
42
45
|
status: FinancialWorkFlowStatus,
|
|
43
46
|
approved_by_user_id: number,
|
|
44
|
-
content: string
|
|
47
|
+
content: string,
|
|
48
|
+
step_order:number
|
|
45
49
|
) {
|
|
46
50
|
super();
|
|
47
51
|
this.financial_request_id = financial_request_id;
|
|
@@ -50,6 +54,7 @@ export class FinancialWorkFlow extends BaseModel {
|
|
|
50
54
|
this.content = content;
|
|
51
55
|
this.financial_approval_id = 0;
|
|
52
56
|
this.activity_date = new Date();
|
|
57
|
+
this.step_order = step_order
|
|
53
58
|
}
|
|
54
59
|
}
|
|
55
60
|
|
|
@@ -8,10 +8,11 @@ export class MounringLeaveRelations extends BaseModel {
|
|
|
8
8
|
mounring_leave_relation: string;
|
|
9
9
|
|
|
10
10
|
@Column({ type: 'int', nullable: true })
|
|
11
|
-
days_allowed: number
|
|
11
|
+
days_allowed: number;
|
|
12
12
|
|
|
13
|
-
constructor(mounring_leave_relation: string) {
|
|
13
|
+
constructor(mounring_leave_relation: string, days_allowed: number) {
|
|
14
14
|
super();
|
|
15
15
|
this.mounring_leave_relation = mounring_leave_relation;
|
|
16
|
+
this.days_allowed = days_allowed;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: "telephone_directory" })
|
|
5
|
+
export class TelephoneDirectory extends BaseModel {
|
|
6
|
+
@PrimaryGeneratedColumn()
|
|
7
|
+
id: number;
|
|
8
|
+
|
|
9
|
+
// General Information
|
|
10
|
+
@Column({ type: "enum", enum: ["FM", "Embassy"], nullable: false })
|
|
11
|
+
category: "FM" | "Embassy"; // Mandatory - to differentiate FM and Embassy
|
|
12
|
+
|
|
13
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
14
|
+
name: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
17
|
+
position: string; // Position/Title
|
|
18
|
+
|
|
19
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
20
|
+
diplomatic_title: string; // Diplomatic Title
|
|
21
|
+
|
|
22
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
23
|
+
embassy_name: string; // Embassy name for M&C wise search (for Embassy category)
|
|
24
|
+
|
|
25
|
+
// Email & Contact Information
|
|
26
|
+
@Column({ type: "varchar", length: 255, nullable: false })
|
|
27
|
+
email: string; // Mandatory
|
|
28
|
+
|
|
29
|
+
@Column({ type: "varchar", length: 20, nullable: true })
|
|
30
|
+
contact_number: string; // Optional
|
|
31
|
+
|
|
32
|
+
@Column({ type: "varchar", length: 10, nullable: true })
|
|
33
|
+
extension_number: string; // Extension Number - can be generic or linked to employee
|
|
34
|
+
|
|
35
|
+
@Column({ type: "varchar", length: 20, nullable: true })
|
|
36
|
+
fax_number: string; // Optional
|
|
37
|
+
|
|
38
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
39
|
+
location: string; // Optional
|
|
40
|
+
|
|
41
|
+
// Department Information
|
|
42
|
+
@Column({ nullable: true })
|
|
43
|
+
department_id: number; // Reference to departments table
|
|
44
|
+
|
|
45
|
+
// Additional fields for employee profile linkage
|
|
46
|
+
@Column({ type: "int", nullable: true })
|
|
47
|
+
employee_id: number | null; // If extension is linked to employee profile
|
|
48
|
+
|
|
49
|
+
// Business Postal Address Information (Optional)
|
|
50
|
+
@Column({ type: "varchar", length: 255, nullable: true })
|
|
51
|
+
street: string;
|
|
52
|
+
|
|
53
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
54
|
+
city: string;
|
|
55
|
+
|
|
56
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
57
|
+
state: string;
|
|
58
|
+
|
|
59
|
+
@Column({ type: "varchar", length: 20, nullable: true })
|
|
60
|
+
zip_code: string;
|
|
61
|
+
|
|
62
|
+
@Column({ type: "varchar", length: 100, nullable: true })
|
|
63
|
+
country: string;
|
|
64
|
+
|
|
65
|
+
// Photo
|
|
66
|
+
@Column({ type: "varchar", length: 500, nullable: true })
|
|
67
|
+
photo_url: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ApprovalStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
APPROVED = "Approved",
|
|
5
|
-
REJECTED = "Rejected"
|
|
6
|
-
}
|
|
7
|
-
export declare class LeaveApprovalDetails extends BaseModel {
|
|
8
|
-
leave_request_id: number;
|
|
9
|
-
level: number;
|
|
10
|
-
approver_id: number;
|
|
11
|
-
approval_status: ApprovalStatus;
|
|
12
|
-
constructor(leave_request_id: number, approver_id: number, approval_status: ApprovalStatus, level: number);
|
|
13
|
-
}
|
|
@@ -1,51 +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.LeaveApprovalDetails = exports.ApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ApprovalStatus;
|
|
16
|
-
(function (ApprovalStatus) {
|
|
17
|
-
ApprovalStatus["PENDING"] = "Pending";
|
|
18
|
-
ApprovalStatus["APPROVED"] = "Approved";
|
|
19
|
-
ApprovalStatus["REJECTED"] = "Rejected";
|
|
20
|
-
})(ApprovalStatus || (exports.ApprovalStatus = ApprovalStatus = {}));
|
|
21
|
-
//This model is used to store the store the leave apporval details of the user for the leave request
|
|
22
|
-
let LeaveApprovalDetails = class LeaveApprovalDetails extends BaseModel_1.BaseModel {
|
|
23
|
-
constructor(leave_request_id, approver_id, approval_status, level) {
|
|
24
|
-
super();
|
|
25
|
-
this.leave_request_id = leave_request_id;
|
|
26
|
-
this.approver_id = approver_id;
|
|
27
|
-
this.approval_status = approval_status;
|
|
28
|
-
this.level = level;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.LeaveApprovalDetails = LeaveApprovalDetails;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], LeaveApprovalDetails.prototype, "leave_request_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], LeaveApprovalDetails.prototype, "level", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], LeaveApprovalDetails.prototype, "approver_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: ApprovalStatus, default: ApprovalStatus.PENDING, nullable: false }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], LeaveApprovalDetails.prototype, "approval_status", void 0);
|
|
48
|
-
exports.LeaveApprovalDetails = LeaveApprovalDetails = __decorate([
|
|
49
|
-
(0, typeorm_1.Entity)({ name: 'leave_approval_details' }),
|
|
50
|
-
__metadata("design:paramtypes", [Number, Number, String, Number])
|
|
51
|
-
], LeaveApprovalDetails);
|
|
@@ -1,40 +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.LeaveApprovalMatrix = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
//This model is used to store the store the leave apporval matrix(HOD, Manager, HR, Director) based on leave type along with the levels
|
|
16
|
-
let LeaveApprovalMatrix = class LeaveApprovalMatrix extends BaseModel_1.BaseModel {
|
|
17
|
-
constructor(leave_type, level, approval_matrix) {
|
|
18
|
-
super();
|
|
19
|
-
this.leave_type = leave_type;
|
|
20
|
-
this.level = level;
|
|
21
|
-
this.approval_matrix = approval_matrix;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.LeaveApprovalMatrix = LeaveApprovalMatrix;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], LeaveApprovalMatrix.prototype, "leave_type", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], LeaveApprovalMatrix.prototype, "level", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], LeaveApprovalMatrix.prototype, "approval_matrix", void 0);
|
|
37
|
-
exports.LeaveApprovalMatrix = LeaveApprovalMatrix = __decorate([
|
|
38
|
-
(0, typeorm_1.Entity)({ name: 'leave_approval_matrix' }),
|
|
39
|
-
__metadata("design:paramtypes", [Number, Number, String])
|
|
40
|
-
], LeaveApprovalMatrix);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum UpdateAttendenceStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
ASSIGNED = "Assigned",
|
|
5
|
-
IN_PROGRESS = "In Progress",
|
|
6
|
-
APPROVED = "Approved",
|
|
7
|
-
REJECTED = "Rejected"
|
|
8
|
-
}
|
|
9
|
-
export declare enum UpdateAttendenceReason {
|
|
10
|
-
MEETING = "Meeting",
|
|
11
|
-
EARLY_CHECKOUT = "Early Checkout",
|
|
12
|
-
SPECIAL_REASON = "Special Reason"
|
|
13
|
-
}
|
|
14
|
-
export declare class UpdateAttendenceRequests extends BaseModel {
|
|
15
|
-
req_user_department_id: number | null;
|
|
16
|
-
req_user_section_id: number | null;
|
|
17
|
-
service_id: number | null;
|
|
18
|
-
sub_service_id: number | null;
|
|
19
|
-
user_id: number;
|
|
20
|
-
from_date: string | null;
|
|
21
|
-
to_date: string | null;
|
|
22
|
-
from_time: string | null;
|
|
23
|
-
to_time: string | null;
|
|
24
|
-
reason: UpdateAttendenceReason;
|
|
25
|
-
comments: string | null;
|
|
26
|
-
status: UpdateAttendenceStatus;
|
|
27
|
-
workflow_execution_id: string | null;
|
|
28
|
-
}
|
|
@@ -1,86 +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.UpdateAttendenceRequests = exports.UpdateAttendenceReason = exports.UpdateAttendenceStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var UpdateAttendenceStatus;
|
|
16
|
-
(function (UpdateAttendenceStatus) {
|
|
17
|
-
UpdateAttendenceStatus["PENDING"] = "Pending";
|
|
18
|
-
UpdateAttendenceStatus["ASSIGNED"] = "Assigned";
|
|
19
|
-
UpdateAttendenceStatus["IN_PROGRESS"] = "In Progress";
|
|
20
|
-
UpdateAttendenceStatus["APPROVED"] = "Approved";
|
|
21
|
-
UpdateAttendenceStatus["REJECTED"] = "Rejected";
|
|
22
|
-
})(UpdateAttendenceStatus || (exports.UpdateAttendenceStatus = UpdateAttendenceStatus = {}));
|
|
23
|
-
var UpdateAttendenceReason;
|
|
24
|
-
(function (UpdateAttendenceReason) {
|
|
25
|
-
UpdateAttendenceReason["MEETING"] = "Meeting";
|
|
26
|
-
UpdateAttendenceReason["EARLY_CHECKOUT"] = "Early Checkout";
|
|
27
|
-
UpdateAttendenceReason["SPECIAL_REASON"] = "Special Reason";
|
|
28
|
-
})(UpdateAttendenceReason || (exports.UpdateAttendenceReason = UpdateAttendenceReason = {}));
|
|
29
|
-
let UpdateAttendenceRequests = class UpdateAttendenceRequests extends BaseModel_1.BaseModel {
|
|
30
|
-
};
|
|
31
|
-
exports.UpdateAttendenceRequests = UpdateAttendenceRequests;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], UpdateAttendenceRequests.prototype, "req_user_department_id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
38
|
-
__metadata("design:type", Object)
|
|
39
|
-
], UpdateAttendenceRequests.prototype, "req_user_section_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], UpdateAttendenceRequests.prototype, "service_id", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], UpdateAttendenceRequests.prototype, "sub_service_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], UpdateAttendenceRequests.prototype, "user_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], UpdateAttendenceRequests.prototype, "from_date", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], UpdateAttendenceRequests.prototype, "to_date", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], UpdateAttendenceRequests.prototype, "from_time", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], UpdateAttendenceRequests.prototype, "to_time", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendenceReason, nullable: false }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], UpdateAttendenceRequests.prototype, "reason", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], UpdateAttendenceRequests.prototype, "comments", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: UpdateAttendenceStatus, default: UpdateAttendenceStatus.PENDING, nullable: false }),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], UpdateAttendenceRequests.prototype, "status", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
82
|
-
__metadata("design:type", Object)
|
|
83
|
-
], UpdateAttendenceRequests.prototype, "workflow_execution_id", void 0);
|
|
84
|
-
exports.UpdateAttendenceRequests = UpdateAttendenceRequests = __decorate([
|
|
85
|
-
(0, typeorm_1.Entity)({ name: 'update_attendence_requests' })
|
|
86
|
-
], UpdateAttendenceRequests);
|