oca-shared-model 1.0.46 → 1.0.48
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/company/company.module.js +3 -0
- package/dist/company/job_vacancy_cbt/dto/create-job_vacancy_cbt.dto.d.ts +2 -0
- package/dist/company/job_vacancy_cbt/dto/create-job_vacancy_cbt.dto.js +6 -0
- package/dist/company/job_vacancy_cbt/dto/update-job_vacancy_cbt.dto.d.ts +5 -0
- package/dist/company/job_vacancy_cbt/dto/update-job_vacancy_cbt.dto.js +8 -0
- package/dist/company/job_vacancy_cbt/entities/job_vacancy_cbt.entity.d.ts +10 -0
- package/dist/company/job_vacancy_cbt/entities/job_vacancy_cbt.entity.js +51 -0
- package/dist/company/job_vacancy_cbt/job_vacancy_cbt.module.d.ts +2 -0
- package/dist/company/job_vacancy_cbt/job_vacancy_cbt.module.js +20 -0
- package/dist/company/job_vacancy_cbt/job_vacancy_cbt.service.d.ts +6 -0
- package/dist/company/job_vacancy_cbt/job_vacancy_cbt.service.js +31 -0
- package/dist/crew/crew.module.js +3 -2
- package/dist/crew/crew_cbt/crew_cbt.module.d.ts +2 -0
- package/dist/crew/crew_cbt/crew_cbt.module.js +20 -0
- package/dist/crew/crew_cbt/crew_cbt.service.d.ts +6 -0
- package/dist/crew/crew_cbt/crew_cbt.service.js +31 -0
- package/dist/crew/crew_cbt/dto/create-crew_cbt.dto.d.ts +2 -0
- package/dist/crew/crew_cbt/dto/create-crew_cbt.dto.js +6 -0
- package/dist/crew/crew_cbt/dto/update-crew_cbt.dto.d.ts +5 -0
- package/dist/crew/crew_cbt/dto/update-crew_cbt.dto.js +8 -0
- package/dist/crew/crew_cbt/entities/crew_cbt.entity.d.ts +17 -0
- package/dist/crew/crew_cbt/entities/crew_cbt.entity.js +79 -0
- package/dist/helper/cbt/master-helper.d.ts +19 -0
- package/dist/helper/cbt/master-helper.js +280 -0
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ const user_badges_module_1 = require("./user_badges/user_badges.module");
|
|
|
15
15
|
const user_inboxes_module_1 = require("./user_inboxes/user_inboxes.module");
|
|
16
16
|
const vessel_crew_schedules_module_1 = require("./vessel_crew_schedules/vessel_crew_schedules.module");
|
|
17
17
|
const vessels_module_1 = require("./vessels/vessels.module");
|
|
18
|
+
const job_vacancy_cbt_module_1 = require("./job_vacancy_cbt/job_vacancy_cbt.module");
|
|
18
19
|
let CompanyModule = class CompanyModule {
|
|
19
20
|
};
|
|
20
21
|
exports.CompanyModule = CompanyModule;
|
|
@@ -28,6 +29,7 @@ exports.CompanyModule = CompanyModule = __decorate([
|
|
|
28
29
|
user_inboxes_module_1.UserInboxesModule,
|
|
29
30
|
vessel_crew_schedules_module_1.VesselCrewSchedulesModule,
|
|
30
31
|
vessels_module_1.VesselsModule,
|
|
32
|
+
job_vacancy_cbt_module_1.JobVacancyCbtModule,
|
|
31
33
|
],
|
|
32
34
|
exports: [
|
|
33
35
|
api_settings_module_1.ApiSettingsModule,
|
|
@@ -37,6 +39,7 @@ exports.CompanyModule = CompanyModule = __decorate([
|
|
|
37
39
|
user_inboxes_module_1.UserInboxesModule,
|
|
38
40
|
vessel_crew_schedules_module_1.VesselCrewSchedulesModule,
|
|
39
41
|
vessels_module_1.VesselsModule,
|
|
42
|
+
job_vacancy_cbt_module_1.JobVacancyCbtModule,
|
|
40
43
|
],
|
|
41
44
|
})
|
|
42
45
|
], CompanyModule);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateJobVacancyCbtDto } from './create-job_vacancy_cbt.dto';
|
|
2
|
+
declare const UpdateJobVacancyCbtDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateJobVacancyCbtDto>>;
|
|
3
|
+
export declare class UpdateJobVacancyCbtDto extends UpdateJobVacancyCbtDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateJobVacancyCbtDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_job_vacancy_cbt_dto_1 = require("./create-job_vacancy_cbt.dto");
|
|
6
|
+
class UpdateJobVacancyCbtDto extends (0, mapped_types_1.PartialType)(create_job_vacancy_cbt_dto_1.CreateJobVacancyCbtDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateJobVacancyCbtDto = UpdateJobVacancyCbtDto;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultColumn } from "../../../helper/default-column";
|
|
2
|
+
export declare class JobVacancyCbt extends DefaultColumn {
|
|
3
|
+
id?: number;
|
|
4
|
+
type?: string;
|
|
5
|
+
job_vacancy_id?: number;
|
|
6
|
+
cbt_id?: number;
|
|
7
|
+
stage_id?: number;
|
|
8
|
+
sort_order?: number;
|
|
9
|
+
meta?: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.JobVacancyCbt = void 0;
|
|
13
|
+
const default_column_1 = require("../../../helper/default-column");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let JobVacancyCbt = class JobVacancyCbt extends default_column_1.DefaultColumn {
|
|
16
|
+
};
|
|
17
|
+
exports.JobVacancyCbt = JobVacancyCbt;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], JobVacancyCbt.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], JobVacancyCbt.prototype, "type", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], JobVacancyCbt.prototype, "job_vacancy_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], JobVacancyCbt.prototype, "cbt_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], JobVacancyCbt.prototype, "stage_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], JobVacancyCbt.prototype, "sort_order", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)("jsonb"),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], JobVacancyCbt.prototype, "meta", void 0);
|
|
46
|
+
exports.JobVacancyCbt = JobVacancyCbt = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({
|
|
48
|
+
schema: "company",
|
|
49
|
+
name: "job_vacancy_cbt",
|
|
50
|
+
})
|
|
51
|
+
], JobVacancyCbt);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.JobVacancyCbtModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const job_vacancy_cbt_service_1 = require("./job_vacancy_cbt.service");
|
|
12
|
+
let JobVacancyCbtModule = class JobVacancyCbtModule {
|
|
13
|
+
};
|
|
14
|
+
exports.JobVacancyCbtModule = JobVacancyCbtModule;
|
|
15
|
+
exports.JobVacancyCbtModule = JobVacancyCbtModule = __decorate([
|
|
16
|
+
(0, common_1.Module)({
|
|
17
|
+
providers: [job_vacancy_cbt_service_1.JobVacancyCbtService],
|
|
18
|
+
exports: [job_vacancy_cbt_service_1.JobVacancyCbtService],
|
|
19
|
+
})
|
|
20
|
+
], JobVacancyCbtModule);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseService } from "../../helper/base-service";
|
|
2
|
+
import { JobVacancyCbt } from "./entities/job_vacancy_cbt.entity";
|
|
3
|
+
import { Repository } from "typeorm";
|
|
4
|
+
export declare class JobVacancyCbtService extends BaseService<JobVacancyCbt> {
|
|
5
|
+
constructor(repository: Repository<JobVacancyCbt>);
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.JobVacancyCbtService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const base_service_1 = require("../../helper/base-service");
|
|
18
|
+
const job_vacancy_cbt_entity_1 = require("./entities/job_vacancy_cbt.entity");
|
|
19
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
20
|
+
const typeorm_2 = require("typeorm");
|
|
21
|
+
let JobVacancyCbtService = class JobVacancyCbtService extends base_service_1.BaseService {
|
|
22
|
+
constructor(repository) {
|
|
23
|
+
super(repository);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.JobVacancyCbtService = JobVacancyCbtService;
|
|
27
|
+
exports.JobVacancyCbtService = JobVacancyCbtService = __decorate([
|
|
28
|
+
(0, common_1.Injectable)(),
|
|
29
|
+
__param(0, (0, typeorm_1.InjectRepository)(job_vacancy_cbt_entity_1.JobVacancyCbt)),
|
|
30
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
31
|
+
], JobVacancyCbtService);
|
package/dist/crew/crew.module.js
CHANGED
|
@@ -9,12 +9,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.CrewModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const social_media_module_1 = require("./social_media/social_media.module");
|
|
12
|
+
const crew_cbt_module_1 = require("./crew_cbt/crew_cbt.module");
|
|
12
13
|
let CrewModule = class CrewModule {
|
|
13
14
|
};
|
|
14
15
|
exports.CrewModule = CrewModule;
|
|
15
16
|
exports.CrewModule = CrewModule = __decorate([
|
|
16
17
|
(0, common_1.Module)({
|
|
17
|
-
imports: [social_media_module_1.SocialMediaModule],
|
|
18
|
-
exports: [social_media_module_1.SocialMediaModule],
|
|
18
|
+
imports: [social_media_module_1.SocialMediaModule, crew_cbt_module_1.CrewCbtModule],
|
|
19
|
+
exports: [social_media_module_1.SocialMediaModule, crew_cbt_module_1.CrewCbtModule],
|
|
19
20
|
})
|
|
20
21
|
], CrewModule);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CrewCbtModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const crew_cbt_service_1 = require("./crew_cbt.service");
|
|
12
|
+
let CrewCbtModule = class CrewCbtModule {
|
|
13
|
+
};
|
|
14
|
+
exports.CrewCbtModule = CrewCbtModule;
|
|
15
|
+
exports.CrewCbtModule = CrewCbtModule = __decorate([
|
|
16
|
+
(0, common_1.Module)({
|
|
17
|
+
providers: [crew_cbt_service_1.CrewCbtService],
|
|
18
|
+
exports: [crew_cbt_service_1.CrewCbtService],
|
|
19
|
+
})
|
|
20
|
+
], CrewCbtModule);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseService } from "../../helper/base-service";
|
|
2
|
+
import { CrewCbt } from "./entities/crew_cbt.entity";
|
|
3
|
+
import { Repository } from "typeorm";
|
|
4
|
+
export declare class CrewCbtService extends BaseService<CrewCbt> {
|
|
5
|
+
constructor(repository: Repository<CrewCbt>);
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CrewCbtService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const base_service_1 = require("../../helper/base-service");
|
|
18
|
+
const crew_cbt_entity_1 = require("./entities/crew_cbt.entity");
|
|
19
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
20
|
+
const typeorm_2 = require("typeorm");
|
|
21
|
+
let CrewCbtService = class CrewCbtService extends base_service_1.BaseService {
|
|
22
|
+
constructor(repository) {
|
|
23
|
+
super(repository);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.CrewCbtService = CrewCbtService;
|
|
27
|
+
exports.CrewCbtService = CrewCbtService = __decorate([
|
|
28
|
+
(0, common_1.Injectable)(),
|
|
29
|
+
__param(0, (0, typeorm_1.InjectRepository)(crew_cbt_entity_1.CrewCbt)),
|
|
30
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
31
|
+
], CrewCbtService);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCrewCbtDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_crew_cbt_dto_1 = require("./create-crew_cbt.dto");
|
|
6
|
+
class UpdateCrewCbtDto extends (0, mapped_types_1.PartialType)(create_crew_cbt_dto_1.CreateCrewCbtDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateCrewCbtDto = UpdateCrewCbtDto;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DefaultColumn } from "../../../helper/default-column";
|
|
2
|
+
export declare class CrewCbt extends DefaultColumn {
|
|
3
|
+
id?: number;
|
|
4
|
+
public_id?: string;
|
|
5
|
+
cbt_id?: number;
|
|
6
|
+
crew_id?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
score?: number;
|
|
9
|
+
job_vacancy_id?: number;
|
|
10
|
+
stage_id?: number;
|
|
11
|
+
result?: string;
|
|
12
|
+
total_answers?: number;
|
|
13
|
+
retake_flag?: number;
|
|
14
|
+
answer_data: any;
|
|
15
|
+
jvc_id?: number;
|
|
16
|
+
questions: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.CrewCbt = void 0;
|
|
13
|
+
const default_column_1 = require("../../../helper/default-column");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let CrewCbt = class CrewCbt extends default_column_1.DefaultColumn {
|
|
16
|
+
};
|
|
17
|
+
exports.CrewCbt = CrewCbt;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CrewCbt.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CrewCbt.prototype, "public_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], CrewCbt.prototype, "cbt_id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CrewCbt.prototype, "crew_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CrewCbt.prototype, "status", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], CrewCbt.prototype, "score", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], CrewCbt.prototype, "job_vacancy_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], CrewCbt.prototype, "stage_id", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CrewCbt.prototype, "result", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], CrewCbt.prototype, "total_answers", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], CrewCbt.prototype, "retake_flag", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)("jsonb"),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], CrewCbt.prototype, "answer_data", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], CrewCbt.prototype, "jvc_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)("jsonb"),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], CrewCbt.prototype, "questions", void 0);
|
|
74
|
+
exports.CrewCbt = CrewCbt = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)({
|
|
76
|
+
schema: "crew",
|
|
77
|
+
name: "crew_cbt",
|
|
78
|
+
})
|
|
79
|
+
], CrewCbt);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const masterCbtOrder: string[];
|
|
2
|
+
export declare const mqCode: {
|
|
3
|
+
code: string;
|
|
4
|
+
rank: string[];
|
|
5
|
+
vessel_type: string[];
|
|
6
|
+
questions: {
|
|
7
|
+
type: string;
|
|
8
|
+
max_question: number;
|
|
9
|
+
}[];
|
|
10
|
+
}[];
|
|
11
|
+
export declare function FindMqCode(rank: string, vesselType: string): {
|
|
12
|
+
code: string;
|
|
13
|
+
rank: string[];
|
|
14
|
+
vessel_type: string[];
|
|
15
|
+
questions: {
|
|
16
|
+
type: string;
|
|
17
|
+
max_question: number;
|
|
18
|
+
}[];
|
|
19
|
+
} | undefined;
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mqCode = exports.masterCbtOrder = void 0;
|
|
4
|
+
exports.FindMqCode = FindMqCode;
|
|
5
|
+
const specialSkills = [
|
|
6
|
+
"Special Skill: DP Basic",
|
|
7
|
+
"Special Skill: DP Advanced",
|
|
8
|
+
"Special Skill: DPO Limited",
|
|
9
|
+
"Special Skill: DPO Unlimited",
|
|
10
|
+
"Special Skill: DPM",
|
|
11
|
+
"Special Skill: DPVM",
|
|
12
|
+
];
|
|
13
|
+
exports.masterCbtOrder = [
|
|
14
|
+
"General Marine Knowledge",
|
|
15
|
+
"English Grammar Knowledge",
|
|
16
|
+
"Specific knowledge",
|
|
17
|
+
...specialSkills,
|
|
18
|
+
];
|
|
19
|
+
exports.mqCode = [
|
|
20
|
+
{
|
|
21
|
+
code: "D1",
|
|
22
|
+
rank: ["Master", "Chief Officer"],
|
|
23
|
+
vessel_type: ["Platform Supply Vessel"],
|
|
24
|
+
questions: [
|
|
25
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
26
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
27
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
code: "D2",
|
|
32
|
+
rank: [
|
|
33
|
+
"Second Officer",
|
|
34
|
+
"Third Officer",
|
|
35
|
+
"Officer in Charge of Navigational Watch",
|
|
36
|
+
],
|
|
37
|
+
vessel_type: ["Platform Supply Vessel"],
|
|
38
|
+
questions: [
|
|
39
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
40
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
41
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
code: "D3",
|
|
46
|
+
rank: ["Master", "Chief Officer"],
|
|
47
|
+
vessel_type: [
|
|
48
|
+
"Anchor Handling Tug",
|
|
49
|
+
"Anchor Handling Tug Supply",
|
|
50
|
+
"ASD Tug",
|
|
51
|
+
],
|
|
52
|
+
questions: [
|
|
53
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
54
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
55
|
+
{ type: "Specific knowledge", max_question: 15 },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
code: "D4",
|
|
60
|
+
rank: [
|
|
61
|
+
"Second Officer",
|
|
62
|
+
"Third Officer",
|
|
63
|
+
"Fourth Officer",
|
|
64
|
+
"Officer in Charge of Navigational Watch",
|
|
65
|
+
"Deck Cadet",
|
|
66
|
+
],
|
|
67
|
+
vessel_type: [
|
|
68
|
+
"Anchor Handling Tug",
|
|
69
|
+
"Anchor Handling Tug Supply",
|
|
70
|
+
"ASD Tug",
|
|
71
|
+
],
|
|
72
|
+
questions: [
|
|
73
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
74
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
75
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
code: "D5",
|
|
80
|
+
rank: [
|
|
81
|
+
"Master",
|
|
82
|
+
"Chief Officer",
|
|
83
|
+
"Second Officer",
|
|
84
|
+
"Third Officer",
|
|
85
|
+
"Fourth Officer",
|
|
86
|
+
"Officer in Charge of Navigational Watch",
|
|
87
|
+
],
|
|
88
|
+
vessel_type: [
|
|
89
|
+
"Fast Utility Vessel",
|
|
90
|
+
"Utility Vessel",
|
|
91
|
+
"Tug Boat",
|
|
92
|
+
"Landing Craft Tank",
|
|
93
|
+
"Multi Purpose Supply Vessel",
|
|
94
|
+
"ASD Tug",
|
|
95
|
+
],
|
|
96
|
+
questions: [
|
|
97
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
98
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
99
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
code: "D6",
|
|
104
|
+
rank: [
|
|
105
|
+
"Bosun",
|
|
106
|
+
"AB Deck (Able Bodied Seaman)",
|
|
107
|
+
"Crane Operator",
|
|
108
|
+
"Rating Deck Cadet",
|
|
109
|
+
],
|
|
110
|
+
vessel_type: [
|
|
111
|
+
"Platform Supply Vessel",
|
|
112
|
+
"Anchor Handling Tug",
|
|
113
|
+
"Anchor Handling Tug Supply",
|
|
114
|
+
"ASD Tug",
|
|
115
|
+
],
|
|
116
|
+
questions: [
|
|
117
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
118
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
119
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
code: "D7",
|
|
124
|
+
rank: [
|
|
125
|
+
"Bosun",
|
|
126
|
+
"AB Deck (Able Bodied Seaman)",
|
|
127
|
+
"Crane Operator",
|
|
128
|
+
"Rating Deck Cadet",
|
|
129
|
+
],
|
|
130
|
+
vessel_type: [
|
|
131
|
+
"Fast Utility Vessel",
|
|
132
|
+
"Utility Vessel",
|
|
133
|
+
"Tug Boat",
|
|
134
|
+
"Landing Craft Tank",
|
|
135
|
+
"Multi Purpose Supply Vessel",
|
|
136
|
+
],
|
|
137
|
+
questions: [
|
|
138
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
139
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
140
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
code: "D8",
|
|
145
|
+
rank: ["Cook", "Mess Boy", "Camp Boss"],
|
|
146
|
+
vessel_type: [
|
|
147
|
+
"Platform Supply Vessel",
|
|
148
|
+
"Anchor Handling Tug",
|
|
149
|
+
"Anchor Handling Tug Supply",
|
|
150
|
+
"Fast Utility Vessel",
|
|
151
|
+
"Utility Vessel",
|
|
152
|
+
"Tug Boat",
|
|
153
|
+
"Landing Craft Tank",
|
|
154
|
+
"Multi Purpose Supply Vessel",
|
|
155
|
+
"ASD Tug",
|
|
156
|
+
],
|
|
157
|
+
questions: [
|
|
158
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
159
|
+
{ type: "English Grammar Knowledge", max_question: 15 },
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
code: "E1",
|
|
164
|
+
rank: ["Chief Engineer", "Second Engineer"],
|
|
165
|
+
vessel_type: ["Platform Supply Vessel"],
|
|
166
|
+
questions: [
|
|
167
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
168
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
169
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
code: "E2",
|
|
174
|
+
rank: [
|
|
175
|
+
"Third Engineer",
|
|
176
|
+
"Fourth Engineer",
|
|
177
|
+
"Fifth Engineer",
|
|
178
|
+
"Officer in Charge of Engine Watch",
|
|
179
|
+
],
|
|
180
|
+
vessel_type: ["Platform Supply Vessel", "ASD Tug"],
|
|
181
|
+
questions: [
|
|
182
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
183
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
184
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
code: "E3",
|
|
189
|
+
rank: ["Chief Engineer", "Second Engineer"],
|
|
190
|
+
vessel_type: ["Anchor Handling Tug", "Anchor Handling Tug Supply"],
|
|
191
|
+
questions: [
|
|
192
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
193
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
194
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
195
|
+
],
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
code: "E4",
|
|
199
|
+
rank: [
|
|
200
|
+
"Third Engineer",
|
|
201
|
+
"Fourth Engineer",
|
|
202
|
+
"Fifth Engineer",
|
|
203
|
+
"Officer in Charge of Engine Watch",
|
|
204
|
+
"Engine Cadet",
|
|
205
|
+
],
|
|
206
|
+
vessel_type: [
|
|
207
|
+
"Anchor Handling Tug",
|
|
208
|
+
"Anchor Handling Tug Supply",
|
|
209
|
+
"ASD Tug",
|
|
210
|
+
],
|
|
211
|
+
questions: [
|
|
212
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
213
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
214
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
code: "E5",
|
|
219
|
+
rank: [
|
|
220
|
+
"Chief Engineer",
|
|
221
|
+
"Second Engineer",
|
|
222
|
+
"Third Engineer",
|
|
223
|
+
"Fourth Engineer",
|
|
224
|
+
"Officer in Charge of Engine Watch",
|
|
225
|
+
],
|
|
226
|
+
vessel_type: [
|
|
227
|
+
"Fast Utility Vessel",
|
|
228
|
+
"Utility Vessel",
|
|
229
|
+
"Tug Boat",
|
|
230
|
+
"Landing Craft Tank",
|
|
231
|
+
"Multi Purpose Supply Vessel",
|
|
232
|
+
],
|
|
233
|
+
questions: [
|
|
234
|
+
{ type: "General Marine Knowledge", max_question: 25 },
|
|
235
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
236
|
+
{ type: "Specific knowledge", max_question: 10 },
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
code: "E6",
|
|
241
|
+
rank: ["Oiler / Greaser / Motorman", "Rating Engine Cadet"],
|
|
242
|
+
vessel_type: [
|
|
243
|
+
"Platform Supply Vessel",
|
|
244
|
+
"Anchor Handling Tug",
|
|
245
|
+
"Anchor Handling Tug Supply",
|
|
246
|
+
"Fast Utility Vessel",
|
|
247
|
+
"Utility Vessel",
|
|
248
|
+
"Tug Boat",
|
|
249
|
+
"Landing Craft Tank",
|
|
250
|
+
"Multi Purpose Supply Vessel",
|
|
251
|
+
],
|
|
252
|
+
questions: [
|
|
253
|
+
{ type: "General Marine Knowledge", max_question: 40 },
|
|
254
|
+
{ type: "English Grammar Knowledge", max_question: 20 },
|
|
255
|
+
],
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
code: "E7",
|
|
259
|
+
rank: [
|
|
260
|
+
"Electro-Technical Officer",
|
|
261
|
+
"Electro-Technical Rating",
|
|
262
|
+
"Electrician Trainee",
|
|
263
|
+
"Electro-Technical Officer Cadet",
|
|
264
|
+
],
|
|
265
|
+
vessel_type: [
|
|
266
|
+
"Platform Supply Vessel",
|
|
267
|
+
"Anchor Handling Tug Supply",
|
|
268
|
+
"Multi Purpose Supply Vessel",
|
|
269
|
+
],
|
|
270
|
+
questions: [
|
|
271
|
+
{ type: "General Marine Knowledge", max_question: 50 },
|
|
272
|
+
{ type: "English Grammar Knowledge", max_question: 25 },
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
];
|
|
276
|
+
function FindMqCode(rank, vesselType) {
|
|
277
|
+
let find;
|
|
278
|
+
find = exports.mqCode.find((x) => x.rank.includes(rank) && x.vessel_type.includes(vesselType));
|
|
279
|
+
return find;
|
|
280
|
+
}
|