@platform-modules/foreign-ministry 1.3.97 → 1.3.98
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 +17 -3
- package/dist/data-source.js +2 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/models/HelpContentMappedCategoriesModel.d.ts +6 -0
- package/dist/models/HelpContentMappedCategoriesModel.js +34 -0
- package/dist/models/HelpContentMappedTagsModel.d.ts +6 -0
- package/dist/models/HelpContentMappedTagsModel.js +34 -0
- package/dist/models/HelpContentTagsModel.d.ts +5 -0
- package/dist/models/HelpContentTagsModel.js +29 -0
- package/dist/models/TransferMissionSummaryReportModel.d.ts +20 -0
- package/dist/models/TransferMissionSummaryReportModel.js +60 -0
- package/dist/models/WorkScheduleModel.d.ts +1 -4
- package/dist/models/WorkScheduleModel.js +2 -17
- package/dist/models/questionTagsModel.d.ts +6 -0
- package/dist/models/questionTagsModel.js +34 -0
- package/package.json +1 -1
- package/src/data-source.ts +2 -0
- package/src/index.ts +1 -2
- package/src/models/TransferMissionSummaryReportModel.ts +38 -0
- package/src/models/WorkScheduleModel.ts +1 -16
- package/dist/models/LocationModel.d.ts +0 -12
- package/dist/models/LocationModel.js +0 -62
- package/dist/models/WorkScheduleTypeNameModel.d.ts +0 -12
- package/dist/models/WorkScheduleTypeNameModel.js +0 -62
- package/src/models/LocationModel.ts +0 -42
- package/src/models/WorkScheduleTypeNameModel.ts +0 -42
- /package/src/models/{LeaveConfigGradesModel.Ts → LeaveConfigGradesModel.ts} +0 -0
package/.env
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
DB_HOST=localhost
|
|
1
|
+
# DB_HOST=localhost
|
|
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
|
|
2
10
|
DB_PORT=5432
|
|
3
|
-
DB_USER=
|
|
4
|
-
DB_PASS=
|
|
11
|
+
DB_USER=postgres_admin_user
|
|
12
|
+
DB_PASS=pg_admin_user_pwd_caa_fa_$%^&OIukhjgcvbn
|
|
5
13
|
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,6 +96,7 @@ 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");
|
|
99
100
|
const RegisterVacancyRequestModel_1 = require("./models/RegisterVacancyRequestModel");
|
|
100
101
|
const RegisterVacancyApprovalModel_1 = require("./models/RegisterVacancyApprovalModel");
|
|
101
102
|
const RegisterVacancyAttachmentModel_1 = require("./models/RegisterVacancyAttachmentModel");
|
|
@@ -253,6 +254,7 @@ exports.AppDataSource = new typeorm_1.DataSource({
|
|
|
253
254
|
TransferMissionAttachmentModel_1.TransferMissionRequestAttachment,
|
|
254
255
|
TransferMissionChatModel_1.TransferMissionRequestChat,
|
|
255
256
|
TransferMissionWorkflowModel_1.TransferMissionWorkFlow,
|
|
257
|
+
TransferMissionSummaryReportModel_1.TransferMissionSummaryReport,
|
|
256
258
|
RegisterVacancyRequestModel_1.RegisterVacancyRequests,
|
|
257
259
|
RegisterVacancyApprovalModel_1.RegisterVacancyApprovalDetails,
|
|
258
260
|
RegisterVacancyAttachmentModel_1.RegisterVacancyRequestAttachment,
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ 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';
|
|
100
101
|
export * from './models/RegisterVacancyRequestModel';
|
|
101
102
|
export * from './models/RegisterVacancyApprovalModel';
|
|
102
103
|
export * from './models/RegisterVacancyAttachmentModel';
|
|
@@ -183,8 +184,6 @@ export * from './models/RoutingGroupUsersModel';
|
|
|
183
184
|
export * from './models/HelpdeskKnowledgeBase';
|
|
184
185
|
export * from './models/HelpdeskAutoClosureConfig';
|
|
185
186
|
export * from './models/MilestoneTitleModel';
|
|
186
|
-
export * from './models/WorkScheduleTypeNameModel';
|
|
187
|
-
export * from './models/LocationModel';
|
|
188
187
|
export * from './models/EmployeeCardRequestsModel';
|
|
189
188
|
export * from './models/EmployeeCardApprovalsModel';
|
|
190
189
|
export * from './models/EmployeeCardWorkFlowModel';
|
package/dist/index.js
CHANGED
|
@@ -114,6 +114,7 @@ __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);
|
|
117
118
|
__exportStar(require("./models/RegisterVacancyRequestModel"), exports);
|
|
118
119
|
__exportStar(require("./models/RegisterVacancyApprovalModel"), exports);
|
|
119
120
|
__exportStar(require("./models/RegisterVacancyAttachmentModel"), exports);
|
|
@@ -217,8 +218,6 @@ __exportStar(require("./models/RoutingGroupUsersModel"), exports);
|
|
|
217
218
|
__exportStar(require("./models/HelpdeskKnowledgeBase"), exports);
|
|
218
219
|
__exportStar(require("./models/HelpdeskAutoClosureConfig"), exports);
|
|
219
220
|
__exportStar(require("./models/MilestoneTitleModel"), exports);
|
|
220
|
-
__exportStar(require("./models/WorkScheduleTypeNameModel"), exports);
|
|
221
|
-
__exportStar(require("./models/LocationModel"), exports);
|
|
222
221
|
__exportStar(require("./models/EmployeeCardRequestsModel"), exports);
|
|
223
222
|
__exportStar(require("./models/EmployeeCardApprovalsModel"), exports);
|
|
224
223
|
__exportStar(require("./models/EmployeeCardWorkFlowModel"), exports);
|
|
@@ -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.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);
|
|
@@ -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.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);
|
|
@@ -0,0 +1,29 @@
|
|
|
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);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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);
|
|
@@ -10,13 +10,10 @@
|
|
|
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;
|
|
16
13
|
from_date: Date;
|
|
17
14
|
to_date: Date;
|
|
18
15
|
from_time: string;
|
|
19
16
|
to_time: string;
|
|
20
17
|
reason: string | null;
|
|
21
|
-
constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string
|
|
18
|
+
constructor(from_date: Date, to_date: Date, from_time: string, to_time: string, reason?: string);
|
|
22
19
|
}
|
|
@@ -23,31 +23,16 @@ 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) {
|
|
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;
|
|
36
33
|
}
|
|
37
34
|
};
|
|
38
35
|
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);
|
|
51
36
|
__decorate([
|
|
52
37
|
(0, typeorm_1.Column)({ type: 'date', nullable: false }),
|
|
53
38
|
__metadata("design:type", Date)
|
|
@@ -71,5 +56,5 @@ __decorate([
|
|
|
71
56
|
exports.WorkSchedule = WorkSchedule = __decorate([
|
|
72
57
|
(0, typeorm_1.Entity)({ name: 'work_schedules' }),
|
|
73
58
|
__metadata("design:paramtypes", [Date,
|
|
74
|
-
Date, String, String, String
|
|
59
|
+
Date, String, String, String])
|
|
75
60
|
], WorkSchedule);
|
|
@@ -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.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);
|
package/package.json
CHANGED
package/src/data-source.ts
CHANGED
|
@@ -101,6 +101,7 @@ 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';
|
|
104
105
|
import { RegisterVacancyRequests } from './models/RegisterVacancyRequestModel';
|
|
105
106
|
import { RegisterVacancyApprovalDetails } from './models/RegisterVacancyApprovalModel';
|
|
106
107
|
import { RegisterVacancyRequestAttachment } from './models/RegisterVacancyAttachmentModel';
|
|
@@ -261,6 +262,7 @@ export const AppDataSource = new DataSource({
|
|
|
261
262
|
TransferMissionRequestAttachment,
|
|
262
263
|
TransferMissionRequestChat,
|
|
263
264
|
TransferMissionWorkFlow,
|
|
265
|
+
TransferMissionSummaryReport,
|
|
264
266
|
RegisterVacancyRequests,
|
|
265
267
|
RegisterVacancyApprovalDetails,
|
|
266
268
|
RegisterVacancyRequestAttachment,
|
package/src/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ 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';
|
|
100
101
|
export * from './models/RegisterVacancyRequestModel';
|
|
101
102
|
export * from './models/RegisterVacancyApprovalModel';
|
|
102
103
|
export * from './models/RegisterVacancyAttachmentModel';
|
|
@@ -183,8 +184,6 @@ export * from './models/RoutingGroupUsersModel';
|
|
|
183
184
|
export * from './models/HelpdeskKnowledgeBase';
|
|
184
185
|
export * from './models/HelpdeskAutoClosureConfig';
|
|
185
186
|
export * from './models/MilestoneTitleModel';
|
|
186
|
-
export * from './models/WorkScheduleTypeNameModel';
|
|
187
|
-
export * from './models/LocationModel';
|
|
188
187
|
export * from './models/EmployeeCardRequestsModel';
|
|
189
188
|
export * from './models/EmployeeCardApprovalsModel';
|
|
190
189
|
export * from './models/EmployeeCardWorkFlowModel';
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
@@ -14,15 +14,6 @@ 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
|
-
|
|
26
17
|
@Column({ type: 'date', nullable: false })
|
|
27
18
|
from_date: Date;
|
|
28
19
|
|
|
@@ -43,10 +34,7 @@ export class WorkSchedule extends BaseModel {
|
|
|
43
34
|
to_date: Date,
|
|
44
35
|
from_time: string,
|
|
45
36
|
to_time: string,
|
|
46
|
-
reason?: string
|
|
47
|
-
schedule_type_name_id?: number,
|
|
48
|
-
location_id?: number,
|
|
49
|
-
number_of_days?: number
|
|
37
|
+
reason?: string
|
|
50
38
|
) {
|
|
51
39
|
super();
|
|
52
40
|
this.from_date = from_date;
|
|
@@ -54,9 +42,6 @@ export class WorkSchedule extends BaseModel {
|
|
|
54
42
|
this.from_time = from_time;
|
|
55
43
|
this.to_time = to_time;
|
|
56
44
|
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;
|
|
60
45
|
}
|
|
61
46
|
}
|
|
62
47
|
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,62 +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.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);
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,62 +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.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);
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|