@platform-modules/foreign-ministry 1.2.26 → 1.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +2 -2
- package/dist/data-source.js +2 -10
- package/dist/index.d.ts +1 -19
- package/dist/index.js +2 -28
- package/dist/models/FinancialGradeModel.d.ts +1 -3
- package/dist/models/FinancialGradeModel.js +2 -12
- package/dist/models/LeaveApprovalDetailsModel.d.ts +13 -0
- package/dist/models/LeaveApprovalDetailsModel.js +51 -0
- package/dist/models/LeaveApprovalMatrixModel.d.ts +7 -0
- package/dist/models/LeaveApprovalMatrixModel.js +40 -0
- package/dist/models/UpdateAttendanceAttachmentModel.d.ts +11 -0
- package/dist/models/UpdateAttendanceAttachmentModel.js +52 -0
- package/dist/models/UpdateAttendanceChatModel.d.ts +3 -0
- package/dist/models/UpdateAttendanceChatModel.js +9 -0
- package/dist/models/UpdateAttendenceRequestModel.d.ts +28 -0
- package/dist/models/UpdateAttendenceRequestModel.js +86 -0
- package/package.json +1 -1
- package/src/data-source.ts +3 -10
- package/src/index.ts +1 -20
- package/src/models/FinancialGradeModel.ts +1 -11
- package/src/models/LeaveConfigModel.ts +71 -71
- package/src/models/UpdateAttendanceAttachmentModel.ts +31 -0
- package/src/models/UpdateAttendanceChatModel.ts +7 -1
- package/dist/models/EmployeeCardApprovalsModel.d.ts +0 -31
- package/dist/models/EmployeeCardApprovalsModel.js +0 -100
- package/dist/models/EmployeeCardAttachmentsModel.d.ts +0 -17
- package/dist/models/EmployeeCardAttachmentsModel.js +0 -69
- package/dist/models/EmployeeCardChatsModel.d.ts +0 -19
- package/dist/models/EmployeeCardChatsModel.js +0 -79
- package/dist/models/EmployeeCardRequestsModel.d.ts +0 -40
- package/dist/models/EmployeeCardRequestsModel.js +0 -126
- package/dist/models/EmployeeCardWorkFlowModel.d.ts +0 -34
- package/dist/models/EmployeeCardWorkFlowModel.js +0 -103
- package/dist/models/MissionTravelApprovalModel.d.ts +0 -25
- package/dist/models/MissionTravelApprovalModel.js +0 -106
- package/dist/models/MissionTravelAttachmentModel.d.ts +0 -13
- package/dist/models/MissionTravelAttachmentModel.js +0 -69
- package/dist/models/MissionTravelChatModel.d.ts +0 -12
- package/dist/models/MissionTravelChatModel.js +0 -64
- package/dist/models/MissionTravelClassConfigModel.d.ts +0 -10
- package/dist/models/MissionTravelClassConfigModel.js +0 -50
- package/dist/models/MissionTravelCostModel.d.ts +0 -14
- package/dist/models/MissionTravelCostModel.js +0 -74
- package/dist/models/MissionTravelPerdiemModel.d.ts +0 -10
- package/dist/models/MissionTravelPerdiemModel.js +0 -54
- package/dist/models/MissionTravelPersonModel.d.ts +0 -26
- package/dist/models/MissionTravelPersonModel.js +0 -115
- package/dist/models/MissionTravelRequestModel.d.ts +0 -36
- package/dist/models/MissionTravelRequestModel.js +0 -118
- package/dist/models/MissionTravelWorkflowModel.d.ts +0 -19
- package/dist/models/MissionTravelWorkflowModel.js +0 -80
- package/dist/models/TravelClassEnum.d.ts +0 -5
- package/dist/models/TravelClassEnum.js +0 -9
- package/src/models/EmployeeCardApprovalsModel.ts +0 -87
- package/src/models/EmployeeCardAttachmentsModel.ts +0 -56
- package/src/models/EmployeeCardChatsModel.ts +0 -66
- package/src/models/EmployeeCardRequestsModel.ts +0 -115
- package/src/models/EmployeeCardWorkFlowModel.ts +0 -90
- package/src/models/MissionTravelApprovalModel.ts +0 -94
- package/src/models/MissionTravelAttachmentModel.ts +0 -56
- package/src/models/MissionTravelChatModel.ts +0 -52
- package/src/models/MissionTravelCostModel.ts +0 -61
- package/src/models/MissionTravelPersonModel.ts +0 -105
- package/src/models/MissionTravelRequestModel.ts +0 -107
- package/src/models/MissionTravelWorkflowModel.ts +0 -55
- package/src/models/TravelClassEnum.ts +0 -6
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum enumFrequency {
|
|
5
|
-
Monthly = 'Monthly',
|
|
6
|
-
Yearly = 'Yearly',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
-
@Entity({ name: 'leave_configuration' })
|
|
11
|
-
export class LeaveConfiguration extends BaseModel {
|
|
12
|
-
|
|
13
|
-
@Column({ type: 'varchar', nullable: true })
|
|
14
|
-
category: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: 'int', nullable: true })
|
|
17
|
-
MandC_id: number;
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'int', nullable: true })
|
|
20
|
-
leave_type_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'varchar', nullable: true })
|
|
23
|
-
frequency: enumFrequency;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'varchar', nullable: true })
|
|
26
|
-
region: string;
|
|
27
|
-
|
|
28
|
-
@Column({ type: 'varchar', nullable: true })
|
|
29
|
-
country: string;
|
|
30
|
-
|
|
31
|
-
@Column({ type: 'varchar', nullable: true })
|
|
32
|
-
location: string;
|
|
33
|
-
|
|
34
|
-
@Column({ nullable: true, default: false })
|
|
35
|
-
is_carryforward: boolean;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
-
carryforward_limit: number;
|
|
39
|
-
|
|
40
|
-
@Column({ type: 'date', nullable: true })
|
|
41
|
-
from_date: Date;
|
|
42
|
-
|
|
43
|
-
@Column({ type: 'date', nullable: true })
|
|
44
|
-
to_date: Date;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'varchar', nullable: true })
|
|
47
|
-
reason: string;
|
|
48
|
-
|
|
49
|
-
@Column({ type: 'int', nullable: true })
|
|
50
|
-
emergency_balance_days: number | null;
|
|
51
|
-
|
|
52
|
-
@Column({ type: 'date', nullable: true })
|
|
53
|
-
last_credited: Date | null;
|
|
54
|
-
|
|
55
|
-
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
56
|
-
super();
|
|
57
|
-
this.category = category;
|
|
58
|
-
this.MandC_id = MandC_id;
|
|
59
|
-
this.leave_type_id = leave_type_id;
|
|
60
|
-
this.frequency = frequency;
|
|
61
|
-
this.region = region;
|
|
62
|
-
this.country = country;
|
|
63
|
-
this.location = location;
|
|
64
|
-
this.is_carryforward = is_carryforward;
|
|
65
|
-
this.carryforward_limit = carryforward_limit;
|
|
66
|
-
this.from_date = from_date;
|
|
67
|
-
this.to_date = to_date;
|
|
68
|
-
this.reason = reason;
|
|
69
|
-
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
-
this.last_credited = last_credited ?? null;
|
|
71
|
-
}
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
export enum enumFrequency {
|
|
5
|
+
Monthly = 'Monthly',
|
|
6
|
+
Yearly = 'Yearly',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//This model is used to store the Financial Grade declaration on the Admin Side
|
|
10
|
+
@Entity({ name: 'leave_configuration' })
|
|
11
|
+
export class LeaveConfiguration extends BaseModel {
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'varchar', nullable: true })
|
|
14
|
+
category: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'int', nullable: true })
|
|
17
|
+
MandC_id: number;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
leave_type_id: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', nullable: true })
|
|
23
|
+
frequency: enumFrequency;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'varchar', nullable: true })
|
|
26
|
+
region: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'varchar', nullable: true })
|
|
29
|
+
country: string;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', nullable: true })
|
|
32
|
+
location: string;
|
|
33
|
+
|
|
34
|
+
@Column({ nullable: true, default: false })
|
|
35
|
+
is_carryforward: boolean;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'int', nullable: true, default: 0 })
|
|
38
|
+
carryforward_limit: number;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'date', nullable: true })
|
|
41
|
+
from_date: Date;
|
|
42
|
+
|
|
43
|
+
@Column({ type: 'date', nullable: true })
|
|
44
|
+
to_date: Date;
|
|
45
|
+
|
|
46
|
+
@Column({ type: 'varchar', nullable: true })
|
|
47
|
+
reason: string;
|
|
48
|
+
|
|
49
|
+
@Column({ type: 'int', nullable: true })
|
|
50
|
+
emergency_balance_days: number | null;
|
|
51
|
+
|
|
52
|
+
@Column({ type: 'date', nullable: true })
|
|
53
|
+
last_credited: Date | null;
|
|
54
|
+
|
|
55
|
+
constructor(category: string, MandC_id: number, leave_type_id: number, frequency: enumFrequency, region: string, country: string, location: string, is_carryforward: boolean, carryforward_limit: number, from_date: Date, to_date: Date, reason: string, emergency_balance_days?: number|null, last_credited?: Date|null) {
|
|
56
|
+
super();
|
|
57
|
+
this.category = category;
|
|
58
|
+
this.MandC_id = MandC_id;
|
|
59
|
+
this.leave_type_id = leave_type_id;
|
|
60
|
+
this.frequency = frequency;
|
|
61
|
+
this.region = region;
|
|
62
|
+
this.country = country;
|
|
63
|
+
this.location = location;
|
|
64
|
+
this.is_carryforward = is_carryforward;
|
|
65
|
+
this.carryforward_limit = carryforward_limit;
|
|
66
|
+
this.from_date = from_date;
|
|
67
|
+
this.to_date = to_date;
|
|
68
|
+
this.reason = reason;
|
|
69
|
+
this.emergency_balance_days = emergency_balance_days ?? null;
|
|
70
|
+
this.last_credited = last_credited ?? null;
|
|
71
|
+
}
|
|
72
72
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'update_attendance_attachments' })
|
|
5
|
+
export class UpdateAttendanceRequestAttachment extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'integer', nullable: false })
|
|
8
|
+
request_id: number;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'integer', nullable: true })
|
|
11
|
+
service_id: number | null;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'integer', nullable: true })
|
|
14
|
+
sub_service_id: number | null;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 500, nullable: false })
|
|
17
|
+
file_url: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'varchar', length: 255, nullable: true })
|
|
20
|
+
file_name: string;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 100, nullable: true })
|
|
23
|
+
file_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'bigint', nullable: true })
|
|
26
|
+
file_size: number | null;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
chat_id: number | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Column, Entity } from "typeorm";
|
|
2
2
|
import { BaseModel } from './BaseModel';
|
|
3
|
+
import { UpdateAttendanceApprovalStatus } from './UpdateAttendanceApprovalModel';
|
|
3
4
|
|
|
4
5
|
export enum UpdateAttendanceMessageType {
|
|
5
6
|
TEXT = "text",
|
|
@@ -24,12 +25,17 @@ export class UpdateAttendanceRequestChat extends BaseModel {
|
|
|
24
25
|
@Column({ type: 'integer', nullable: false })
|
|
25
26
|
user_id: number;
|
|
26
27
|
|
|
28
|
+
@Column({ type: 'integer', nullable: true })
|
|
29
|
+
role_id: number;
|
|
30
|
+
|
|
27
31
|
@Column({ type: 'text', nullable: false })
|
|
28
32
|
message: string;
|
|
29
33
|
|
|
30
|
-
|
|
31
34
|
@Column({ type: 'enum', enum: UpdateAttendanceMessageType, default: UpdateAttendanceMessageType.TEXT, nullable: false })
|
|
32
35
|
messageType: UpdateAttendanceMessageType;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'text', nullable: true })
|
|
38
|
+
status: UpdateAttendanceApprovalStatus;
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
/**
|
|
3
|
-
* Approval Status Enum
|
|
4
|
-
*/
|
|
5
|
-
export declare enum EmployeeCardApprovalStatus {
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected",
|
|
9
|
-
IN_PROGRESS = "In Progress",
|
|
10
|
-
CANCELLED = "Cancelled"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Employee Card Approval Details Table
|
|
14
|
-
* Stores approval information for each level of the workflow
|
|
15
|
-
* Supports workflow: Employee → Department Admin Office → US (if Special) → Security
|
|
16
|
-
*/
|
|
17
|
-
export declare class EmployeeCardApprovalDetails extends BaseModel {
|
|
18
|
-
employee_card_request_id: number;
|
|
19
|
-
level: number;
|
|
20
|
-
approver_user_id: number | null;
|
|
21
|
-
approver_role_id: number | null;
|
|
22
|
-
delegate_user_id: number | null;
|
|
23
|
-
approved_by: number | null;
|
|
24
|
-
department_id: number | null;
|
|
25
|
-
section_id: number | null;
|
|
26
|
-
comment: string | null;
|
|
27
|
-
approval_status: EmployeeCardApprovalStatus;
|
|
28
|
-
is_allowed: boolean;
|
|
29
|
-
access_type: string | null;
|
|
30
|
-
constructor(employee_card_request_id: number, level: number, approver_user_id: number | null, approver_role_id: number | null, delegate_user_id: number | null, approved_by: number | null, department_id: number | null, section_id: number | null, comment: string | null, approval_status: EmployeeCardApprovalStatus, is_allowed: boolean, access_type: string | null);
|
|
31
|
-
}
|
|
@@ -1,100 +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.EmployeeCardApprovalDetails = exports.EmployeeCardApprovalStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
/**
|
|
16
|
-
* Approval Status Enum
|
|
17
|
-
*/
|
|
18
|
-
var EmployeeCardApprovalStatus;
|
|
19
|
-
(function (EmployeeCardApprovalStatus) {
|
|
20
|
-
EmployeeCardApprovalStatus["PENDING"] = "Pending";
|
|
21
|
-
EmployeeCardApprovalStatus["APPROVED"] = "Approved";
|
|
22
|
-
EmployeeCardApprovalStatus["REJECTED"] = "Rejected";
|
|
23
|
-
EmployeeCardApprovalStatus["IN_PROGRESS"] = "In Progress";
|
|
24
|
-
EmployeeCardApprovalStatus["CANCELLED"] = "Cancelled";
|
|
25
|
-
})(EmployeeCardApprovalStatus || (exports.EmployeeCardApprovalStatus = EmployeeCardApprovalStatus = {}));
|
|
26
|
-
/**
|
|
27
|
-
* Employee Card Approval Details Table
|
|
28
|
-
* Stores approval information for each level of the workflow
|
|
29
|
-
* Supports workflow: Employee → Department Admin Office → US (if Special) → Security
|
|
30
|
-
*/
|
|
31
|
-
let EmployeeCardApprovalDetails = class EmployeeCardApprovalDetails extends BaseModel_1.BaseModel {
|
|
32
|
-
constructor(employee_card_request_id, level, approver_user_id, approver_role_id, delegate_user_id, approved_by, department_id, section_id, comment, approval_status, is_allowed, access_type) {
|
|
33
|
-
super();
|
|
34
|
-
this.employee_card_request_id = employee_card_request_id;
|
|
35
|
-
this.level = level;
|
|
36
|
-
this.approver_user_id = approver_user_id;
|
|
37
|
-
this.approver_role_id = approver_role_id;
|
|
38
|
-
this.delegate_user_id = delegate_user_id;
|
|
39
|
-
this.approved_by = approved_by;
|
|
40
|
-
this.department_id = department_id;
|
|
41
|
-
this.section_id = section_id;
|
|
42
|
-
this.comment = comment;
|
|
43
|
-
this.approval_status = approval_status;
|
|
44
|
-
this.is_allowed = is_allowed;
|
|
45
|
-
this.access_type = access_type;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.EmployeeCardApprovalDetails = EmployeeCardApprovalDetails;
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], EmployeeCardApprovalDetails.prototype, "employee_card_request_id", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], EmployeeCardApprovalDetails.prototype, "level", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], EmployeeCardApprovalDetails.prototype, "approver_user_id", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], EmployeeCardApprovalDetails.prototype, "approver_role_id", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], EmployeeCardApprovalDetails.prototype, "delegate_user_id", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], EmployeeCardApprovalDetails.prototype, "approved_by", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], EmployeeCardApprovalDetails.prototype, "department_id", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
79
|
-
__metadata("design:type", Object)
|
|
80
|
-
], EmployeeCardApprovalDetails.prototype, "section_id", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
83
|
-
__metadata("design:type", Object)
|
|
84
|
-
], EmployeeCardApprovalDetails.prototype, "comment", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: EmployeeCardApprovalStatus, default: EmployeeCardApprovalStatus.PENDING, nullable: false }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], EmployeeCardApprovalDetails.prototype, "approval_status", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: true, nullable: false }),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
92
|
-
], EmployeeCardApprovalDetails.prototype, "is_allowed", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
95
|
-
__metadata("design:type", Object)
|
|
96
|
-
], EmployeeCardApprovalDetails.prototype, "access_type", void 0);
|
|
97
|
-
exports.EmployeeCardApprovalDetails = EmployeeCardApprovalDetails = __decorate([
|
|
98
|
-
(0, typeorm_1.Entity)({ name: 'employee_card_approvals' }),
|
|
99
|
-
__metadata("design:paramtypes", [Number, Number, Object, Object, Object, Object, Object, Object, Object, String, Boolean, Object])
|
|
100
|
-
], EmployeeCardApprovalDetails);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
/**
|
|
3
|
-
* Employee Card Attachments Table
|
|
4
|
-
* Stores file attachments related to employee card requests
|
|
5
|
-
* Can be attached during initial request or via chat
|
|
6
|
-
*/
|
|
7
|
-
export declare class EmployeeCardAttachments extends BaseModel {
|
|
8
|
-
employee_card_request_id: number;
|
|
9
|
-
attached_by_user_id: number;
|
|
10
|
-
file_url: string;
|
|
11
|
-
file_name: string | null;
|
|
12
|
-
file_type: string | null;
|
|
13
|
-
file_size: number | null;
|
|
14
|
-
chat_id: number | null;
|
|
15
|
-
description: string | null;
|
|
16
|
-
constructor(employee_card_request_id: number, attached_by_user_id: number, file_url: string, file_name: string | null, file_type: string | null, file_size: number | null, chat_id: number | null, description: string | null);
|
|
17
|
-
}
|
|
@@ -1,69 +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.EmployeeCardAttachments = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
/**
|
|
16
|
-
* Employee Card Attachments Table
|
|
17
|
-
* Stores file attachments related to employee card requests
|
|
18
|
-
* Can be attached during initial request or via chat
|
|
19
|
-
*/
|
|
20
|
-
let EmployeeCardAttachments = class EmployeeCardAttachments extends BaseModel_1.BaseModel {
|
|
21
|
-
constructor(employee_card_request_id, attached_by_user_id, file_url, file_name, file_type, file_size, chat_id, description) {
|
|
22
|
-
super();
|
|
23
|
-
this.employee_card_request_id = employee_card_request_id;
|
|
24
|
-
this.attached_by_user_id = attached_by_user_id;
|
|
25
|
-
this.file_url = file_url;
|
|
26
|
-
this.file_name = file_name;
|
|
27
|
-
this.file_type = file_type;
|
|
28
|
-
this.file_size = file_size;
|
|
29
|
-
this.chat_id = chat_id;
|
|
30
|
-
this.description = description;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.EmployeeCardAttachments = EmployeeCardAttachments;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], EmployeeCardAttachments.prototype, "employee_card_request_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], EmployeeCardAttachments.prototype, "attached_by_user_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: false }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], EmployeeCardAttachments.prototype, "file_url", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], EmployeeCardAttachments.prototype, "file_name", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], EmployeeCardAttachments.prototype, "file_type", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], EmployeeCardAttachments.prototype, "file_size", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
60
|
-
__metadata("design:type", Object)
|
|
61
|
-
], EmployeeCardAttachments.prototype, "chat_id", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
64
|
-
__metadata("design:type", Object)
|
|
65
|
-
], EmployeeCardAttachments.prototype, "description", void 0);
|
|
66
|
-
exports.EmployeeCardAttachments = EmployeeCardAttachments = __decorate([
|
|
67
|
-
(0, typeorm_1.Entity)({ name: 'employee_card_attachments' }),
|
|
68
|
-
__metadata("design:paramtypes", [Number, Number, String, Object, Object, Object, Object, Object])
|
|
69
|
-
], EmployeeCardAttachments);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
/**
|
|
3
|
-
* Employee Card Chat/Communication Table
|
|
4
|
-
* Stores messages/comments between the requester and approvers
|
|
5
|
-
* Allows discussion regarding the employee card request
|
|
6
|
-
*/
|
|
7
|
-
export declare class EmployeeCardChat extends BaseModel {
|
|
8
|
-
employee_card_request_id: number;
|
|
9
|
-
content: string;
|
|
10
|
-
sender_user_id: number;
|
|
11
|
-
service_id: number | null;
|
|
12
|
-
sub_service_id: number | null;
|
|
13
|
-
role_id: number | null;
|
|
14
|
-
status: string | null;
|
|
15
|
-
department_id: number | null;
|
|
16
|
-
section_id: number | null;
|
|
17
|
-
is_internal: boolean | null;
|
|
18
|
-
constructor(employee_card_request_id: number, content: string, sender_user_id: number, service_id: number | null, sub_service_id: number | null, role_id: number | null, status: string | null, department_id: number | null, section_id: number | null, is_internal: boolean | null);
|
|
19
|
-
}
|
|
@@ -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.EmployeeCardChat = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
/**
|
|
16
|
-
* Employee Card Chat/Communication Table
|
|
17
|
-
* Stores messages/comments between the requester and approvers
|
|
18
|
-
* Allows discussion regarding the employee card request
|
|
19
|
-
*/
|
|
20
|
-
let EmployeeCardChat = class EmployeeCardChat extends BaseModel_1.BaseModel {
|
|
21
|
-
constructor(employee_card_request_id, content, sender_user_id, service_id, sub_service_id, role_id, status, department_id, section_id, is_internal) {
|
|
22
|
-
super();
|
|
23
|
-
this.employee_card_request_id = employee_card_request_id;
|
|
24
|
-
this.content = content;
|
|
25
|
-
this.sender_user_id = sender_user_id;
|
|
26
|
-
this.service_id = service_id;
|
|
27
|
-
this.sub_service_id = sub_service_id;
|
|
28
|
-
this.role_id = role_id;
|
|
29
|
-
this.status = status;
|
|
30
|
-
this.department_id = department_id;
|
|
31
|
-
this.section_id = section_id;
|
|
32
|
-
this.is_internal = is_internal;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.EmployeeCardChat = EmployeeCardChat;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], EmployeeCardChat.prototype, "employee_card_request_id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], EmployeeCardChat.prototype, "content", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], EmployeeCardChat.prototype, "sender_user_id", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], EmployeeCardChat.prototype, "service_id", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
54
|
-
__metadata("design:type", Object)
|
|
55
|
-
], EmployeeCardChat.prototype, "sub_service_id", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], EmployeeCardChat.prototype, "role_id", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
62
|
-
__metadata("design:type", Object)
|
|
63
|
-
], EmployeeCardChat.prototype, "status", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
66
|
-
__metadata("design:type", Object)
|
|
67
|
-
], EmployeeCardChat.prototype, "department_id", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
70
|
-
__metadata("design:type", Object)
|
|
71
|
-
], EmployeeCardChat.prototype, "section_id", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.Column)({ type: 'boolean', default: false, nullable: true }),
|
|
74
|
-
__metadata("design:type", Object)
|
|
75
|
-
], EmployeeCardChat.prototype, "is_internal", void 0);
|
|
76
|
-
exports.EmployeeCardChat = EmployeeCardChat = __decorate([
|
|
77
|
-
(0, typeorm_1.Entity)({ name: 'employee_card_chats' }),
|
|
78
|
-
__metadata("design:paramtypes", [Number, String, Number, Object, Object, Object, Object, Object, Object, Object])
|
|
79
|
-
], EmployeeCardChat);
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
/**
|
|
3
|
-
* Employee Card Request Status Enum
|
|
4
|
-
*/
|
|
5
|
-
export declare enum EmployeeCardRequestStatus {
|
|
6
|
-
PENDING = "Pending",
|
|
7
|
-
APPROVED = "Approved",
|
|
8
|
-
REJECTED = "Rejected",
|
|
9
|
-
CANCELLED = "Cancelled"
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Access Type Enum - Normal or Special
|
|
13
|
-
*/
|
|
14
|
-
export declare enum AccessType {
|
|
15
|
-
NORMAL = "Normal",
|
|
16
|
-
SPECIAL = "Special"
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Main Employee Card Request Table (FM020)
|
|
20
|
-
* This table stores the primary employee card request data
|
|
21
|
-
*/
|
|
22
|
-
export declare class EmployeeCardRequests extends BaseModel {
|
|
23
|
-
user_id: number;
|
|
24
|
-
req_user_department_id: number | null;
|
|
25
|
-
req_user_section_id: number | null;
|
|
26
|
-
service_id: number | null;
|
|
27
|
-
sub_service_id: number | null;
|
|
28
|
-
status: EmployeeCardRequestStatus;
|
|
29
|
-
workflow_execution_id: string | null;
|
|
30
|
-
number: string | null;
|
|
31
|
-
name: string | null;
|
|
32
|
-
job_title: string | null;
|
|
33
|
-
reason_for_request: string | null;
|
|
34
|
-
date_of_joining: Date | null;
|
|
35
|
-
date_of_issue: Date | null;
|
|
36
|
-
access_type: AccessType;
|
|
37
|
-
photo_url: string | null;
|
|
38
|
-
photo_file_name: string | null;
|
|
39
|
-
constructor(user_id: number, req_user_department_id: number | null, req_user_section_id: number | null, service_id: number | null, sub_service_id: number | null, status: EmployeeCardRequestStatus, workflow_execution_id: string | null, number: string | null, name: string | null, job_title: string | null, reason_for_request: string | null, date_of_joining: Date | null, date_of_issue: Date | null, access_type: AccessType, photo_url: string | null, photo_file_name: string | null);
|
|
40
|
-
}
|