@platform-modules/foreign-ministry 1.3.95 → 1.3.97
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/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/models/EmployeeMilestoneDetailsModel.d.ts +10 -0
- package/dist/models/EmployeeMilestoneDetailsModel.js +55 -0
- package/dist/models/EmployeeMilestonesModel.d.ts +6 -0
- package/dist/models/EmployeeMilestonesModel.js +34 -0
- package/dist/models/LocationModel.d.ts +12 -0
- package/dist/models/LocationModel.js +62 -0
- package/dist/models/WorkScheduleModel.d.ts +4 -1
- package/dist/models/WorkScheduleModel.js +17 -2
- package/dist/models/WorkScheduleTypeNameModel.d.ts +12 -0
- package/dist/models/WorkScheduleTypeNameModel.js +62 -0
- package/package.json +1 -1
- package/src/index.ts +8 -1
- package/src/models/EmployeeMilestoneDetailsModel.ts +40 -0
- package/src/models/EmployeeMilestonesModel.ts +20 -0
- package/src/models/LocationModel.ts +42 -0
- package/src/models/WorkScheduleModel.ts +16 -1
- package/src/models/WorkScheduleTypeNameModel.ts +42 -0
package/dist/index.d.ts
CHANGED
|
@@ -183,6 +183,8 @@ export * from './models/RoutingGroupUsersModel';
|
|
|
183
183
|
export * from './models/HelpdeskKnowledgeBase';
|
|
184
184
|
export * from './models/HelpdeskAutoClosureConfig';
|
|
185
185
|
export * from './models/MilestoneTitleModel';
|
|
186
|
+
export * from './models/WorkScheduleTypeNameModel';
|
|
187
|
+
export * from './models/LocationModel';
|
|
186
188
|
export * from './models/EmployeeCardRequestsModel';
|
|
187
189
|
export * from './models/EmployeeCardApprovalsModel';
|
|
188
190
|
export * from './models/EmployeeCardWorkFlowModel';
|
|
@@ -242,3 +244,5 @@ export * from './models/LanguageCourseChatModel';
|
|
|
242
244
|
export * from './models/LanguageCourseWorkflowModel';
|
|
243
245
|
export * from './models/LanguageCourseCostModel';
|
|
244
246
|
export * from './models/LanguageCourseLecturerModel';
|
|
247
|
+
export * from './models/EmployeeMilestonesModel';
|
|
248
|
+
export * from './models/EmployeeMilestoneDetailsModel';
|
package/dist/index.js
CHANGED
|
@@ -217,6 +217,8 @@ __exportStar(require("./models/RoutingGroupUsersModel"), exports);
|
|
|
217
217
|
__exportStar(require("./models/HelpdeskKnowledgeBase"), exports);
|
|
218
218
|
__exportStar(require("./models/HelpdeskAutoClosureConfig"), exports);
|
|
219
219
|
__exportStar(require("./models/MilestoneTitleModel"), exports);
|
|
220
|
+
__exportStar(require("./models/WorkScheduleTypeNameModel"), exports);
|
|
221
|
+
__exportStar(require("./models/LocationModel"), exports);
|
|
220
222
|
__exportStar(require("./models/EmployeeCardRequestsModel"), exports);
|
|
221
223
|
__exportStar(require("./models/EmployeeCardApprovalsModel"), exports);
|
|
222
224
|
__exportStar(require("./models/EmployeeCardWorkFlowModel"), exports);
|
|
@@ -301,3 +303,6 @@ __exportStar(require("./models/LanguageCourseChatModel"), exports);
|
|
|
301
303
|
__exportStar(require("./models/LanguageCourseWorkflowModel"), exports);
|
|
302
304
|
__exportStar(require("./models/LanguageCourseCostModel"), exports);
|
|
303
305
|
__exportStar(require("./models/LanguageCourseLecturerModel"), exports);
|
|
306
|
+
// Employee Milestones Models
|
|
307
|
+
__exportStar(require("./models/EmployeeMilestonesModel"), exports);
|
|
308
|
+
__exportStar(require("./models/EmployeeMilestoneDetailsModel"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './BaseModel';
|
|
2
|
+
export declare class EmployeeMilestoneDetails extends BaseModel {
|
|
3
|
+
employee_milestone_id: number;
|
|
4
|
+
main_title_id: number;
|
|
5
|
+
title: string | null;
|
|
6
|
+
start_date: Date | null;
|
|
7
|
+
end_date: Date | null;
|
|
8
|
+
is_active: boolean;
|
|
9
|
+
constructor(employee_milestone_id?: number, main_title_id?: number, title?: string, start_date?: Date, end_date?: Date, is_active?: boolean);
|
|
10
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.EmployeeMilestoneDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let EmployeeMilestoneDetails = class EmployeeMilestoneDetails extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(employee_milestone_id, main_title_id, title, start_date, end_date, is_active = true) {
|
|
17
|
+
super();
|
|
18
|
+
this.employee_milestone_id = employee_milestone_id || 0;
|
|
19
|
+
this.main_title_id = main_title_id || 0;
|
|
20
|
+
this.title = title || null;
|
|
21
|
+
this.start_date = start_date || null;
|
|
22
|
+
this.end_date = end_date || null;
|
|
23
|
+
this.is_active = is_active;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.EmployeeMilestoneDetails = EmployeeMilestoneDetails;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], EmployeeMilestoneDetails.prototype, "employee_milestone_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], EmployeeMilestoneDetails.prototype, "main_title_id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], EmployeeMilestoneDetails.prototype, "title", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], EmployeeMilestoneDetails.prototype, "start_date", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], EmployeeMilestoneDetails.prototype, "end_date", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], EmployeeMilestoneDetails.prototype, "is_active", void 0);
|
|
51
|
+
exports.EmployeeMilestoneDetails = EmployeeMilestoneDetails = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)({ name: 'employee_milestone_details' }),
|
|
53
|
+
__metadata("design:paramtypes", [Number, Number, String, Date,
|
|
54
|
+
Date, Boolean])
|
|
55
|
+
], EmployeeMilestoneDetails);
|
|
@@ -0,0 +1,34 @@
|
|
|
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.EmployeeMilestones = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const BaseModel_1 = require("./BaseModel");
|
|
15
|
+
let EmployeeMilestones = class EmployeeMilestones extends BaseModel_1.BaseModel {
|
|
16
|
+
constructor(user_id, is_active = true) {
|
|
17
|
+
super();
|
|
18
|
+
this.user_id = user_id || 0;
|
|
19
|
+
this.is_active = is_active;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.EmployeeMilestones = EmployeeMilestones;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'int' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], EmployeeMilestones.prototype, "user_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], EmployeeMilestones.prototype, "is_active", void 0);
|
|
31
|
+
exports.EmployeeMilestones = EmployeeMilestones = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)({ name: 'employee_milestones' }),
|
|
33
|
+
__metadata("design:paramtypes", [Number, Boolean])
|
|
34
|
+
], EmployeeMilestones);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class Location {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
is_active: boolean;
|
|
6
|
+
is_deleted: boolean;
|
|
7
|
+
created_by: string;
|
|
8
|
+
updated_by: string;
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
constructor(name?: string, description?: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.Location = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Location = class Location {
|
|
15
|
+
constructor(name, description) {
|
|
16
|
+
if (name)
|
|
17
|
+
this.name = name;
|
|
18
|
+
if (description)
|
|
19
|
+
this.description = description;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.Location = Location;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], Location.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Location.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Location.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], Location.prototype, "is_active", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], Location.prototype, "is_deleted", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Location.prototype, "created_by", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Location.prototype, "updated_by", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], Location.prototype, "created_at", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], Location.prototype, "updated_at", void 0);
|
|
59
|
+
exports.Location = Location = __decorate([
|
|
60
|
+
(0, typeorm_1.Entity)('locations'),
|
|
61
|
+
__metadata("design:paramtypes", [String, String])
|
|
62
|
+
], Location);
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { BaseModel } from './BaseModel';
|
|
12
12
|
export declare class WorkSchedule extends BaseModel {
|
|
13
|
+
schedule_type_name_id: number | null;
|
|
14
|
+
location_id: number | null;
|
|
15
|
+
number_of_days: number | null;
|
|
13
16
|
from_date: Date;
|
|
14
17
|
to_date: Date;
|
|
15
18
|
from_time: string;
|
|
16
19
|
to_time: string;
|
|
17
20
|
reason: string | null;
|
|
18
|
-
constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string);
|
|
21
|
+
constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string, schedule_type_name_id?: number, location_id?: number, number_of_days?: number);
|
|
19
22
|
}
|
|
@@ -23,16 +23,31 @@ exports.WorkSchedule = void 0;
|
|
|
23
23
|
const typeorm_1 = require("typeorm");
|
|
24
24
|
const BaseModel_1 = require("./BaseModel");
|
|
25
25
|
let WorkSchedule = class WorkSchedule extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(from_date, to_date, from_time, to_time, reason) {
|
|
26
|
+
constructor(from_date, to_date, from_time, to_time, reason, schedule_type_name_id, location_id, number_of_days) {
|
|
27
27
|
super();
|
|
28
28
|
this.from_date = from_date;
|
|
29
29
|
this.to_date = to_date;
|
|
30
30
|
this.from_time = from_time;
|
|
31
31
|
this.to_time = to_time;
|
|
32
32
|
this.reason = reason || null;
|
|
33
|
+
this.schedule_type_name_id = schedule_type_name_id || null;
|
|
34
|
+
this.location_id = location_id || null;
|
|
35
|
+
this.number_of_days = number_of_days || null;
|
|
33
36
|
}
|
|
34
37
|
};
|
|
35
38
|
exports.WorkSchedule = WorkSchedule;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], WorkSchedule.prototype, "schedule_type_name_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], WorkSchedule.prototype, "location_id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], WorkSchedule.prototype, "number_of_days", void 0);
|
|
36
51
|
__decorate([
|
|
37
52
|
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
38
53
|
__metadata("design:type", Date)
|
|
@@ -56,5 +71,5 @@ __decorate([
|
|
|
56
71
|
exports.WorkSchedule = WorkSchedule = __decorate([
|
|
57
72
|
(0, typeorm_1.Entity)({ name: 'work_schedules' }),
|
|
58
73
|
__metadata("design:paramtypes", [Date,
|
|
59
|
-
Date, String, String, String])
|
|
74
|
+
Date, String, String, String, Number, Number, Number])
|
|
60
75
|
], WorkSchedule);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class WorkScheduleTypeName {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
is_active: boolean;
|
|
6
|
+
is_deleted: boolean;
|
|
7
|
+
created_by: string;
|
|
8
|
+
updated_by: string;
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
constructor(name?: string, description?: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.WorkScheduleTypeName = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let WorkScheduleTypeName = class WorkScheduleTypeName {
|
|
15
|
+
constructor(name, description) {
|
|
16
|
+
if (name)
|
|
17
|
+
this.name = name;
|
|
18
|
+
if (description)
|
|
19
|
+
this.description = description;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.WorkScheduleTypeName = WorkScheduleTypeName;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], WorkScheduleTypeName.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], WorkScheduleTypeName.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], WorkScheduleTypeName.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], WorkScheduleTypeName.prototype, "is_active", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], WorkScheduleTypeName.prototype, "is_deleted", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], WorkScheduleTypeName.prototype, "created_by", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], WorkScheduleTypeName.prototype, "updated_by", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], WorkScheduleTypeName.prototype, "created_at", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], WorkScheduleTypeName.prototype, "updated_at", void 0);
|
|
59
|
+
exports.WorkScheduleTypeName = WorkScheduleTypeName = __decorate([
|
|
60
|
+
(0, typeorm_1.Entity)('work_schedule_type_names'),
|
|
61
|
+
__metadata("design:paramtypes", [String, String])
|
|
62
|
+
], WorkScheduleTypeName);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -183,6 +183,8 @@ export * from './models/RoutingGroupUsersModel';
|
|
|
183
183
|
export * from './models/HelpdeskKnowledgeBase';
|
|
184
184
|
export * from './models/HelpdeskAutoClosureConfig';
|
|
185
185
|
export * from './models/MilestoneTitleModel';
|
|
186
|
+
export * from './models/WorkScheduleTypeNameModel';
|
|
187
|
+
export * from './models/LocationModel';
|
|
186
188
|
export * from './models/EmployeeCardRequestsModel';
|
|
187
189
|
export * from './models/EmployeeCardApprovalsModel';
|
|
188
190
|
export * from './models/EmployeeCardWorkFlowModel';
|
|
@@ -247,4 +249,9 @@ export * from './models/LanguageCourseAttachmentModel';
|
|
|
247
249
|
export * from './models/LanguageCourseChatModel';
|
|
248
250
|
export * from './models/LanguageCourseWorkflowModel';
|
|
249
251
|
export * from './models/LanguageCourseCostModel';
|
|
250
|
-
export * from './models/LanguageCourseLecturerModel';
|
|
252
|
+
export * from './models/LanguageCourseLecturerModel';
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
// Employee Milestones Models
|
|
256
|
+
export * from './models/EmployeeMilestonesModel';
|
|
257
|
+
export * from './models/EmployeeMilestoneDetailsModel';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Column, Entity } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'employee_milestone_details' })
|
|
5
|
+
export class EmployeeMilestoneDetails extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
employee_milestone_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'int' })
|
|
10
|
+
main_title_id: number; // FK to milestone_titles table
|
|
11
|
+
|
|
12
|
+
@Column({ type: 'varchar', length: 500, nullable: true })
|
|
13
|
+
title: string | null;
|
|
14
|
+
|
|
15
|
+
@Column({ type: 'date', nullable: true })
|
|
16
|
+
start_date: Date | null;
|
|
17
|
+
|
|
18
|
+
@Column({ type: 'date', nullable: true })
|
|
19
|
+
end_date: Date | null;
|
|
20
|
+
|
|
21
|
+
@Column({ type: 'boolean', default: true })
|
|
22
|
+
is_active: boolean;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
employee_milestone_id?: number,
|
|
26
|
+
main_title_id?: number,
|
|
27
|
+
title?: string,
|
|
28
|
+
start_date?: Date,
|
|
29
|
+
end_date?: Date,
|
|
30
|
+
is_active: boolean = true
|
|
31
|
+
) {
|
|
32
|
+
super();
|
|
33
|
+
this.employee_milestone_id = employee_milestone_id || 0;
|
|
34
|
+
this.main_title_id = main_title_id || 0;
|
|
35
|
+
this.title = title || null;
|
|
36
|
+
this.start_date = start_date || null;
|
|
37
|
+
this.end_date = end_date || null;
|
|
38
|
+
this.is_active = is_active;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Column, Entity, OneToMany } from "typeorm";
|
|
2
|
+
import { BaseModel } from './BaseModel';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'employee_milestones' })
|
|
5
|
+
export class EmployeeMilestones extends BaseModel {
|
|
6
|
+
@Column({ type: 'int' })
|
|
7
|
+
user_id: number;
|
|
8
|
+
|
|
9
|
+
@Column({ type: 'boolean', default: true })
|
|
10
|
+
is_active: boolean;
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
user_id?: number,
|
|
14
|
+
is_active: boolean = true
|
|
15
|
+
) {
|
|
16
|
+
super();
|
|
17
|
+
this.user_id = user_id || 0;
|
|
18
|
+
this.is_active = is_active;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
Column,
|
|
5
|
+
CreateDateColumn,
|
|
6
|
+
UpdateDateColumn
|
|
7
|
+
} from 'typeorm';
|
|
8
|
+
|
|
9
|
+
@Entity('locations')
|
|
10
|
+
export class Location {
|
|
11
|
+
@PrimaryGeneratedColumn()
|
|
12
|
+
id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
15
|
+
name: string;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'text', nullable: true })
|
|
18
|
+
description: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'boolean', default: true })
|
|
21
|
+
is_active: boolean;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'boolean', default: false })
|
|
24
|
+
is_deleted: boolean;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'varchar', nullable: true })
|
|
27
|
+
created_by: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'varchar', nullable: true })
|
|
30
|
+
updated_by: string;
|
|
31
|
+
|
|
32
|
+
@CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
33
|
+
created_at: Date;
|
|
34
|
+
|
|
35
|
+
@UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
36
|
+
updated_at: Date;
|
|
37
|
+
|
|
38
|
+
constructor(name?: string, description?: string) {
|
|
39
|
+
if (name) this.name = name;
|
|
40
|
+
if (description) this.description = description;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -14,6 +14,15 @@ import { BaseModel } from './BaseModel';
|
|
|
14
14
|
|
|
15
15
|
@Entity({ name: 'work_schedules' })
|
|
16
16
|
export class WorkSchedule extends BaseModel {
|
|
17
|
+
@Column({ type: 'int', nullable: true })
|
|
18
|
+
schedule_type_name_id: number | null;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'int', nullable: true })
|
|
21
|
+
location_id: number | null;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'int', nullable: true })
|
|
24
|
+
number_of_days: number | null;
|
|
25
|
+
|
|
17
26
|
@Column({ type: 'date', nullable: false })
|
|
18
27
|
from_date: Date;
|
|
19
28
|
|
|
@@ -34,7 +43,10 @@ export class WorkSchedule extends BaseModel {
|
|
|
34
43
|
to_date: Date,
|
|
35
44
|
from_time: string,
|
|
36
45
|
to_time: string,
|
|
37
|
-
reason?: string
|
|
46
|
+
reason?: string,
|
|
47
|
+
schedule_type_name_id?: number,
|
|
48
|
+
location_id?: number,
|
|
49
|
+
number_of_days?: number
|
|
38
50
|
) {
|
|
39
51
|
super();
|
|
40
52
|
this.from_date = from_date;
|
|
@@ -42,6 +54,9 @@ export class WorkSchedule extends BaseModel {
|
|
|
42
54
|
this.from_time = from_time;
|
|
43
55
|
this.to_time = to_time;
|
|
44
56
|
this.reason = reason || null;
|
|
57
|
+
this.schedule_type_name_id = schedule_type_name_id || null;
|
|
58
|
+
this.location_id = location_id || null;
|
|
59
|
+
this.number_of_days = number_of_days || null;
|
|
45
60
|
}
|
|
46
61
|
}
|
|
47
62
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Entity,
|
|
3
|
+
PrimaryGeneratedColumn,
|
|
4
|
+
Column,
|
|
5
|
+
CreateDateColumn,
|
|
6
|
+
UpdateDateColumn
|
|
7
|
+
} from 'typeorm';
|
|
8
|
+
|
|
9
|
+
@Entity('work_schedule_type_names')
|
|
10
|
+
export class WorkScheduleTypeName {
|
|
11
|
+
@PrimaryGeneratedColumn()
|
|
12
|
+
id: number;
|
|
13
|
+
|
|
14
|
+
@Column({ type: 'varchar', length: 255, nullable: false })
|
|
15
|
+
name: string;
|
|
16
|
+
|
|
17
|
+
@Column({ type: 'text', nullable: true })
|
|
18
|
+
description: string;
|
|
19
|
+
|
|
20
|
+
@Column({ type: 'boolean', default: true })
|
|
21
|
+
is_active: boolean;
|
|
22
|
+
|
|
23
|
+
@Column({ type: 'boolean', default: false })
|
|
24
|
+
is_deleted: boolean;
|
|
25
|
+
|
|
26
|
+
@Column({ type: 'varchar', nullable: true })
|
|
27
|
+
created_by: string;
|
|
28
|
+
|
|
29
|
+
@Column({ type: 'varchar', nullable: true })
|
|
30
|
+
updated_by: string;
|
|
31
|
+
|
|
32
|
+
@CreateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
33
|
+
created_at: Date;
|
|
34
|
+
|
|
35
|
+
@UpdateDateColumn({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
|
|
36
|
+
updated_at: Date;
|
|
37
|
+
|
|
38
|
+
constructor(name?: string, description?: string) {
|
|
39
|
+
if (name) this.name = name;
|
|
40
|
+
if (description) this.description = description;
|
|
41
|
+
}
|
|
42
|
+
}
|