@platform-modules/foreign-ministry 1.3.98 → 1.3.99
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 +3 -17
- package/dist/data-source.js +0 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- 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/data-source.ts +0 -2
- package/src/index.ts +2 -1
- package/src/models/LocationModel.ts +42 -0
- package/src/models/WorkScheduleModel.ts +16 -1
- package/src/models/WorkScheduleTypeNameModel.ts +42 -0
- 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/TransferMissionSummaryReportModel.d.ts +0 -20
- package/dist/models/TransferMissionSummaryReportModel.js +0 -60
- package/dist/models/questionTagsModel.d.ts +0 -6
- package/dist/models/questionTagsModel.js +0 -34
- package/src/models/TransferMissionSummaryReportModel.ts +0 -38
- /package/src/models/{LeaveConfigGradesModel.ts → LeaveConfigGradesModel.Ts} +0 -0
package/.env
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
# DB_PORT=5433
|
|
3
|
-
# DB_USER=postgres
|
|
4
|
-
# DB_PASS=123
|
|
5
|
-
# DB_NAME=FM
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
DB_HOST=164.52.222.169
|
|
1
|
+
DB_HOST=localhost
|
|
10
2
|
DB_PORT=5432
|
|
11
|
-
DB_USER=
|
|
12
|
-
DB_PASS=
|
|
3
|
+
DB_USER=postgres
|
|
4
|
+
DB_PASS=Fa@123
|
|
13
5
|
DB_NAME=FM
|
|
14
|
-
|
|
15
|
-
# DB_HOST=216.48.187.46
|
|
16
|
-
# DB_PORT=5432
|
|
17
|
-
# DB_USER=adminuser
|
|
18
|
-
# DB_PASS=postgres_caa_fm_qa_34567
|
|
19
|
-
# DB_NAME=FM_QA
|
package/dist/data-source.js
CHANGED
|
@@ -96,7 +96,6 @@ const TransferMissionApprovalModel_1 = require("./models/TransferMissionApproval
|
|
|
96
96
|
const TransferMissionAttachmentModel_1 = require("./models/TransferMissionAttachmentModel");
|
|
97
97
|
const TransferMissionChatModel_1 = require("./models/TransferMissionChatModel");
|
|
98
98
|
const TransferMissionWorkflowModel_1 = require("./models/TransferMissionWorkflowModel");
|
|
99
|
-
const TransferMissionSummaryReportModel_1 = require("./models/TransferMissionSummaryReportModel");
|
|
100
99
|
const RegisterVacancyRequestModel_1 = require("./models/RegisterVacancyRequestModel");
|
|
101
100
|
const RegisterVacancyApprovalModel_1 = require("./models/RegisterVacancyApprovalModel");
|
|
102
101
|
const RegisterVacancyAttachmentModel_1 = require("./models/RegisterVacancyAttachmentModel");
|
|
@@ -254,7 +253,6 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
254
253
|
TransferMissionAttachmentModel_1.TransferMissionRequestAttachment,
|
|
255
254
|
TransferMissionChatModel_1.TransferMissionRequestChat,
|
|
256
255
|
TransferMissionWorkflowModel_1.TransferMissionWorkFlow,
|
|
257
|
-
TransferMissionSummaryReportModel_1.TransferMissionSummaryReport,
|
|
258
256
|
RegisterVacancyRequestModel_1.RegisterVacancyRequests,
|
|
259
257
|
RegisterVacancyApprovalModel_1.RegisterVacancyApprovalDetails,
|
|
260
258
|
RegisterVacancyAttachmentModel_1.RegisterVacancyRequestAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -97,7 +97,6 @@ export * from './models/TransferMissionApprovalModel';
|
|
|
97
97
|
export * from './models/TransferMissionAttachmentModel';
|
|
98
98
|
export * from './models/TransferMissionChatModel';
|
|
99
99
|
export * from './models/TransferMissionWorkflowModel';
|
|
100
|
-
export * from './models/TransferMissionSummaryReportModel';
|
|
101
100
|
export * from './models/RegisterVacancyRequestModel';
|
|
102
101
|
export * from './models/RegisterVacancyApprovalModel';
|
|
103
102
|
export * from './models/RegisterVacancyAttachmentModel';
|
|
@@ -184,6 +183,8 @@ export * from './models/RoutingGroupUsersModel';
|
|
|
184
183
|
export * from './models/HelpdeskKnowledgeBase';
|
|
185
184
|
export * from './models/HelpdeskAutoClosureConfig';
|
|
186
185
|
export * from './models/MilestoneTitleModel';
|
|
186
|
+
export * from './models/WorkScheduleTypeNameModel';
|
|
187
|
+
export * from './models/LocationModel';
|
|
187
188
|
export * from './models/EmployeeCardRequestsModel';
|
|
188
189
|
export * from './models/EmployeeCardApprovalsModel';
|
|
189
190
|
export * from './models/EmployeeCardWorkFlowModel';
|
package/dist/index.js
CHANGED
|
@@ -114,7 +114,6 @@ __exportStar(require("./models/TransferMissionApprovalModel"), exports);
|
|
|
114
114
|
__exportStar(require("./models/TransferMissionAttachmentModel"), exports);
|
|
115
115
|
__exportStar(require("./models/TransferMissionChatModel"), exports);
|
|
116
116
|
__exportStar(require("./models/TransferMissionWorkflowModel"), exports);
|
|
117
|
-
__exportStar(require("./models/TransferMissionSummaryReportModel"), exports);
|
|
118
117
|
__exportStar(require("./models/RegisterVacancyRequestModel"), exports);
|
|
119
118
|
__exportStar(require("./models/RegisterVacancyApprovalModel"), exports);
|
|
120
119
|
__exportStar(require("./models/RegisterVacancyAttachmentModel"), exports);
|
|
@@ -218,6 +217,8 @@ __exportStar(require("./models/RoutingGroupUsersModel"), exports);
|
|
|
218
217
|
__exportStar(require("./models/HelpdeskKnowledgeBase"), exports);
|
|
219
218
|
__exportStar(require("./models/HelpdeskAutoClosureConfig"), exports);
|
|
220
219
|
__exportStar(require("./models/MilestoneTitleModel"), exports);
|
|
220
|
+
__exportStar(require("./models/WorkScheduleTypeNameModel"), exports);
|
|
221
|
+
__exportStar(require("./models/LocationModel"), exports);
|
|
221
222
|
__exportStar(require("./models/EmployeeCardRequestsModel"), exports);
|
|
222
223
|
__exportStar(require("./models/EmployeeCardApprovalsModel"), exports);
|
|
223
224
|
__exportStar(require("./models/EmployeeCardWorkFlowModel"), exports);
|
|
@@ -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/data-source.ts
CHANGED
|
@@ -101,7 +101,6 @@ import { TransferMissionApprovalDetails } from './models/TransferMissionApproval
|
|
|
101
101
|
import { TransferMissionRequestAttachment } from './models/TransferMissionAttachmentModel';
|
|
102
102
|
import { TransferMissionRequestChat } from './models/TransferMissionChatModel';
|
|
103
103
|
import { TransferMissionWorkFlow } from './models/TransferMissionWorkflowModel';
|
|
104
|
-
import { TransferMissionSummaryReport } from './models/TransferMissionSummaryReportModel';
|
|
105
104
|
import { RegisterVacancyRequests } from './models/RegisterVacancyRequestModel';
|
|
106
105
|
import { RegisterVacancyApprovalDetails } from './models/RegisterVacancyApprovalModel';
|
|
107
106
|
import { RegisterVacancyRequestAttachment } from './models/RegisterVacancyAttachmentModel';
|
|
@@ -262,7 +261,6 @@ export const AppDataSource = new DataSource({
|
|
|
262
261
|
TransferMissionRequestAttachment,
|
|
263
262
|
TransferMissionRequestChat,
|
|
264
263
|
TransferMissionWorkFlow,
|
|
265
|
-
TransferMissionSummaryReport,
|
|
266
264
|
RegisterVacancyRequests,
|
|
267
265
|
RegisterVacancyApprovalDetails,
|
|
268
266
|
RegisterVacancyRequestAttachment,
|
package/src/index.ts
CHANGED
|
@@ -97,7 +97,6 @@ export * from './models/TransferMissionApprovalModel';
|
|
|
97
97
|
export * from './models/TransferMissionAttachmentModel';
|
|
98
98
|
export * from './models/TransferMissionChatModel';
|
|
99
99
|
export * from './models/TransferMissionWorkflowModel';
|
|
100
|
-
export * from './models/TransferMissionSummaryReportModel';
|
|
101
100
|
export * from './models/RegisterVacancyRequestModel';
|
|
102
101
|
export * from './models/RegisterVacancyApprovalModel';
|
|
103
102
|
export * from './models/RegisterVacancyAttachmentModel';
|
|
@@ -184,6 +183,8 @@ export * from './models/RoutingGroupUsersModel';
|
|
|
184
183
|
export * from './models/HelpdeskKnowledgeBase';
|
|
185
184
|
export * from './models/HelpdeskAutoClosureConfig';
|
|
186
185
|
export * from './models/MilestoneTitleModel';
|
|
186
|
+
export * from './models/WorkScheduleTypeNameModel';
|
|
187
|
+
export * from './models/LocationModel';
|
|
187
188
|
export * from './models/EmployeeCardRequestsModel';
|
|
188
189
|
export * from './models/EmployeeCardApprovalsModel';
|
|
189
190
|
export * from './models/EmployeeCardWorkFlowModel';
|
|
@@ -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
|
+
}
|
|
@@ -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,20 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from './BaseModel';
|
|
2
|
-
export declare enum ExamStatus {
|
|
3
|
-
PENDING = "Pending",
|
|
4
|
-
PASSED = "Passed",
|
|
5
|
-
FAILED = "Failed"
|
|
6
|
-
}
|
|
7
|
-
export declare enum InterviewStatus {
|
|
8
|
-
PENDING = "Pending",
|
|
9
|
-
PASSED = "Passed",
|
|
10
|
-
FAILED = "Failed"
|
|
11
|
-
}
|
|
12
|
-
export declare class TransferMissionSummaryReport extends BaseModel {
|
|
13
|
-
request_id: number;
|
|
14
|
-
employee_id: number;
|
|
15
|
-
department_id: number;
|
|
16
|
-
score: string | null;
|
|
17
|
-
exam_status: ExamStatus;
|
|
18
|
-
interview_status: InterviewStatus;
|
|
19
|
-
priority: string | null;
|
|
20
|
-
}
|
|
@@ -1,60 +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.TransferMissionSummaryReport = exports.InterviewStatus = exports.ExamStatus = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
var ExamStatus;
|
|
16
|
-
(function (ExamStatus) {
|
|
17
|
-
ExamStatus["PENDING"] = "Pending";
|
|
18
|
-
ExamStatus["PASSED"] = "Passed";
|
|
19
|
-
ExamStatus["FAILED"] = "Failed";
|
|
20
|
-
})(ExamStatus || (exports.ExamStatus = ExamStatus = {}));
|
|
21
|
-
var InterviewStatus;
|
|
22
|
-
(function (InterviewStatus) {
|
|
23
|
-
InterviewStatus["PENDING"] = "Pending";
|
|
24
|
-
InterviewStatus["PASSED"] = "Passed";
|
|
25
|
-
InterviewStatus["FAILED"] = "Failed";
|
|
26
|
-
})(InterviewStatus || (exports.InterviewStatus = InterviewStatus = {}));
|
|
27
|
-
let TransferMissionSummaryReport = class TransferMissionSummaryReport extends BaseModel_1.BaseModel {
|
|
28
|
-
};
|
|
29
|
-
exports.TransferMissionSummaryReport = TransferMissionSummaryReport;
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], TransferMissionSummaryReport.prototype, "request_id", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], TransferMissionSummaryReport.prototype, "employee_id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: false }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], TransferMissionSummaryReport.prototype, "department_id", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], TransferMissionSummaryReport.prototype, "score", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: ExamStatus, default: ExamStatus.PENDING, nullable: false }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], TransferMissionSummaryReport.prototype, "exam_status", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'enum', enum: InterviewStatus, default: InterviewStatus.PENDING, nullable: false }),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], TransferMissionSummaryReport.prototype, "interview_status", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], TransferMissionSummaryReport.prototype, "priority", void 0);
|
|
58
|
-
exports.TransferMissionSummaryReport = TransferMissionSummaryReport = __decorate([
|
|
59
|
-
(0, typeorm_1.Entity)({ name: 'transfer_mission_summary_report' })
|
|
60
|
-
], TransferMissionSummaryReport);
|
|
@@ -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.QuestionTags = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const BaseModel_1 = require("./BaseModel");
|
|
15
|
-
let QuestionTags = class QuestionTags extends BaseModel_1.BaseModel {
|
|
16
|
-
constructor(name, question_Id) {
|
|
17
|
-
super();
|
|
18
|
-
this.name = name,
|
|
19
|
-
this.question_Id = question_Id;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.QuestionTags = QuestionTags;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], QuestionTags.prototype, "name", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], QuestionTags.prototype, "question_Id", void 0);
|
|
31
|
-
exports.QuestionTags = QuestionTags = __decorate([
|
|
32
|
-
(0, typeorm_1.Entity)({ name: 'question_tags' }),
|
|
33
|
-
__metadata("design:paramtypes", [String, Number])
|
|
34
|
-
], QuestionTags);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Column, Entity } from "typeorm";
|
|
2
|
-
import { BaseModel } from './BaseModel';
|
|
3
|
-
|
|
4
|
-
export enum ExamStatus {
|
|
5
|
-
PENDING = "Pending",
|
|
6
|
-
PASSED = "Passed",
|
|
7
|
-
FAILED = "Failed"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum InterviewStatus {
|
|
11
|
-
PENDING = "Pending",
|
|
12
|
-
PASSED = "Passed",
|
|
13
|
-
FAILED = "Failed"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@Entity({ name: 'transfer_mission_summary_report' })
|
|
17
|
-
export class TransferMissionSummaryReport extends BaseModel {
|
|
18
|
-
@Column({ type: 'int', nullable: false })
|
|
19
|
-
request_id: number;
|
|
20
|
-
|
|
21
|
-
@Column({ type: 'int', nullable: false })
|
|
22
|
-
employee_id: number;
|
|
23
|
-
|
|
24
|
-
@Column({ type: 'int', nullable: false })
|
|
25
|
-
department_id: number;
|
|
26
|
-
|
|
27
|
-
@Column({ type: 'varchar', nullable: true })
|
|
28
|
-
score: string | null;
|
|
29
|
-
|
|
30
|
-
@Column({ type: 'enum', enum: ExamStatus, default: ExamStatus.PENDING, nullable: false })
|
|
31
|
-
exam_status: ExamStatus;
|
|
32
|
-
|
|
33
|
-
@Column({ type: 'enum', enum: InterviewStatus, default: InterviewStatus.PENDING, nullable: false })
|
|
34
|
-
interview_status: InterviewStatus;
|
|
35
|
-
|
|
36
|
-
@Column({ type: 'varchar', nullable: true })
|
|
37
|
-
priority: string | null;
|
|
38
|
-
}
|
|
File without changes
|