@platform-modules/foreign-ministry 1.0.66 → 1.0.68
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 +8 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/models/AttendanceModel.d.ts +19 -0
- package/dist/models/AttendanceModel.js +77 -0
- package/dist/models/HolidaysModel.d.ts +11 -0
- package/dist/models/HolidaysModel.js +59 -0
- 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/ShifttimesModel.d.ts +11 -0
- package/dist/models/ShifttimesModel.js +59 -0
- package/dist/models/UserShiftModel.d.ts +6 -0
- package/dist/models/{questionTagsModel.js → UserShiftModel.js} +13 -13
- package/dist/models/role.d.ts +7 -2
- package/dist/models/role.js +1 -6
- package/package.json +1 -1
- package/src/data-source.ts +8 -4
- package/src/index.ts +4 -2
- package/src/models/AttendanceModel.ts +64 -0
- package/src/models/HolidaysModel.ts +46 -0
- package/src/models/ShifttimesModel.ts +46 -0
- package/src/models/UserShiftModel.ts +18 -0
- package/src/models/role.ts +7 -5
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +0 -6
- package/dist/models/HelpContentMappedCategoriesModel.js +0 -34
- package/dist/models/HelpContentMappedTagsModel.d.ts +0 -6
- package/dist/models/HelpContentMappedTagsModel.js +0 -34
- package/dist/models/HelpContentTagsModel.d.ts +0 -5
- package/dist/models/HelpContentTagsModel.js +0 -29
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/roleRightsModel.d.ts +0 -17
- package/dist/models/roleRightsModel.js +0 -49
- package/dist/models/userRolesModel.d.ts +0 -17
- package/dist/models/userRolesModel.js +0 -49
- package/src/models/roleRightsModel.ts +0 -35
- package/src/models/userRolesModel.ts +0 -35
package/.env
CHANGED
package/dist/data-source.js
CHANGED
|
@@ -46,8 +46,10 @@ const ConversationsV2Model_1 = require("./models/ConversationsV2Model");
|
|
|
46
46
|
const ConversationParticipantsV2Model_1 = require("./models/ConversationParticipantsV2Model");
|
|
47
47
|
const MessagesV2Model_1 = require("./models/MessagesV2Model");
|
|
48
48
|
const MessageReadStatusModel_1 = require("./models/MessageReadStatusModel");
|
|
49
|
-
const
|
|
50
|
-
const
|
|
49
|
+
const ShifttimesModel_1 = require("./models/ShifttimesModel");
|
|
50
|
+
const AttendanceModel_1 = require("./models/AttendanceModel");
|
|
51
|
+
const UserShiftModel_1 = require("./models/UserShiftModel");
|
|
52
|
+
const HolidaysModel_1 = require("./models/HolidaysModel");
|
|
51
53
|
exports.AppDataSource = new typeorm_1.DataSource({
|
|
52
54
|
type: 'postgres',
|
|
53
55
|
host: process.env.DB_HOST || 'localhost',
|
|
@@ -99,7 +101,9 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
99
101
|
ConversationParticipantsV2Model_1.ConversationParticipantsV2,
|
|
100
102
|
MessagesV2Model_1.MessagesV2,
|
|
101
103
|
MessageReadStatusModel_1.MessageReadStatus,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
ShifttimesModel_1.ShiftDetails,
|
|
105
|
+
AttendanceModel_1.AttendanceDetails,
|
|
106
|
+
UserShiftModel_1.UserShift,
|
|
107
|
+
HolidaysModel_1.Holidays
|
|
104
108
|
],
|
|
105
109
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ export * from './models/PostReactionsModel';
|
|
|
38
38
|
export * from './models/HelpContentModel';
|
|
39
39
|
export * from './models/HelpContentCategoryModel';
|
|
40
40
|
export * from './models/HelpContentAttachmentModel';
|
|
41
|
+
export * from './models/ShifttimesModel';
|
|
42
|
+
export * from './models/AttendanceModel';
|
|
41
43
|
export * from './models/contactInfoModel';
|
|
42
|
-
export * from './models/
|
|
43
|
-
export * from './models/
|
|
44
|
+
export * from './models/UserShiftModel';
|
|
45
|
+
export * from './models/HolidaysModel';
|
package/dist/index.js
CHANGED
|
@@ -54,6 +54,8 @@ __exportStar(require("./models/PostReactionsModel"), exports);
|
|
|
54
54
|
__exportStar(require("./models/HelpContentModel"), exports);
|
|
55
55
|
__exportStar(require("./models/HelpContentCategoryModel"), exports);
|
|
56
56
|
__exportStar(require("./models/HelpContentAttachmentModel"), exports);
|
|
57
|
+
__exportStar(require("./models/ShifttimesModel"), exports);
|
|
58
|
+
__exportStar(require("./models/AttendanceModel"), exports);
|
|
57
59
|
__exportStar(require("./models/contactInfoModel"), exports);
|
|
58
|
-
__exportStar(require("./models/
|
|
59
|
-
__exportStar(require("./models/
|
|
60
|
+
__exportStar(require("./models/UserShiftModel"), exports);
|
|
61
|
+
__exportStar(require("./models/HolidaysModel"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare enum AttendanceStatus {
|
|
3
|
+
PRESENT = "PRESENT",
|
|
4
|
+
ABSENT = "ABSENT",
|
|
5
|
+
LEAVE = "LEAVE",
|
|
6
|
+
HALF_DAY = "HALF_DAY"
|
|
7
|
+
}
|
|
8
|
+
export declare class AttendanceDetails extends BaseModel {
|
|
9
|
+
user_id: string;
|
|
10
|
+
shift_id: number;
|
|
11
|
+
attendance_date: string;
|
|
12
|
+
check_in_time: string;
|
|
13
|
+
check_out_time: string;
|
|
14
|
+
first_half_status: AttendanceStatus;
|
|
15
|
+
second_half_status: AttendanceStatus;
|
|
16
|
+
attendance_status: AttendanceStatus;
|
|
17
|
+
excess_hours: string;
|
|
18
|
+
constructor(user_id: string, shift_id: number, attendance_date: string, check_in_time: string, check_out_time: string, first_half_status: AttendanceStatus, second_half_status: AttendanceStatus, attendance_status: AttendanceStatus, excess_hours: string);
|
|
19
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.AttendanceDetails = exports.AttendanceStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
//CHECK (first_half_status IN ('Present', 'Absent', 'Leave')
|
|
16
|
+
var AttendanceStatus;
|
|
17
|
+
(function (AttendanceStatus) {
|
|
18
|
+
AttendanceStatus["PRESENT"] = "PRESENT";
|
|
19
|
+
AttendanceStatus["ABSENT"] = "ABSENT";
|
|
20
|
+
AttendanceStatus["LEAVE"] = "LEAVE";
|
|
21
|
+
AttendanceStatus["HALF_DAY"] = "HALF_DAY";
|
|
22
|
+
})(AttendanceStatus || (exports.AttendanceStatus = AttendanceStatus = {}));
|
|
23
|
+
let AttendanceDetails = class AttendanceDetails extends BaseModel_1.BaseModel {
|
|
24
|
+
constructor(user_id, shift_id, attendance_date, check_in_time, check_out_time, first_half_status, second_half_status, attendance_status, excess_hours) {
|
|
25
|
+
super();
|
|
26
|
+
this.user_id = user_id;
|
|
27
|
+
this.shift_id = shift_id;
|
|
28
|
+
this.attendance_date = attendance_date;
|
|
29
|
+
this.check_in_time = check_in_time;
|
|
30
|
+
this.check_out_time = check_out_time;
|
|
31
|
+
this.first_half_status = first_half_status;
|
|
32
|
+
this.second_half_status = second_half_status;
|
|
33
|
+
this.attendance_status = attendance_status;
|
|
34
|
+
this.excess_hours = excess_hours;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.AttendanceDetails = AttendanceDetails;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AttendanceDetails.prototype, "user_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], AttendanceDetails.prototype, "shift_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, unique: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], AttendanceDetails.prototype, "attendance_date", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AttendanceDetails.prototype, "check_in_time", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], AttendanceDetails.prototype, "check_out_time", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: AttendanceStatus.PRESENT, nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AttendanceDetails.prototype, "first_half_status", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: AttendanceStatus.PRESENT, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AttendanceDetails.prototype, "second_half_status", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: AttendanceStatus.PRESENT, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], AttendanceDetails.prototype, "attendance_status", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], AttendanceDetails.prototype, "excess_hours", void 0);
|
|
74
|
+
exports.AttendanceDetails = AttendanceDetails = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)({ name: 'attendance_details' }),
|
|
76
|
+
__metadata("design:paramtypes", [String, Number, String, String, String, String, String, String, String])
|
|
77
|
+
], AttendanceDetails);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class Holidays extends BaseModel {
|
|
3
|
+
title: string;
|
|
4
|
+
holiday_date: Date;
|
|
5
|
+
description?: string;
|
|
6
|
+
region?: string;
|
|
7
|
+
is_optional: boolean;
|
|
8
|
+
holiday_type: string;
|
|
9
|
+
year?: number;
|
|
10
|
+
constructor(title: string, holiday_date: Date, description?: string, region?: string, is_optional?: boolean, holiday_type?: string, year?: number);
|
|
11
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.Holidays = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let Holidays = class Holidays extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(title, holiday_date, description, region, is_optional = false, holiday_type = 'Public', year) {
|
|
17
|
+
super();
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.holiday_date = holiday_date;
|
|
20
|
+
this.description = description;
|
|
21
|
+
this.region = region;
|
|
22
|
+
this.is_optional = is_optional;
|
|
23
|
+
this.holiday_type = holiday_type;
|
|
24
|
+
this.year = year;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.Holidays = Holidays;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Holidays.prototype, "title", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'date', name: 'holiday_date' }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], Holidays.prototype, "holiday_date", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Holidays.prototype, "description", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Holidays.prototype, "region", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'boolean', name: 'is_optional', default: false }),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], Holidays.prototype, "is_optional", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 30, name: 'holiday_type', default: 'Public' }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Holidays.prototype, "holiday_type", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], Holidays.prototype, "year", void 0);
|
|
56
|
+
exports.Holidays = Holidays = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'holidays' }),
|
|
58
|
+
__metadata("design:paramtypes", [String, Date, String, String, Boolean, String, Number])
|
|
59
|
+
], Holidays);
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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);
|
|
@@ -0,0 +1,40 @@
|
|
|
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);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class ShiftDetails extends BaseModel {
|
|
3
|
+
shift_name: string;
|
|
4
|
+
start_time: string;
|
|
5
|
+
end_time: string;
|
|
6
|
+
first_session_start_time: string;
|
|
7
|
+
first_session_end_time: string;
|
|
8
|
+
second_session_start_time: string;
|
|
9
|
+
second_session_end_time: string;
|
|
10
|
+
constructor(shift_name: string, start_time: string, end_time: string, first_session_start_time: string, first_session_end_time: string, second_session_start_time: string, second_session_end_time: string);
|
|
11
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.ShiftDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let ShiftDetails = class ShiftDetails extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(shift_name, start_time, end_time, first_session_start_time, first_session_end_time, second_session_start_time, second_session_end_time) {
|
|
17
|
+
super();
|
|
18
|
+
this.shift_name = shift_name;
|
|
19
|
+
this.start_time = start_time;
|
|
20
|
+
this.end_time = end_time;
|
|
21
|
+
this.first_session_start_time = first_session_start_time;
|
|
22
|
+
this.first_session_end_time = first_session_end_time;
|
|
23
|
+
this.second_session_start_time = second_session_start_time;
|
|
24
|
+
this.second_session_end_time = second_session_end_time;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.ShiftDetails = ShiftDetails;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ShiftDetails.prototype, "shift_name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ShiftDetails.prototype, "start_time", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ShiftDetails.prototype, "end_time", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ShiftDetails.prototype, "first_session_start_time", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ShiftDetails.prototype, "first_session_end_time", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ShiftDetails.prototype, "second_session_start_time", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'time', nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ShiftDetails.prototype, "second_session_end_time", void 0);
|
|
56
|
+
exports.ShiftDetails = ShiftDetails = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)({ name: 'shift_details' }),
|
|
58
|
+
__metadata("design:paramtypes", [String, String, String, String, String, String, String])
|
|
59
|
+
], ShiftDetails);
|
|
@@ -9,26 +9,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.UserShift = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let
|
|
16
|
-
constructor(
|
|
15
|
+
let UserShift = class UserShift extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, shift_id) {
|
|
17
17
|
super();
|
|
18
|
-
this.
|
|
19
|
-
|
|
18
|
+
this.user_id = user_id;
|
|
19
|
+
this.shift_id = shift_id;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
exports.
|
|
22
|
+
exports.UserShift = UserShift;
|
|
23
23
|
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
26
|
+
], UserShift.prototype, "user_id", void 0);
|
|
27
27
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
29
29
|
__metadata("design:type", Number)
|
|
30
|
-
],
|
|
31
|
-
exports.
|
|
32
|
-
(0, typeorm_1.Entity)({ name: '
|
|
30
|
+
], UserShift.prototype, "shift_id", void 0);
|
|
31
|
+
exports.UserShift = UserShift = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'user_shift' }),
|
|
33
33
|
__metadata("design:paramtypes", [String, Number])
|
|
34
|
-
],
|
|
34
|
+
], UserShift);
|
package/dist/models/role.d.ts
CHANGED
|
@@ -9,9 +9,14 @@ Role
|
|
|
9
9
|
Userrole Information will store
|
|
10
10
|
*/
|
|
11
11
|
import { BaseModel } from './BaseModel';
|
|
12
|
+
export interface Irole {
|
|
13
|
+
name: string;
|
|
14
|
+
id?: number;
|
|
15
|
+
is_deleted?: boolean;
|
|
16
|
+
created_by?: number;
|
|
17
|
+
}
|
|
12
18
|
export declare class Role extends BaseModel {
|
|
13
19
|
name: string;
|
|
14
|
-
department_id: number;
|
|
15
20
|
is_deleted?: boolean;
|
|
16
|
-
constructor(name: string, is_deleted: boolean,
|
|
21
|
+
constructor(name: string, is_deleted: boolean, userId: number);
|
|
17
22
|
}
|
package/dist/models/role.js
CHANGED
|
@@ -23,10 +23,9 @@ exports.Role = void 0;
|
|
|
23
23
|
const typeorm_1 = require("typeorm");
|
|
24
24
|
const BaseModel_1 = require("./BaseModel");
|
|
25
25
|
let Role = class Role extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(name, is_deleted,
|
|
26
|
+
constructor(name, is_deleted, userId) {
|
|
27
27
|
super();
|
|
28
28
|
this.name = name;
|
|
29
|
-
this.department_id = department_id;
|
|
30
29
|
this.is_deleted = is_deleted;
|
|
31
30
|
}
|
|
32
31
|
};
|
|
@@ -35,10 +34,6 @@ __decorate([
|
|
|
35
34
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
36
35
|
__metadata("design:type", String)
|
|
37
36
|
], Role.prototype, "name", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], Role.prototype, "department_id", void 0);
|
|
42
37
|
__decorate([
|
|
43
38
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
44
39
|
__metadata("design:type", Boolean)
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -47,8 +47,10 @@ import { ConversationsV2 } from './models/ConversationsV2Model';
|
|
|
47
47
|
import { ConversationParticipantsV2 } from './models/ConversationParticipantsV2Model';
|
|
48
48
|
import { MessagesV2 } from './models/MessagesV2Model';
|
|
49
49
|
import { MessageReadStatus } from './models/MessageReadStatusModel';
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
50
|
+
import { ShiftDetails } from './models/ShifttimesModel';
|
|
51
|
+
import { AttendanceDetails } from './models/AttendanceModel';
|
|
52
|
+
import { UserShift } from './models/UserShiftModel';
|
|
53
|
+
import { Holidays } from './models/HolidaysModel';
|
|
52
54
|
|
|
53
55
|
|
|
54
56
|
export const AppDataSource = new DataSource({
|
|
@@ -102,7 +104,9 @@ export const AppDataSource = new DataSource({
|
|
|
102
104
|
ConversationParticipantsV2,
|
|
103
105
|
MessagesV2,
|
|
104
106
|
MessageReadStatus,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
ShiftDetails,
|
|
108
|
+
AttendanceDetails,
|
|
109
|
+
UserShift,
|
|
110
|
+
Holidays
|
|
107
111
|
],
|
|
108
112
|
});
|
package/src/index.ts
CHANGED
|
@@ -38,6 +38,8 @@ export * from './models/PostReactionsModel';
|
|
|
38
38
|
export * from './models/HelpContentModel';
|
|
39
39
|
export * from './models/HelpContentCategoryModel';
|
|
40
40
|
export * from './models/HelpContentAttachmentModel';
|
|
41
|
+
export * from './models/ShifttimesModel';
|
|
42
|
+
export * from './models/AttendanceModel';
|
|
41
43
|
export * from './models/contactInfoModel';
|
|
42
|
-
export * from './models/
|
|
43
|
-
export * from './models/
|
|
44
|
+
export * from './models/UserShiftModel';
|
|
45
|
+
export * from './models/HolidaysModel';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
//CHECK (first_half_status IN ('Present', 'Absent', 'Leave')
|
|
5
|
+
export enum AttendanceStatus {
|
|
6
|
+
PRESENT = 'PRESENT',
|
|
7
|
+
ABSENT = 'ABSENT',
|
|
8
|
+
LEAVE = 'LEAVE',
|
|
9
|
+
HALF_DAY = 'HALF_DAY',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@Entity({ name: 'attendance_details' })
|
|
13
|
+
export class AttendanceDetails extends BaseModel {
|
|
14
|
+
|
|
15
|
+
//user_id, shift_name, check_in_time, check_out_time
|
|
16
|
+
@Column({ type: 'varchar', nullable: true })
|
|
17
|
+
user_id: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
shift_id: number;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'date', nullable: true , unique: true})
|
|
23
|
+
attendance_date: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'time', nullable: true })
|
|
26
|
+
check_in_time: string;
|
|
27
|
+
|
|
28
|
+
@Column({ type: 'time', nullable: true })
|
|
29
|
+
check_out_time: string;
|
|
30
|
+
|
|
31
|
+
@Column({ type: 'varchar', default: AttendanceStatus.PRESENT, nullable: true })
|
|
32
|
+
first_half_status: AttendanceStatus;
|
|
33
|
+
|
|
34
|
+
@Column({ type: 'varchar', default: AttendanceStatus.PRESENT, nullable: true })
|
|
35
|
+
second_half_status: AttendanceStatus;
|
|
36
|
+
|
|
37
|
+
@Column({ type: 'varchar', default: AttendanceStatus.PRESENT, nullable: true })
|
|
38
|
+
attendance_status: AttendanceStatus;
|
|
39
|
+
|
|
40
|
+
@Column({ type: 'time', nullable: true })
|
|
41
|
+
excess_hours : string
|
|
42
|
+
|
|
43
|
+
constructor(
|
|
44
|
+
user_id: string,
|
|
45
|
+
shift_id: number,
|
|
46
|
+
attendance_date: string,
|
|
47
|
+
check_in_time: string,
|
|
48
|
+
check_out_time: string,
|
|
49
|
+
first_half_status: AttendanceStatus,
|
|
50
|
+
second_half_status: AttendanceStatus,
|
|
51
|
+
attendance_status: AttendanceStatus,
|
|
52
|
+
excess_hours: string) {
|
|
53
|
+
super();
|
|
54
|
+
this.user_id = user_id;
|
|
55
|
+
this.shift_id = shift_id;
|
|
56
|
+
this.attendance_date = attendance_date;
|
|
57
|
+
this.check_in_time = check_in_time;
|
|
58
|
+
this.check_out_time = check_out_time;
|
|
59
|
+
this.first_half_status = first_half_status;
|
|
60
|
+
this.second_half_status = second_half_status;
|
|
61
|
+
this.attendance_status = attendance_status;
|
|
62
|
+
this.excess_hours = excess_hours;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'holidays' })
|
|
5
|
+
export class Holidays extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', length: 200 })
|
|
8
|
+
title: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'date', name: 'holiday_date' })
|
|
11
|
+
holiday_date: Date;
|
|
12
|
+
|
|
13
|
+
@Column({ type: 'text', nullable: true })
|
|
14
|
+
description?: string;
|
|
15
|
+
|
|
16
|
+
@Column({ type: 'varchar', length: 200, nullable: true })
|
|
17
|
+
region?: string;
|
|
18
|
+
|
|
19
|
+
@Column({ type: 'boolean', name: 'is_optional', default: false })
|
|
20
|
+
is_optional: boolean;
|
|
21
|
+
|
|
22
|
+
@Column({ type: 'varchar', length: 30, name: 'holiday_type', default: 'Public' })
|
|
23
|
+
holiday_type: string;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
year?: number;
|
|
27
|
+
|
|
28
|
+
constructor(
|
|
29
|
+
title: string,
|
|
30
|
+
holiday_date: Date,
|
|
31
|
+
description?: string,
|
|
32
|
+
region?: string,
|
|
33
|
+
is_optional: boolean = false,
|
|
34
|
+
holiday_type: string = 'Public',
|
|
35
|
+
year?: number
|
|
36
|
+
) {
|
|
37
|
+
super();
|
|
38
|
+
this.title = title;
|
|
39
|
+
this.holiday_date = holiday_date;
|
|
40
|
+
this.description = description;
|
|
41
|
+
this.region = region;
|
|
42
|
+
this.is_optional = is_optional;
|
|
43
|
+
this.holiday_type = holiday_type;
|
|
44
|
+
this.year = year;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'shift_details' })
|
|
5
|
+
export class ShiftDetails extends BaseModel {
|
|
6
|
+
|
|
7
|
+
//shift_name, start_time, end_time
|
|
8
|
+
@Column({ type: 'varchar', nullable: true })
|
|
9
|
+
shift_name: string;
|
|
10
|
+
|
|
11
|
+
@Column({ type: 'time', nullable: true })
|
|
12
|
+
start_time: string;
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'time', nullable: true })
|
|
15
|
+
end_time: string;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'time', nullable: true })
|
|
18
|
+
first_session_start_time: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'time', nullable: true })
|
|
21
|
+
first_session_end_time: string;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'time', nullable: true })
|
|
24
|
+
second_session_start_time: string;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'time', nullable: true })
|
|
27
|
+
second_session_end_time: string;
|
|
28
|
+
|
|
29
|
+
constructor(
|
|
30
|
+
shift_name: string,
|
|
31
|
+
start_time: string,
|
|
32
|
+
end_time: string,
|
|
33
|
+
first_session_start_time: string,
|
|
34
|
+
first_session_end_time: string,
|
|
35
|
+
second_session_start_time: string,
|
|
36
|
+
second_session_end_time: string) {
|
|
37
|
+
super();
|
|
38
|
+
this.shift_name = shift_name;
|
|
39
|
+
this.start_time = start_time;
|
|
40
|
+
this.end_time = end_time;
|
|
41
|
+
this.first_session_start_time = first_session_start_time;
|
|
42
|
+
this.first_session_end_time = first_session_end_time;
|
|
43
|
+
this.second_session_start_time = second_session_start_time;
|
|
44
|
+
this.second_session_end_time = second_session_end_time;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'user_shift' })
|
|
5
|
+
export class UserShift extends BaseModel {
|
|
6
|
+
|
|
7
|
+
@Column({ type: 'varchar', nullable: true })
|
|
8
|
+
user_id: string;
|
|
9
|
+
|
|
10
|
+
@Column({ type: 'int', nullable: true })
|
|
11
|
+
shift_id: number;
|
|
12
|
+
|
|
13
|
+
constructor(user_id: string, shift_id: number) {
|
|
14
|
+
super();
|
|
15
|
+
this.user_id = user_id;
|
|
16
|
+
this.shift_id = shift_id;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/src/models/role.ts
CHANGED
|
@@ -12,23 +12,25 @@ Userrole Information will store
|
|
|
12
12
|
import { Column, Entity } from "typeorm";
|
|
13
13
|
import { BaseModel } from './BaseModel';
|
|
14
14
|
|
|
15
|
+
export interface Irole {
|
|
16
|
+
name: string;
|
|
17
|
+
id?: number;
|
|
18
|
+
is_deleted?: boolean;
|
|
19
|
+
created_by?: number;
|
|
20
|
+
}
|
|
15
21
|
@Entity({ name: 'role' })
|
|
16
22
|
export class Role extends BaseModel {
|
|
17
23
|
|
|
18
24
|
@Column({ nullable: true })
|
|
19
25
|
name: string;
|
|
20
26
|
|
|
21
|
-
@Column({ type: 'bigint', nullable: false })
|
|
22
|
-
department_id: number;
|
|
23
|
-
|
|
24
27
|
@Column({ nullable: true })
|
|
25
28
|
is_deleted?: boolean;
|
|
26
29
|
|
|
27
30
|
|
|
28
|
-
constructor(name: string,is_deleted:boolean,
|
|
31
|
+
constructor(name: string,is_deleted:boolean,userId: number) {
|
|
29
32
|
super();
|
|
30
33
|
this.name = name
|
|
31
|
-
this.department_id = department_id
|
|
32
34
|
this.is_deleted = is_deleted
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -1,34 +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.HelpContentMappedCategories = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentMappedCategories = class HelpContentMappedCategories extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_category_Id, help_content_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_category_Id = help_content_category_Id,
|
|
19
|
-
this.help_content_Id = help_content_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.HelpContentMappedCategories = HelpContentMappedCategories;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], HelpContentMappedCategories.prototype, "help_content_category_Id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], HelpContentMappedCategories.prototype, "help_content_Id", void 0);
|
|
31
|
-
exports.HelpContentMappedCategories = HelpContentMappedCategories = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'help_content_mapped_categories' }),
|
|
33
|
-
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
-
], HelpContentMappedCategories);
|
|
@@ -1,34 +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.HelpContentMappedTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentMappedTags = class HelpContentMappedTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(help_content_tag_Id, help_content_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.help_content_tag_Id = help_content_tag_Id,
|
|
19
|
-
this.help_content_Id = help_content_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.HelpContentMappedTags = HelpContentMappedTags;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], HelpContentMappedTags.prototype, "help_content_tag_Id", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], HelpContentMappedTags.prototype, "help_content_Id", void 0);
|
|
31
|
-
exports.HelpContentMappedTags = HelpContentMappedTags = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'help_content_mapped_tags' }),
|
|
33
|
-
__metadata("design:paramtypes", [Number, Number])
|
|
34
|
-
], HelpContentMappedTags);
|
|
@@ -1,29 +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.HelpContentTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let HelpContentTags = class HelpContentTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.HelpContentTags = HelpContentTags;
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], HelpContentTags.prototype, "name", void 0);
|
|
26
|
-
exports.HelpContentTags = HelpContentTags = __decorate([
|
|
27
|
-
(0, typeorm_1.Entity)({ name: 'help_content_tags' }),
|
|
28
|
-
__metadata("design:paramtypes", [String])
|
|
29
|
-
], HelpContentTags);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** *
|
|
2
|
-
@author
|
|
3
|
-
Amnet Digital
|
|
4
|
-
@date
|
|
5
|
-
2024-05-20
|
|
6
|
-
@Model
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
11
|
-
import { BaseModel } from './BaseModel';
|
|
12
|
-
export declare class RoleRights extends BaseModel {
|
|
13
|
-
role_id: number;
|
|
14
|
-
service_id: number;
|
|
15
|
-
department_id: number;
|
|
16
|
-
constructor(role_id: number, service_id: number, department_id: number);
|
|
17
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** *
|
|
3
|
-
@author
|
|
4
|
-
Amnet Digital
|
|
5
|
-
@date
|
|
6
|
-
2024-05-20
|
|
7
|
-
@Model
|
|
8
|
-
Role
|
|
9
|
-
@usage
|
|
10
|
-
Userrole Information will store
|
|
11
|
-
*/
|
|
12
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
-
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;
|
|
16
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
-
};
|
|
18
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.RoleRights = void 0;
|
|
23
|
-
const typeorm_1 = require("typeorm");
|
|
24
|
-
const BaseModel_1 = require("./BaseModel");
|
|
25
|
-
let RoleRights = class RoleRights extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(role_id, service_id, department_id) {
|
|
27
|
-
super();
|
|
28
|
-
this.role_id = role_id;
|
|
29
|
-
this.service_id = service_id;
|
|
30
|
-
this.department_id = department_id;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.RoleRights = RoleRights;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], RoleRights.prototype, "role_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], RoleRights.prototype, "service_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], RoleRights.prototype, "department_id", void 0);
|
|
46
|
-
exports.RoleRights = RoleRights = __decorate([
|
|
47
|
-
(0, typeorm_1.Entity)({ name: 'role_rights' }),
|
|
48
|
-
__metadata("design:paramtypes", [Number, Number, Number])
|
|
49
|
-
], RoleRights);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** *
|
|
2
|
-
@author
|
|
3
|
-
Amnet Digital
|
|
4
|
-
@date
|
|
5
|
-
2024-05-20
|
|
6
|
-
@Model
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
11
|
-
import { BaseModel } from './BaseModel';
|
|
12
|
-
export declare class UserRole extends BaseModel {
|
|
13
|
-
role_id: number;
|
|
14
|
-
user_id: number;
|
|
15
|
-
department_id: number;
|
|
16
|
-
constructor(role_id: number, user_id: number, department_id: number);
|
|
17
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** *
|
|
3
|
-
@author
|
|
4
|
-
Amnet Digital
|
|
5
|
-
@date
|
|
6
|
-
2024-05-20
|
|
7
|
-
@Model
|
|
8
|
-
Role
|
|
9
|
-
@usage
|
|
10
|
-
Userrole Information will store
|
|
11
|
-
*/
|
|
12
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
|
-
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;
|
|
16
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
|
-
};
|
|
18
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.UserRole = void 0;
|
|
23
|
-
const typeorm_1 = require("typeorm");
|
|
24
|
-
const BaseModel_1 = require("./BaseModel");
|
|
25
|
-
let UserRole = class UserRole extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(role_id, user_id, department_id) {
|
|
27
|
-
super();
|
|
28
|
-
this.role_id = role_id;
|
|
29
|
-
this.user_id = user_id;
|
|
30
|
-
this.department_id = department_id;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.UserRole = UserRole;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], UserRole.prototype, "role_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], UserRole.prototype, "user_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], UserRole.prototype, "department_id", void 0);
|
|
46
|
-
exports.UserRole = UserRole = __decorate([
|
|
47
|
-
(0, typeorm_1.Entity)({ name: 'user_role' }),
|
|
48
|
-
__metadata("design:paramtypes", [Number, Number, Number])
|
|
49
|
-
], UserRole);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** *
|
|
2
|
-
@author
|
|
3
|
-
Amnet Digital
|
|
4
|
-
@date
|
|
5
|
-
2024-05-20
|
|
6
|
-
@Model
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { Column, Entity } from "typeorm";
|
|
13
|
-
import { BaseModel } from './BaseModel';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@Entity({ name: 'role_rights' })
|
|
17
|
-
export class RoleRights extends BaseModel {
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'bigint', nullable: false })
|
|
20
|
-
role_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'bigint', nullable: false })
|
|
23
|
-
service_id: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'bigint', nullable: false })
|
|
26
|
-
department_id: number;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
constructor(role_id: number, service_id: number, department_id: number) {
|
|
30
|
-
super();
|
|
31
|
-
this.role_id = role_id
|
|
32
|
-
this.service_id = service_id
|
|
33
|
-
this.department_id = department_id
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** *
|
|
2
|
-
@author
|
|
3
|
-
Amnet Digital
|
|
4
|
-
@date
|
|
5
|
-
2024-05-20
|
|
6
|
-
@Model
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import { Column, Entity } from "typeorm";
|
|
13
|
-
import { BaseModel } from './BaseModel';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@Entity({ name: 'user_role' })
|
|
17
|
-
export class UserRole extends BaseModel {
|
|
18
|
-
|
|
19
|
-
@Column({ type: 'bigint', nullable: false })
|
|
20
|
-
role_id: number;
|
|
21
|
-
|
|
22
|
-
@Column({ type: 'bigint', nullable: false })
|
|
23
|
-
user_id: number;
|
|
24
|
-
|
|
25
|
-
@Column({ type: 'bigint', nullable: false })
|
|
26
|
-
department_id: number;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
constructor(role_id: number, user_id: number, department_id: number) {
|
|
30
|
-
super();
|
|
31
|
-
this.role_id = role_id
|
|
32
|
-
this.user_id = user_id
|
|
33
|
-
this.department_id = department_id
|
|
34
|
-
}
|
|
35
|
-
}
|