oca-shared-model 1.0.58 → 1.0.60
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/crew/cbt_attempts/cbt_attempts.module.d.ts +2 -0
- package/dist/crew/cbt_attempts/cbt_attempts.module.js +23 -0
- package/dist/crew/cbt_attempts/cbt_attempts.service.d.ts +6 -0
- package/dist/crew/cbt_attempts/cbt_attempts.service.js +31 -0
- package/dist/crew/cbt_attempts/dto/create-cbt_attempt.dto.d.ts +2 -0
- package/dist/crew/cbt_attempts/dto/create-cbt_attempt.dto.js +6 -0
- package/dist/crew/cbt_attempts/dto/update-cbt_attempt.dto.d.ts +5 -0
- package/dist/crew/cbt_attempts/dto/update-cbt_attempt.dto.js +8 -0
- package/dist/crew/cbt_attempts/entities/cbt_attempt.entity.d.ts +23 -0
- package/dist/crew/cbt_attempts/entities/cbt_attempt.entity.js +103 -0
- package/dist/crew/crew.module.js +3 -2
- package/dist/helper/cbt/master-helper.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
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.CbtAttemptsModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const cbt_attempts_service_1 = require("./cbt_attempts.service");
|
|
12
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
13
|
+
const cbt_attempt_entity_1 = require("./entities/cbt_attempt.entity");
|
|
14
|
+
let CbtAttemptsModule = class CbtAttemptsModule {
|
|
15
|
+
};
|
|
16
|
+
exports.CbtAttemptsModule = CbtAttemptsModule;
|
|
17
|
+
exports.CbtAttemptsModule = CbtAttemptsModule = __decorate([
|
|
18
|
+
(0, common_1.Module)({
|
|
19
|
+
imports: [typeorm_1.TypeOrmModule.forFeature([cbt_attempt_entity_1.CbtAttempt])],
|
|
20
|
+
providers: [cbt_attempts_service_1.CbtAttemptsService],
|
|
21
|
+
exports: [cbt_attempts_service_1.CbtAttemptsService],
|
|
22
|
+
})
|
|
23
|
+
], CbtAttemptsModule);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseService } from "../../helper/base-service";
|
|
2
|
+
import { CbtAttempt } from "./entities/cbt_attempt.entity";
|
|
3
|
+
import { Repository } from "typeorm";
|
|
4
|
+
export declare class CbtAttemptsService extends BaseService<CbtAttempt> {
|
|
5
|
+
constructor(repository: Repository<CbtAttempt>);
|
|
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.CbtAttemptsService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const base_service_1 = require("../../helper/base-service");
|
|
18
|
+
const cbt_attempt_entity_1 = require("./entities/cbt_attempt.entity");
|
|
19
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
20
|
+
const typeorm_2 = require("typeorm");
|
|
21
|
+
let CbtAttemptsService = class CbtAttemptsService extends base_service_1.BaseService {
|
|
22
|
+
constructor(repository) {
|
|
23
|
+
super(repository);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.CbtAttemptsService = CbtAttemptsService;
|
|
27
|
+
exports.CbtAttemptsService = CbtAttemptsService = __decorate([
|
|
28
|
+
(0, common_1.Injectable)(),
|
|
29
|
+
__param(0, (0, typeorm_1.InjectRepository)(cbt_attempt_entity_1.CbtAttempt)),
|
|
30
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
31
|
+
], CbtAttemptsService);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateCbtAttemptDto } from './create-cbt_attempt.dto';
|
|
2
|
+
declare const UpdateCbtAttemptDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateCbtAttemptDto>>;
|
|
3
|
+
export declare class UpdateCbtAttemptDto extends UpdateCbtAttemptDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCbtAttemptDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_cbt_attempt_dto_1 = require("./create-cbt_attempt.dto");
|
|
6
|
+
class UpdateCbtAttemptDto extends (0, mapped_types_1.PartialType)(create_cbt_attempt_dto_1.CreateCbtAttemptDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateCbtAttemptDto = UpdateCbtAttemptDto;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DefaultColumn } from "../../../helper/default-column";
|
|
2
|
+
export declare class CbtAttempt extends DefaultColumn {
|
|
3
|
+
id?: number;
|
|
4
|
+
public_id?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
crew_id?: number;
|
|
7
|
+
job_vacancy_id?: number;
|
|
8
|
+
stage_id?: number;
|
|
9
|
+
status?: string;
|
|
10
|
+
attempt?: number;
|
|
11
|
+
cbt_desktop?: boolean;
|
|
12
|
+
grading_policy?: string;
|
|
13
|
+
correct_score?: string;
|
|
14
|
+
total_duration?: number;
|
|
15
|
+
max_score?: number;
|
|
16
|
+
average_score?: number;
|
|
17
|
+
total_question?: number;
|
|
18
|
+
percentage_score?: number;
|
|
19
|
+
passed?: string;
|
|
20
|
+
desktop_mode?: boolean;
|
|
21
|
+
timer?: number;
|
|
22
|
+
last_question?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.CbtAttempt = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const default_column_1 = require("../../../helper/default-column");
|
|
15
|
+
let CbtAttempt = class CbtAttempt extends default_column_1.DefaultColumn {
|
|
16
|
+
};
|
|
17
|
+
exports.CbtAttempt = CbtAttempt;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], CbtAttempt.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CbtAttempt.prototype, "public_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CbtAttempt.prototype, "type", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], CbtAttempt.prototype, "crew_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], CbtAttempt.prototype, "job_vacancy_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], CbtAttempt.prototype, "stage_id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CbtAttempt.prototype, "status", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], CbtAttempt.prototype, "attempt", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], CbtAttempt.prototype, "cbt_desktop", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CbtAttempt.prototype, "grading_policy", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CbtAttempt.prototype, "correct_score", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], CbtAttempt.prototype, "total_duration", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], CbtAttempt.prototype, "max_score", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], CbtAttempt.prototype, "average_score", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], CbtAttempt.prototype, "total_question", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)(),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], CbtAttempt.prototype, "percentage_score", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CbtAttempt.prototype, "passed", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)(),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], CbtAttempt.prototype, "desktop_mode", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)(),
|
|
92
|
+
__metadata("design:type", Number)
|
|
93
|
+
], CbtAttempt.prototype, "timer", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)(),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], CbtAttempt.prototype, "last_question", void 0);
|
|
98
|
+
exports.CbtAttempt = CbtAttempt = __decorate([
|
|
99
|
+
(0, typeorm_1.Entity)({
|
|
100
|
+
schema: "crew",
|
|
101
|
+
name: "cbt_attempts",
|
|
102
|
+
})
|
|
103
|
+
], CbtAttempt);
|
package/dist/crew/crew.module.js
CHANGED
|
@@ -10,12 +10,13 @@ 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
12
|
const crew_cbt_module_1 = require("./crew_cbt/crew_cbt.module");
|
|
13
|
+
const cbt_attempts_module_1 = require("./cbt_attempts/cbt_attempts.module");
|
|
13
14
|
let CrewModule = class CrewModule {
|
|
14
15
|
};
|
|
15
16
|
exports.CrewModule = CrewModule;
|
|
16
17
|
exports.CrewModule = CrewModule = __decorate([
|
|
17
18
|
(0, common_1.Module)({
|
|
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
|
+
imports: [social_media_module_1.SocialMediaModule, crew_cbt_module_1.CrewCbtModule, cbt_attempts_module_1.CbtAttemptsModule],
|
|
20
|
+
exports: [social_media_module_1.SocialMediaModule, crew_cbt_module_1.CrewCbtModule, cbt_attempts_module_1.CbtAttemptsModule],
|
|
20
21
|
})
|
|
21
22
|
], CrewModule);
|
|
@@ -92,6 +92,7 @@ exports.mqCode = [
|
|
|
92
92
|
"Landing Craft Tank",
|
|
93
93
|
"Multi Purpose Supply Vessel",
|
|
94
94
|
"ASD Tug",
|
|
95
|
+
"Crew Boat",
|
|
95
96
|
],
|
|
96
97
|
questions: [
|
|
97
98
|
{ type: "General Marine Knowledge", max_question: 25 },
|
|
@@ -133,6 +134,7 @@ exports.mqCode = [
|
|
|
133
134
|
"Tug Boat",
|
|
134
135
|
"Landing Craft Tank",
|
|
135
136
|
"Multi Purpose Supply Vessel",
|
|
137
|
+
"Crew Boat",
|
|
136
138
|
],
|
|
137
139
|
questions: [
|
|
138
140
|
{ type: "General Marine Knowledge", max_question: 25 },
|
|
@@ -153,6 +155,7 @@ exports.mqCode = [
|
|
|
153
155
|
"Landing Craft Tank",
|
|
154
156
|
"Multi Purpose Supply Vessel",
|
|
155
157
|
"ASD Tug",
|
|
158
|
+
"Crew Boat",
|
|
156
159
|
],
|
|
157
160
|
questions: [
|
|
158
161
|
{ type: "General Marine Knowledge", max_question: 25 },
|
|
@@ -233,6 +236,7 @@ exports.mqCode = [
|
|
|
233
236
|
"Tug Boat",
|
|
234
237
|
"Landing Craft Tank",
|
|
235
238
|
"Multi Purpose Supply Vessel",
|
|
239
|
+
"Crew Boat",
|
|
236
240
|
],
|
|
237
241
|
questions: [
|
|
238
242
|
{ type: "General Marine Knowledge", max_question: 25 },
|
|
@@ -252,6 +256,7 @@ exports.mqCode = [
|
|
|
252
256
|
"Tug Boat",
|
|
253
257
|
"Landing Craft Tank",
|
|
254
258
|
"Multi Purpose Supply Vessel",
|
|
259
|
+
"Crew Boat",
|
|
255
260
|
],
|
|
256
261
|
questions: [
|
|
257
262
|
{ type: "General Marine Knowledge", max_question: 40 },
|